@elmethis/core 0.16.0 → 0.17.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 +32 -0
- package/dist/index.cjs +14 -0
- package/dist/index.d.cts +123 -1
- package/dist/index.d.mts +123 -1
- package/dist/index.mjs +14 -1
- package/package.json +1 -1
|
@@ -872,6 +872,38 @@
|
|
|
872
872
|
],
|
|
873
873
|
"unevaluatedProperties": false
|
|
874
874
|
},
|
|
875
|
+
"Html": {
|
|
876
|
+
"type": "object",
|
|
877
|
+
"allOf": [
|
|
878
|
+
{
|
|
879
|
+
"$ref": "#/$defs/ComponentCommon"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"$ref": "#/$defs/CatalogComponentCommon"
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"type": "object",
|
|
886
|
+
"properties": {
|
|
887
|
+
"component": {
|
|
888
|
+
"const": "Html"
|
|
889
|
+
},
|
|
890
|
+
"html": {
|
|
891
|
+
"type": "string",
|
|
892
|
+
"description": "Raw HTML markup to render inside a sandboxed iframe."
|
|
893
|
+
},
|
|
894
|
+
"autoHeight": {
|
|
895
|
+
"type": "boolean",
|
|
896
|
+
"description": "Stretch the iframe to fit its content height. Defaults to true."
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
"required": [
|
|
900
|
+
"component",
|
|
901
|
+
"html"
|
|
902
|
+
]
|
|
903
|
+
}
|
|
904
|
+
],
|
|
905
|
+
"unevaluatedProperties": false
|
|
906
|
+
},
|
|
875
907
|
"CodeBlock": {
|
|
876
908
|
"type": "object",
|
|
877
909
|
"allOf": [
|
package/dist/index.cjs
CHANGED
|
@@ -266,6 +266,18 @@ const BlockImageApi = {
|
|
|
266
266
|
caption: zod.z.string().describe("Optional caption shown below the image.").optional()
|
|
267
267
|
}).strict()
|
|
268
268
|
};
|
|
269
|
+
/**
|
|
270
|
+
* Sandboxed raw-HTML embed. Renders `html` inside an iframe (e.g. a
|
|
271
|
+
* Claude-authored artifact or a Notion page export).
|
|
272
|
+
*/
|
|
273
|
+
const HtmlApi = {
|
|
274
|
+
name: "Html",
|
|
275
|
+
schema: zod.z.object({
|
|
276
|
+
...CommonProps,
|
|
277
|
+
html: zod.z.string().describe("Raw HTML markup to render inside a sandboxed iframe."),
|
|
278
|
+
autoHeight: zod.z.boolean().describe("Stretch the iframe to fit its content height. Defaults to true.").optional()
|
|
279
|
+
}).strict()
|
|
280
|
+
};
|
|
269
281
|
const CodeBlockApi = {
|
|
270
282
|
name: "CodeBlock",
|
|
271
283
|
schema: zod.z.object({
|
|
@@ -663,6 +675,7 @@ const BLOCK_CATALOG_COMPONENTS = [
|
|
|
663
675
|
AudioApi,
|
|
664
676
|
VideoApi,
|
|
665
677
|
BlockImageApi,
|
|
678
|
+
HtmlApi,
|
|
666
679
|
CodeBlockApi,
|
|
667
680
|
KatexApi,
|
|
668
681
|
MermaidApi,
|
|
@@ -1282,6 +1295,7 @@ exports.ContentTabsApi = ContentTabsApi;
|
|
|
1282
1295
|
exports.DividerApi = DividerApi;
|
|
1283
1296
|
exports.FileApi = FileApi;
|
|
1284
1297
|
exports.HeadingApi = HeadingApi;
|
|
1298
|
+
exports.HtmlApi = HtmlApi;
|
|
1285
1299
|
exports.IconApi = IconApi;
|
|
1286
1300
|
exports.KatexApi = KatexApi;
|
|
1287
1301
|
exports.LANGUAGES = LANGUAGES;
|
package/dist/index.d.cts
CHANGED
|
@@ -2555,6 +2555,128 @@ declare const BlockImageApi: {
|
|
|
2555
2555
|
sizes?: string | undefined;
|
|
2556
2556
|
}>;
|
|
2557
2557
|
};
|
|
2558
|
+
/**
|
|
2559
|
+
* Sandboxed raw-HTML embed. Renders `html` inside an iframe (e.g. a
|
|
2560
|
+
* Claude-authored artifact or a Notion page export).
|
|
2561
|
+
*/
|
|
2562
|
+
declare const HtmlApi: {
|
|
2563
|
+
name: string;
|
|
2564
|
+
schema: z.ZodObject<{
|
|
2565
|
+
html: z.ZodString;
|
|
2566
|
+
autoHeight: z.ZodOptional<z.ZodBoolean>;
|
|
2567
|
+
accessibility: z.ZodOptional<z.ZodObject<{
|
|
2568
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2569
|
+
path: z.ZodString;
|
|
2570
|
+
}, "strip", z.ZodTypeAny, {
|
|
2571
|
+
path: string;
|
|
2572
|
+
}, {
|
|
2573
|
+
path: string;
|
|
2574
|
+
}>, z.ZodObject<{
|
|
2575
|
+
call: z.ZodString;
|
|
2576
|
+
args: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2577
|
+
returnType: z.ZodDefault<z.ZodEnum<["string", "number", "boolean", "array", "object", "any", "void"]>>;
|
|
2578
|
+
}, "strip", z.ZodTypeAny, {
|
|
2579
|
+
call: string;
|
|
2580
|
+
args: Record<string, any>;
|
|
2581
|
+
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
2582
|
+
}, {
|
|
2583
|
+
call: string;
|
|
2584
|
+
args: Record<string, any>;
|
|
2585
|
+
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
2586
|
+
}>]>>;
|
|
2587
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2588
|
+
path: z.ZodString;
|
|
2589
|
+
}, "strip", z.ZodTypeAny, {
|
|
2590
|
+
path: string;
|
|
2591
|
+
}, {
|
|
2592
|
+
path: string;
|
|
2593
|
+
}>, z.ZodObject<{
|
|
2594
|
+
call: z.ZodString;
|
|
2595
|
+
args: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2596
|
+
returnType: z.ZodDefault<z.ZodEnum<["string", "number", "boolean", "array", "object", "any", "void"]>>;
|
|
2597
|
+
}, "strip", z.ZodTypeAny, {
|
|
2598
|
+
call: string;
|
|
2599
|
+
args: Record<string, any>;
|
|
2600
|
+
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
2601
|
+
}, {
|
|
2602
|
+
call: string;
|
|
2603
|
+
args: Record<string, any>;
|
|
2604
|
+
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
2605
|
+
}>]>>;
|
|
2606
|
+
}, "strip", z.ZodTypeAny, {
|
|
2607
|
+
description?: string | {
|
|
2608
|
+
path: string;
|
|
2609
|
+
} | {
|
|
2610
|
+
call: string;
|
|
2611
|
+
args: Record<string, any>;
|
|
2612
|
+
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
2613
|
+
} | undefined;
|
|
2614
|
+
label?: string | {
|
|
2615
|
+
path: string;
|
|
2616
|
+
} | {
|
|
2617
|
+
call: string;
|
|
2618
|
+
args: Record<string, any>;
|
|
2619
|
+
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
2620
|
+
} | undefined;
|
|
2621
|
+
}, {
|
|
2622
|
+
description?: string | {
|
|
2623
|
+
path: string;
|
|
2624
|
+
} | {
|
|
2625
|
+
call: string;
|
|
2626
|
+
args: Record<string, any>;
|
|
2627
|
+
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
2628
|
+
} | undefined;
|
|
2629
|
+
label?: string | {
|
|
2630
|
+
path: string;
|
|
2631
|
+
} | {
|
|
2632
|
+
call: string;
|
|
2633
|
+
args: Record<string, any>;
|
|
2634
|
+
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
2635
|
+
} | undefined;
|
|
2636
|
+
}>>;
|
|
2637
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
2638
|
+
}, "strict", z.ZodTypeAny, {
|
|
2639
|
+
html: string;
|
|
2640
|
+
accessibility?: {
|
|
2641
|
+
description?: string | {
|
|
2642
|
+
path: string;
|
|
2643
|
+
} | {
|
|
2644
|
+
call: string;
|
|
2645
|
+
args: Record<string, any>;
|
|
2646
|
+
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
2647
|
+
} | undefined;
|
|
2648
|
+
label?: string | {
|
|
2649
|
+
path: string;
|
|
2650
|
+
} | {
|
|
2651
|
+
call: string;
|
|
2652
|
+
args: Record<string, any>;
|
|
2653
|
+
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
2654
|
+
} | undefined;
|
|
2655
|
+
} | undefined;
|
|
2656
|
+
weight?: number | undefined;
|
|
2657
|
+
autoHeight?: boolean | undefined;
|
|
2658
|
+
}, {
|
|
2659
|
+
html: string;
|
|
2660
|
+
accessibility?: {
|
|
2661
|
+
description?: string | {
|
|
2662
|
+
path: string;
|
|
2663
|
+
} | {
|
|
2664
|
+
call: string;
|
|
2665
|
+
args: Record<string, any>;
|
|
2666
|
+
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
2667
|
+
} | undefined;
|
|
2668
|
+
label?: string | {
|
|
2669
|
+
path: string;
|
|
2670
|
+
} | {
|
|
2671
|
+
call: string;
|
|
2672
|
+
args: Record<string, any>;
|
|
2673
|
+
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
2674
|
+
} | undefined;
|
|
2675
|
+
} | undefined;
|
|
2676
|
+
weight?: number | undefined;
|
|
2677
|
+
autoHeight?: boolean | undefined;
|
|
2678
|
+
}>;
|
|
2679
|
+
};
|
|
2558
2680
|
declare const CodeBlockApi: {
|
|
2559
2681
|
name: string;
|
|
2560
2682
|
schema: z.ZodObject<{
|
|
@@ -3819,4 +3941,4 @@ declare const normalizeLanguage: (language: string) => Language;
|
|
|
3819
3941
|
/** The authored glyph artwork for every {@link GlyphLanguage}. */
|
|
3820
3942
|
declare const languageIcons: Record<GlyphLanguage, LanguageIcon>;
|
|
3821
3943
|
//#endregion
|
|
3822
|
-
export { type AssembledCatalog, AudioApi, BLOCK_CATALOG_ID, BlockImageApi, BlockQuoteApi, BookmarkApi, CalloutApi, type CatalogEnvelope, CodeBlockApi, ColumnApi, ColumnListApi, ContentTabApi, ContentTabsApi, DividerApi, FileApi, type GlyphLanguage, HeadingApi, IconApi, KatexApi, LANGUAGES, type Language, type LanguageIcon, LinkTextApi, ListApi, ListItemApi, MermaidApi, NotionCalloutApi, ParagraphApi, RichTextApi, RowApi, type SvgNode, TableApi, TableCellApi, TableRowApi, ToggleApi, UnsupportedApi, VideoApi, assembleCatalog, blockCatalogJson, languageIcons, normalizeLanguage };
|
|
3944
|
+
export { type AssembledCatalog, AudioApi, BLOCK_CATALOG_ID, BlockImageApi, BlockQuoteApi, BookmarkApi, CalloutApi, type CatalogEnvelope, CodeBlockApi, ColumnApi, ColumnListApi, ContentTabApi, ContentTabsApi, DividerApi, FileApi, type GlyphLanguage, HeadingApi, HtmlApi, IconApi, KatexApi, LANGUAGES, type Language, type LanguageIcon, LinkTextApi, ListApi, ListItemApi, MermaidApi, NotionCalloutApi, ParagraphApi, RichTextApi, RowApi, type SvgNode, TableApi, TableCellApi, TableRowApi, ToggleApi, UnsupportedApi, VideoApi, assembleCatalog, blockCatalogJson, languageIcons, normalizeLanguage };
|
package/dist/index.d.mts
CHANGED
|
@@ -2555,6 +2555,128 @@ declare const BlockImageApi: {
|
|
|
2555
2555
|
sizes?: string | undefined;
|
|
2556
2556
|
}>;
|
|
2557
2557
|
};
|
|
2558
|
+
/**
|
|
2559
|
+
* Sandboxed raw-HTML embed. Renders `html` inside an iframe (e.g. a
|
|
2560
|
+
* Claude-authored artifact or a Notion page export).
|
|
2561
|
+
*/
|
|
2562
|
+
declare const HtmlApi: {
|
|
2563
|
+
name: string;
|
|
2564
|
+
schema: z.ZodObject<{
|
|
2565
|
+
html: z.ZodString;
|
|
2566
|
+
autoHeight: z.ZodOptional<z.ZodBoolean>;
|
|
2567
|
+
accessibility: z.ZodOptional<z.ZodObject<{
|
|
2568
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2569
|
+
path: z.ZodString;
|
|
2570
|
+
}, "strip", z.ZodTypeAny, {
|
|
2571
|
+
path: string;
|
|
2572
|
+
}, {
|
|
2573
|
+
path: string;
|
|
2574
|
+
}>, z.ZodObject<{
|
|
2575
|
+
call: z.ZodString;
|
|
2576
|
+
args: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2577
|
+
returnType: z.ZodDefault<z.ZodEnum<["string", "number", "boolean", "array", "object", "any", "void"]>>;
|
|
2578
|
+
}, "strip", z.ZodTypeAny, {
|
|
2579
|
+
call: string;
|
|
2580
|
+
args: Record<string, any>;
|
|
2581
|
+
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
2582
|
+
}, {
|
|
2583
|
+
call: string;
|
|
2584
|
+
args: Record<string, any>;
|
|
2585
|
+
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
2586
|
+
}>]>>;
|
|
2587
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2588
|
+
path: z.ZodString;
|
|
2589
|
+
}, "strip", z.ZodTypeAny, {
|
|
2590
|
+
path: string;
|
|
2591
|
+
}, {
|
|
2592
|
+
path: string;
|
|
2593
|
+
}>, z.ZodObject<{
|
|
2594
|
+
call: z.ZodString;
|
|
2595
|
+
args: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2596
|
+
returnType: z.ZodDefault<z.ZodEnum<["string", "number", "boolean", "array", "object", "any", "void"]>>;
|
|
2597
|
+
}, "strip", z.ZodTypeAny, {
|
|
2598
|
+
call: string;
|
|
2599
|
+
args: Record<string, any>;
|
|
2600
|
+
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
2601
|
+
}, {
|
|
2602
|
+
call: string;
|
|
2603
|
+
args: Record<string, any>;
|
|
2604
|
+
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
2605
|
+
}>]>>;
|
|
2606
|
+
}, "strip", z.ZodTypeAny, {
|
|
2607
|
+
description?: string | {
|
|
2608
|
+
path: string;
|
|
2609
|
+
} | {
|
|
2610
|
+
call: string;
|
|
2611
|
+
args: Record<string, any>;
|
|
2612
|
+
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
2613
|
+
} | undefined;
|
|
2614
|
+
label?: string | {
|
|
2615
|
+
path: string;
|
|
2616
|
+
} | {
|
|
2617
|
+
call: string;
|
|
2618
|
+
args: Record<string, any>;
|
|
2619
|
+
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
2620
|
+
} | undefined;
|
|
2621
|
+
}, {
|
|
2622
|
+
description?: string | {
|
|
2623
|
+
path: string;
|
|
2624
|
+
} | {
|
|
2625
|
+
call: string;
|
|
2626
|
+
args: Record<string, any>;
|
|
2627
|
+
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
2628
|
+
} | undefined;
|
|
2629
|
+
label?: string | {
|
|
2630
|
+
path: string;
|
|
2631
|
+
} | {
|
|
2632
|
+
call: string;
|
|
2633
|
+
args: Record<string, any>;
|
|
2634
|
+
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
2635
|
+
} | undefined;
|
|
2636
|
+
}>>;
|
|
2637
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
2638
|
+
}, "strict", z.ZodTypeAny, {
|
|
2639
|
+
html: string;
|
|
2640
|
+
accessibility?: {
|
|
2641
|
+
description?: string | {
|
|
2642
|
+
path: string;
|
|
2643
|
+
} | {
|
|
2644
|
+
call: string;
|
|
2645
|
+
args: Record<string, any>;
|
|
2646
|
+
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
2647
|
+
} | undefined;
|
|
2648
|
+
label?: string | {
|
|
2649
|
+
path: string;
|
|
2650
|
+
} | {
|
|
2651
|
+
call: string;
|
|
2652
|
+
args: Record<string, any>;
|
|
2653
|
+
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
2654
|
+
} | undefined;
|
|
2655
|
+
} | undefined;
|
|
2656
|
+
weight?: number | undefined;
|
|
2657
|
+
autoHeight?: boolean | undefined;
|
|
2658
|
+
}, {
|
|
2659
|
+
html: string;
|
|
2660
|
+
accessibility?: {
|
|
2661
|
+
description?: string | {
|
|
2662
|
+
path: string;
|
|
2663
|
+
} | {
|
|
2664
|
+
call: string;
|
|
2665
|
+
args: Record<string, any>;
|
|
2666
|
+
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
2667
|
+
} | undefined;
|
|
2668
|
+
label?: string | {
|
|
2669
|
+
path: string;
|
|
2670
|
+
} | {
|
|
2671
|
+
call: string;
|
|
2672
|
+
args: Record<string, any>;
|
|
2673
|
+
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
2674
|
+
} | undefined;
|
|
2675
|
+
} | undefined;
|
|
2676
|
+
weight?: number | undefined;
|
|
2677
|
+
autoHeight?: boolean | undefined;
|
|
2678
|
+
}>;
|
|
2679
|
+
};
|
|
2558
2680
|
declare const CodeBlockApi: {
|
|
2559
2681
|
name: string;
|
|
2560
2682
|
schema: z.ZodObject<{
|
|
@@ -3819,4 +3941,4 @@ declare const normalizeLanguage: (language: string) => Language;
|
|
|
3819
3941
|
/** The authored glyph artwork for every {@link GlyphLanguage}. */
|
|
3820
3942
|
declare const languageIcons: Record<GlyphLanguage, LanguageIcon>;
|
|
3821
3943
|
//#endregion
|
|
3822
|
-
export { type AssembledCatalog, AudioApi, BLOCK_CATALOG_ID, BlockImageApi, BlockQuoteApi, BookmarkApi, CalloutApi, type CatalogEnvelope, CodeBlockApi, ColumnApi, ColumnListApi, ContentTabApi, ContentTabsApi, DividerApi, FileApi, type GlyphLanguage, HeadingApi, IconApi, KatexApi, LANGUAGES, type Language, type LanguageIcon, LinkTextApi, ListApi, ListItemApi, MermaidApi, NotionCalloutApi, ParagraphApi, RichTextApi, RowApi, type SvgNode, TableApi, TableCellApi, TableRowApi, ToggleApi, UnsupportedApi, VideoApi, assembleCatalog, blockCatalogJson, languageIcons, normalizeLanguage };
|
|
3944
|
+
export { type AssembledCatalog, AudioApi, BLOCK_CATALOG_ID, BlockImageApi, BlockQuoteApi, BookmarkApi, CalloutApi, type CatalogEnvelope, CodeBlockApi, ColumnApi, ColumnListApi, ContentTabApi, ContentTabsApi, DividerApi, FileApi, type GlyphLanguage, HeadingApi, HtmlApi, IconApi, KatexApi, LANGUAGES, type Language, type LanguageIcon, LinkTextApi, ListApi, ListItemApi, MermaidApi, NotionCalloutApi, ParagraphApi, RichTextApi, RowApi, type SvgNode, TableApi, TableCellApi, TableRowApi, ToggleApi, UnsupportedApi, VideoApi, assembleCatalog, blockCatalogJson, languageIcons, normalizeLanguage };
|
package/dist/index.mjs
CHANGED
|
@@ -265,6 +265,18 @@ const BlockImageApi = {
|
|
|
265
265
|
caption: z.string().describe("Optional caption shown below the image.").optional()
|
|
266
266
|
}).strict()
|
|
267
267
|
};
|
|
268
|
+
/**
|
|
269
|
+
* Sandboxed raw-HTML embed. Renders `html` inside an iframe (e.g. a
|
|
270
|
+
* Claude-authored artifact or a Notion page export).
|
|
271
|
+
*/
|
|
272
|
+
const HtmlApi = {
|
|
273
|
+
name: "Html",
|
|
274
|
+
schema: z.object({
|
|
275
|
+
...CommonProps,
|
|
276
|
+
html: z.string().describe("Raw HTML markup to render inside a sandboxed iframe."),
|
|
277
|
+
autoHeight: z.boolean().describe("Stretch the iframe to fit its content height. Defaults to true.").optional()
|
|
278
|
+
}).strict()
|
|
279
|
+
};
|
|
268
280
|
const CodeBlockApi = {
|
|
269
281
|
name: "CodeBlock",
|
|
270
282
|
schema: z.object({
|
|
@@ -666,6 +678,7 @@ const blockCatalogJson = assembleCatalog({
|
|
|
666
678
|
AudioApi,
|
|
667
679
|
VideoApi,
|
|
668
680
|
BlockImageApi,
|
|
681
|
+
HtmlApi,
|
|
669
682
|
CodeBlockApi,
|
|
670
683
|
KatexApi,
|
|
671
684
|
MermaidApi,
|
|
@@ -1266,4 +1279,4 @@ const normalizeLanguage = (language) => ALIAS_TO_LANGUAGE.get(language) ?? "file
|
|
|
1266
1279
|
/** The authored glyph artwork for every {@link GlyphLanguage}. */
|
|
1267
1280
|
const languageIcons = Object.fromEntries(LANGUAGE_REGISTRY.flatMap((e) => e.icon ? [[e.key, e.icon]] : []));
|
|
1268
1281
|
//#endregion
|
|
1269
|
-
export { AudioApi, BLOCK_CATALOG_ID, BlockImageApi, BlockQuoteApi, BookmarkApi, CalloutApi, CodeBlockApi, ColumnApi, ColumnListApi, ContentTabApi, ContentTabsApi, DividerApi, FileApi, HeadingApi, IconApi, KatexApi, LANGUAGES, LinkTextApi, ListApi, ListItemApi, MermaidApi, NotionCalloutApi, ParagraphApi, RichTextApi, RowApi, TableApi, TableCellApi, TableRowApi, ToggleApi, UnsupportedApi, VideoApi, assembleCatalog, blockCatalogJson, languageIcons, normalizeLanguage };
|
|
1282
|
+
export { AudioApi, BLOCK_CATALOG_ID, BlockImageApi, BlockQuoteApi, BookmarkApi, CalloutApi, CodeBlockApi, ColumnApi, ColumnListApi, ContentTabApi, ContentTabsApi, DividerApi, FileApi, HeadingApi, HtmlApi, IconApi, KatexApi, LANGUAGES, LinkTextApi, ListApi, ListItemApi, MermaidApi, NotionCalloutApi, ParagraphApi, RichTextApi, RowApi, TableApi, TableCellApi, TableRowApi, ToggleApi, UnsupportedApi, VideoApi, assembleCatalog, blockCatalogJson, languageIcons, normalizeLanguage };
|