@elmethis/core 0.18.0 → 0.19.0
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 +4 -0
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
|
@@ -898,6 +898,10 @@
|
|
|
898
898
|
"autoHeight": {
|
|
899
899
|
"type": "boolean",
|
|
900
900
|
"description": "Stretch the iframe to fit its content height. Defaults to true. Only takes effect for `html`-rendered content."
|
|
901
|
+
},
|
|
902
|
+
"allowScripts": {
|
|
903
|
+
"type": "boolean",
|
|
904
|
+
"description": "Allow the embedded content to run JavaScript (adds the iframe sandbox's `allow-scripts` token). Defaults to false — script execution is disabled by default. `allow-same-origin` is never granted together with this, in `html` or `src` mode, so the embedded document can never escape the sandbox even with scripts enabled."
|
|
901
905
|
}
|
|
902
906
|
},
|
|
903
907
|
"required": [
|
package/dist/index.cjs
CHANGED
|
@@ -278,7 +278,8 @@ const HtmlApi = {
|
|
|
278
278
|
...CommonProps,
|
|
279
279
|
html: zod.z.string().describe("Raw HTML markup to render inside a sandboxed iframe. Mutually exclusive with `src` — provide exactly one of the two.").optional(),
|
|
280
280
|
src: zod.z.string().describe("URL of a remote document to render inside the iframe instead of inline `html` (e.g. a presigned, time-limited link). Mutually exclusive with `html` — provide exactly one of the two. `autoHeight` doesn't apply here since cross-origin content can't be measured, and a time-limited URL isn't refreshed automatically — the caller is responsible for keeping it current.").optional(),
|
|
281
|
-
autoHeight: zod.z.boolean().describe("Stretch the iframe to fit its content height. Defaults to true. Only takes effect for `html`-rendered content.").optional()
|
|
281
|
+
autoHeight: zod.z.boolean().describe("Stretch the iframe to fit its content height. Defaults to true. Only takes effect for `html`-rendered content.").optional(),
|
|
282
|
+
allowScripts: zod.z.boolean().describe("Allow the embedded content to run JavaScript (adds the iframe sandbox's `allow-scripts` token). Defaults to false — script execution is disabled by default. `allow-same-origin` is never granted together with this, in `html` or `src` mode, so the embedded document can never escape the sandbox even with scripts enabled.").optional()
|
|
282
283
|
}).strict()
|
|
283
284
|
};
|
|
284
285
|
const CodeBlockApi = {
|
package/dist/index.d.cts
CHANGED
|
@@ -2567,6 +2567,7 @@ declare const HtmlApi: {
|
|
|
2567
2567
|
html: z.ZodOptional<z.ZodString>;
|
|
2568
2568
|
src: z.ZodOptional<z.ZodString>;
|
|
2569
2569
|
autoHeight: z.ZodOptional<z.ZodBoolean>;
|
|
2570
|
+
allowScripts: z.ZodOptional<z.ZodBoolean>;
|
|
2570
2571
|
accessibility: z.ZodOptional<z.ZodObject<{
|
|
2571
2572
|
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2572
2573
|
path: z.ZodString;
|
|
@@ -2659,6 +2660,7 @@ declare const HtmlApi: {
|
|
|
2659
2660
|
src?: string | undefined;
|
|
2660
2661
|
html?: string | undefined;
|
|
2661
2662
|
autoHeight?: boolean | undefined;
|
|
2663
|
+
allowScripts?: boolean | undefined;
|
|
2662
2664
|
}, {
|
|
2663
2665
|
accessibility?: {
|
|
2664
2666
|
description?: string | {
|
|
@@ -2680,6 +2682,7 @@ declare const HtmlApi: {
|
|
|
2680
2682
|
src?: string | undefined;
|
|
2681
2683
|
html?: string | undefined;
|
|
2682
2684
|
autoHeight?: boolean | undefined;
|
|
2685
|
+
allowScripts?: boolean | undefined;
|
|
2683
2686
|
}>;
|
|
2684
2687
|
};
|
|
2685
2688
|
declare const CodeBlockApi: {
|
package/dist/index.d.mts
CHANGED
|
@@ -2567,6 +2567,7 @@ declare const HtmlApi: {
|
|
|
2567
2567
|
html: z.ZodOptional<z.ZodString>;
|
|
2568
2568
|
src: z.ZodOptional<z.ZodString>;
|
|
2569
2569
|
autoHeight: z.ZodOptional<z.ZodBoolean>;
|
|
2570
|
+
allowScripts: z.ZodOptional<z.ZodBoolean>;
|
|
2570
2571
|
accessibility: z.ZodOptional<z.ZodObject<{
|
|
2571
2572
|
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2572
2573
|
path: z.ZodString;
|
|
@@ -2659,6 +2660,7 @@ declare const HtmlApi: {
|
|
|
2659
2660
|
src?: string | undefined;
|
|
2660
2661
|
html?: string | undefined;
|
|
2661
2662
|
autoHeight?: boolean | undefined;
|
|
2663
|
+
allowScripts?: boolean | undefined;
|
|
2662
2664
|
}, {
|
|
2663
2665
|
accessibility?: {
|
|
2664
2666
|
description?: string | {
|
|
@@ -2680,6 +2682,7 @@ declare const HtmlApi: {
|
|
|
2680
2682
|
src?: string | undefined;
|
|
2681
2683
|
html?: string | undefined;
|
|
2682
2684
|
autoHeight?: boolean | undefined;
|
|
2685
|
+
allowScripts?: boolean | undefined;
|
|
2683
2686
|
}>;
|
|
2684
2687
|
};
|
|
2685
2688
|
declare const CodeBlockApi: {
|
package/dist/index.mjs
CHANGED
|
@@ -277,7 +277,8 @@ const HtmlApi = {
|
|
|
277
277
|
...CommonProps,
|
|
278
278
|
html: z.string().describe("Raw HTML markup to render inside a sandboxed iframe. Mutually exclusive with `src` — provide exactly one of the two.").optional(),
|
|
279
279
|
src: z.string().describe("URL of a remote document to render inside the iframe instead of inline `html` (e.g. a presigned, time-limited link). Mutually exclusive with `html` — provide exactly one of the two. `autoHeight` doesn't apply here since cross-origin content can't be measured, and a time-limited URL isn't refreshed automatically — the caller is responsible for keeping it current.").optional(),
|
|
280
|
-
autoHeight: z.boolean().describe("Stretch the iframe to fit its content height. Defaults to true. Only takes effect for `html`-rendered content.").optional()
|
|
280
|
+
autoHeight: z.boolean().describe("Stretch the iframe to fit its content height. Defaults to true. Only takes effect for `html`-rendered content.").optional(),
|
|
281
|
+
allowScripts: z.boolean().describe("Allow the embedded content to run JavaScript (adds the iframe sandbox's `allow-scripts` token). Defaults to false — script execution is disabled by default. `allow-same-origin` is never granted together with this, in `html` or `src` mode, so the embedded document can never escape the sandbox even with scripts enabled.").optional()
|
|
281
282
|
}).strict()
|
|
282
283
|
};
|
|
283
284
|
const CodeBlockApi = {
|