@antelopejs/interface-dms 0.15.1-next.1020.g0c3c63d → 0.15.1-next.1023.gd4e59bf

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 (79) hide show
  1. package/dist/base/activity-feed.d.ts +38 -137
  2. package/dist/base/banner.d.ts +34 -60
  3. package/dist/base/block-registry/helpers.d.ts +5 -5
  4. package/dist/base/block-registry/helpers.js.map +1 -1
  5. package/dist/base/block-registry/internal/describe.d.ts +3 -3
  6. package/dist/base/block-registry/internal/describe.js +120 -126
  7. package/dist/base/block-registry/internal/describe.js.map +1 -1
  8. package/dist/base/block-registry/internal/ui.d.ts +6 -4
  9. package/dist/base/block-registry/internal/ui.js +6 -2
  10. package/dist/base/block-registry/internal/ui.js.map +1 -1
  11. package/dist/base/block-registry/registry.d.ts +2 -2
  12. package/dist/base/block-registry/registry.js.map +1 -1
  13. package/dist/base/block-registry/types.d.ts +4 -4
  14. package/dist/base/card.d.ts +24 -46
  15. package/dist/base/chart-card.d.ts +10 -39
  16. package/dist/base/chart-schemas.d.ts +404 -2542
  17. package/dist/base/code-block.d.ts +12 -22
  18. package/dist/base/data-types/default/address.d.ts +1 -19
  19. package/dist/base/data-types/default/choices.d.ts +1 -1
  20. package/dist/base/data-types/default/files.d.ts +6 -30
  21. package/dist/base/data-types/default/numbers.d.ts +5 -17
  22. package/dist/base/data-types/default/numbers.js.map +1 -1
  23. package/dist/base/data-types/default/strings.d.ts +1 -1
  24. package/dist/base/data-types/field-types.d.ts +7 -17
  25. package/dist/base/display.d.ts +42 -48
  26. package/dist/base/empty-state.d.ts +48 -70
  27. package/dist/base/export-jobs.d.ts +3 -3
  28. package/dist/base/form-block-schema.d.ts +56 -510
  29. package/dist/base/form-block-schema.js +1 -1
  30. package/dist/base/form-block-schema.js.map +1 -1
  31. package/dist/base/form-schema.d.ts +0 -1
  32. package/dist/base/form-schema.js +0 -1
  33. package/dist/base/form-schema.js.map +1 -1
  34. package/dist/base/form-types.d.ts +2 -2
  35. package/dist/base/grid.d.ts +2 -12
  36. package/dist/base/guard.d.ts +55 -132
  37. package/dist/base/internal/composed-text.d.ts +3 -3
  38. package/dist/base/internal/composed-text.js +1 -1
  39. package/dist/base/internal/composed-text.js.map +1 -1
  40. package/dist/base/internal/display.d.ts +1 -1
  41. package/dist/base/internal/display.js.map +1 -1
  42. package/dist/base/internal/export-jobs.d.ts +2 -2
  43. package/dist/base/internal/export-jobs.js.map +1 -1
  44. package/dist/base/internal/form-schema-components.d.ts +11 -0
  45. package/dist/base/internal/form-schema-components.js +82 -2
  46. package/dist/base/internal/form-schema-components.js.map +1 -1
  47. package/dist/base/internal/form-schema-validation.d.ts +3 -5
  48. package/dist/base/internal/form-schema-validation.js +1 -1
  49. package/dist/base/internal/form-schema-validation.js.map +1 -1
  50. package/dist/base/key-value-list.d.ts +25 -92
  51. package/dist/base/kpi-card.d.ts +15 -49
  52. package/dist/base/live-toggle.d.ts +15 -16
  53. package/dist/base/meter.d.ts +56 -92
  54. package/dist/base/nav-card-grid.d.ts +29 -92
  55. package/dist/base/page-toolbar.d.ts +6 -10
  56. package/dist/base/period-selector.d.ts +95 -44
  57. package/dist/base/period-selector.js +2 -2
  58. package/dist/base/period-selector.js.map +1 -1
  59. package/dist/base/placeholder.d.ts +1 -9
  60. package/dist/base/resource-form-schema.d.ts +10 -25
  61. package/dist/base/resource-form-schema.js +1 -1
  62. package/dist/base/resource-form-schema.js.map +1 -1
  63. package/dist/base/section.d.ts +7 -25
  64. package/dist/base/stack.d.ts +31 -37
  65. package/dist/base/stat-group.d.ts +37 -84
  66. package/dist/base/tab.d.ts +19 -124
  67. package/dist/base/table-view/internal/meta-helpers.js +23 -1
  68. package/dist/base/table-view/internal/meta-helpers.js.map +1 -1
  69. package/dist/base/table-view/internal/row-actions-schema.d.ts +42 -258
  70. package/dist/base/table-view/schema.d.ts +135 -1222
  71. package/dist/base/table-view/schema.js +3 -3
  72. package/dist/base/table-view/schema.js.map +1 -1
  73. package/dist/base/top-list-card.d.ts +37 -151
  74. package/dist/invite-extensions/internal/types.d.ts +3 -4
  75. package/dist/invite-extensions/types.d.ts +2 -2
  76. package/docs/1.core/6.invites.md +1 -1
  77. package/docs/3.base/1.introduction.md +1 -1
  78. package/docs/3.base/9.helpers.md +1 -1
  79. package/package.json +3 -4
@@ -143,60 +143,38 @@ export declare function ActivityFeed(options?: ActivityFeedProps): ComponentBuil
143
143
  /** The options `ActivityFeed` accepts. */
144
144
  export declare const ActivityFeedSchema: z.ZodObject<{
145
145
  fetchUrl: z.ZodOptional<z.ZodString>;
146
- fetchUrlMethod: z.ZodOptional<z.ZodNativeEnum<typeof import("./types").HttpMethod>>;
146
+ fetchUrlMethod: z.ZodOptional<z.ZodEnum<typeof import("./types").HttpMethod>>;
147
147
  periodScope: z.ZodOptional<z.ZodString>;
148
- realtimeTopic: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
148
+ realtimeTopic: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
149
149
  empty: z.ZodOptional<z.ZodObject<{
150
150
  title: z.ZodString;
151
151
  description: z.ZodOptional<z.ZodString>;
152
- }, "strip", z.ZodTypeAny, {
153
- title: string;
154
- description?: string | undefined;
155
- }, {
156
- title: string;
157
- description?: string | undefined;
158
- }>>;
152
+ }, z.core.$strip>>;
159
153
  skeletonCount: z.ZodOptional<z.ZodNumber>;
160
154
  title: z.ZodOptional<z.ZodString>;
161
155
  items: z.ZodOptional<z.ZodArray<z.ZodObject<{
162
156
  id: z.ZodOptional<z.ZodString>;
163
157
  icon: z.ZodOptional<z.ZodString>;
164
- tone: z.ZodOptional<z.ZodEnum<["error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning", ...("error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning")[]]>>;
165
- title: z.ZodType<BlockText, z.ZodTypeDef, BlockText>;
166
- meta: z.ZodOptional<z.ZodArray<z.ZodType<BlockText, z.ZodTypeDef, BlockText>, "many">>;
167
- detail: z.ZodOptional<z.ZodType<BlockText, z.ZodTypeDef, BlockText>>;
168
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ComposedTextParam, z.ZodTypeDef, ComposedTextParam>>>;
158
+ tone: z.ZodOptional<z.ZodEnum<{
159
+ error: "error";
160
+ info: "info";
161
+ neutral: "neutral";
162
+ primary: "primary";
163
+ secondary: "secondary";
164
+ success: "success";
165
+ warning: "warning";
166
+ }>>;
167
+ title: z.ZodType<BlockText, BlockText, z.core.$ZodTypeInternals<BlockText, BlockText>>;
168
+ meta: z.ZodOptional<z.ZodArray<z.ZodType<BlockText, BlockText, z.core.$ZodTypeInternals<BlockText, BlockText>>>>;
169
+ detail: z.ZodOptional<z.ZodType<BlockText, BlockText, z.core.$ZodTypeInternals<BlockText, BlockText>>>;
170
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ComposedTextParam, ComposedTextParam, z.core.$ZodTypeInternals<ComposedTextParam, ComposedTextParam>>>>;
169
171
  date: z.ZodOptional<z.ZodString>;
170
- time: z.ZodOptional<z.ZodType<BlockText, z.ZodTypeDef, BlockText>>;
172
+ time: z.ZodOptional<z.ZodType<BlockText, BlockText, z.core.$ZodTypeInternals<BlockText, BlockText>>>;
171
173
  unread: z.ZodOptional<z.ZodBoolean>;
172
174
  to: z.ZodOptional<z.ZodString>;
173
- }, "strip", z.ZodTypeAny, {
174
- id?: string | undefined;
175
- icon?: string | undefined;
176
- tone?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
177
- title: BlockText;
178
- meta?: BlockText[] | undefined;
179
- detail?: BlockText | undefined;
180
- params?: Record<string, ComposedTextParam> | undefined;
181
- date?: string | undefined;
182
- time?: BlockText | undefined;
183
- unread?: boolean | undefined;
184
- to?: string | undefined;
185
- }, {
186
- id?: string | undefined;
187
- icon?: string | undefined;
188
- tone?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
189
- title: BlockText;
190
- meta?: BlockText[] | undefined;
191
- detail?: BlockText | undefined;
192
- params?: Record<string, ComposedTextParam> | undefined;
193
- date?: string | undefined;
194
- time?: BlockText | undefined;
195
- unread?: boolean | undefined;
196
- to?: string | undefined;
197
- }>, "many">>;
175
+ }, z.core.$strip>>>;
198
176
  count: z.ZodOptional<z.ZodNumber>;
199
- badge: z.ZodOptional<z.ZodType<BlockText, z.ZodTypeDef, BlockText>>;
177
+ badge: z.ZodOptional<z.ZodType<BlockText, BlockText, z.core.$ZodTypeInternals<BlockText, BlockText>>>;
200
178
  groupByDay: z.ZodOptional<z.ZodBoolean>;
201
179
  maxItems: z.ZodOptional<z.ZodNumber>;
202
180
  visibleItems: z.ZodOptional<z.ZodNumber>;
@@ -206,101 +184,24 @@ export declare const ActivityFeedSchema: z.ZodObject<{
206
184
  label: z.ZodString;
207
185
  to: z.ZodString;
208
186
  icon: z.ZodOptional<z.ZodString>;
209
- variant: z.ZodOptional<z.ZodEnum<["solid", "outline", "soft", "subtle", "ghost", "link"]>>;
210
- color: z.ZodOptional<z.ZodEnum<["error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning", ...("error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning")[]]>>;
211
- }, "strip", z.ZodTypeAny, {
212
- label: string;
213
- to: string;
214
- icon?: string | undefined;
215
- variant?: "ghost" | "link" | "outline" | "soft" | "solid" | "subtle" | undefined;
216
- color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
217
- }, {
218
- label: string;
219
- to: string;
220
- icon?: string | undefined;
221
- variant?: "ghost" | "link" | "outline" | "soft" | "solid" | "subtle" | undefined;
222
- color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
223
- }>, "many">>;
187
+ variant: z.ZodOptional<z.ZodEnum<{
188
+ ghost: "ghost";
189
+ link: "link";
190
+ outline: "outline";
191
+ soft: "soft";
192
+ solid: "solid";
193
+ subtle: "subtle";
194
+ }>>;
195
+ color: z.ZodOptional<z.ZodEnum<{
196
+ error: "error";
197
+ info: "info";
198
+ neutral: "neutral";
199
+ primary: "primary";
200
+ secondary: "secondary";
201
+ success: "success";
202
+ warning: "warning";
203
+ }>>;
204
+ }, z.core.$strip>>>;
224
205
  mono: z.ZodOptional<z.ZodBoolean>;
225
206
  card: z.ZodDefault<z.ZodBoolean>;
226
- }, "strip", z.ZodTypeAny, {
227
- fetchUrl?: string | undefined;
228
- fetchUrlMethod?: import("./types").HttpMethod | undefined;
229
- periodScope?: string | undefined;
230
- realtimeTopic?: string | string[] | undefined;
231
- empty?: {
232
- title: string;
233
- description?: string | undefined;
234
- } | undefined;
235
- skeletonCount?: number | undefined;
236
- title?: string | undefined;
237
- items?: {
238
- id?: string | undefined;
239
- icon?: string | undefined;
240
- tone?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
241
- title: BlockText;
242
- meta?: BlockText[] | undefined;
243
- detail?: BlockText | undefined;
244
- params?: Record<string, ComposedTextParam> | undefined;
245
- date?: string | undefined;
246
- time?: BlockText | undefined;
247
- unread?: boolean | undefined;
248
- to?: string | undefined;
249
- }[] | undefined;
250
- count?: number | undefined;
251
- badge?: BlockText | undefined;
252
- groupByDay?: boolean | undefined;
253
- maxItems?: number | undefined;
254
- visibleItems?: number | undefined;
255
- wrap?: boolean | undefined;
256
- fillHeight?: boolean | undefined;
257
- actions?: {
258
- label: string;
259
- to: string;
260
- icon?: string | undefined;
261
- variant?: "ghost" | "link" | "outline" | "soft" | "solid" | "subtle" | undefined;
262
- color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
263
- }[] | undefined;
264
- mono?: boolean | undefined;
265
- card: boolean;
266
- }, {
267
- fetchUrl?: string | undefined;
268
- fetchUrlMethod?: import("./types").HttpMethod | undefined;
269
- periodScope?: string | undefined;
270
- realtimeTopic?: string | string[] | undefined;
271
- empty?: {
272
- title: string;
273
- description?: string | undefined;
274
- } | undefined;
275
- skeletonCount?: number | undefined;
276
- title?: string | undefined;
277
- items?: {
278
- id?: string | undefined;
279
- icon?: string | undefined;
280
- tone?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
281
- title: BlockText;
282
- meta?: BlockText[] | undefined;
283
- detail?: BlockText | undefined;
284
- params?: Record<string, ComposedTextParam> | undefined;
285
- date?: string | undefined;
286
- time?: BlockText | undefined;
287
- unread?: boolean | undefined;
288
- to?: string | undefined;
289
- }[] | undefined;
290
- count?: number | undefined;
291
- badge?: BlockText | undefined;
292
- groupByDay?: boolean | undefined;
293
- maxItems?: number | undefined;
294
- visibleItems?: number | undefined;
295
- wrap?: boolean | undefined;
296
- fillHeight?: boolean | undefined;
297
- actions?: {
298
- label: string;
299
- to: string;
300
- icon?: string | undefined;
301
- variant?: "ghost" | "link" | "outline" | "soft" | "solid" | "subtle" | undefined;
302
- color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
303
- }[] | undefined;
304
- mono?: boolean | undefined;
305
- card?: boolean | undefined;
306
- }>;
207
+ }, z.core.$strip>;
@@ -105,72 +105,46 @@ export interface BannerProps extends BaseComponentProps, BannerContent {
105
105
  export declare function Banner(options?: BannerProps): ComponentBuilder<BannerProps>;
106
106
  /** The options `Banner` accepts. */
107
107
  export declare const BannerSchema: z.ZodObject<{
108
- title: z.ZodOptional<z.ZodType<BlockText, z.ZodTypeDef, BlockText>>;
109
- description: z.ZodOptional<z.ZodType<BlockText, z.ZodTypeDef, BlockText>>;
108
+ title: z.ZodOptional<z.ZodType<BlockText, BlockText, z.core.$ZodTypeInternals<BlockText, BlockText>>>;
109
+ description: z.ZodOptional<z.ZodType<BlockText, BlockText, z.core.$ZodTypeInternals<BlockText, BlockText>>>;
110
110
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
111
111
  label: z.ZodString;
112
112
  to: z.ZodString;
113
113
  icon: z.ZodOptional<z.ZodString>;
114
- variant: z.ZodOptional<z.ZodEnum<["solid", "outline", "soft", "subtle", "ghost", "link"]>>;
115
- color: z.ZodOptional<z.ZodEnum<["error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning", ...("error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning")[]]>>;
116
- }, "strip", z.ZodTypeAny, {
117
- label: string;
118
- to: string;
119
- icon?: string | undefined;
120
- variant?: "ghost" | "link" | "outline" | "soft" | "solid" | "subtle" | undefined;
121
- color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
122
- }, {
123
- label: string;
124
- to: string;
125
- icon?: string | undefined;
126
- variant?: "ghost" | "link" | "outline" | "soft" | "solid" | "subtle" | undefined;
127
- color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
128
- }>, "many">>;
129
- tone: z.ZodDefault<z.ZodEnum<["error" | "info" | "primary" | "success" | "warning", ...("error" | "info" | "primary" | "success" | "warning")[]]>>;
114
+ variant: z.ZodOptional<z.ZodEnum<{
115
+ ghost: "ghost";
116
+ link: "link";
117
+ outline: "outline";
118
+ soft: "soft";
119
+ solid: "solid";
120
+ subtle: "subtle";
121
+ }>>;
122
+ color: z.ZodOptional<z.ZodEnum<{
123
+ error: "error";
124
+ info: "info";
125
+ neutral: "neutral";
126
+ primary: "primary";
127
+ secondary: "secondary";
128
+ success: "success";
129
+ warning: "warning";
130
+ }>>;
131
+ }, z.core.$strip>>>;
132
+ tone: z.ZodDefault<z.ZodEnum<{
133
+ error: "error";
134
+ info: "info";
135
+ primary: "primary";
136
+ success: "success";
137
+ warning: "warning";
138
+ }>>;
130
139
  icon: z.ZodOptional<z.ZodString>;
131
- size: z.ZodDefault<z.ZodEnum<["md", "sm"]>>;
140
+ size: z.ZodDefault<z.ZodEnum<{
141
+ md: "md";
142
+ sm: "sm";
143
+ }>>;
132
144
  dismissible: z.ZodOptional<z.ZodBoolean>;
133
145
  dismissKey: z.ZodOptional<z.ZodString>;
134
146
  fetchUrl: z.ZodOptional<z.ZodString>;
135
- fetchUrlMethod: z.ZodOptional<z.ZodNativeEnum<typeof HttpMethod>>;
147
+ fetchUrlMethod: z.ZodOptional<z.ZodEnum<typeof HttpMethod>>;
136
148
  periodScope: z.ZodOptional<z.ZodString>;
137
- realtimeTopic: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
138
- }, "strip", z.ZodTypeAny, {
139
- title?: BlockText | undefined;
140
- description?: BlockText | undefined;
141
- actions?: {
142
- label: string;
143
- to: string;
144
- icon?: string | undefined;
145
- variant?: "ghost" | "link" | "outline" | "soft" | "solid" | "subtle" | undefined;
146
- color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
147
- }[] | undefined;
148
- tone: "error" | "info" | "primary" | "success" | "warning";
149
- icon?: string | undefined;
150
- size: "md" | "sm";
151
- dismissible?: boolean | undefined;
152
- dismissKey?: string | undefined;
153
- fetchUrl?: string | undefined;
154
- fetchUrlMethod?: HttpMethod | undefined;
155
- periodScope?: string | undefined;
156
- realtimeTopic?: string | string[] | undefined;
157
- }, {
158
- title?: BlockText | undefined;
159
- description?: BlockText | undefined;
160
- actions?: {
161
- label: string;
162
- to: string;
163
- icon?: string | undefined;
164
- variant?: "ghost" | "link" | "outline" | "soft" | "solid" | "subtle" | undefined;
165
- color?: "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
166
- }[] | undefined;
167
- tone?: "error" | "info" | "primary" | "success" | "warning" | undefined;
168
- icon?: string | undefined;
169
- size?: "md" | "sm" | undefined;
170
- dismissible?: boolean | undefined;
171
- dismissKey?: string | undefined;
172
- fetchUrl?: string | undefined;
173
- fetchUrlMethod?: HttpMethod | undefined;
174
- periodScope?: string | undefined;
175
- realtimeTopic?: string | string[] | undefined;
176
- }>;
149
+ realtimeTopic: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
150
+ }, z.core.$strip>;
@@ -1,23 +1,23 @@
1
- import { type ZodType, type ZodTypeAny, type ZodTypeDef } from "zod";
1
+ import { z } from "zod";
2
2
  import type { BlockOptionUi } from "./types";
3
3
  /**
4
4
  * A string option whose declared type is narrower than `string` — a
5
5
  * template-literal union such as a colour value, or a branded id. The schema
6
6
  * still validates as a string, so a builder UI keeps a text control.
7
7
  */
8
- export declare function narrowString<T extends string>(): ZodType<T, ZodTypeDef, T>;
8
+ export declare function narrowString<T extends string>(): z.ZodType<T, T>;
9
9
  /**
10
10
  * An option the schema cannot describe structurally — a component instance, or
11
11
  * a shape only meaningful to the factory. It validates anything; pair it with a
12
12
  * `json` or `block` widget so the UI knows how to present it.
13
13
  */
14
- export declare function opaqueOption<T>(): ZodType<T, ZodTypeDef, T>;
14
+ export declare function opaqueOption<T>(): z.ZodType<T, T>;
15
15
  /**
16
16
  * An opaque option the factory cannot do without. `z.any()` accepts
17
17
  * `undefined`, so a plain {@link opaqueOption} would let a missing required
18
18
  * value validate; this one refuses it.
19
19
  */
20
- export declare function requiredOpaqueOption<T>(): ZodType<T, ZodTypeDef, T>;
20
+ export declare function requiredOpaqueOption<T>(): z.ZodType<T, T>;
21
21
  /**
22
22
  * Attach builder presentation hints to an option schema. The schema is returned
23
23
  * unchanged, so `ui()` wraps a declaration in place:
@@ -29,4 +29,4 @@ export declare function requiredOpaqueOption<T>(): ZodType<T, ZodTypeDef, T>;
29
29
  * Hints live in a side table rather than in the schema, so validation and type
30
30
  * inference are untouched.
31
31
  */
32
- export declare function ui<T extends ZodTypeAny>(schema: T, hints: BlockOptionUi): T;
32
+ export declare function ui<T extends z.core.$ZodType>(schema: T, hints: BlockOptionUi): T;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/base/block-registry/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,6BAAwE;AAExE,sCAAyC;AAEzC;;;;GAIG;AACH;IACE,MAAM,MAAM,GAAwC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC/D,uRAAuR;IACvR,OAAO,MAAmC,CAAC;AAC7C,CAAC;AAED;;;;GAIG;AACH;IACE,OAAO,OAAC,CAAC,GAAG,EAAE,CAAC;AACjB,CAAC;AAED;;;;GAIG;AACH;IACE,OAAO,OAAC,CAAC,MAAM,CAAI,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,EAAE;QACjD,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;GAUG;AACH,YAAyC,MAAS,EAAE,KAAoB;IACtE,aAAQ,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC5B,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/base/block-registry/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,6BAAwB;AAExB,sCAAyC;AAEzC;;;;GAIG;AACH;IACE,MAAM,MAAM,GAA8B,OAAC,CAAC,MAAM,EAAE,CAAC;IACrD,uRAAuR;IACvR,OAAO,MAAyB,CAAC;AACnC,CAAC;AAED;;;;GAIG;AACH;IACE,OAAO,OAAC,CAAC,GAAG,EAAE,CAAC;AACjB,CAAC;AAED;;;;GAIG;AACH;IACE,OAAO,OAAC,CAAC,MAAM,CAAI,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,EAAE;QACjD,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;GAUG;AACH,YACE,MAAS,EACT,KAAoB;IAEpB,aAAQ,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC5B,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type ZodTypeAny } from "zod";
1
+ import { z } from "zod";
2
2
  import type { BlockOptionSchema } from "../types";
3
3
  /**
4
4
  * A copy of a default value, so freezing a descriptor never reaches an object
@@ -19,14 +19,14 @@ export declare function cloneDefault<T>(value: T): T;
19
19
  *
20
20
  * @internal
21
21
  */
22
- export declare function describeSchema(schema: ZodTypeAny, depth?: number): BlockOptionSchema;
22
+ export declare function describeSchema(schema: z.core.$ZodType, depth?: number): BlockOptionSchema;
23
23
  /**
24
24
  * Describe a block's whole options schema. A non-object schema yields an empty
25
25
  * record, since a block's options are always a plain object.
26
26
  *
27
27
  * @internal
28
28
  */
29
- export declare function describeOptions(schema?: ZodTypeAny): Record<string, BlockOptionSchema>;
29
+ export declare function describeOptions(schema?: z.core.$ZodType): Record<string, BlockOptionSchema>;
30
30
  /**
31
31
  * The default value of every option that declares one.
32
32
  *