@bendyline/squisq 1.4.1 → 1.5.1
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/README.md +14 -1
- package/dist/{ContentContainer-DNx460y8.d.ts → ContentContainer-BXUlIf18.d.ts} +6 -2
- package/dist/{Doc-BeSeH2iX.d.ts → Doc-BBVGq1_9.d.ts} +922 -273
- package/dist/{ImageEditDoc-BTIvw0oq.d.ts → ImageEditDoc-FuyGtt6o.d.ts} +11 -4
- package/dist/{chunk-ZTX4PFFT.js → chunk-2OIBZYKP.js} +75 -2
- package/dist/chunk-2OIBZYKP.js.map +1 -0
- package/dist/chunk-2UQOHYE2.js +45 -0
- package/dist/chunk-2UQOHYE2.js.map +1 -0
- package/dist/chunk-6ATE2PSM.js +344 -0
- package/dist/chunk-6ATE2PSM.js.map +1 -0
- package/dist/{chunk-57CVQCFX.js → chunk-A4O7GIWE.js} +74 -23
- package/dist/chunk-A4O7GIWE.js.map +1 -0
- package/dist/{chunk-5WFRKURX.js → chunk-DLXZMS5K.js} +4 -2
- package/dist/chunk-DLXZMS5K.js.map +1 -0
- package/dist/chunk-ET53IIEP.js +1 -0
- package/dist/chunk-ET53IIEP.js.map +1 -0
- package/dist/chunk-HWVFJAAH.js +362 -0
- package/dist/chunk-HWVFJAAH.js.map +1 -0
- package/dist/{chunk-2TMAWB4Y.js → chunk-IMSCRLLV.js} +1 -1
- package/dist/chunk-IMSCRLLV.js.map +1 -0
- package/dist/{chunk-B4EEON3N.js → chunk-KKNUBQ6Y.js} +536 -103
- package/dist/chunk-KKNUBQ6Y.js.map +1 -0
- package/dist/chunk-LDQ2HJIX.js +596 -0
- package/dist/chunk-LDQ2HJIX.js.map +1 -0
- package/dist/chunk-LH7I6SH7.js +7208 -0
- package/dist/chunk-LH7I6SH7.js.map +1 -0
- package/dist/chunk-PGGGKYWG.js +1 -0
- package/dist/chunk-PGGGKYWG.js.map +1 -0
- package/dist/{chunk-7UDSRZKG.js → chunk-Q3ROPT5H.js} +35 -14
- package/dist/chunk-Q3ROPT5H.js.map +1 -0
- package/dist/chunk-QE7TWGVT.js +178 -0
- package/dist/chunk-QE7TWGVT.js.map +1 -0
- package/dist/chunk-RUDYOTA6.js +345 -0
- package/dist/chunk-RUDYOTA6.js.map +1 -0
- package/dist/{chunk-K32VJONL.js → chunk-T5UK6YOB.js} +41 -2
- package/dist/chunk-T5UK6YOB.js.map +1 -0
- package/dist/{chunk-3K5OG6KI.js → chunk-TEEEILMP.js} +412 -186
- package/dist/chunk-TEEEILMP.js.map +1 -0
- package/dist/{chunk-FR2RBTKO.js → chunk-TQWLI6S2.js} +93 -27
- package/dist/chunk-TQWLI6S2.js.map +1 -0
- package/dist/{chunk-WMOI7FN3.js → chunk-UY7KGQ5R.js} +12 -2
- package/dist/{chunk-WMOI7FN3.js.map → chunk-UY7KGQ5R.js.map} +1 -1
- package/dist/{chunk-3E5F2XMR.js → chunk-VWUFZ6ZG.js} +29 -2
- package/dist/chunk-VWUFZ6ZG.js.map +1 -0
- package/dist/chunk-ZLQKNOZQ.js +1 -0
- package/dist/chunk-ZLQKNOZQ.js.map +1 -0
- package/dist/doc/index.d.ts +5 -5
- package/dist/doc/index.js +135 -8
- package/dist/generate/index.d.ts +3 -74
- package/dist/generate/index.js +2 -7
- package/dist/icons/index.d.ts +3 -26
- package/dist/icons/index.js +13 -0
- package/dist/icons/inlineIconMarker.d.ts +1 -0
- package/dist/icons/inlineIconMarker.js +15 -0
- package/dist/icons/inlineIconMarker.js.map +1 -0
- package/dist/imageEdit/index.d.ts +12 -6
- package/dist/imageEdit/index.js +4 -1
- package/dist/index.d.ts +14 -11
- package/dist/index.js +265 -37
- package/dist/inlineIconMarker-CiE8Hlvz.d.ts +59 -0
- package/dist/jsonForm/index.d.ts +42 -1
- package/dist/jsonForm/index.js +9 -1
- package/dist/markdown/index.d.ts +228 -3
- package/dist/markdown/index.js +42 -7
- package/dist/recommend/index.d.ts +1 -1
- package/dist/recommend/index.js +3 -2
- package/dist/schemas/index.d.ts +28 -8
- package/dist/schemas/index.js +36 -8
- package/dist/spatial/index.d.ts +9 -4
- package/dist/spatial/index.js +1 -1
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.js +1 -1
- package/dist/story/index.d.ts +1021 -41
- package/dist/story/index.js +135 -8
- package/dist/{themeLibrary-BHjJ0Qx6.d.ts → themeLibrary-CehcJhzz.d.ts} +1 -1
- package/dist/timing/index.js +3 -5
- package/dist/transform/index.d.ts +48 -10
- package/dist/transform/index.js +17 -481
- package/dist/transform/index.js.map +1 -1
- package/dist/{types-BdZkdJ3z.d.ts → types-DlAZ7MW4.d.ts} +115 -1
- package/dist/versions/index.d.ts +1 -1
- package/package.json +6 -1
- package/src/__tests__/animationUtils.test.ts +40 -0
- package/src/__tests__/annotationCoercion.test.ts +243 -0
- package/src/__tests__/applyRenderStyle.test.ts +146 -0
- package/src/__tests__/atmosphereLayers.test.ts +108 -0
- package/src/__tests__/attrTokens.test.ts +162 -0
- package/src/__tests__/contentExtractor.test.ts +60 -0
- package/src/__tests__/coverBlock.test.ts +46 -1
- package/src/__tests__/customTemplateSample.test.ts +144 -0
- package/src/__tests__/customTemplatesFrontmatter.test.ts +236 -0
- package/src/__tests__/customThemesFrontmatter.test.ts +145 -0
- package/src/__tests__/diagramBlock.test.ts +122 -0
- package/src/__tests__/diagramLayout.test.ts +134 -0
- package/src/__tests__/drawing.test.ts +109 -0
- package/src/__tests__/drawingBlock.test.ts +124 -0
- package/src/__tests__/drawingLayout.test.ts +171 -0
- package/src/__tests__/geohash.test.ts +6 -5
- package/src/__tests__/getLayers.test.ts +6 -2
- package/src/__tests__/getLayersFallback.test.ts +103 -0
- package/src/__tests__/imageEditExportSvg.test.ts +70 -0
- package/src/__tests__/imageEditVersions.test.ts +72 -0
- package/src/__tests__/inlineIconMarker.test.ts +36 -0
- package/src/__tests__/inputDescriptors.test.ts +162 -0
- package/src/__tests__/jsonForm.tokens.test.ts +84 -0
- package/src/__tests__/layoutBlock.test.ts +83 -0
- package/src/__tests__/layoutLayout.test.ts +169 -0
- package/src/__tests__/markdown.test.ts +87 -0
- package/src/__tests__/markdownSanitize.test.ts +79 -0
- package/src/__tests__/markdownToDoc.test.ts +391 -2
- package/src/__tests__/mediaAnnotations.test.ts +91 -0
- package/src/__tests__/mediaSchedule.test.ts +118 -0
- package/src/__tests__/pandocAttrParse.test.ts +187 -0
- package/src/__tests__/resolveDocTheme.test.ts +55 -0
- package/src/__tests__/rootExports.test.ts +43 -0
- package/src/__tests__/shapeGeometry.test.ts +89 -0
- package/src/__tests__/shapeVocabulary.test.ts +133 -0
- package/src/__tests__/structuredData.test.ts +249 -0
- package/src/__tests__/templateAnnotationParse.test.ts +108 -0
- package/src/__tests__/templateMetadata.test.ts +31 -0
- package/src/__tests__/templates.test.ts +257 -4
- package/src/__tests__/themeCompile.test.ts +42 -0
- package/src/__tests__/themeValidator.test.ts +6 -0
- package/src/__tests__/transformV2.test.ts +137 -0
- package/src/__tests__/transitionNormalize.test.ts +61 -0
- package/src/__tests__/validateDoc.test.ts +260 -0
- package/src/doc/annotationBlocks.ts +117 -0
- package/src/doc/customTemplatesFrontmatter.ts +314 -0
- package/src/doc/customThemesFrontmatter.ts +95 -0
- package/src/doc/docToMarkdown.ts +104 -5
- package/src/doc/getLayers.ts +49 -17
- package/src/doc/index.ts +47 -1
- package/src/doc/markdownToDoc.ts +411 -13
- package/src/doc/mediaAnnotations.ts +100 -0
- package/src/doc/resolveDocTheme.ts +55 -0
- package/src/doc/standaloneAnnotation.ts +58 -0
- package/src/doc/structuredData.ts +301 -0
- package/src/doc/templateInputs.ts +240 -0
- package/src/doc/templates/__tests__/customTemplate.test.ts +170 -0
- package/src/doc/templates/__tests__/customTemplateRegistry.test.ts +110 -0
- package/src/doc/templates/accentImage.ts +30 -6
- package/src/doc/templates/captionUtils.ts +23 -0
- package/src/doc/templates/comparisonBar.ts +33 -18
- package/src/doc/templates/coverBlock.ts +35 -5
- package/src/doc/templates/customTemplate.ts +51 -0
- package/src/doc/templates/dataTable.ts +37 -19
- package/src/doc/templates/dateEvent.ts +41 -20
- package/src/doc/templates/definitionCard.ts +26 -18
- package/src/doc/templates/diagramBlock.ts +204 -0
- package/src/doc/templates/diagramLayout.ts +159 -0
- package/src/doc/templates/drawingBlock.ts +325 -0
- package/src/doc/templates/drawingLayout.ts +539 -0
- package/src/doc/templates/factCard.ts +54 -26
- package/src/doc/templates/fallbackBlock.ts +123 -0
- package/src/doc/templates/featureBlock.ts +20 -13
- package/src/doc/templates/fullBleedQuote.ts +18 -8
- package/src/doc/templates/imageWithCaption.ts +30 -15
- package/src/doc/templates/index.ts +225 -46
- package/src/doc/templates/inputDescriptors.ts +432 -0
- package/src/doc/templates/layoutBlock.ts +43 -0
- package/src/doc/templates/layoutLayout.ts +243 -0
- package/src/doc/templates/listBlock.ts +56 -30
- package/src/doc/templates/mapBlock.ts +15 -12
- package/src/doc/templates/metadata.ts +120 -0
- package/src/doc/templates/persistentLayers.ts +129 -11
- package/src/doc/templates/photoGrid.ts +22 -34
- package/src/doc/templates/pullQuote.ts +30 -12
- package/src/doc/templates/quoteBlock.ts +54 -29
- package/src/doc/templates/sectionHeader.ts +25 -11
- package/src/doc/templates/statHighlight.ts +39 -22
- package/src/doc/templates/titleBlock.ts +59 -21
- package/src/doc/templates/tokens/__tests__/resolveTokens.test.ts +487 -0
- package/src/doc/templates/tokens/resolveTokens.ts +453 -0
- package/src/doc/templates/twoColumn.ts +48 -30
- package/src/doc/templates/videoPullQuote.ts +22 -12
- package/src/doc/templates/videoWithCaption.ts +21 -15
- package/src/doc/utils/animationUtils.ts +267 -3
- package/src/doc/utils/applyRenderStyle.ts +113 -0
- package/src/doc/utils/imageTreatment.ts +70 -0
- package/src/doc/utils/nearest.ts +59 -0
- package/src/doc/utils/shapeGeometry.ts +464 -0
- package/src/doc/utils/themeUtils.ts +75 -1
- package/src/doc/validate.ts +575 -0
- package/src/generate/contentExtractor.ts +148 -35
- package/src/generate/index.ts +0 -3
- package/src/icons/index.ts +8 -0
- package/src/icons/inlineIconMarker.ts +73 -0
- package/src/imageEdit/export.ts +85 -2
- package/src/imageEdit/index.ts +1 -0
- package/src/imageEdit/persistence.ts +51 -0
- package/src/index.ts +2 -0
- package/src/jsonForm/index.ts +2 -0
- package/src/jsonForm/tokens.ts +78 -0
- package/src/markdown/annotationCoercion.ts +295 -0
- package/src/markdown/attrTokens.ts +241 -0
- package/src/markdown/convert.ts +229 -26
- package/src/markdown/index.ts +37 -0
- package/src/markdown/sanitize.ts +318 -0
- package/src/markdown/stringify.ts +96 -6
- package/src/markdown/types.ts +66 -0
- package/src/markdown/utils.ts +111 -2
- package/src/recommend/templates.ts +24 -0
- package/src/schemas/BlockTemplates.ts +133 -4
- package/src/schemas/CustomTemplates.ts +126 -0
- package/src/schemas/Doc.ts +387 -65
- package/src/schemas/ImageEditDoc.ts +11 -4
- package/src/schemas/Media.ts +169 -0
- package/src/schemas/Theme.ts +23 -1
- package/src/schemas/Transitions.ts +224 -0
- package/src/schemas/colorUtils.ts +33 -0
- package/src/schemas/fontStacks.ts +5 -2
- package/src/schemas/index.ts +3 -0
- package/src/schemas/themeCompile.ts +24 -5
- package/src/schemas/themeValidator.ts +49 -11
- package/src/schemas/themes/cinematic.json +69 -12
- package/src/schemas/themes/documentary.json +58 -11
- package/src/schemas/themes/gezellig.json +60 -11
- package/src/schemas/themes/magazine.json +54 -9
- package/src/schemas/themes/morning-light.json +52 -9
- package/src/schemas/themes/standard-dark.json +48 -13
- package/src/schemas/themes/standard.json +44 -12
- package/src/schemas/themes/tech-dark.json +65 -12
- package/src/spatial/Geohash.ts +52 -21
- package/src/storage/ContentContainer.ts +6 -2
- package/src/transform/applyTransform.ts +43 -4
- package/src/transform/index.ts +1 -0
- package/src/transform/registry.ts +44 -13
- package/src/transform/styles/dataDriven.ts +2 -1
- package/src/transform/styles/documentary.ts +2 -1
- package/src/transform/styles/magazine.ts +3 -1
- package/src/transform/styles/minimal.ts +2 -1
- package/src/transform/styles/narrative.ts +3 -1
- package/src/transform/templateSelector.ts +87 -11
- package/src/transform/types.ts +35 -2
- package/dist/chunk-2TMAWB4Y.js.map +0 -1
- package/dist/chunk-3E5F2XMR.js.map +0 -1
- package/dist/chunk-3K5OG6KI.js.map +0 -1
- package/dist/chunk-4X3JQXNM.js +0 -35
- package/dist/chunk-4X3JQXNM.js.map +0 -1
- package/dist/chunk-57CVQCFX.js.map +0 -1
- package/dist/chunk-5WFRKURX.js.map +0 -1
- package/dist/chunk-7UDSRZKG.js.map +0 -1
- package/dist/chunk-B4EEON3N.js.map +0 -1
- package/dist/chunk-FR2RBTKO.js.map +0 -1
- package/dist/chunk-H3AXU4MJ.js +0 -179
- package/dist/chunk-H3AXU4MJ.js.map +0 -1
- package/dist/chunk-K32VJONL.js.map +0 -1
- package/dist/chunk-KSWJR66U.js +0 -3706
- package/dist/chunk-KSWJR66U.js.map +0 -1
- package/dist/chunk-MYIH7FWD.js +0 -145
- package/dist/chunk-MYIH7FWD.js.map +0 -1
- package/dist/chunk-ZTX4PFFT.js.map +0 -1
- package/src/__tests__/slideshowGenerator.test.ts +0 -128
- package/src/generate/slideshowGenerator.ts +0 -273
package/dist/index.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-ZLQKNOZQ.js";
|
|
2
|
+
import "./chunk-ET53IIEP.js";
|
|
2
3
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
DEFAULT_TRANSFORM_STYLE_ID,
|
|
5
|
+
analyzeBlocks,
|
|
6
|
+
applyTransform,
|
|
7
|
+
extractDocImages,
|
|
8
|
+
getTransformStyleIds,
|
|
9
|
+
getTransformStyleSummaries,
|
|
10
|
+
registerTransformStyle,
|
|
11
|
+
resolveTransformStyle,
|
|
12
|
+
unregisterTransformStyle
|
|
13
|
+
} from "./chunk-LDQ2HJIX.js";
|
|
5
14
|
import {
|
|
6
15
|
extractContent,
|
|
7
16
|
mapElementToBlock,
|
|
8
17
|
stripMarkdown
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
SeededRandom,
|
|
12
|
-
hashString
|
|
13
|
-
} from "./chunk-FVTQSNR7.js";
|
|
18
|
+
} from "./chunk-TQWLI6S2.js";
|
|
14
19
|
import {
|
|
15
20
|
DocumentVersionManager,
|
|
16
21
|
VERSIONS_PREFIX,
|
|
@@ -26,6 +31,7 @@ import {
|
|
|
26
31
|
} from "./chunk-VLJJHDAC.js";
|
|
27
32
|
import {
|
|
28
33
|
arrayItemKind,
|
|
34
|
+
buildJsonFormTokens,
|
|
29
35
|
chooseControl,
|
|
30
36
|
evaluateWhen,
|
|
31
37
|
getByPointer,
|
|
@@ -33,10 +39,11 @@ import {
|
|
|
33
39
|
pointerSegments,
|
|
34
40
|
primaryType,
|
|
35
41
|
resolveFlag,
|
|
42
|
+
resolveJsonFormTheme,
|
|
36
43
|
resolveRef,
|
|
37
44
|
setByPointer,
|
|
38
45
|
toPointer
|
|
39
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-T5UK6YOB.js";
|
|
40
47
|
import {
|
|
41
48
|
IMAGE_EDIT_ASSETS_PREFIX,
|
|
42
49
|
IMAGE_EDIT_DEFAULT_BASENAME,
|
|
@@ -45,6 +52,7 @@ import {
|
|
|
45
52
|
ImageEditVersionManager,
|
|
46
53
|
addLayer,
|
|
47
54
|
buildImageEditVersionPath,
|
|
55
|
+
buildSvgString,
|
|
48
56
|
coalesceImageEditVersions,
|
|
49
57
|
createEmptyImageEditDoc,
|
|
50
58
|
exportImageEditDoc,
|
|
@@ -62,16 +70,20 @@ import {
|
|
|
62
70
|
touch,
|
|
63
71
|
updateLayer,
|
|
64
72
|
writeImageEditDoc
|
|
65
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-2OIBZYKP.js";
|
|
66
74
|
import {
|
|
67
75
|
VERSION_TIMESTAMP_PATTERN,
|
|
68
76
|
formatVersionTimestamp,
|
|
69
77
|
parseVersionTimestamp
|
|
70
78
|
} from "./chunk-JELIRVDP.js";
|
|
79
|
+
import "./chunk-PGGGKYWG.js";
|
|
71
80
|
import {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
hasIconMarker,
|
|
82
|
+
iconClass,
|
|
83
|
+
iconMarker,
|
|
84
|
+
splitIconMarkers,
|
|
85
|
+
stripIconMarkers
|
|
86
|
+
} from "./chunk-2UQOHYE2.js";
|
|
75
87
|
import {
|
|
76
88
|
STARTER_THEME,
|
|
77
89
|
calculateDuration,
|
|
@@ -79,11 +91,12 @@ import {
|
|
|
79
91
|
deriveColorPalette,
|
|
80
92
|
getBlockAtTime,
|
|
81
93
|
getCaptionAtTime,
|
|
94
|
+
getDocPlaybackDuration,
|
|
82
95
|
getSegmentAtTime,
|
|
83
96
|
parseTheme,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
} from "./chunk-
|
|
97
|
+
resolveMediaSchedule,
|
|
98
|
+
serializeTheme
|
|
99
|
+
} from "./chunk-A4O7GIWE.js";
|
|
87
100
|
import {
|
|
88
101
|
calculateBearing,
|
|
89
102
|
decodeGeohash,
|
|
@@ -95,25 +108,52 @@ import {
|
|
|
95
108
|
getGeohashPrefix,
|
|
96
109
|
getNeighbors,
|
|
97
110
|
haversineDistance
|
|
98
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-Q3ROPT5H.js";
|
|
99
112
|
import {
|
|
113
|
+
BASE_INPUT_DESCRIPTORS,
|
|
114
|
+
CONTAINER_TEMPLATES,
|
|
100
115
|
DEFAULT_LAYOUT,
|
|
116
|
+
SHAPE_NAMES,
|
|
101
117
|
TEMPLATE_ALIASES,
|
|
118
|
+
TEMPLATE_INPUT_DESCRIPTORS,
|
|
119
|
+
TEMPLATE_METADATA,
|
|
102
120
|
adjustY,
|
|
121
|
+
applyRenderStyleToLayers,
|
|
122
|
+
buildRegistry,
|
|
123
|
+
coerceTemplateParams,
|
|
103
124
|
comparisonBar,
|
|
125
|
+
computeDiagramLayout,
|
|
126
|
+
computeDrawingLayout,
|
|
127
|
+
computeLayoutLayers,
|
|
104
128
|
countBlocks,
|
|
105
129
|
coverBlock,
|
|
106
130
|
createAccentLayers,
|
|
131
|
+
cssFilterForTreatment,
|
|
107
132
|
dataTable,
|
|
108
133
|
dateEvent,
|
|
134
|
+
decodeLayersFromFrontmatter,
|
|
109
135
|
definitionCard,
|
|
136
|
+
deriveTemplateInputs,
|
|
137
|
+
diagramBlock,
|
|
110
138
|
docToMarkdown,
|
|
139
|
+
drawingBlock,
|
|
140
|
+
encodeLayersForFrontmatter,
|
|
111
141
|
expandCoverBlock,
|
|
112
142
|
expandDocBlocks,
|
|
113
143
|
expandPersistentLayers,
|
|
114
144
|
expandTemplateBlock,
|
|
145
|
+
extractBlockquoteText,
|
|
146
|
+
extractBodyPlainText,
|
|
147
|
+
extractFirstImage,
|
|
148
|
+
extractImages,
|
|
149
|
+
extractListItems,
|
|
150
|
+
extractTableData,
|
|
151
|
+
extractTableFromContents,
|
|
115
152
|
factCard,
|
|
153
|
+
fallbackBlockLayers,
|
|
154
|
+
findFirstTable,
|
|
116
155
|
flattenBlocks,
|
|
156
|
+
flattenRenderableBlocks,
|
|
117
157
|
fullBleedQuote,
|
|
118
158
|
getAccentLayout,
|
|
119
159
|
getAnimationProgress,
|
|
@@ -125,21 +165,35 @@ import {
|
|
|
125
165
|
getDocStyleConfig,
|
|
126
166
|
getLayers,
|
|
127
167
|
getOverlayOpacity,
|
|
168
|
+
getPersistentLayersFromTheme,
|
|
128
169
|
getTemplateHint,
|
|
129
170
|
getThemeFont,
|
|
130
171
|
getTransitionClass,
|
|
131
172
|
hasTemplate,
|
|
132
173
|
imageWithCaption,
|
|
174
|
+
isContainerTemplate,
|
|
175
|
+
isDataFence,
|
|
176
|
+
isShapeName,
|
|
177
|
+
layoutBlock,
|
|
133
178
|
leftFeature,
|
|
179
|
+
lintTemplateParams,
|
|
134
180
|
listBlock,
|
|
135
181
|
mapBlock,
|
|
136
182
|
markdownToDoc,
|
|
183
|
+
normalizeShapeKind,
|
|
184
|
+
parseDataFence,
|
|
185
|
+
parseYamlSubset,
|
|
137
186
|
photoGrid,
|
|
138
187
|
pullQuote,
|
|
139
188
|
quoteBlock,
|
|
189
|
+
readCustomTemplatesFromFrontmatter,
|
|
190
|
+
readCustomThemesFromFrontmatter,
|
|
191
|
+
replaceDataFence,
|
|
140
192
|
resolveAudioMapping,
|
|
141
193
|
resolveColorScheme,
|
|
194
|
+
resolvePersistentLayers,
|
|
142
195
|
resolveTemplateName,
|
|
196
|
+
resolveThemeForDoc,
|
|
143
197
|
rightFeature,
|
|
144
198
|
scaleAnimationDuration,
|
|
145
199
|
scoreTextSimilarity,
|
|
@@ -147,18 +201,48 @@ import {
|
|
|
147
201
|
shouldUseShadow,
|
|
148
202
|
statHighlight,
|
|
149
203
|
templateRegistry,
|
|
204
|
+
themeWantsAmbientMotion,
|
|
205
|
+
themedEntrance,
|
|
150
206
|
themedFontSize,
|
|
207
|
+
themedImageTreatment,
|
|
208
|
+
themedScrim,
|
|
209
|
+
themedSurfaceGradient,
|
|
151
210
|
titleBlock,
|
|
152
211
|
twoColumn,
|
|
212
|
+
validateMarkdownDoc,
|
|
213
|
+
validateMarkdownSource,
|
|
153
214
|
videoPullQuote,
|
|
154
|
-
videoWithCaption
|
|
155
|
-
|
|
215
|
+
videoWithCaption,
|
|
216
|
+
wrapWithPersistentLayers,
|
|
217
|
+
writeCustomTemplatesToFrontmatter,
|
|
218
|
+
writeCustomThemesToFrontmatter
|
|
219
|
+
} from "./chunk-LH7I6SH7.js";
|
|
220
|
+
import {
|
|
221
|
+
profileBlockContents,
|
|
222
|
+
recommendTemplatesForBlock
|
|
223
|
+
} from "./chunk-UY7KGQ5R.js";
|
|
224
|
+
import "./chunk-V543AI2F.js";
|
|
225
|
+
import {
|
|
226
|
+
SeededRandom,
|
|
227
|
+
hashString
|
|
228
|
+
} from "./chunk-FVTQSNR7.js";
|
|
229
|
+
import {
|
|
230
|
+
PATH_SHAPE_KINDS,
|
|
231
|
+
clipEndpoints,
|
|
232
|
+
clipPoint,
|
|
233
|
+
connectorPath,
|
|
234
|
+
lineStyleDasharray,
|
|
235
|
+
markerPath,
|
|
236
|
+
shapePath
|
|
237
|
+
} from "./chunk-RUDYOTA6.js";
|
|
156
238
|
import {
|
|
157
239
|
AVAILABLE_FONT_STACKS,
|
|
158
240
|
DARK_SURFACE,
|
|
159
241
|
DEFAULT_THEME,
|
|
160
242
|
DEFAULT_THEME_ID,
|
|
161
243
|
FONT_FALLBACKS,
|
|
244
|
+
FRONTMATTER_CUSTOM_TEMPLATES_KEY,
|
|
245
|
+
FRONTMATTER_CUSTOM_THEMES_KEY,
|
|
162
246
|
LIGHT_SURFACE,
|
|
163
247
|
THEMES,
|
|
164
248
|
THEME_SCHEMA_VERSION,
|
|
@@ -173,6 +257,7 @@ import {
|
|
|
173
257
|
getFontStack,
|
|
174
258
|
getRegisteredThemes,
|
|
175
259
|
getThemeSummaries,
|
|
260
|
+
hexHueDegrees,
|
|
176
261
|
isHex,
|
|
177
262
|
lookupRegisteredTheme,
|
|
178
263
|
oklchDarken,
|
|
@@ -184,8 +269,9 @@ import {
|
|
|
184
269
|
resolveFontFamily,
|
|
185
270
|
resolveTheme,
|
|
186
271
|
unregisterTheme,
|
|
187
|
-
validateTheme
|
|
188
|
-
|
|
272
|
+
validateTheme,
|
|
273
|
+
withAlpha
|
|
274
|
+
} from "./chunk-KKNUBQ6Y.js";
|
|
189
275
|
import {
|
|
190
276
|
DEFAULT_DOC_FONT,
|
|
191
277
|
DEFAULT_TITLE_FONT,
|
|
@@ -202,7 +288,7 @@ import {
|
|
|
202
288
|
isTemplateBlock,
|
|
203
289
|
scaledFontSize,
|
|
204
290
|
scaledFontSize2
|
|
205
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-DLXZMS5K.js";
|
|
206
292
|
import {
|
|
207
293
|
LocalForageAdapter,
|
|
208
294
|
LocalStorageAdapter,
|
|
@@ -212,88 +298,150 @@ import {
|
|
|
212
298
|
createMediaProviderFromContainer,
|
|
213
299
|
findDocumentPath,
|
|
214
300
|
scopeContainer
|
|
215
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-IMSCRLLV.js";
|
|
302
|
+
import {
|
|
303
|
+
sanitizeHtmlNodes,
|
|
304
|
+
sanitizeUrl,
|
|
305
|
+
stringifyMarkdown
|
|
306
|
+
} from "./chunk-6ATE2PSM.js";
|
|
216
307
|
import {
|
|
308
|
+
BLOCK_META_KEY_DESCRIPTORS,
|
|
309
|
+
KNOWN_BLOCK_META_KEYS,
|
|
217
310
|
fromMdast,
|
|
218
|
-
|
|
311
|
+
matchTrailingPandocAttr,
|
|
312
|
+
matchTrailingTemplateAnnotation,
|
|
313
|
+
needsQuoting,
|
|
219
314
|
parseMarkdown,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
315
|
+
parsePandocAttrTokens,
|
|
316
|
+
parseTimeSeconds,
|
|
317
|
+
quoteAttrValue,
|
|
318
|
+
serializePandocAttributes,
|
|
319
|
+
splitKeyValueToken,
|
|
320
|
+
toMdast,
|
|
321
|
+
tokenizeAttrTokens,
|
|
322
|
+
unquoteAttrValue
|
|
323
|
+
} from "./chunk-TEEEILMP.js";
|
|
225
324
|
import {
|
|
226
325
|
countNodes,
|
|
227
326
|
createDocument,
|
|
228
327
|
extractPlainText,
|
|
229
328
|
findNodesByType,
|
|
329
|
+
formatBlockScalar,
|
|
230
330
|
getChildren,
|
|
231
331
|
inferDocumentTitle,
|
|
232
332
|
parseFrontmatter,
|
|
333
|
+
parseHtmlToNodes,
|
|
334
|
+
plainTextFromInlineHtml,
|
|
233
335
|
readFrontmatterThemeId,
|
|
234
336
|
setFrontmatterValues,
|
|
337
|
+
stringifyHtmlNodes,
|
|
235
338
|
walkMarkdownTree
|
|
236
|
-
} from "./chunk-
|
|
237
|
-
import "./chunk-DNJKBAI7.js";
|
|
339
|
+
} from "./chunk-HWVFJAAH.js";
|
|
238
340
|
import {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
341
|
+
ICONS,
|
|
342
|
+
canonicalIconToken,
|
|
343
|
+
iconGlyph,
|
|
344
|
+
looksLikeIconToken,
|
|
345
|
+
resolveIcon,
|
|
346
|
+
suggestIcons
|
|
347
|
+
} from "./chunk-DBS6RIFL.js";
|
|
348
|
+
import {
|
|
349
|
+
DEFAULT_TRANSITION_DURATION_SECONDS,
|
|
350
|
+
TRANSITION_DIRECTIONS,
|
|
351
|
+
TRANSITION_TYPES,
|
|
352
|
+
isTransitionType,
|
|
353
|
+
normalizeTransitionDirection,
|
|
354
|
+
normalizeTransitionType,
|
|
355
|
+
resolveBlockTransition,
|
|
356
|
+
resolveTransitionDuration
|
|
357
|
+
} from "./chunk-QE7TWGVT.js";
|
|
358
|
+
import "./chunk-DNJKBAI7.js";
|
|
242
359
|
import {
|
|
243
360
|
DEFAULT_WORDS_PER_SECOND,
|
|
244
361
|
calculatePrefixDuration,
|
|
245
362
|
countSpokenWords,
|
|
246
363
|
estimateNarrationDuration,
|
|
364
|
+
estimateNarrationTime,
|
|
365
|
+
estimateReadingTime,
|
|
247
366
|
estimateSpokenWordCount,
|
|
248
367
|
estimateTimeFromText
|
|
249
|
-
} from "./chunk-
|
|
368
|
+
} from "./chunk-VWUFZ6ZG.js";
|
|
250
369
|
export {
|
|
251
370
|
AVAILABLE_FONT_STACKS,
|
|
371
|
+
BASE_INPUT_DESCRIPTORS,
|
|
372
|
+
BLOCK_META_KEY_DESCRIPTORS,
|
|
373
|
+
CONTAINER_TEMPLATES,
|
|
252
374
|
DARK_SURFACE,
|
|
253
375
|
DEFAULT_DOC_FONT,
|
|
254
376
|
DEFAULT_LAYOUT,
|
|
255
377
|
DEFAULT_THEME,
|
|
256
378
|
DEFAULT_THEME_ID,
|
|
257
379
|
DEFAULT_TITLE_FONT,
|
|
380
|
+
DEFAULT_TRANSFORM_STYLE_ID,
|
|
381
|
+
DEFAULT_TRANSITION_DURATION_SECONDS,
|
|
258
382
|
DEFAULT_WORDS_PER_SECOND,
|
|
259
383
|
DocumentVersionManager,
|
|
260
384
|
FONT_FALLBACKS,
|
|
385
|
+
FRONTMATTER_CUSTOM_TEMPLATES_KEY,
|
|
386
|
+
FRONTMATTER_CUSTOM_THEMES_KEY,
|
|
387
|
+
ICONS,
|
|
261
388
|
IMAGE_EDIT_ASSETS_PREFIX,
|
|
262
389
|
IMAGE_EDIT_DEFAULT_BASENAME,
|
|
263
390
|
IMAGE_EDIT_STATE_FILENAME,
|
|
264
391
|
IMAGE_EDIT_VERSIONS_PREFIX,
|
|
265
392
|
ImageEditVersionManager,
|
|
393
|
+
KNOWN_BLOCK_META_KEYS,
|
|
266
394
|
LIGHT_SURFACE,
|
|
267
395
|
LocalForageAdapter,
|
|
268
396
|
LocalStorageAdapter,
|
|
269
397
|
MemoryContentContainer,
|
|
270
398
|
MemoryStorageAdapter,
|
|
399
|
+
PATH_SHAPE_KINDS,
|
|
400
|
+
SHAPE_NAMES,
|
|
271
401
|
STARTER_THEME,
|
|
272
402
|
ScopedContentContainer,
|
|
273
403
|
SeededRandom,
|
|
274
404
|
TEMPLATE_ALIASES,
|
|
405
|
+
TEMPLATE_INPUT_DESCRIPTORS,
|
|
406
|
+
TEMPLATE_METADATA,
|
|
275
407
|
THEMES,
|
|
276
408
|
THEME_SCHEMA_VERSION,
|
|
409
|
+
TRANSITION_DIRECTIONS,
|
|
410
|
+
TRANSITION_TYPES,
|
|
277
411
|
VERSIONS_PREFIX,
|
|
278
412
|
VERSION_TIMESTAMP_PATTERN,
|
|
279
413
|
VIEWPORT_PRESETS,
|
|
280
414
|
addLayer,
|
|
281
415
|
adjustY,
|
|
416
|
+
analyzeBlocks,
|
|
417
|
+
applyRenderStyleToLayers,
|
|
282
418
|
applySurface,
|
|
419
|
+
applyTransform,
|
|
283
420
|
arrayItemKind,
|
|
284
421
|
assertTheme,
|
|
285
422
|
buildGoogleFontsUrl,
|
|
286
423
|
buildImageEditVersionPath,
|
|
424
|
+
buildJsonFormTokens,
|
|
425
|
+
buildRegistry,
|
|
426
|
+
buildSvgString,
|
|
287
427
|
buildVersionPath,
|
|
288
428
|
calculateBearing,
|
|
289
429
|
calculateDuration,
|
|
290
430
|
calculateFontScale,
|
|
291
431
|
calculatePrefixDuration,
|
|
432
|
+
canonicalIconToken,
|
|
292
433
|
chooseControl,
|
|
434
|
+
clipEndpoints,
|
|
435
|
+
clipPoint,
|
|
293
436
|
coalesceImageEditVersions,
|
|
294
437
|
coalesceVersions,
|
|
438
|
+
coerceTemplateParams,
|
|
295
439
|
comparisonBar,
|
|
296
440
|
compileTheme,
|
|
441
|
+
computeDiagramLayout,
|
|
442
|
+
computeDrawingLayout,
|
|
443
|
+
computeLayoutLayers,
|
|
444
|
+
connectorPath,
|
|
297
445
|
contrastRatio,
|
|
298
446
|
countBlocks,
|
|
299
447
|
countNodes,
|
|
@@ -305,14 +453,20 @@ export {
|
|
|
305
453
|
createMediaProviderFromContainer,
|
|
306
454
|
createTemplateContext,
|
|
307
455
|
createTheme,
|
|
456
|
+
cssFilterForTreatment,
|
|
308
457
|
dataTable,
|
|
309
458
|
dateEvent,
|
|
310
459
|
decodeGeohash,
|
|
460
|
+
decodeLayersFromFrontmatter,
|
|
311
461
|
definitionCard,
|
|
312
462
|
deriveColorPalette,
|
|
313
463
|
deriveScale,
|
|
464
|
+
deriveTemplateInputs,
|
|
465
|
+
diagramBlock,
|
|
314
466
|
docToMarkdown,
|
|
467
|
+
drawingBlock,
|
|
315
468
|
encodeGeohash,
|
|
469
|
+
encodeLayersForFrontmatter,
|
|
316
470
|
estimateNarrationDuration,
|
|
317
471
|
estimateNarrationTime,
|
|
318
472
|
estimateReadingTime,
|
|
@@ -324,17 +478,28 @@ export {
|
|
|
324
478
|
expandPersistentLayers,
|
|
325
479
|
expandTemplateBlock,
|
|
326
480
|
exportImageEditDoc,
|
|
481
|
+
extractBlockquoteText,
|
|
482
|
+
extractBodyPlainText,
|
|
327
483
|
extractContent,
|
|
484
|
+
extractDocImages,
|
|
485
|
+
extractFirstImage,
|
|
486
|
+
extractImages,
|
|
487
|
+
extractListItems,
|
|
328
488
|
extractPlainText,
|
|
489
|
+
extractTableData,
|
|
490
|
+
extractTableFromContents,
|
|
329
491
|
factCard,
|
|
492
|
+
fallbackBlockLayers,
|
|
330
493
|
findDocumentPath,
|
|
494
|
+
findFirstTable,
|
|
331
495
|
findNodesByType,
|
|
332
496
|
flattenBlocks,
|
|
497
|
+
flattenRenderableBlocks,
|
|
333
498
|
fontStack,
|
|
499
|
+
formatBlockScalar,
|
|
334
500
|
formatVersionTimestamp,
|
|
335
501
|
fromMdast,
|
|
336
502
|
fullBleedQuote,
|
|
337
|
-
generateSlideshow,
|
|
338
503
|
geohashOverlapsBounds,
|
|
339
504
|
geohashToHierarchicalPath,
|
|
340
505
|
getAccentLayout,
|
|
@@ -351,6 +516,7 @@ export {
|
|
|
351
516
|
getDefaultAnimation,
|
|
352
517
|
getDefaultAnimationDuration,
|
|
353
518
|
getDocBasename,
|
|
519
|
+
getDocPlaybackDuration,
|
|
354
520
|
getDocStyleConfig,
|
|
355
521
|
getFontStack,
|
|
356
522
|
getGeohash4Neighbors,
|
|
@@ -360,53 +526,84 @@ export {
|
|
|
360
526
|
getLayoutHints,
|
|
361
527
|
getNeighbors,
|
|
362
528
|
getOverlayOpacity,
|
|
529
|
+
getPersistentLayersFromTheme,
|
|
363
530
|
getRegisteredThemes,
|
|
364
531
|
getSafeTextBounds,
|
|
365
532
|
getSegmentAtTime,
|
|
366
533
|
getTemplateHint,
|
|
367
534
|
getThemeFont,
|
|
368
535
|
getThemeSummaries,
|
|
536
|
+
getTransformStyleIds,
|
|
537
|
+
getTransformStyleSummaries,
|
|
369
538
|
getTransitionClass,
|
|
370
539
|
getTwoColumnPositions,
|
|
371
540
|
getViewport,
|
|
372
541
|
getViewportOrientation,
|
|
542
|
+
hasIconMarker,
|
|
373
543
|
hasTemplate,
|
|
374
544
|
hashString,
|
|
375
545
|
haversineDistance,
|
|
546
|
+
hexHueDegrees,
|
|
547
|
+
iconClass,
|
|
548
|
+
iconGlyph,
|
|
549
|
+
iconMarker,
|
|
376
550
|
imageWithCaption,
|
|
377
551
|
inferDocumentTitle,
|
|
378
552
|
inferSchema,
|
|
553
|
+
isContainerTemplate,
|
|
554
|
+
isDataFence,
|
|
379
555
|
isHex,
|
|
380
556
|
isPersistentLayerTemplate,
|
|
557
|
+
isShapeName,
|
|
381
558
|
isTemplateBlock,
|
|
559
|
+
isTransitionType,
|
|
560
|
+
layoutBlock,
|
|
382
561
|
scaledFontSize as layoutScaledFontSize,
|
|
383
562
|
leftFeature,
|
|
563
|
+
lineStyleDasharray,
|
|
564
|
+
lintTemplateParams,
|
|
384
565
|
listBlock,
|
|
385
566
|
listImageEditVersions,
|
|
386
567
|
listVersions,
|
|
568
|
+
looksLikeIconToken,
|
|
387
569
|
lookupRegisteredTheme,
|
|
388
570
|
mapBlock,
|
|
389
571
|
mapElementToBlock,
|
|
390
572
|
markdownToDoc,
|
|
573
|
+
markerPath,
|
|
574
|
+
matchTrailingPandocAttr,
|
|
575
|
+
matchTrailingTemplateAnnotation,
|
|
576
|
+
needsQuoting,
|
|
577
|
+
normalizeShapeKind,
|
|
578
|
+
normalizeTransitionDirection,
|
|
579
|
+
normalizeTransitionType,
|
|
391
580
|
oklchDarken,
|
|
392
581
|
oklchLighten,
|
|
393
582
|
oklchSetChroma,
|
|
583
|
+
parseDataFence,
|
|
394
584
|
parseFrontmatter,
|
|
395
585
|
parseHtmlToNodes,
|
|
396
586
|
parseImageEditVersionPath,
|
|
397
587
|
parseMarkdown,
|
|
588
|
+
parsePandocAttrTokens,
|
|
398
589
|
parseTheme,
|
|
590
|
+
parseTimeSeconds,
|
|
399
591
|
parseVersionPath,
|
|
400
592
|
parseVersionTimestamp,
|
|
593
|
+
parseYamlSubset,
|
|
401
594
|
photoGrid,
|
|
402
595
|
pickContrastingText,
|
|
596
|
+
plainTextFromInlineHtml,
|
|
403
597
|
pointerSegments,
|
|
404
598
|
primaryType,
|
|
405
599
|
profileBlockContents,
|
|
406
600
|
pruneImageEditVersions,
|
|
407
601
|
pruneVersions,
|
|
408
602
|
pullQuote,
|
|
603
|
+
quoteAttrValue,
|
|
409
604
|
quoteBlock,
|
|
605
|
+
readCustomTemplatesFromFrontmatter,
|
|
606
|
+
readCustomThemesFromFrontmatter,
|
|
410
607
|
readFrontmatterThemeId,
|
|
411
608
|
readImageEditDoc,
|
|
412
609
|
readImageEditVersion,
|
|
@@ -414,19 +611,31 @@ export {
|
|
|
414
611
|
readVersion,
|
|
415
612
|
recommendTemplatesForBlock,
|
|
416
613
|
registerTheme,
|
|
614
|
+
registerTransformStyle,
|
|
417
615
|
relativeLuminance,
|
|
418
616
|
removeLayer,
|
|
419
617
|
reorderLayer,
|
|
618
|
+
replaceDataFence,
|
|
420
619
|
resolveAudioMapping,
|
|
620
|
+
resolveBlockTransition,
|
|
421
621
|
resolveColorScheme,
|
|
422
622
|
resolveFlag,
|
|
423
623
|
resolveFontFamily,
|
|
624
|
+
resolveIcon,
|
|
625
|
+
resolveJsonFormTheme,
|
|
626
|
+
resolveMediaSchedule,
|
|
627
|
+
resolvePersistentLayers,
|
|
424
628
|
resolveRef,
|
|
425
629
|
resolveTemplateName,
|
|
426
630
|
resolveTheme,
|
|
631
|
+
resolveThemeForDoc,
|
|
632
|
+
resolveTransformStyle,
|
|
633
|
+
resolveTransitionDuration,
|
|
427
634
|
revertToImageEditVersion,
|
|
428
635
|
revertToVersion,
|
|
429
636
|
rightFeature,
|
|
637
|
+
sanitizeHtmlNodes,
|
|
638
|
+
sanitizeUrl,
|
|
430
639
|
saveImageEditVersion,
|
|
431
640
|
saveVersion,
|
|
432
641
|
scaleAnimationDuration,
|
|
@@ -434,29 +643,48 @@ export {
|
|
|
434
643
|
scopeContainer,
|
|
435
644
|
scoreTextSimilarity,
|
|
436
645
|
sectionHeader,
|
|
646
|
+
serializePandocAttributes,
|
|
437
647
|
serializeTheme,
|
|
438
648
|
setByPointer,
|
|
439
649
|
setCanvas,
|
|
440
650
|
setFrontmatterValues,
|
|
651
|
+
shapePath,
|
|
441
652
|
shouldUseShadow,
|
|
653
|
+
splitIconMarkers,
|
|
654
|
+
splitKeyValueToken,
|
|
442
655
|
statHighlight,
|
|
443
656
|
stringifyHtmlNodes,
|
|
444
657
|
stringifyMarkdown,
|
|
658
|
+
stripIconMarkers,
|
|
445
659
|
stripMarkdown,
|
|
660
|
+
suggestIcons,
|
|
446
661
|
templateRegistry,
|
|
662
|
+
themeWantsAmbientMotion,
|
|
663
|
+
themedEntrance,
|
|
447
664
|
themedFontSize,
|
|
665
|
+
themedImageTreatment,
|
|
666
|
+
themedScrim,
|
|
667
|
+
themedSurfaceGradient,
|
|
448
668
|
titleBlock,
|
|
449
669
|
toMdast,
|
|
450
670
|
toPointer,
|
|
671
|
+
tokenizeAttrTokens,
|
|
451
672
|
touch,
|
|
452
673
|
twoColumn,
|
|
674
|
+
unquoteAttrValue,
|
|
453
675
|
unregisterTheme,
|
|
676
|
+
unregisterTransformStyle,
|
|
454
677
|
updateLayer,
|
|
455
|
-
|
|
678
|
+
validateMarkdownDoc,
|
|
679
|
+
validateMarkdownSource,
|
|
456
680
|
validateTheme,
|
|
457
681
|
videoPullQuote,
|
|
458
682
|
videoWithCaption,
|
|
459
683
|
walkMarkdownTree,
|
|
684
|
+
withAlpha,
|
|
685
|
+
wrapWithPersistentLayers,
|
|
686
|
+
writeCustomTemplatesToFrontmatter,
|
|
687
|
+
writeCustomThemesToFrontmatter,
|
|
460
688
|
writeImageEditDoc
|
|
461
689
|
};
|
|
462
690
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* iconData.ts — GENERATED FILE
|
|
3
|
+
*
|
|
4
|
+
* FontAwesome Free icon catalog. Run `node scripts/generate-icon-data.mjs`
|
|
5
|
+
* to regenerate after bumping @fortawesome/fontawesome-free.
|
|
6
|
+
*
|
|
7
|
+
* Entry count: 2141
|
|
8
|
+
* Generated: 2026-05-14T03:38:13.863Z
|
|
9
|
+
*/
|
|
10
|
+
type IconFamily = 'brands' | 'solid' | 'regular';
|
|
11
|
+
interface IconEntry {
|
|
12
|
+
/** Icon name without the `fa-` prefix (e.g. `github`). */
|
|
13
|
+
name: string;
|
|
14
|
+
/** Family bucket — drives the `fa-brands` / `fa-solid` / `fa-regular` class. */
|
|
15
|
+
family: IconFamily;
|
|
16
|
+
/** Human display label (used by the picker tooltip). */
|
|
17
|
+
label: string;
|
|
18
|
+
/** Lowercase, space-joined search keywords. */
|
|
19
|
+
keywords: string;
|
|
20
|
+
/** FontAwesome Private-Use-Area codepoint as a hex string (e.g. `'f09b'`).
|
|
21
|
+
* Use `String.fromCodePoint(parseInt(unicode, 16))` to get the rendered
|
|
22
|
+
* glyph when the FA font is loaded. */
|
|
23
|
+
unicode: string;
|
|
24
|
+
}
|
|
25
|
+
declare const ICONS: IconEntry[];
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Inline-icon markers for template text.
|
|
29
|
+
*
|
|
30
|
+
* Slide templates flatten rich markdown body content into strings before
|
|
31
|
+
* rendering. Inline icons need to survive that flattening step, so we encode
|
|
32
|
+
* them as sentinel-delimited text markers and let `TextLayer` turn them back
|
|
33
|
+
* into FontAwesome glyphs when rendering.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/** Encode a resolved icon (family + name) as an embeddable text marker. */
|
|
37
|
+
declare function iconMarker(family: IconFamily, name: string): string;
|
|
38
|
+
/** True when a string contains at least one encoded icon marker. */
|
|
39
|
+
declare function hasIconMarker(value: string): boolean;
|
|
40
|
+
/** Remove every icon marker, leaving a clean plain-text projection. */
|
|
41
|
+
declare function stripIconMarkers(value: string): string;
|
|
42
|
+
/** A run of a marker-bearing string: literal text or a resolved icon. */
|
|
43
|
+
type IconTextRun = {
|
|
44
|
+
type: 'text';
|
|
45
|
+
text: string;
|
|
46
|
+
} | {
|
|
47
|
+
type: 'icon';
|
|
48
|
+
family: IconFamily;
|
|
49
|
+
name: string;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Split a string into ordered text/icon runs. Text between markers is
|
|
53
|
+
* preserved verbatim, including whitespace; each marker becomes an icon run.
|
|
54
|
+
*/
|
|
55
|
+
declare function splitIconMarkers(value: string): IconTextRun[];
|
|
56
|
+
/** FontAwesome CSS class for a resolved icon, e.g. `fa-solid fa-rocket`. */
|
|
57
|
+
declare function iconClass(family: IconFamily, name: string): string;
|
|
58
|
+
|
|
59
|
+
export { ICONS as I, type IconEntry as a, type IconFamily as b, type IconTextRun as c, iconMarker as d, stripIconMarkers as e, hasIconMarker as h, iconClass as i, splitIconMarkers as s };
|