@shwfed/config 2.3.4 → 2.3.6

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 (37) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/actions/components/group.d.vue.ts +12 -12
  3. package/dist/runtime/components/actions/components/group.vue +46 -12
  4. package/dist/runtime/components/actions/components/group.vue.d.ts +12 -12
  5. package/dist/runtime/components/actions/config.d.vue.ts +13 -13
  6. package/dist/runtime/components/actions/config.vue +206 -16
  7. package/dist/runtime/components/actions/config.vue.d.ts +13 -13
  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 +28 -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 +399 -196
  17. package/dist/runtime/components/actions/schema.js +13 -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 -10
  21. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.vue.d.ts +10 -10
  22. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.d.vue.ts +10 -10
  23. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.vue.d.ts +10 -10
  24. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +115 -58
  25. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +10 -10
  26. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +10 -10
  27. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +10 -10
  28. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +10 -10
  29. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +120 -63
  30. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.d.vue.ts +10 -10
  31. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.vue.d.ts +10 -10
  32. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +115 -58
  33. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +115 -58
  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/schema.d.ts +125 -68
  37. package/package.json +1 -1
@@ -1,68 +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
- hideTitle: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
43
- items: Schema.Array$<Schema.Struct<{
44
- id: Schema.refine<string, typeof Schema.String>;
45
- title: Schema.TupleType<readonly [Schema.Struct<{
46
- locale: Schema.Literal<["zh"]>;
47
- message: Schema.SchemaClass<string, string, never>;
48
- }>], [Schema.Struct<{
49
- locale: Schema.Literal<["ja", "en", "ko"]>;
50
- message: Schema.SchemaClass<string, string, never>;
51
- }>]>;
52
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
53
- locale: Schema.Literal<["zh"]>;
54
- message: Schema.SchemaClass<string, string, never>;
55
- }>], [Schema.Struct<{
56
- locale: Schema.Literal<["ja", "en", "ko"]>;
57
- message: Schema.SchemaClass<string, string, never>;
58
- }>]>>;
59
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
60
- hidden: Schema.optional<Schema.Schema<string, string, never>>;
61
- disabled: Schema.optional<Schema.Schema<string, string, never>>;
62
- variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
63
- action: Schema.optional<Schema.Schema<any, any, never>>;
64
- }>>;
65
- }>]>;
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>;
66
134
  ActionItem: Schema.Struct<{
67
135
  id: Schema.refine<string, typeof Schema.String>;
68
136
  groupId: Schema.refine<string, typeof Schema.String>;
@@ -121,28 +189,49 @@ export declare function ActionSchemaFields(configure: (env: Environment) => void
121
189
  }>]>;
122
190
  icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
123
191
  hideTitle: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
124
- items: Schema.Array$<Schema.Struct<{
125
- id: Schema.refine<string, typeof Schema.String>;
126
- title: Schema.TupleType<readonly [Schema.Struct<{
127
- locale: Schema.Literal<["zh"]>;
128
- message: Schema.SchemaClass<string, string, never>;
129
- }>], [Schema.Struct<{
130
- locale: Schema.Literal<["ja", "en", "ko"]>;
131
- message: Schema.SchemaClass<string, string, never>;
132
- }>]>;
133
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
134
- locale: Schema.Literal<["zh"]>;
135
- message: Schema.SchemaClass<string, string, never>;
136
- }>], [Schema.Struct<{
137
- locale: Schema.Literal<["ja", "en", "ko"]>;
138
- message: Schema.SchemaClass<string, string, never>;
139
- }>]>>;
140
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
141
- hidden: Schema.optional<Schema.Schema<string, string, never>>;
142
- disabled: Schema.optional<Schema.Schema<string, string, never>>;
143
- variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
144
- action: Schema.optional<Schema.Schema<any, any, never>>;
145
- }>>;
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>>;
146
235
  }>;
147
236
  fields: {
148
237
  size: Schema.optionalWith<Schema.Literal<["default", "sm", "xs"]>, {
@@ -156,64 +245,121 @@ export declare function ActionSchemaFields(configure: (env: Environment) => void
156
245
  id: Schema.refine<string, typeof Schema.String>;
157
246
  variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
158
247
  }>>;
159
- items: Schema.Array$<Schema.Union<[Schema.Struct<{
160
- id: Schema.refine<string, typeof Schema.String>;
161
- groupId: Schema.refine<string, typeof Schema.String>;
162
- title: Schema.TupleType<readonly [Schema.Struct<{
163
- locale: Schema.Literal<["zh"]>;
164
- message: Schema.SchemaClass<string, string, never>;
165
- }>], [Schema.Struct<{
166
- locale: Schema.Literal<["ja", "en", "ko"]>;
167
- message: Schema.SchemaClass<string, string, never>;
168
- }>]>;
169
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
170
- locale: Schema.Literal<["zh"]>;
171
- message: Schema.SchemaClass<string, string, never>;
172
- }>], [Schema.Struct<{
173
- locale: Schema.Literal<["ja", "en", "ko"]>;
174
- message: Schema.SchemaClass<string, string, never>;
175
- }>]>>;
176
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
177
- hidden: Schema.optional<Schema.Schema<string, string, never>>;
178
- disabled: Schema.optional<Schema.Schema<string, string, never>>;
179
- variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
180
- hideTitle: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
181
- action: Schema.optional<Schema.Schema<any, any, never>>;
182
- }>, Schema.Struct<{
183
- id: Schema.refine<string, typeof Schema.String>;
184
- groupId: Schema.refine<string, typeof Schema.String>;
185
- title: Schema.TupleType<readonly [Schema.Struct<{
186
- locale: Schema.Literal<["zh"]>;
187
- message: Schema.SchemaClass<string, string, never>;
188
- }>], [Schema.Struct<{
189
- locale: Schema.Literal<["ja", "en", "ko"]>;
190
- message: Schema.SchemaClass<string, string, never>;
191
- }>]>;
192
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
193
- hideTitle: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
194
- items: Schema.Array$<Schema.Struct<{
195
- id: Schema.refine<string, typeof Schema.String>;
196
- title: Schema.TupleType<readonly [Schema.Struct<{
197
- locale: Schema.Literal<["zh"]>;
198
- message: Schema.SchemaClass<string, string, never>;
199
- }>], [Schema.Struct<{
200
- locale: Schema.Literal<["ja", "en", "ko"]>;
201
- message: Schema.SchemaClass<string, string, never>;
202
- }>]>;
203
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
204
- locale: Schema.Literal<["zh"]>;
205
- message: Schema.SchemaClass<string, string, never>;
206
- }>], [Schema.Struct<{
207
- locale: Schema.Literal<["ja", "en", "ko"]>;
208
- message: Schema.SchemaClass<string, string, never>;
209
- }>]>>;
210
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
211
- hidden: Schema.optional<Schema.Schema<string, string, never>>;
212
- disabled: Schema.optional<Schema.Schema<string, string, never>>;
213
- variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
214
- action: Schema.optional<Schema.Schema<any, any, never>>;
215
- }>>;
216
- }>]>>;
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>>;
217
363
  };
218
364
  };
219
365
  export declare function ActionsConfig(configure: (env: Environment) => void): Schema.Struct<{
@@ -228,64 +374,121 @@ export declare function ActionsConfig(configure: (env: Environment) => void): Sc
228
374
  id: Schema.refine<string, typeof Schema.String>;
229
375
  variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
230
376
  }>>;
231
- items: Schema.Array$<Schema.Union<[Schema.Struct<{
232
- id: Schema.refine<string, typeof Schema.String>;
233
- groupId: Schema.refine<string, typeof Schema.String>;
234
- title: Schema.TupleType<readonly [Schema.Struct<{
235
- locale: Schema.Literal<["zh"]>;
236
- message: Schema.SchemaClass<string, string, never>;
237
- }>], [Schema.Struct<{
238
- locale: Schema.Literal<["ja", "en", "ko"]>;
239
- message: Schema.SchemaClass<string, string, never>;
240
- }>]>;
241
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
242
- locale: Schema.Literal<["zh"]>;
243
- message: Schema.SchemaClass<string, string, never>;
244
- }>], [Schema.Struct<{
245
- locale: Schema.Literal<["ja", "en", "ko"]>;
246
- message: Schema.SchemaClass<string, string, never>;
247
- }>]>>;
248
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
249
- hidden: Schema.optional<Schema.Schema<string, string, never>>;
250
- disabled: Schema.optional<Schema.Schema<string, string, never>>;
251
- variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
252
- hideTitle: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
253
- action: Schema.optional<Schema.Schema<any, any, never>>;
254
- }>, Schema.Struct<{
255
- id: Schema.refine<string, typeof Schema.String>;
256
- groupId: Schema.refine<string, typeof Schema.String>;
257
- title: Schema.TupleType<readonly [Schema.Struct<{
258
- locale: Schema.Literal<["zh"]>;
259
- message: Schema.SchemaClass<string, string, never>;
260
- }>], [Schema.Struct<{
261
- locale: Schema.Literal<["ja", "en", "ko"]>;
262
- message: Schema.SchemaClass<string, string, never>;
263
- }>]>;
264
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
265
- hideTitle: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
266
- items: Schema.Array$<Schema.Struct<{
267
- id: Schema.refine<string, typeof Schema.String>;
268
- title: Schema.TupleType<readonly [Schema.Struct<{
269
- locale: Schema.Literal<["zh"]>;
270
- message: Schema.SchemaClass<string, string, never>;
271
- }>], [Schema.Struct<{
272
- locale: Schema.Literal<["ja", "en", "ko"]>;
273
- message: Schema.SchemaClass<string, string, never>;
274
- }>]>;
275
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
276
- locale: Schema.Literal<["zh"]>;
277
- message: Schema.SchemaClass<string, string, never>;
278
- }>], [Schema.Struct<{
279
- locale: Schema.Literal<["ja", "en", "ko"]>;
280
- message: Schema.SchemaClass<string, string, never>;
281
- }>]>>;
282
- icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
283
- hidden: Schema.optional<Schema.Schema<string, string, never>>;
284
- disabled: Schema.optional<Schema.Schema<string, string, never>>;
285
- variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
286
- action: Schema.optional<Schema.Schema<any, any, never>>;
287
- }>>;
288
- }>]>>;
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>>;
289
492
  kind: Schema.tag<"shwfed.component.action">;
290
493
  }>;
291
494
  export declare function defaultActionsConfig(): ActionsConfigValue;