@bendyline/squisq 2.13.2 → 2.13.4
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/{Doc-CYTLtFEu.d.ts → Doc-DnRFE0EI.d.ts} +40 -2
- package/dist/{ImageEditDoc-DZ4k_O10.d.ts → ImageEditDoc-CadNz387.d.ts} +1 -1
- package/dist/{chunk-HE3HQZWU.js → chunk-6NWVLLMI.js} +104 -1
- package/dist/{chunk-56TW6HE6.js → chunk-BITSNRJH.js} +15 -10
- package/dist/{chunk-3A6YM375.js → chunk-D3JQMZUT.js} +8 -8
- package/dist/chunk-DOOUVVOM.js +78 -0
- package/dist/{chunk-FUQYQWQR.js → chunk-DRHJD6U4.js} +5 -5
- package/dist/{chunk-2GN67Q2T.js → chunk-FIPRGGXD.js} +1 -1
- package/dist/{chunk-YY3OQ3MI.js → chunk-J2NFT7GH.js} +475 -342
- package/dist/{chunk-7ZXCS3UU.js → chunk-JFJZ4NS6.js} +2 -2
- package/dist/{chunk-HGCIIXHP.js → chunk-POZCKPCO.js} +235 -4
- package/dist/doc/index.d.ts +134 -14
- package/dist/doc/index.js +17 -7
- package/dist/fence/index.d.ts +1 -1
- package/dist/generate/index.d.ts +1 -1
- package/dist/imageEdit/index.d.ts +3 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +27 -17
- package/dist/jsonForm/index.d.ts +1 -1
- package/dist/markdown/index.js +11 -12
- package/dist/{materializePageSection-CDps_xUd.d.ts → materializePageSection-D84uA6Vk.d.ts} +1 -1
- package/dist/mediaEdit/index.d.ts +2 -2
- package/dist/narration/index.d.ts +1 -1
- package/dist/narration/index.js +5 -5
- package/dist/recommend/index.js +3 -2
- package/dist/schemas/index.d.ts +4 -4
- package/dist/{themeLibrary-CMm_jh3a.d.ts → themeLibrary-in0fafp4.d.ts} +1 -1
- package/dist/timing/index.d.ts +1 -1
- package/dist/transform/index.d.ts +2 -2
- package/dist/transform/index.js +6 -6
- package/package.json +1 -1
- package/dist/chunk-Y25EJEZN.js +0 -178
package/dist/transform/index.js
CHANGED
|
@@ -24,16 +24,16 @@ import {
|
|
|
24
24
|
serializePresentationPlan,
|
|
25
25
|
transformNarratedSegment,
|
|
26
26
|
usesDynamicPresentation
|
|
27
|
-
} from "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
27
|
+
} from "../chunk-DRHJD6U4.js";
|
|
28
|
+
import "../chunk-J2NFT7GH.js";
|
|
29
|
+
import "../chunk-POZCKPCO.js";
|
|
30
30
|
import "../chunk-SVN7T6BK.js";
|
|
31
31
|
import "../chunk-FUBMT6SJ.js";
|
|
32
32
|
import "../chunk-WNEH3BZP.js";
|
|
33
33
|
import "../chunk-L7QZORLB.js";
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-D3JQMZUT.js";
|
|
35
|
+
import "../chunk-DOOUVVOM.js";
|
|
36
|
+
import "../chunk-6NWVLLMI.js";
|
|
37
37
|
import "../chunk-CZ7AUSLI.js";
|
|
38
38
|
import "../chunk-P53Z4RYC.js";
|
|
39
39
|
import "../chunk-GHOPHGOK.js";
|
package/package.json
CHANGED
package/dist/chunk-Y25EJEZN.js
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
// src/doc/templates/templateNames.ts
|
|
2
|
-
var TEMPLATE_ALIASES = Object.freeze({
|
|
3
|
-
titleBlock: "title",
|
|
4
|
-
quoteBlock: "quote",
|
|
5
|
-
mapBlock: "map",
|
|
6
|
-
listBlock: "list",
|
|
7
|
-
diagramBlock: "diagram",
|
|
8
|
-
diagramNode: "diagram"
|
|
9
|
-
});
|
|
10
|
-
function resolveTemplateName(name) {
|
|
11
|
-
return TEMPLATE_ALIASES[name] ?? name;
|
|
12
|
-
}
|
|
13
|
-
var TABLE_FED_TEMPLATES = /* @__PURE__ */ new Set([
|
|
14
|
-
"dataTable",
|
|
15
|
-
"barChart",
|
|
16
|
-
"columnChart",
|
|
17
|
-
"pieChart",
|
|
18
|
-
"donutChart",
|
|
19
|
-
"lineChart",
|
|
20
|
-
"areaChart",
|
|
21
|
-
"scatterChart"
|
|
22
|
-
]);
|
|
23
|
-
var CONTAINER_TEMPLATES = /* @__PURE__ */ new Set(["diagram", "drawing", "layout"]);
|
|
24
|
-
function isContainerTemplate(name) {
|
|
25
|
-
return !!name && CONTAINER_TEMPLATES.has(resolveTemplateName(name));
|
|
26
|
-
}
|
|
27
|
-
var TEMPLATE_TOKEN_NAMES = /* @__PURE__ */ new Set([
|
|
28
|
-
"title",
|
|
29
|
-
"sectionHeader",
|
|
30
|
-
"bigText",
|
|
31
|
-
"transcript",
|
|
32
|
-
"content",
|
|
33
|
-
"statHighlight",
|
|
34
|
-
"quote",
|
|
35
|
-
"factCard",
|
|
36
|
-
"twoColumn",
|
|
37
|
-
"dateEvent",
|
|
38
|
-
"imageWithCaption",
|
|
39
|
-
"leftFeature",
|
|
40
|
-
"rightFeature",
|
|
41
|
-
"map",
|
|
42
|
-
"fullBleedQuote",
|
|
43
|
-
"list",
|
|
44
|
-
"photoGrid",
|
|
45
|
-
"definitionCard",
|
|
46
|
-
"comparisonBar",
|
|
47
|
-
"pullQuote",
|
|
48
|
-
"videoWithCaption",
|
|
49
|
-
"videoPullQuote",
|
|
50
|
-
"dataTable",
|
|
51
|
-
"barChart",
|
|
52
|
-
"columnChart",
|
|
53
|
-
"pieChart",
|
|
54
|
-
"donutChart",
|
|
55
|
-
"lineChart",
|
|
56
|
-
"areaChart",
|
|
57
|
-
"scatterChart",
|
|
58
|
-
"diagram",
|
|
59
|
-
"tree",
|
|
60
|
-
"timeline",
|
|
61
|
-
"layout",
|
|
62
|
-
"drawing"
|
|
63
|
-
]);
|
|
64
|
-
function isReservedAnnotationToken(token) {
|
|
65
|
-
return TEMPLATE_TOKEN_NAMES.has(resolveTemplateName(token));
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// src/markdown/attrTokens.ts
|
|
69
|
-
var DQ_RUN = `"(?:[^"\\\\]|\\\\.)*"`;
|
|
70
|
-
var SQ_RUN = `'(?:[^'\\\\]|\\\\.)*'`;
|
|
71
|
-
var TEMPLATE_STRICT_RE = new RegExp(
|
|
72
|
-
`\\s*\\{\\[((?:[^\\]"']|${DQ_RUN}|${SQ_RUN})*)\\]\\}[\\s\\]}]*$`
|
|
73
|
-
);
|
|
74
|
-
var TEMPLATE_LEGACY_RE = /\s*\{\[([^\]]*)\]\}[\s\]}]*$/;
|
|
75
|
-
var PANDOC_STRICT_RE = new RegExp(`\\s*\\{(?!\\[)((?:[^}"']|${DQ_RUN}|${SQ_RUN})*)\\}\\s*$`);
|
|
76
|
-
var PANDOC_LEGACY_RE = /\s*\{(?!\[)([^}]*)\}\s*$/;
|
|
77
|
-
function matchTrailing(text, strict, legacy) {
|
|
78
|
-
const m = strict.exec(text) ?? legacy.exec(text);
|
|
79
|
-
return m ? { inner: m[1], index: m.index } : null;
|
|
80
|
-
}
|
|
81
|
-
function matchTrailingTemplateAnnotation(text) {
|
|
82
|
-
return matchTrailing(text, TEMPLATE_STRICT_RE, TEMPLATE_LEGACY_RE);
|
|
83
|
-
}
|
|
84
|
-
function matchTrailingPandocAttr(text) {
|
|
85
|
-
return matchTrailing(text, PANDOC_STRICT_RE, PANDOC_LEGACY_RE);
|
|
86
|
-
}
|
|
87
|
-
var WHITESPACE_RE = /\s/;
|
|
88
|
-
function tokenizeAttrTokens(input) {
|
|
89
|
-
const tokens = [];
|
|
90
|
-
let i = 0;
|
|
91
|
-
const n = input.length;
|
|
92
|
-
while (i < n) {
|
|
93
|
-
while (i < n && WHITESPACE_RE.test(input[i])) i++;
|
|
94
|
-
if (i >= n) break;
|
|
95
|
-
let token = "";
|
|
96
|
-
while (i < n && !WHITESPACE_RE.test(input[i])) {
|
|
97
|
-
const ch = input[i];
|
|
98
|
-
const atValueStart = token === "" || token.endsWith("=");
|
|
99
|
-
if ((ch === '"' || ch === "'") && atValueStart) {
|
|
100
|
-
token += ch;
|
|
101
|
-
i++;
|
|
102
|
-
while (i < n && input[i] !== ch) {
|
|
103
|
-
if (input[i] === "\\" && i + 1 < n && (input[i + 1] === ch || input[i + 1] === "\\")) {
|
|
104
|
-
token += input[i] + input[i + 1];
|
|
105
|
-
i += 2;
|
|
106
|
-
} else {
|
|
107
|
-
token += input[i];
|
|
108
|
-
i++;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
if (i < n && input[i] === ch) {
|
|
112
|
-
token += ch;
|
|
113
|
-
i++;
|
|
114
|
-
}
|
|
115
|
-
} else {
|
|
116
|
-
token += ch;
|
|
117
|
-
i++;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
if (token) tokens.push(token);
|
|
121
|
-
}
|
|
122
|
-
return tokens;
|
|
123
|
-
}
|
|
124
|
-
var DQ_UNESCAPE_RE = /\\([\\"])/g;
|
|
125
|
-
var SQ_UNESCAPE_RE = /\\([\\'])/g;
|
|
126
|
-
function unquoteAttrValue(raw) {
|
|
127
|
-
if (raw.length >= 2) {
|
|
128
|
-
const q = raw[0];
|
|
129
|
-
if ((q === '"' || q === "'") && raw.endsWith(q)) {
|
|
130
|
-
const body = raw.slice(1, -1);
|
|
131
|
-
return body.replace(q === '"' ? DQ_UNESCAPE_RE : SQ_UNESCAPE_RE, "$1");
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return raw;
|
|
135
|
-
}
|
|
136
|
-
function splitKeyValueToken(token) {
|
|
137
|
-
const eqIdx = token.indexOf("=");
|
|
138
|
-
if (eqIdx <= 0) return null;
|
|
139
|
-
return { key: token.slice(0, eqIdx), value: unquoteAttrValue(token.slice(eqIdx + 1)) };
|
|
140
|
-
}
|
|
141
|
-
var NEEDS_QUOTING_RE = /[\s"'[\]{}]/;
|
|
142
|
-
var DQ_ESCAPE_RE = /[\\"]/g;
|
|
143
|
-
var SQ_ESCAPE_RE = /[\\']/g;
|
|
144
|
-
function needsQuoting(value) {
|
|
145
|
-
return value === "" || NEEDS_QUOTING_RE.test(value);
|
|
146
|
-
}
|
|
147
|
-
function quoteAttrValue(value) {
|
|
148
|
-
if (!needsQuoting(value)) return value;
|
|
149
|
-
if (value.includes('"') && !value.includes("'")) {
|
|
150
|
-
return `'${value.replace(SQ_ESCAPE_RE, (ch) => `\\${ch}`)}'`;
|
|
151
|
-
}
|
|
152
|
-
return `"${value.replace(DQ_ESCAPE_RE, (ch) => `\\${ch}`)}"`;
|
|
153
|
-
}
|
|
154
|
-
function serializeAnnotation(template, params) {
|
|
155
|
-
const parts = [];
|
|
156
|
-
if (template) parts.push(template);
|
|
157
|
-
for (const [key, value] of Object.entries(params ?? {})) {
|
|
158
|
-
parts.push(`${key}=${quoteAttrValue(value)}`);
|
|
159
|
-
}
|
|
160
|
-
return `{[${parts.join(" ")}]}`;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export {
|
|
164
|
-
TEMPLATE_ALIASES,
|
|
165
|
-
resolveTemplateName,
|
|
166
|
-
TABLE_FED_TEMPLATES,
|
|
167
|
-
CONTAINER_TEMPLATES,
|
|
168
|
-
isContainerTemplate,
|
|
169
|
-
isReservedAnnotationToken,
|
|
170
|
-
matchTrailingTemplateAnnotation,
|
|
171
|
-
matchTrailingPandocAttr,
|
|
172
|
-
tokenizeAttrTokens,
|
|
173
|
-
unquoteAttrValue,
|
|
174
|
-
splitKeyValueToken,
|
|
175
|
-
needsQuoting,
|
|
176
|
-
quoteAttrValue,
|
|
177
|
-
serializeAnnotation
|
|
178
|
-
};
|