import { Schema } from "effect";
import { Triggers } from "../../../../../share/event-bus.js";
export const type = "com.shwfed.actions.button.event.dispatch";
export const compatibilityDate = "2026-05-15";
export const metadata = {
  name: "\u89E6\u53D1\u4E8B\u4EF6",
  icon: "fluent:flash-20-regular"
};
export function schema(_configure) {
  return Schema.Struct({
    type: Schema.Literal(type),
    compatibilityDate: Schema.Literal(compatibilityDate),
    // This button's entire behaviour: the op-requests it bubbles up the
    // component tree on click. Stored on the button itself — there is no
    // host-level trigger field any more.
    triggers: Schema.optional(Triggers.annotations({
      description: '\u6309\u5217\u8868\u987A\u5E8F\u6267\u884C\uFF1B\u5173\u95ED\u5F39\u7A97\u7C7B\u64CD\u4F5C\u7684 target \u662F\u627F\u8F7D\u8BE5\u5F39\u7A97\u7684\u6309\u94AE\u5B9E\u4F8B\uFF08\u5982\u884C\u64CD\u4F5C\u91CC\u7684"\u6A21\u6001\u7A97\u53E3"\u6309\u94AE\uFF09\uFF0C\u800C\u975E\u5F39\u7A97\u672C\u8EAB'
    }))
  });
}
