@shwfed/config 2.3.3 → 2.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/actions/components/group.d.vue.ts +12 -10
  3. package/dist/runtime/components/actions/components/group.vue +47 -13
  4. package/dist/runtime/components/actions/components/group.vue.d.ts +12 -10
  5. package/dist/runtime/components/actions/config.d.vue.ts +13 -11
  6. package/dist/runtime/components/actions/config.vue +252 -35
  7. package/dist/runtime/components/actions/config.vue.d.ts +13 -11
  8. package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/config.d.vue.ts +37 -0
  9. package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/config.vue +61 -0
  10. package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/config.vue.d.ts +37 -0
  11. package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/runtime.d.vue.ts +7 -0
  12. package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/runtime.vue +22 -0
  13. package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/runtime.vue.d.ts +7 -0
  14. package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.d.ts +23 -0
  15. package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.js +29 -0
  16. package/dist/runtime/components/actions/schema.d.ts +400 -193
  17. package/dist/runtime/components/actions/schema.js +22 -4
  18. package/dist/runtime/components/actions/utils/resolve.d.ts +15 -0
  19. package/dist/runtime/components/actions/utils/resolve.js +45 -0
  20. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.d.vue.ts +10 -8
  21. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.vue.d.ts +10 -8
  22. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.d.vue.ts +10 -8
  23. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.vue.d.ts +10 -8
  24. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +115 -57
  25. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +10 -8
  26. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +10 -8
  27. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +10 -8
  28. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +10 -8
  29. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +120 -61
  30. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.d.vue.ts +10 -8
  31. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.vue.d.ts +10 -8
  32. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +115 -57
  33. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +115 -57
  34. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  35. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  36. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/runtime.vue +4 -4
  37. package/dist/runtime/components/table/schema.d.ts +125 -65
  38. package/dist/runtime/components/table/utils/row-reorder.js +16 -5
  39. package/dist/runtime/vendor/cel-js/CLAUDE.md +5 -1
  40. package/dist/runtime/vendor/cel-js/PROMPT.md +19 -0
  41. package/dist/runtime/vendor/cel-js/lib/evaluator.js +2 -0
  42. package/dist/runtime/vendor/cel-js/lib/form-builtins.d.ts +2 -0
  43. package/dist/runtime/vendor/cel-js/lib/form-builtins.js +58 -0
  44. package/package.json +1 -1
@@ -1,67 +1,136 @@
1
1
  import { Schema } from 'effect';
2
2
  import type { Environment } from '../../vendor/cel-js/lib/index.js';
3
+ export type RegistryItemValue = Readonly<{
4
+ id: string;
5
+ groupId: string;
6
+ type: string;
7
+ compatibilityDate: string;
8
+ }> & Readonly<Record<string, unknown>>;
9
+ export type RegistrySubItemValue = Readonly<{
10
+ id: string;
11
+ type: string;
12
+ compatibilityDate: string;
13
+ }> & Readonly<Record<string, unknown>>;
3
14
  export declare function ActionSchemaFields(configure: (env: Environment) => void): {
4
15
  ActionGroup: Schema.Struct<{
5
16
  id: Schema.refine<string, typeof Schema.String>;
6
17
  variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
7
18
  }>;
8
- ActionGroupItem: Schema.Union<[Schema.Struct<{
9
- id: Schema.refine<string, typeof Schema.String>;
10
- groupId: Schema.refine<string, typeof Schema.String>;
11
- title: Schema.TupleType<readonly [Schema.Struct<{
12
- locale: Schema.Literal<["zh"]>;
13
- message: Schema.SchemaClass<string, string, never>;
14
- }>], [Schema.Struct<{
15
- locale: Schema.Literal<["ja", "en", "ko"]>;
16
- message: Schema.SchemaClass<string, string, never>;
17
- }>]>;
18
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
19
- locale: Schema.Literal<["zh"]>;
20
- message: Schema.SchemaClass<string, string, never>;
21
- }>], [Schema.Struct<{
22
- locale: Schema.Literal<["ja", "en", "ko"]>;
23
- message: Schema.SchemaClass<string, string, never>;
24
- }>]>>;
25
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
26
- hidden: Schema.optional<Schema.Schema<string, string, never>>;
27
- disabled: Schema.optional<Schema.Schema<string, string, never>>;
28
- variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
29
- hideTitle: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
30
- action: Schema.optional<Schema.Schema<any, any, never>>;
31
- }>, Schema.Struct<{
32
- id: Schema.refine<string, typeof Schema.String>;
33
- groupId: Schema.refine<string, typeof Schema.String>;
34
- title: Schema.TupleType<readonly [Schema.Struct<{
35
- locale: Schema.Literal<["zh"]>;
36
- message: Schema.SchemaClass<string, string, never>;
37
- }>], [Schema.Struct<{
38
- locale: Schema.Literal<["ja", "en", "ko"]>;
39
- message: Schema.SchemaClass<string, string, never>;
40
- }>]>;
41
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
42
- items: Schema.Array$<Schema.Struct<{
43
- id: Schema.refine<string, typeof Schema.String>;
44
- title: Schema.TupleType<readonly [Schema.Struct<{
45
- locale: Schema.Literal<["zh"]>;
46
- message: Schema.SchemaClass<string, string, never>;
47
- }>], [Schema.Struct<{
48
- locale: Schema.Literal<["ja", "en", "ko"]>;
49
- message: Schema.SchemaClass<string, string, never>;
50
- }>]>;
51
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
52
- locale: Schema.Literal<["zh"]>;
53
- message: Schema.SchemaClass<string, string, never>;
54
- }>], [Schema.Struct<{
55
- locale: Schema.Literal<["ja", "en", "ko"]>;
56
- message: Schema.SchemaClass<string, string, never>;
57
- }>]>>;
58
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
59
- hidden: Schema.optional<Schema.Schema<string, string, never>>;
60
- disabled: Schema.optional<Schema.Schema<string, string, never>>;
61
- variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
62
- action: Schema.optional<Schema.Schema<any, any, never>>;
63
- }>>;
64
- }>]>;
19
+ ActionGroupItem: Schema.Schema<RegistryItemValue | {
20
+ readonly disabled?: string | undefined;
21
+ readonly id: string;
22
+ readonly title: readonly [{
23
+ readonly locale: "zh";
24
+ readonly message: string;
25
+ }, ...{
26
+ readonly locale: "en" | "ja" | "ko";
27
+ readonly message: string;
28
+ }[]];
29
+ readonly icon?: string | undefined;
30
+ readonly hidden?: string | undefined;
31
+ readonly tooltip?: readonly [{
32
+ readonly locale: "zh";
33
+ readonly message: string;
34
+ }, ...{
35
+ readonly locale: "en" | "ja" | "ko";
36
+ readonly message: string;
37
+ }[]] | undefined;
38
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
39
+ readonly action?: any;
40
+ readonly groupId: string;
41
+ readonly hideTitle?: boolean | undefined;
42
+ } | {
43
+ readonly id: string;
44
+ readonly title: readonly [{
45
+ readonly locale: "zh";
46
+ readonly message: string;
47
+ }, ...{
48
+ readonly locale: "en" | "ja" | "ko";
49
+ readonly message: string;
50
+ }[]];
51
+ readonly icon?: string | undefined;
52
+ readonly items: readonly (RegistrySubItemValue | {
53
+ readonly disabled?: string | undefined;
54
+ readonly id: string;
55
+ readonly title: readonly [{
56
+ readonly locale: "zh";
57
+ readonly message: string;
58
+ }, ...{
59
+ readonly locale: "en" | "ja" | "ko";
60
+ readonly message: string;
61
+ }[]];
62
+ readonly icon?: string | undefined;
63
+ readonly hidden?: string | undefined;
64
+ readonly tooltip?: readonly [{
65
+ readonly locale: "zh";
66
+ readonly message: string;
67
+ }, ...{
68
+ readonly locale: "en" | "ja" | "ko";
69
+ readonly message: string;
70
+ }[]] | undefined;
71
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
72
+ readonly action?: any;
73
+ })[];
74
+ readonly groupId: string;
75
+ readonly hideTitle?: boolean | undefined;
76
+ }, RegistryItemValue | {
77
+ readonly id: string;
78
+ readonly title: readonly [{
79
+ readonly locale: "zh";
80
+ readonly message: string;
81
+ }, ...{
82
+ readonly locale: "en" | "ja" | "ko";
83
+ readonly message: string;
84
+ }[]];
85
+ readonly groupId: string;
86
+ readonly disabled?: string | undefined;
87
+ readonly icon?: string | undefined;
88
+ readonly hidden?: string | undefined;
89
+ readonly tooltip?: readonly [{
90
+ readonly locale: "zh";
91
+ readonly message: string;
92
+ }, ...{
93
+ readonly locale: "en" | "ja" | "ko";
94
+ readonly message: string;
95
+ }[]] | undefined;
96
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
97
+ readonly action?: any;
98
+ readonly hideTitle?: boolean | undefined;
99
+ } | {
100
+ readonly id: string;
101
+ readonly title: readonly [{
102
+ readonly locale: "zh";
103
+ readonly message: string;
104
+ }, ...{
105
+ readonly locale: "en" | "ja" | "ko";
106
+ readonly message: string;
107
+ }[]];
108
+ readonly items: readonly (RegistrySubItemValue | {
109
+ readonly id: string;
110
+ readonly title: readonly [{
111
+ readonly locale: "zh";
112
+ readonly message: string;
113
+ }, ...{
114
+ readonly locale: "en" | "ja" | "ko";
115
+ readonly message: string;
116
+ }[]];
117
+ readonly disabled?: string | undefined;
118
+ readonly icon?: string | undefined;
119
+ readonly hidden?: string | undefined;
120
+ readonly tooltip?: readonly [{
121
+ readonly locale: "zh";
122
+ readonly message: string;
123
+ }, ...{
124
+ readonly locale: "en" | "ja" | "ko";
125
+ readonly message: string;
126
+ }[]] | undefined;
127
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
128
+ readonly action?: any;
129
+ })[];
130
+ readonly groupId: string;
131
+ readonly icon?: string | undefined;
132
+ readonly hideTitle?: boolean | undefined;
133
+ }, never>;
65
134
  ActionItem: Schema.Struct<{
66
135
  id: Schema.refine<string, typeof Schema.String>;
67
136
  groupId: Schema.refine<string, typeof Schema.String>;
@@ -119,28 +188,50 @@ export declare function ActionSchemaFields(configure: (env: Environment) => void
119
188
  message: Schema.SchemaClass<string, string, never>;
120
189
  }>]>;
121
190
  icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
122
- items: Schema.Array$<Schema.Struct<{
123
- id: Schema.refine<string, typeof Schema.String>;
124
- title: Schema.TupleType<readonly [Schema.Struct<{
125
- locale: Schema.Literal<["zh"]>;
126
- message: Schema.SchemaClass<string, string, never>;
127
- }>], [Schema.Struct<{
128
- locale: Schema.Literal<["ja", "en", "ko"]>;
129
- message: Schema.SchemaClass<string, string, never>;
130
- }>]>;
131
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
132
- locale: Schema.Literal<["zh"]>;
133
- message: Schema.SchemaClass<string, string, never>;
134
- }>], [Schema.Struct<{
135
- locale: Schema.Literal<["ja", "en", "ko"]>;
136
- message: Schema.SchemaClass<string, string, never>;
137
- }>]>>;
138
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
139
- hidden: Schema.optional<Schema.Schema<string, string, never>>;
140
- disabled: Schema.optional<Schema.Schema<string, string, never>>;
141
- variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
142
- action: Schema.optional<Schema.Schema<any, any, never>>;
143
- }>>;
191
+ hideTitle: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
192
+ items: Schema.Array$<Schema.Schema<RegistrySubItemValue | {
193
+ readonly disabled?: string | undefined;
194
+ readonly id: string;
195
+ readonly title: readonly [{
196
+ readonly locale: "zh";
197
+ readonly message: string;
198
+ }, ...{
199
+ readonly locale: "en" | "ja" | "ko";
200
+ readonly message: string;
201
+ }[]];
202
+ readonly icon?: string | undefined;
203
+ readonly hidden?: string | undefined;
204
+ readonly tooltip?: readonly [{
205
+ readonly locale: "zh";
206
+ readonly message: string;
207
+ }, ...{
208
+ readonly locale: "en" | "ja" | "ko";
209
+ readonly message: string;
210
+ }[]] | undefined;
211
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
212
+ readonly action?: any;
213
+ }, RegistrySubItemValue | {
214
+ readonly id: string;
215
+ readonly title: readonly [{
216
+ readonly locale: "zh";
217
+ readonly message: string;
218
+ }, ...{
219
+ readonly locale: "en" | "ja" | "ko";
220
+ readonly message: string;
221
+ }[]];
222
+ readonly disabled?: string | undefined;
223
+ readonly icon?: string | undefined;
224
+ readonly hidden?: string | undefined;
225
+ readonly tooltip?: readonly [{
226
+ readonly locale: "zh";
227
+ readonly message: string;
228
+ }, ...{
229
+ readonly locale: "en" | "ja" | "ko";
230
+ readonly message: string;
231
+ }[]] | undefined;
232
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
233
+ readonly action?: any;
234
+ }, never>>;
144
235
  }>;
145
236
  fields: {
146
237
  size: Schema.optionalWith<Schema.Literal<["default", "sm", "xs"]>, {
@@ -154,63 +245,121 @@ export declare function ActionSchemaFields(configure: (env: Environment) => void
154
245
  id: Schema.refine<string, typeof Schema.String>;
155
246
  variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
156
247
  }>>;
157
- items: Schema.Array$<Schema.Union<[Schema.Struct<{
158
- id: Schema.refine<string, typeof Schema.String>;
159
- groupId: Schema.refine<string, typeof Schema.String>;
160
- title: Schema.TupleType<readonly [Schema.Struct<{
161
- locale: Schema.Literal<["zh"]>;
162
- message: Schema.SchemaClass<string, string, never>;
163
- }>], [Schema.Struct<{
164
- locale: Schema.Literal<["ja", "en", "ko"]>;
165
- message: Schema.SchemaClass<string, string, never>;
166
- }>]>;
167
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
168
- locale: Schema.Literal<["zh"]>;
169
- message: Schema.SchemaClass<string, string, never>;
170
- }>], [Schema.Struct<{
171
- locale: Schema.Literal<["ja", "en", "ko"]>;
172
- message: Schema.SchemaClass<string, string, never>;
173
- }>]>>;
174
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
175
- hidden: Schema.optional<Schema.Schema<string, string, never>>;
176
- disabled: Schema.optional<Schema.Schema<string, string, never>>;
177
- variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
178
- hideTitle: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
179
- action: Schema.optional<Schema.Schema<any, any, never>>;
180
- }>, Schema.Struct<{
181
- id: Schema.refine<string, typeof Schema.String>;
182
- groupId: Schema.refine<string, typeof Schema.String>;
183
- title: Schema.TupleType<readonly [Schema.Struct<{
184
- locale: Schema.Literal<["zh"]>;
185
- message: Schema.SchemaClass<string, string, never>;
186
- }>], [Schema.Struct<{
187
- locale: Schema.Literal<["ja", "en", "ko"]>;
188
- message: Schema.SchemaClass<string, string, never>;
189
- }>]>;
190
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
191
- items: Schema.Array$<Schema.Struct<{
192
- id: Schema.refine<string, typeof Schema.String>;
193
- title: Schema.TupleType<readonly [Schema.Struct<{
194
- locale: Schema.Literal<["zh"]>;
195
- message: Schema.SchemaClass<string, string, never>;
196
- }>], [Schema.Struct<{
197
- locale: Schema.Literal<["ja", "en", "ko"]>;
198
- message: Schema.SchemaClass<string, string, never>;
199
- }>]>;
200
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
201
- locale: Schema.Literal<["zh"]>;
202
- message: Schema.SchemaClass<string, string, never>;
203
- }>], [Schema.Struct<{
204
- locale: Schema.Literal<["ja", "en", "ko"]>;
205
- message: Schema.SchemaClass<string, string, never>;
206
- }>]>>;
207
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
208
- hidden: Schema.optional<Schema.Schema<string, string, never>>;
209
- disabled: Schema.optional<Schema.Schema<string, string, never>>;
210
- variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
211
- action: Schema.optional<Schema.Schema<any, any, never>>;
212
- }>>;
213
- }>]>>;
248
+ items: Schema.Array$<Schema.Schema<RegistryItemValue | {
249
+ readonly disabled?: string | undefined;
250
+ readonly id: string;
251
+ readonly title: readonly [{
252
+ readonly locale: "zh";
253
+ readonly message: string;
254
+ }, ...{
255
+ readonly locale: "en" | "ja" | "ko";
256
+ readonly message: string;
257
+ }[]];
258
+ readonly icon?: string | undefined;
259
+ readonly hidden?: string | undefined;
260
+ readonly tooltip?: readonly [{
261
+ readonly locale: "zh";
262
+ readonly message: string;
263
+ }, ...{
264
+ readonly locale: "en" | "ja" | "ko";
265
+ readonly message: string;
266
+ }[]] | undefined;
267
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
268
+ readonly action?: any;
269
+ readonly groupId: string;
270
+ readonly hideTitle?: boolean | undefined;
271
+ } | {
272
+ readonly id: string;
273
+ readonly title: readonly [{
274
+ readonly locale: "zh";
275
+ readonly message: string;
276
+ }, ...{
277
+ readonly locale: "en" | "ja" | "ko";
278
+ readonly message: string;
279
+ }[]];
280
+ readonly icon?: string | undefined;
281
+ readonly items: readonly (RegistrySubItemValue | {
282
+ readonly disabled?: string | undefined;
283
+ readonly id: string;
284
+ readonly title: readonly [{
285
+ readonly locale: "zh";
286
+ readonly message: string;
287
+ }, ...{
288
+ readonly locale: "en" | "ja" | "ko";
289
+ readonly message: string;
290
+ }[]];
291
+ readonly icon?: string | undefined;
292
+ readonly hidden?: string | undefined;
293
+ readonly tooltip?: readonly [{
294
+ readonly locale: "zh";
295
+ readonly message: string;
296
+ }, ...{
297
+ readonly locale: "en" | "ja" | "ko";
298
+ readonly message: string;
299
+ }[]] | undefined;
300
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
301
+ readonly action?: any;
302
+ })[];
303
+ readonly groupId: string;
304
+ readonly hideTitle?: boolean | undefined;
305
+ }, RegistryItemValue | {
306
+ readonly id: string;
307
+ readonly title: readonly [{
308
+ readonly locale: "zh";
309
+ readonly message: string;
310
+ }, ...{
311
+ readonly locale: "en" | "ja" | "ko";
312
+ readonly message: string;
313
+ }[]];
314
+ readonly groupId: string;
315
+ readonly disabled?: string | undefined;
316
+ readonly icon?: string | undefined;
317
+ readonly hidden?: string | undefined;
318
+ readonly tooltip?: readonly [{
319
+ readonly locale: "zh";
320
+ readonly message: string;
321
+ }, ...{
322
+ readonly locale: "en" | "ja" | "ko";
323
+ readonly message: string;
324
+ }[]] | undefined;
325
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
326
+ readonly action?: any;
327
+ readonly hideTitle?: boolean | undefined;
328
+ } | {
329
+ readonly id: string;
330
+ readonly title: readonly [{
331
+ readonly locale: "zh";
332
+ readonly message: string;
333
+ }, ...{
334
+ readonly locale: "en" | "ja" | "ko";
335
+ readonly message: string;
336
+ }[]];
337
+ readonly items: readonly (RegistrySubItemValue | {
338
+ readonly id: string;
339
+ readonly title: readonly [{
340
+ readonly locale: "zh";
341
+ readonly message: string;
342
+ }, ...{
343
+ readonly locale: "en" | "ja" | "ko";
344
+ readonly message: string;
345
+ }[]];
346
+ readonly disabled?: string | undefined;
347
+ readonly icon?: string | undefined;
348
+ readonly hidden?: string | undefined;
349
+ readonly tooltip?: readonly [{
350
+ readonly locale: "zh";
351
+ readonly message: string;
352
+ }, ...{
353
+ readonly locale: "en" | "ja" | "ko";
354
+ readonly message: string;
355
+ }[]] | undefined;
356
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
357
+ readonly action?: any;
358
+ })[];
359
+ readonly groupId: string;
360
+ readonly icon?: string | undefined;
361
+ readonly hideTitle?: boolean | undefined;
362
+ }, never>>;
214
363
  };
215
364
  };
216
365
  export declare function ActionsConfig(configure: (env: Environment) => void): Schema.Struct<{
@@ -225,63 +374,121 @@ export declare function ActionsConfig(configure: (env: Environment) => void): Sc
225
374
  id: Schema.refine<string, typeof Schema.String>;
226
375
  variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
227
376
  }>>;
228
- items: Schema.Array$<Schema.Union<[Schema.Struct<{
229
- id: Schema.refine<string, typeof Schema.String>;
230
- groupId: Schema.refine<string, typeof Schema.String>;
231
- title: Schema.TupleType<readonly [Schema.Struct<{
232
- locale: Schema.Literal<["zh"]>;
233
- message: Schema.SchemaClass<string, string, never>;
234
- }>], [Schema.Struct<{
235
- locale: Schema.Literal<["ja", "en", "ko"]>;
236
- message: Schema.SchemaClass<string, string, never>;
237
- }>]>;
238
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
239
- locale: Schema.Literal<["zh"]>;
240
- message: Schema.SchemaClass<string, string, never>;
241
- }>], [Schema.Struct<{
242
- locale: Schema.Literal<["ja", "en", "ko"]>;
243
- message: Schema.SchemaClass<string, string, never>;
244
- }>]>>;
245
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
246
- hidden: Schema.optional<Schema.Schema<string, string, never>>;
247
- disabled: Schema.optional<Schema.Schema<string, string, never>>;
248
- variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
249
- hideTitle: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
250
- action: Schema.optional<Schema.Schema<any, any, never>>;
251
- }>, Schema.Struct<{
252
- id: Schema.refine<string, typeof Schema.String>;
253
- groupId: Schema.refine<string, typeof Schema.String>;
254
- title: Schema.TupleType<readonly [Schema.Struct<{
255
- locale: Schema.Literal<["zh"]>;
256
- message: Schema.SchemaClass<string, string, never>;
257
- }>], [Schema.Struct<{
258
- locale: Schema.Literal<["ja", "en", "ko"]>;
259
- message: Schema.SchemaClass<string, string, never>;
260
- }>]>;
261
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
262
- items: Schema.Array$<Schema.Struct<{
263
- id: Schema.refine<string, typeof Schema.String>;
264
- title: Schema.TupleType<readonly [Schema.Struct<{
265
- locale: Schema.Literal<["zh"]>;
266
- message: Schema.SchemaClass<string, string, never>;
267
- }>], [Schema.Struct<{
268
- locale: Schema.Literal<["ja", "en", "ko"]>;
269
- message: Schema.SchemaClass<string, string, never>;
270
- }>]>;
271
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
272
- locale: Schema.Literal<["zh"]>;
273
- message: Schema.SchemaClass<string, string, never>;
274
- }>], [Schema.Struct<{
275
- locale: Schema.Literal<["ja", "en", "ko"]>;
276
- message: Schema.SchemaClass<string, string, never>;
277
- }>]>>;
278
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
279
- hidden: Schema.optional<Schema.Schema<string, string, never>>;
280
- disabled: Schema.optional<Schema.Schema<string, string, never>>;
281
- variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
282
- action: Schema.optional<Schema.Schema<any, any, never>>;
283
- }>>;
284
- }>]>>;
377
+ items: Schema.Array$<Schema.Schema<RegistryItemValue | {
378
+ readonly disabled?: string | undefined;
379
+ readonly id: string;
380
+ readonly title: readonly [{
381
+ readonly locale: "zh";
382
+ readonly message: string;
383
+ }, ...{
384
+ readonly locale: "en" | "ja" | "ko";
385
+ readonly message: string;
386
+ }[]];
387
+ readonly icon?: string | undefined;
388
+ readonly hidden?: string | undefined;
389
+ readonly tooltip?: readonly [{
390
+ readonly locale: "zh";
391
+ readonly message: string;
392
+ }, ...{
393
+ readonly locale: "en" | "ja" | "ko";
394
+ readonly message: string;
395
+ }[]] | undefined;
396
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
397
+ readonly action?: any;
398
+ readonly groupId: string;
399
+ readonly hideTitle?: boolean | undefined;
400
+ } | {
401
+ readonly id: string;
402
+ readonly title: readonly [{
403
+ readonly locale: "zh";
404
+ readonly message: string;
405
+ }, ...{
406
+ readonly locale: "en" | "ja" | "ko";
407
+ readonly message: string;
408
+ }[]];
409
+ readonly icon?: string | undefined;
410
+ readonly items: readonly (RegistrySubItemValue | {
411
+ readonly disabled?: string | undefined;
412
+ readonly id: string;
413
+ readonly title: readonly [{
414
+ readonly locale: "zh";
415
+ readonly message: string;
416
+ }, ...{
417
+ readonly locale: "en" | "ja" | "ko";
418
+ readonly message: string;
419
+ }[]];
420
+ readonly icon?: string | undefined;
421
+ readonly hidden?: string | undefined;
422
+ readonly tooltip?: readonly [{
423
+ readonly locale: "zh";
424
+ readonly message: string;
425
+ }, ...{
426
+ readonly locale: "en" | "ja" | "ko";
427
+ readonly message: string;
428
+ }[]] | undefined;
429
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
430
+ readonly action?: any;
431
+ })[];
432
+ readonly groupId: string;
433
+ readonly hideTitle?: boolean | undefined;
434
+ }, RegistryItemValue | {
435
+ readonly id: string;
436
+ readonly title: readonly [{
437
+ readonly locale: "zh";
438
+ readonly message: string;
439
+ }, ...{
440
+ readonly locale: "en" | "ja" | "ko";
441
+ readonly message: string;
442
+ }[]];
443
+ readonly groupId: string;
444
+ readonly disabled?: string | undefined;
445
+ readonly icon?: string | undefined;
446
+ readonly hidden?: string | undefined;
447
+ readonly tooltip?: readonly [{
448
+ readonly locale: "zh";
449
+ readonly message: string;
450
+ }, ...{
451
+ readonly locale: "en" | "ja" | "ko";
452
+ readonly message: string;
453
+ }[]] | undefined;
454
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
455
+ readonly action?: any;
456
+ readonly hideTitle?: boolean | undefined;
457
+ } | {
458
+ readonly id: string;
459
+ readonly title: readonly [{
460
+ readonly locale: "zh";
461
+ readonly message: string;
462
+ }, ...{
463
+ readonly locale: "en" | "ja" | "ko";
464
+ readonly message: string;
465
+ }[]];
466
+ readonly items: readonly (RegistrySubItemValue | {
467
+ readonly id: string;
468
+ readonly title: readonly [{
469
+ readonly locale: "zh";
470
+ readonly message: string;
471
+ }, ...{
472
+ readonly locale: "en" | "ja" | "ko";
473
+ readonly message: string;
474
+ }[]];
475
+ readonly disabled?: string | undefined;
476
+ readonly icon?: string | undefined;
477
+ readonly hidden?: string | undefined;
478
+ readonly tooltip?: readonly [{
479
+ readonly locale: "zh";
480
+ readonly message: string;
481
+ }, ...{
482
+ readonly locale: "en" | "ja" | "ko";
483
+ readonly message: string;
484
+ }[]] | undefined;
485
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
486
+ readonly action?: any;
487
+ })[];
488
+ readonly groupId: string;
489
+ readonly icon?: string | undefined;
490
+ readonly hideTitle?: boolean | undefined;
491
+ }, never>>;
285
492
  kind: Schema.tag<"shwfed.component.action">;
286
493
  }>;
287
494
  export declare function defaultActionsConfig(): ActionsConfigValue;