@elmethis/core 0.9.1 → 0.9.2
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.
- package/dist/a2ui/v0_9/block_catalog.json +8 -18
- package/dist/index.cjs +7 -5
- package/dist/index.d.cts +41 -11
- package/dist/index.d.mts +41 -11
- package/dist/index.mjs +7 -5
- package/package.json +1 -1
|
@@ -770,29 +770,19 @@
|
|
|
770
770
|
"component": {
|
|
771
771
|
"const": "ContentTab"
|
|
772
772
|
},
|
|
773
|
-
"
|
|
774
|
-
"
|
|
775
|
-
"description": "
|
|
776
|
-
},
|
|
777
|
-
"labels": {
|
|
778
|
-
"type": "array",
|
|
779
|
-
"items": {
|
|
780
|
-
"type": "string"
|
|
781
|
-
},
|
|
782
|
-
"description": "Ordered list of inline component IDs that render the tab button label."
|
|
773
|
+
"label": {
|
|
774
|
+
"$ref": "#/$defs/ChildList",
|
|
775
|
+
"description": "Inline content that renders the tab's button (typically RichText / LinkText / Icon ids), or a list template."
|
|
783
776
|
},
|
|
784
|
-
"
|
|
785
|
-
"
|
|
786
|
-
"
|
|
787
|
-
"type": "string"
|
|
788
|
-
},
|
|
789
|
-
"description": "Ordered list of component IDs that render the tab panel content."
|
|
777
|
+
"content": {
|
|
778
|
+
"$ref": "#/$defs/ChildList",
|
|
779
|
+
"description": "Block content shown when this tab is active, or a list template."
|
|
790
780
|
}
|
|
791
781
|
},
|
|
792
782
|
"required": [
|
|
793
783
|
"component",
|
|
794
|
-
"
|
|
795
|
-
"
|
|
784
|
+
"label",
|
|
785
|
+
"content"
|
|
796
786
|
]
|
|
797
787
|
}
|
|
798
788
|
],
|
package/dist/index.cjs
CHANGED
|
@@ -224,16 +224,18 @@ const MermaidApi = {
|
|
|
224
224
|
};
|
|
225
225
|
/**
|
|
226
226
|
* A single tab inside a ContentTabs container.
|
|
227
|
-
*
|
|
228
|
-
* `
|
|
227
|
+
*
|
|
228
|
+
* `label` is the inline content of the tab's button (typically RichText /
|
|
229
|
+
* LinkText / Icon ids). `content` is the block content shown when the tab
|
|
230
|
+
* is active. Both accept a `ChildList` — a static list of component ids or
|
|
231
|
+
* a list template for data-driven panels.
|
|
229
232
|
*/
|
|
230
233
|
const ContentTabApi = {
|
|
231
234
|
name: "ContentTab",
|
|
232
235
|
schema: zod.z.object({
|
|
233
236
|
...CommonProps,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
contents: zod.z.array(zod.z.string()).describe("Ordered list of component IDs that render the tab panel content.")
|
|
237
|
+
label: childrenSchema.describe("Inline content that renders the tab's button (typically RichText / LinkText / Icon ids), or a list template."),
|
|
238
|
+
content: childrenSchema.describe("Block content shown when this tab is active, or a list template.")
|
|
237
239
|
}).strict()
|
|
238
240
|
};
|
|
239
241
|
/** Tabbed container. Children must be ContentTab components. */
|
package/dist/index.d.cts
CHANGED
|
@@ -2452,15 +2452,35 @@ declare const MermaidApi: {
|
|
|
2452
2452
|
};
|
|
2453
2453
|
/**
|
|
2454
2454
|
* A single tab inside a ContentTabs container.
|
|
2455
|
-
*
|
|
2456
|
-
* `
|
|
2455
|
+
*
|
|
2456
|
+
* `label` is the inline content of the tab's button (typically RichText /
|
|
2457
|
+
* LinkText / Icon ids). `content` is the block content shown when the tab
|
|
2458
|
+
* is active. Both accept a `ChildList` — a static list of component ids or
|
|
2459
|
+
* a list template for data-driven panels.
|
|
2457
2460
|
*/
|
|
2458
2461
|
declare const ContentTabApi: {
|
|
2459
2462
|
name: string;
|
|
2460
2463
|
schema: z.ZodObject<{
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
+
label: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
2465
|
+
componentId: z.ZodString;
|
|
2466
|
+
path: z.ZodString;
|
|
2467
|
+
}, "strip", z.ZodTypeAny, {
|
|
2468
|
+
componentId: string;
|
|
2469
|
+
path: string;
|
|
2470
|
+
}, {
|
|
2471
|
+
componentId: string;
|
|
2472
|
+
path: string;
|
|
2473
|
+
}>]>;
|
|
2474
|
+
content: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
2475
|
+
componentId: z.ZodString;
|
|
2476
|
+
path: z.ZodString;
|
|
2477
|
+
}, "strip", z.ZodTypeAny, {
|
|
2478
|
+
componentId: string;
|
|
2479
|
+
path: string;
|
|
2480
|
+
}, {
|
|
2481
|
+
componentId: string;
|
|
2482
|
+
path: string;
|
|
2483
|
+
}>]>;
|
|
2464
2484
|
accessibility: z.ZodOptional<z.ZodObject<{
|
|
2465
2485
|
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2466
2486
|
path: z.ZodString;
|
|
@@ -2533,8 +2553,14 @@ declare const ContentTabApi: {
|
|
|
2533
2553
|
}>>;
|
|
2534
2554
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
2535
2555
|
}, "strict", z.ZodTypeAny, {
|
|
2536
|
-
|
|
2537
|
-
|
|
2556
|
+
label: {
|
|
2557
|
+
componentId: string;
|
|
2558
|
+
path: string;
|
|
2559
|
+
} | string[];
|
|
2560
|
+
content: {
|
|
2561
|
+
componentId: string;
|
|
2562
|
+
path: string;
|
|
2563
|
+
} | string[];
|
|
2538
2564
|
accessibility?: {
|
|
2539
2565
|
description?: string | {
|
|
2540
2566
|
path: string;
|
|
@@ -2552,10 +2578,15 @@ declare const ContentTabApi: {
|
|
|
2552
2578
|
} | undefined;
|
|
2553
2579
|
} | undefined;
|
|
2554
2580
|
weight?: number | undefined;
|
|
2555
|
-
title?: string | undefined;
|
|
2556
2581
|
}, {
|
|
2557
|
-
|
|
2558
|
-
|
|
2582
|
+
label: {
|
|
2583
|
+
componentId: string;
|
|
2584
|
+
path: string;
|
|
2585
|
+
} | string[];
|
|
2586
|
+
content: {
|
|
2587
|
+
componentId: string;
|
|
2588
|
+
path: string;
|
|
2589
|
+
} | string[];
|
|
2559
2590
|
accessibility?: {
|
|
2560
2591
|
description?: string | {
|
|
2561
2592
|
path: string;
|
|
@@ -2573,7 +2604,6 @@ declare const ContentTabApi: {
|
|
|
2573
2604
|
} | undefined;
|
|
2574
2605
|
} | undefined;
|
|
2575
2606
|
weight?: number | undefined;
|
|
2576
|
-
title?: string | undefined;
|
|
2577
2607
|
}>;
|
|
2578
2608
|
};
|
|
2579
2609
|
/** Tabbed container. Children must be ContentTab components. */
|
package/dist/index.d.mts
CHANGED
|
@@ -2452,15 +2452,35 @@ declare const MermaidApi: {
|
|
|
2452
2452
|
};
|
|
2453
2453
|
/**
|
|
2454
2454
|
* A single tab inside a ContentTabs container.
|
|
2455
|
-
*
|
|
2456
|
-
* `
|
|
2455
|
+
*
|
|
2456
|
+
* `label` is the inline content of the tab's button (typically RichText /
|
|
2457
|
+
* LinkText / Icon ids). `content` is the block content shown when the tab
|
|
2458
|
+
* is active. Both accept a `ChildList` — a static list of component ids or
|
|
2459
|
+
* a list template for data-driven panels.
|
|
2457
2460
|
*/
|
|
2458
2461
|
declare const ContentTabApi: {
|
|
2459
2462
|
name: string;
|
|
2460
2463
|
schema: z.ZodObject<{
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
+
label: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
2465
|
+
componentId: z.ZodString;
|
|
2466
|
+
path: z.ZodString;
|
|
2467
|
+
}, "strip", z.ZodTypeAny, {
|
|
2468
|
+
componentId: string;
|
|
2469
|
+
path: string;
|
|
2470
|
+
}, {
|
|
2471
|
+
componentId: string;
|
|
2472
|
+
path: string;
|
|
2473
|
+
}>]>;
|
|
2474
|
+
content: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
2475
|
+
componentId: z.ZodString;
|
|
2476
|
+
path: z.ZodString;
|
|
2477
|
+
}, "strip", z.ZodTypeAny, {
|
|
2478
|
+
componentId: string;
|
|
2479
|
+
path: string;
|
|
2480
|
+
}, {
|
|
2481
|
+
componentId: string;
|
|
2482
|
+
path: string;
|
|
2483
|
+
}>]>;
|
|
2464
2484
|
accessibility: z.ZodOptional<z.ZodObject<{
|
|
2465
2485
|
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2466
2486
|
path: z.ZodString;
|
|
@@ -2533,8 +2553,14 @@ declare const ContentTabApi: {
|
|
|
2533
2553
|
}>>;
|
|
2534
2554
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
2535
2555
|
}, "strict", z.ZodTypeAny, {
|
|
2536
|
-
|
|
2537
|
-
|
|
2556
|
+
label: {
|
|
2557
|
+
componentId: string;
|
|
2558
|
+
path: string;
|
|
2559
|
+
} | string[];
|
|
2560
|
+
content: {
|
|
2561
|
+
componentId: string;
|
|
2562
|
+
path: string;
|
|
2563
|
+
} | string[];
|
|
2538
2564
|
accessibility?: {
|
|
2539
2565
|
description?: string | {
|
|
2540
2566
|
path: string;
|
|
@@ -2552,10 +2578,15 @@ declare const ContentTabApi: {
|
|
|
2552
2578
|
} | undefined;
|
|
2553
2579
|
} | undefined;
|
|
2554
2580
|
weight?: number | undefined;
|
|
2555
|
-
title?: string | undefined;
|
|
2556
2581
|
}, {
|
|
2557
|
-
|
|
2558
|
-
|
|
2582
|
+
label: {
|
|
2583
|
+
componentId: string;
|
|
2584
|
+
path: string;
|
|
2585
|
+
} | string[];
|
|
2586
|
+
content: {
|
|
2587
|
+
componentId: string;
|
|
2588
|
+
path: string;
|
|
2589
|
+
} | string[];
|
|
2559
2590
|
accessibility?: {
|
|
2560
2591
|
description?: string | {
|
|
2561
2592
|
path: string;
|
|
@@ -2573,7 +2604,6 @@ declare const ContentTabApi: {
|
|
|
2573
2604
|
} | undefined;
|
|
2574
2605
|
} | undefined;
|
|
2575
2606
|
weight?: number | undefined;
|
|
2576
|
-
title?: string | undefined;
|
|
2577
2607
|
}>;
|
|
2578
2608
|
};
|
|
2579
2609
|
/** Tabbed container. Children must be ContentTab components. */
|
package/dist/index.mjs
CHANGED
|
@@ -223,16 +223,18 @@ const MermaidApi = {
|
|
|
223
223
|
};
|
|
224
224
|
/**
|
|
225
225
|
* A single tab inside a ContentTabs container.
|
|
226
|
-
*
|
|
227
|
-
* `
|
|
226
|
+
*
|
|
227
|
+
* `label` is the inline content of the tab's button (typically RichText /
|
|
228
|
+
* LinkText / Icon ids). `content` is the block content shown when the tab
|
|
229
|
+
* is active. Both accept a `ChildList` — a static list of component ids or
|
|
230
|
+
* a list template for data-driven panels.
|
|
228
231
|
*/
|
|
229
232
|
const ContentTabApi = {
|
|
230
233
|
name: "ContentTab",
|
|
231
234
|
schema: z.object({
|
|
232
235
|
...CommonProps,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
contents: z.array(z.string()).describe("Ordered list of component IDs that render the tab panel content.")
|
|
236
|
+
label: childrenSchema.describe("Inline content that renders the tab's button (typically RichText / LinkText / Icon ids), or a list template."),
|
|
237
|
+
content: childrenSchema.describe("Block content shown when this tab is active, or a list template.")
|
|
236
238
|
}).strict()
|
|
237
239
|
};
|
|
238
240
|
/** Tabbed container. Children must be ContentTab components. */
|