@openpresentation/opf 0.37.0 → 0.37.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/THIRD-PARTY-NOTICES.md +99 -0
- package/dist/browser.js +16 -16
- package/dist/{chunk-JTNCBTEH.js → chunk-434E2RWO.js} +1 -1
- package/dist/{chunk-3A3PNYNP.js → chunk-63Y75CCK.js} +1 -1
- package/dist/{chunk-HS2JQ3AO.js → chunk-BPILTZUJ.js} +1 -1
- package/dist/{chunk-C5ACMFKB.js → chunk-DDD4WUEH.js} +990 -24
- package/dist/{chunk-6WN6PRCI.js → chunk-DMV3G65U.js} +1 -1
- package/dist/{chunk-XJU2X5JM.js → chunk-EHYAVRL3.js} +1 -1
- package/dist/{chunk-BHRCWV6B.js → chunk-HBO64RWP.js} +4 -4
- package/dist/{chunk-4FA4ZABY.js → chunk-HOK3DZA6.js} +5 -5
- package/dist/{chunk-YESKKKVE.js → chunk-I4NQP7Z4.js} +1 -1
- package/dist/{chunk-CYGQY6HH.js → chunk-ITGR2RW2.js} +5 -5
- package/dist/{chunk-EOMENOKY.js → chunk-KB7TPZQI.js} +5 -5
- package/dist/{chunk-56BYOGIF.js → chunk-MNJ4JV7I.js} +1 -1
- package/dist/{chunk-YZ4WMB5C.js → chunk-PDBZN7EJ.js} +1 -1
- package/dist/{chunk-KANQVJGK.js → chunk-Q2L5ERNK.js} +4 -1
- package/dist/{chunk-44IS6ZU2.js → chunk-SIF5JDZC.js} +1 -1
- package/dist/{chunk-TIVBO56G.js → chunk-XY332BQP.js} +3 -3
- package/dist/{chunk-VD7WLE3C.js → chunk-ZB427MLO.js} +2 -2
- package/dist/{conversion-DF_HgknQ.d.ts → conversion-DBkC9Y2e.d.ts} +2 -2
- package/dist/conversion-P56LOOE2.js +25 -0
- package/dist/convert.js +6 -6
- package/dist/deck.js +10 -10
- package/dist/diff.js +3 -3
- package/dist/docs.js +2 -2
- package/dist/format.js +2 -2
- package/dist/ids.js +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +19 -19
- package/dist/markdown.js +7 -7
- package/dist/node-engine.d.ts +2 -2
- package/dist/node-engine.js +18 -18
- package/dist/pagination.js +3 -3
- package/dist/patch.js +2 -2
- package/dist/precompiled.js +2 -2
- package/dist/schema-engine-ajv.js +1 -1
- package/dist/schema-engine-precompiled.js +2 -2
- package/dist/schema.js +2 -2
- package/dist/schemas.js +1 -1
- package/dist/source.js +9 -10
- package/dist/spec/schemas/font-scheme.schema.json +4 -1
- package/dist/types.d.ts +6 -1
- package/dist/validator.js +2 -2
- package/dist/yaml.js +6 -6
- package/package.json +7 -6
- package/dist/conversion-XIWN7FMW.js +0 -25
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { original } from './chunk-JBARNYFR.js';
|
|
2
|
-
import { schemas, schemaEntries } from './chunk-
|
|
2
|
+
import { schemas, schemaEntries } from './chunk-Q2L5ERNK.js';
|
|
3
3
|
import { SHAPE_BLOCK_KEYS, VARIABLE_KINDS, resolveChartData, chartPaletteForFill, chartSeriesPalette, chartSchemeSeries, chartSlicePlan, CHART_SERIES_MIN_LIGHTNESS_STEP, normalizeHexColor, resolveChartColors, colorContrast, languageOfText, imageBackground, CODE_NOMINAL_SIZE, QUOTE_NOMINAL_SIZE, TABLE_NOMINAL_SIZE, LIST_NOMINAL_SIZE, PROSE_NOMINAL_SIZE, variableDeclarations, isTemplate, resolveVariables, listVariables, instantiateForValidation, translationAt, emphasisSurface, textInkBox, tableGrid, metricValueColor, timelineTextColor, LOGO_SHAPES, visitContentPayloads, resolveReference, intrinsicImageSize, layoutTable, coerceVariableValue, nearestGridCell, colorTransform, applyColorTransform, resolveColorRef, tableRows, readingRows, visualReadingOrder, numberingSystemExtension, isSupportedNumberingSystem, plainLanguageTag, supportedNumberingSystems, catalogGroupSource, resolveDesignRecords, resolveFontFamilies, checkCatalogsOption, provenanceOf, unresolvedReference, OPFUnresolvedReferenceError, composeSlide, resolveScriptFonts, isRecord, resolveColorRoles, layoutVariantApplies, resolveCanvasDimensions, resolveSlideVariables, registeredCatalog, embeddedCopy, renamedLayout, renamedLayoutTitlePosition, layoutVariantKind, deckBackgroundIsChosen, LONE_DISPLAY_SIZES, normalizeColorVariant, layoutColorVariant, OPFCompositionError, inlineDatasets, hasBuiltinDependency, hasContentVariables, layoutTemplateIssues, REMOVED_DESIGN_KEYS, deckBackgroundIsFixed, lonePayload, annotationText, isLayoutTemplate, layoutTemplate, statementMessage, messageWords, SHORT_MESSAGE_WORDS, defaultSlideBackground, suggestCellTypeFix, catalogReferenceSites, parseReference, catalogGroupDeclared, pointerPath, unusedDatasets, documentIcons, iconIssue, walkCitationRuns, HALF_STEPPED, MAX_COMPOSITION_DEPTH, isOverlayConnector, connectorAdjustPreset, shapeIssues, pathFor, overlayIssues, datasetDiagnostics, removedLayoutAuto, renamedLayoutChangesDrawing, catalogRecords, collectCitations, visitPayloadItems, entryId, resolveSlideDirection, isGridCell, gridCellSpan, numberingFindings, dataSourcesOf, resolveDataSource, isDatasetRef, chartDrawDiagnostics, resolveTableData, resolveMetric, resolveChartOptions, chartOptionTarget, codeHighlightLines, relatedName, chartNumberFixesByCell, catalogKinds, representablePositionBox, PositionRangeError, cellsInReadingOrder, isShapeBlock, rowCells } from './chunk-QFT4R2IL.js';
|
|
4
4
|
import { schemaEngine } from '#schema-engine';
|
|
5
|
-
import { parseTree, printParseErrorCode, getNodePath } from 'jsonc-parser';
|
|
6
5
|
|
|
7
6
|
// src/catalog-schemas.ts
|
|
8
7
|
var CATALOG_SCHEMA = 4;
|
|
@@ -185,10 +184,10 @@ function slideLink(id) {
|
|
|
185
184
|
var pointerToken = (key3) => String(key3).replaceAll("~", "~0").replaceAll("/", "~1");
|
|
186
185
|
function collectSlideLinks(value, base = "") {
|
|
187
186
|
const found = [];
|
|
188
|
-
const
|
|
187
|
+
const visit2 = (node, pointer5, depth2) => {
|
|
189
188
|
if (depth2 > 64) return;
|
|
190
189
|
if (Array.isArray(node)) {
|
|
191
|
-
for (const [index, child] of node.entries())
|
|
190
|
+
for (const [index, child] of node.entries()) visit2(child, `${pointer5}/${index}`, depth2 + 1);
|
|
192
191
|
return;
|
|
193
192
|
}
|
|
194
193
|
if (!isRecord(node)) return;
|
|
@@ -199,10 +198,10 @@ function collectSlideLinks(value, base = "") {
|
|
|
199
198
|
if (id !== void 0) found.push({ pointer: `${pointer5}/link`, id });
|
|
200
199
|
continue;
|
|
201
200
|
}
|
|
202
|
-
|
|
201
|
+
visit2(child, `${pointer5}/${pointerToken(key3)}`, depth2 + 1);
|
|
203
202
|
}
|
|
204
203
|
};
|
|
205
|
-
|
|
204
|
+
visit2(value, base, 0);
|
|
206
205
|
return found;
|
|
207
206
|
}
|
|
208
207
|
function slideLinkIssues(value, otherSlides = []) {
|
|
@@ -4693,7 +4692,7 @@ function chartShapeHelp(chart) {
|
|
|
4693
4692
|
}
|
|
4694
4693
|
|
|
4695
4694
|
// src/generated/version.ts
|
|
4696
|
-
var OPF_CORE_VERSION = "0.37.
|
|
4695
|
+
var OPF_CORE_VERSION = "0.37.1";
|
|
4697
4696
|
|
|
4698
4697
|
// src/renamed-keys.ts
|
|
4699
4698
|
var KEY_RENAMES = Object.freeze([
|
|
@@ -5705,6 +5704,973 @@ function lastLayoutAutoSite(document, group, options2, last) {
|
|
|
5705
5704
|
return latest !== void 0 && latest.length === last.length && latest.every((key3, at3) => key3 === last[at3]);
|
|
5706
5705
|
}
|
|
5707
5706
|
|
|
5707
|
+
// ../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/scanner.js
|
|
5708
|
+
function createScanner(text2, ignoreTrivia = false) {
|
|
5709
|
+
const len = text2.length;
|
|
5710
|
+
let pos = 0, value = "", tokenOffset = 0, token = 16, lineNumber = 0, lineStartOffset = 0, tokenLineStartOffset = 0, prevTokenLineStartOffset = 0, scanError = 0;
|
|
5711
|
+
function scanHexDigits(count, exact) {
|
|
5712
|
+
let digits = 0;
|
|
5713
|
+
let value2 = 0;
|
|
5714
|
+
while (digits < count || false) {
|
|
5715
|
+
let ch = text2.charCodeAt(pos);
|
|
5716
|
+
if (ch >= 48 && ch <= 57) {
|
|
5717
|
+
value2 = value2 * 16 + ch - 48;
|
|
5718
|
+
} else if (ch >= 65 && ch <= 70) {
|
|
5719
|
+
value2 = value2 * 16 + ch - 65 + 10;
|
|
5720
|
+
} else if (ch >= 97 && ch <= 102) {
|
|
5721
|
+
value2 = value2 * 16 + ch - 97 + 10;
|
|
5722
|
+
} else {
|
|
5723
|
+
break;
|
|
5724
|
+
}
|
|
5725
|
+
pos++;
|
|
5726
|
+
digits++;
|
|
5727
|
+
}
|
|
5728
|
+
if (digits < count) {
|
|
5729
|
+
value2 = -1;
|
|
5730
|
+
}
|
|
5731
|
+
return value2;
|
|
5732
|
+
}
|
|
5733
|
+
function setPosition(newPosition) {
|
|
5734
|
+
pos = newPosition;
|
|
5735
|
+
value = "";
|
|
5736
|
+
tokenOffset = 0;
|
|
5737
|
+
token = 16;
|
|
5738
|
+
scanError = 0;
|
|
5739
|
+
}
|
|
5740
|
+
function scanNumber() {
|
|
5741
|
+
let start = pos;
|
|
5742
|
+
if (text2.charCodeAt(pos) === 48) {
|
|
5743
|
+
pos++;
|
|
5744
|
+
} else {
|
|
5745
|
+
pos++;
|
|
5746
|
+
while (pos < text2.length && isDigit(text2.charCodeAt(pos))) {
|
|
5747
|
+
pos++;
|
|
5748
|
+
}
|
|
5749
|
+
}
|
|
5750
|
+
if (pos < text2.length && text2.charCodeAt(pos) === 46) {
|
|
5751
|
+
pos++;
|
|
5752
|
+
if (pos < text2.length && isDigit(text2.charCodeAt(pos))) {
|
|
5753
|
+
pos++;
|
|
5754
|
+
while (pos < text2.length && isDigit(text2.charCodeAt(pos))) {
|
|
5755
|
+
pos++;
|
|
5756
|
+
}
|
|
5757
|
+
} else {
|
|
5758
|
+
scanError = 3;
|
|
5759
|
+
return text2.substring(start, pos);
|
|
5760
|
+
}
|
|
5761
|
+
}
|
|
5762
|
+
let end = pos;
|
|
5763
|
+
if (pos < text2.length && (text2.charCodeAt(pos) === 69 || text2.charCodeAt(pos) === 101)) {
|
|
5764
|
+
pos++;
|
|
5765
|
+
if (pos < text2.length && text2.charCodeAt(pos) === 43 || text2.charCodeAt(pos) === 45) {
|
|
5766
|
+
pos++;
|
|
5767
|
+
}
|
|
5768
|
+
if (pos < text2.length && isDigit(text2.charCodeAt(pos))) {
|
|
5769
|
+
pos++;
|
|
5770
|
+
while (pos < text2.length && isDigit(text2.charCodeAt(pos))) {
|
|
5771
|
+
pos++;
|
|
5772
|
+
}
|
|
5773
|
+
end = pos;
|
|
5774
|
+
} else {
|
|
5775
|
+
scanError = 3;
|
|
5776
|
+
}
|
|
5777
|
+
}
|
|
5778
|
+
return text2.substring(start, end);
|
|
5779
|
+
}
|
|
5780
|
+
function scanString() {
|
|
5781
|
+
let result = "", start = pos;
|
|
5782
|
+
while (true) {
|
|
5783
|
+
if (pos >= len) {
|
|
5784
|
+
result += text2.substring(start, pos);
|
|
5785
|
+
scanError = 2;
|
|
5786
|
+
break;
|
|
5787
|
+
}
|
|
5788
|
+
const ch = text2.charCodeAt(pos);
|
|
5789
|
+
if (ch === 34) {
|
|
5790
|
+
result += text2.substring(start, pos);
|
|
5791
|
+
pos++;
|
|
5792
|
+
break;
|
|
5793
|
+
}
|
|
5794
|
+
if (ch === 92) {
|
|
5795
|
+
result += text2.substring(start, pos);
|
|
5796
|
+
pos++;
|
|
5797
|
+
if (pos >= len) {
|
|
5798
|
+
scanError = 2;
|
|
5799
|
+
break;
|
|
5800
|
+
}
|
|
5801
|
+
const ch2 = text2.charCodeAt(pos++);
|
|
5802
|
+
switch (ch2) {
|
|
5803
|
+
case 34:
|
|
5804
|
+
result += '"';
|
|
5805
|
+
break;
|
|
5806
|
+
case 92:
|
|
5807
|
+
result += "\\";
|
|
5808
|
+
break;
|
|
5809
|
+
case 47:
|
|
5810
|
+
result += "/";
|
|
5811
|
+
break;
|
|
5812
|
+
case 98:
|
|
5813
|
+
result += "\b";
|
|
5814
|
+
break;
|
|
5815
|
+
case 102:
|
|
5816
|
+
result += "\f";
|
|
5817
|
+
break;
|
|
5818
|
+
case 110:
|
|
5819
|
+
result += "\n";
|
|
5820
|
+
break;
|
|
5821
|
+
case 114:
|
|
5822
|
+
result += "\r";
|
|
5823
|
+
break;
|
|
5824
|
+
case 116:
|
|
5825
|
+
result += " ";
|
|
5826
|
+
break;
|
|
5827
|
+
case 117:
|
|
5828
|
+
const ch3 = scanHexDigits(4);
|
|
5829
|
+
if (ch3 >= 0) {
|
|
5830
|
+
result += String.fromCharCode(ch3);
|
|
5831
|
+
} else {
|
|
5832
|
+
scanError = 4;
|
|
5833
|
+
}
|
|
5834
|
+
break;
|
|
5835
|
+
default:
|
|
5836
|
+
scanError = 5;
|
|
5837
|
+
}
|
|
5838
|
+
start = pos;
|
|
5839
|
+
continue;
|
|
5840
|
+
}
|
|
5841
|
+
if (ch >= 0 && ch <= 31) {
|
|
5842
|
+
if (isLineBreak(ch)) {
|
|
5843
|
+
result += text2.substring(start, pos);
|
|
5844
|
+
scanError = 2;
|
|
5845
|
+
break;
|
|
5846
|
+
} else {
|
|
5847
|
+
scanError = 6;
|
|
5848
|
+
}
|
|
5849
|
+
}
|
|
5850
|
+
pos++;
|
|
5851
|
+
}
|
|
5852
|
+
return result;
|
|
5853
|
+
}
|
|
5854
|
+
function scanNext() {
|
|
5855
|
+
value = "";
|
|
5856
|
+
scanError = 0;
|
|
5857
|
+
tokenOffset = pos;
|
|
5858
|
+
lineStartOffset = lineNumber;
|
|
5859
|
+
prevTokenLineStartOffset = tokenLineStartOffset;
|
|
5860
|
+
if (pos >= len) {
|
|
5861
|
+
tokenOffset = len;
|
|
5862
|
+
return token = 17;
|
|
5863
|
+
}
|
|
5864
|
+
let code2 = text2.charCodeAt(pos);
|
|
5865
|
+
if (isWhiteSpace(code2)) {
|
|
5866
|
+
do {
|
|
5867
|
+
pos++;
|
|
5868
|
+
value += String.fromCharCode(code2);
|
|
5869
|
+
code2 = text2.charCodeAt(pos);
|
|
5870
|
+
} while (isWhiteSpace(code2));
|
|
5871
|
+
return token = 15;
|
|
5872
|
+
}
|
|
5873
|
+
if (isLineBreak(code2)) {
|
|
5874
|
+
pos++;
|
|
5875
|
+
value += String.fromCharCode(code2);
|
|
5876
|
+
if (code2 === 13 && text2.charCodeAt(pos) === 10) {
|
|
5877
|
+
pos++;
|
|
5878
|
+
value += "\n";
|
|
5879
|
+
}
|
|
5880
|
+
lineNumber++;
|
|
5881
|
+
tokenLineStartOffset = pos;
|
|
5882
|
+
return token = 14;
|
|
5883
|
+
}
|
|
5884
|
+
switch (code2) {
|
|
5885
|
+
// tokens: []{}:,
|
|
5886
|
+
case 123:
|
|
5887
|
+
pos++;
|
|
5888
|
+
return token = 1;
|
|
5889
|
+
case 125:
|
|
5890
|
+
pos++;
|
|
5891
|
+
return token = 2;
|
|
5892
|
+
case 91:
|
|
5893
|
+
pos++;
|
|
5894
|
+
return token = 3;
|
|
5895
|
+
case 93:
|
|
5896
|
+
pos++;
|
|
5897
|
+
return token = 4;
|
|
5898
|
+
case 58:
|
|
5899
|
+
pos++;
|
|
5900
|
+
return token = 6;
|
|
5901
|
+
case 44:
|
|
5902
|
+
pos++;
|
|
5903
|
+
return token = 5;
|
|
5904
|
+
// strings
|
|
5905
|
+
case 34:
|
|
5906
|
+
pos++;
|
|
5907
|
+
value = scanString();
|
|
5908
|
+
return token = 10;
|
|
5909
|
+
// comments
|
|
5910
|
+
case 47:
|
|
5911
|
+
const start = pos - 1;
|
|
5912
|
+
if (text2.charCodeAt(pos + 1) === 47) {
|
|
5913
|
+
pos += 2;
|
|
5914
|
+
while (pos < len) {
|
|
5915
|
+
if (isLineBreak(text2.charCodeAt(pos))) {
|
|
5916
|
+
break;
|
|
5917
|
+
}
|
|
5918
|
+
pos++;
|
|
5919
|
+
}
|
|
5920
|
+
value = text2.substring(start, pos);
|
|
5921
|
+
return token = 12;
|
|
5922
|
+
}
|
|
5923
|
+
if (text2.charCodeAt(pos + 1) === 42) {
|
|
5924
|
+
pos += 2;
|
|
5925
|
+
const safeLength = len - 1;
|
|
5926
|
+
let commentClosed = false;
|
|
5927
|
+
while (pos < safeLength) {
|
|
5928
|
+
const ch = text2.charCodeAt(pos);
|
|
5929
|
+
if (ch === 42 && text2.charCodeAt(pos + 1) === 47) {
|
|
5930
|
+
pos += 2;
|
|
5931
|
+
commentClosed = true;
|
|
5932
|
+
break;
|
|
5933
|
+
}
|
|
5934
|
+
pos++;
|
|
5935
|
+
if (isLineBreak(ch)) {
|
|
5936
|
+
if (ch === 13 && text2.charCodeAt(pos) === 10) {
|
|
5937
|
+
pos++;
|
|
5938
|
+
}
|
|
5939
|
+
lineNumber++;
|
|
5940
|
+
tokenLineStartOffset = pos;
|
|
5941
|
+
}
|
|
5942
|
+
}
|
|
5943
|
+
if (!commentClosed) {
|
|
5944
|
+
pos++;
|
|
5945
|
+
scanError = 1;
|
|
5946
|
+
}
|
|
5947
|
+
value = text2.substring(start, pos);
|
|
5948
|
+
return token = 13;
|
|
5949
|
+
}
|
|
5950
|
+
value += String.fromCharCode(code2);
|
|
5951
|
+
pos++;
|
|
5952
|
+
return token = 16;
|
|
5953
|
+
// numbers
|
|
5954
|
+
case 45:
|
|
5955
|
+
value += String.fromCharCode(code2);
|
|
5956
|
+
pos++;
|
|
5957
|
+
if (pos === len || !isDigit(text2.charCodeAt(pos))) {
|
|
5958
|
+
return token = 16;
|
|
5959
|
+
}
|
|
5960
|
+
// found a minus, followed by a number so
|
|
5961
|
+
// we fall through to proceed with scanning
|
|
5962
|
+
// numbers
|
|
5963
|
+
case 48:
|
|
5964
|
+
case 49:
|
|
5965
|
+
case 50:
|
|
5966
|
+
case 51:
|
|
5967
|
+
case 52:
|
|
5968
|
+
case 53:
|
|
5969
|
+
case 54:
|
|
5970
|
+
case 55:
|
|
5971
|
+
case 56:
|
|
5972
|
+
case 57:
|
|
5973
|
+
value += scanNumber();
|
|
5974
|
+
return token = 11;
|
|
5975
|
+
// literals and unknown symbols
|
|
5976
|
+
default:
|
|
5977
|
+
while (pos < len && isUnknownContentCharacter(code2)) {
|
|
5978
|
+
pos++;
|
|
5979
|
+
code2 = text2.charCodeAt(pos);
|
|
5980
|
+
}
|
|
5981
|
+
if (tokenOffset !== pos) {
|
|
5982
|
+
value = text2.substring(tokenOffset, pos);
|
|
5983
|
+
switch (value) {
|
|
5984
|
+
case "true":
|
|
5985
|
+
return token = 8;
|
|
5986
|
+
case "false":
|
|
5987
|
+
return token = 9;
|
|
5988
|
+
case "null":
|
|
5989
|
+
return token = 7;
|
|
5990
|
+
}
|
|
5991
|
+
return token = 16;
|
|
5992
|
+
}
|
|
5993
|
+
value += String.fromCharCode(code2);
|
|
5994
|
+
pos++;
|
|
5995
|
+
return token = 16;
|
|
5996
|
+
}
|
|
5997
|
+
}
|
|
5998
|
+
function isUnknownContentCharacter(code2) {
|
|
5999
|
+
if (isWhiteSpace(code2) || isLineBreak(code2)) {
|
|
6000
|
+
return false;
|
|
6001
|
+
}
|
|
6002
|
+
switch (code2) {
|
|
6003
|
+
case 125:
|
|
6004
|
+
case 93:
|
|
6005
|
+
case 123:
|
|
6006
|
+
case 91:
|
|
6007
|
+
case 34:
|
|
6008
|
+
case 58:
|
|
6009
|
+
case 44:
|
|
6010
|
+
case 47:
|
|
6011
|
+
return false;
|
|
6012
|
+
}
|
|
6013
|
+
return true;
|
|
6014
|
+
}
|
|
6015
|
+
function scanNextNonTrivia() {
|
|
6016
|
+
let result;
|
|
6017
|
+
do {
|
|
6018
|
+
result = scanNext();
|
|
6019
|
+
} while (result >= 12 && result <= 15);
|
|
6020
|
+
return result;
|
|
6021
|
+
}
|
|
6022
|
+
return {
|
|
6023
|
+
setPosition,
|
|
6024
|
+
getPosition: () => pos,
|
|
6025
|
+
scan: ignoreTrivia ? scanNextNonTrivia : scanNext,
|
|
6026
|
+
getToken: () => token,
|
|
6027
|
+
getTokenValue: () => value,
|
|
6028
|
+
getTokenOffset: () => tokenOffset,
|
|
6029
|
+
getTokenLength: () => pos - tokenOffset,
|
|
6030
|
+
getTokenStartLine: () => lineStartOffset,
|
|
6031
|
+
getTokenStartCharacter: () => tokenOffset - prevTokenLineStartOffset,
|
|
6032
|
+
getTokenError: () => scanError
|
|
6033
|
+
};
|
|
6034
|
+
}
|
|
6035
|
+
function isWhiteSpace(ch) {
|
|
6036
|
+
return ch === 32 || ch === 9;
|
|
6037
|
+
}
|
|
6038
|
+
function isLineBreak(ch) {
|
|
6039
|
+
return ch === 10 || ch === 13;
|
|
6040
|
+
}
|
|
6041
|
+
function isDigit(ch) {
|
|
6042
|
+
return ch >= 48 && ch <= 57;
|
|
6043
|
+
}
|
|
6044
|
+
var CharacterCodes;
|
|
6045
|
+
(function(CharacterCodes2) {
|
|
6046
|
+
CharacterCodes2[CharacterCodes2["lineFeed"] = 10] = "lineFeed";
|
|
6047
|
+
CharacterCodes2[CharacterCodes2["carriageReturn"] = 13] = "carriageReturn";
|
|
6048
|
+
CharacterCodes2[CharacterCodes2["space"] = 32] = "space";
|
|
6049
|
+
CharacterCodes2[CharacterCodes2["_0"] = 48] = "_0";
|
|
6050
|
+
CharacterCodes2[CharacterCodes2["_1"] = 49] = "_1";
|
|
6051
|
+
CharacterCodes2[CharacterCodes2["_2"] = 50] = "_2";
|
|
6052
|
+
CharacterCodes2[CharacterCodes2["_3"] = 51] = "_3";
|
|
6053
|
+
CharacterCodes2[CharacterCodes2["_4"] = 52] = "_4";
|
|
6054
|
+
CharacterCodes2[CharacterCodes2["_5"] = 53] = "_5";
|
|
6055
|
+
CharacterCodes2[CharacterCodes2["_6"] = 54] = "_6";
|
|
6056
|
+
CharacterCodes2[CharacterCodes2["_7"] = 55] = "_7";
|
|
6057
|
+
CharacterCodes2[CharacterCodes2["_8"] = 56] = "_8";
|
|
6058
|
+
CharacterCodes2[CharacterCodes2["_9"] = 57] = "_9";
|
|
6059
|
+
CharacterCodes2[CharacterCodes2["a"] = 97] = "a";
|
|
6060
|
+
CharacterCodes2[CharacterCodes2["b"] = 98] = "b";
|
|
6061
|
+
CharacterCodes2[CharacterCodes2["c"] = 99] = "c";
|
|
6062
|
+
CharacterCodes2[CharacterCodes2["d"] = 100] = "d";
|
|
6063
|
+
CharacterCodes2[CharacterCodes2["e"] = 101] = "e";
|
|
6064
|
+
CharacterCodes2[CharacterCodes2["f"] = 102] = "f";
|
|
6065
|
+
CharacterCodes2[CharacterCodes2["g"] = 103] = "g";
|
|
6066
|
+
CharacterCodes2[CharacterCodes2["h"] = 104] = "h";
|
|
6067
|
+
CharacterCodes2[CharacterCodes2["i"] = 105] = "i";
|
|
6068
|
+
CharacterCodes2[CharacterCodes2["j"] = 106] = "j";
|
|
6069
|
+
CharacterCodes2[CharacterCodes2["k"] = 107] = "k";
|
|
6070
|
+
CharacterCodes2[CharacterCodes2["l"] = 108] = "l";
|
|
6071
|
+
CharacterCodes2[CharacterCodes2["m"] = 109] = "m";
|
|
6072
|
+
CharacterCodes2[CharacterCodes2["n"] = 110] = "n";
|
|
6073
|
+
CharacterCodes2[CharacterCodes2["o"] = 111] = "o";
|
|
6074
|
+
CharacterCodes2[CharacterCodes2["p"] = 112] = "p";
|
|
6075
|
+
CharacterCodes2[CharacterCodes2["q"] = 113] = "q";
|
|
6076
|
+
CharacterCodes2[CharacterCodes2["r"] = 114] = "r";
|
|
6077
|
+
CharacterCodes2[CharacterCodes2["s"] = 115] = "s";
|
|
6078
|
+
CharacterCodes2[CharacterCodes2["t"] = 116] = "t";
|
|
6079
|
+
CharacterCodes2[CharacterCodes2["u"] = 117] = "u";
|
|
6080
|
+
CharacterCodes2[CharacterCodes2["v"] = 118] = "v";
|
|
6081
|
+
CharacterCodes2[CharacterCodes2["w"] = 119] = "w";
|
|
6082
|
+
CharacterCodes2[CharacterCodes2["x"] = 120] = "x";
|
|
6083
|
+
CharacterCodes2[CharacterCodes2["y"] = 121] = "y";
|
|
6084
|
+
CharacterCodes2[CharacterCodes2["z"] = 122] = "z";
|
|
6085
|
+
CharacterCodes2[CharacterCodes2["A"] = 65] = "A";
|
|
6086
|
+
CharacterCodes2[CharacterCodes2["B"] = 66] = "B";
|
|
6087
|
+
CharacterCodes2[CharacterCodes2["C"] = 67] = "C";
|
|
6088
|
+
CharacterCodes2[CharacterCodes2["D"] = 68] = "D";
|
|
6089
|
+
CharacterCodes2[CharacterCodes2["E"] = 69] = "E";
|
|
6090
|
+
CharacterCodes2[CharacterCodes2["F"] = 70] = "F";
|
|
6091
|
+
CharacterCodes2[CharacterCodes2["G"] = 71] = "G";
|
|
6092
|
+
CharacterCodes2[CharacterCodes2["H"] = 72] = "H";
|
|
6093
|
+
CharacterCodes2[CharacterCodes2["I"] = 73] = "I";
|
|
6094
|
+
CharacterCodes2[CharacterCodes2["J"] = 74] = "J";
|
|
6095
|
+
CharacterCodes2[CharacterCodes2["K"] = 75] = "K";
|
|
6096
|
+
CharacterCodes2[CharacterCodes2["L"] = 76] = "L";
|
|
6097
|
+
CharacterCodes2[CharacterCodes2["M"] = 77] = "M";
|
|
6098
|
+
CharacterCodes2[CharacterCodes2["N"] = 78] = "N";
|
|
6099
|
+
CharacterCodes2[CharacterCodes2["O"] = 79] = "O";
|
|
6100
|
+
CharacterCodes2[CharacterCodes2["P"] = 80] = "P";
|
|
6101
|
+
CharacterCodes2[CharacterCodes2["Q"] = 81] = "Q";
|
|
6102
|
+
CharacterCodes2[CharacterCodes2["R"] = 82] = "R";
|
|
6103
|
+
CharacterCodes2[CharacterCodes2["S"] = 83] = "S";
|
|
6104
|
+
CharacterCodes2[CharacterCodes2["T"] = 84] = "T";
|
|
6105
|
+
CharacterCodes2[CharacterCodes2["U"] = 85] = "U";
|
|
6106
|
+
CharacterCodes2[CharacterCodes2["V"] = 86] = "V";
|
|
6107
|
+
CharacterCodes2[CharacterCodes2["W"] = 87] = "W";
|
|
6108
|
+
CharacterCodes2[CharacterCodes2["X"] = 88] = "X";
|
|
6109
|
+
CharacterCodes2[CharacterCodes2["Y"] = 89] = "Y";
|
|
6110
|
+
CharacterCodes2[CharacterCodes2["Z"] = 90] = "Z";
|
|
6111
|
+
CharacterCodes2[CharacterCodes2["asterisk"] = 42] = "asterisk";
|
|
6112
|
+
CharacterCodes2[CharacterCodes2["backslash"] = 92] = "backslash";
|
|
6113
|
+
CharacterCodes2[CharacterCodes2["closeBrace"] = 125] = "closeBrace";
|
|
6114
|
+
CharacterCodes2[CharacterCodes2["closeBracket"] = 93] = "closeBracket";
|
|
6115
|
+
CharacterCodes2[CharacterCodes2["colon"] = 58] = "colon";
|
|
6116
|
+
CharacterCodes2[CharacterCodes2["comma"] = 44] = "comma";
|
|
6117
|
+
CharacterCodes2[CharacterCodes2["dot"] = 46] = "dot";
|
|
6118
|
+
CharacterCodes2[CharacterCodes2["doubleQuote"] = 34] = "doubleQuote";
|
|
6119
|
+
CharacterCodes2[CharacterCodes2["minus"] = 45] = "minus";
|
|
6120
|
+
CharacterCodes2[CharacterCodes2["openBrace"] = 123] = "openBrace";
|
|
6121
|
+
CharacterCodes2[CharacterCodes2["openBracket"] = 91] = "openBracket";
|
|
6122
|
+
CharacterCodes2[CharacterCodes2["plus"] = 43] = "plus";
|
|
6123
|
+
CharacterCodes2[CharacterCodes2["slash"] = 47] = "slash";
|
|
6124
|
+
CharacterCodes2[CharacterCodes2["formFeed"] = 12] = "formFeed";
|
|
6125
|
+
CharacterCodes2[CharacterCodes2["tab"] = 9] = "tab";
|
|
6126
|
+
})(CharacterCodes || (CharacterCodes = {}));
|
|
6127
|
+
|
|
6128
|
+
// ../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/string-intern.js
|
|
6129
|
+
new Array(20).fill(0).map((_, index) => {
|
|
6130
|
+
return " ".repeat(index);
|
|
6131
|
+
});
|
|
6132
|
+
var maxCachedValues = 200;
|
|
6133
|
+
({
|
|
6134
|
+
" ": {
|
|
6135
|
+
"\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
6136
|
+
return "\n" + " ".repeat(index);
|
|
6137
|
+
}),
|
|
6138
|
+
"\r": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
6139
|
+
return "\r" + " ".repeat(index);
|
|
6140
|
+
}),
|
|
6141
|
+
"\r\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
6142
|
+
return "\r\n" + " ".repeat(index);
|
|
6143
|
+
})
|
|
6144
|
+
},
|
|
6145
|
+
" ": {
|
|
6146
|
+
"\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
6147
|
+
return "\n" + " ".repeat(index);
|
|
6148
|
+
}),
|
|
6149
|
+
"\r": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
6150
|
+
return "\r" + " ".repeat(index);
|
|
6151
|
+
}),
|
|
6152
|
+
"\r\n": new Array(maxCachedValues).fill(0).map((_, index) => {
|
|
6153
|
+
return "\r\n" + " ".repeat(index);
|
|
6154
|
+
})
|
|
6155
|
+
}
|
|
6156
|
+
});
|
|
6157
|
+
|
|
6158
|
+
// ../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/parser.js
|
|
6159
|
+
var ParseOptions;
|
|
6160
|
+
(function(ParseOptions2) {
|
|
6161
|
+
ParseOptions2.DEFAULT = {
|
|
6162
|
+
allowTrailingComma: false
|
|
6163
|
+
};
|
|
6164
|
+
})(ParseOptions || (ParseOptions = {}));
|
|
6165
|
+
function parseTree(text2, errors = [], options2 = ParseOptions.DEFAULT) {
|
|
6166
|
+
let currentParent = { type: "array", offset: -1, length: -1, children: [], parent: void 0 };
|
|
6167
|
+
function ensurePropertyComplete(endOffset) {
|
|
6168
|
+
if (currentParent.type === "property") {
|
|
6169
|
+
currentParent.length = endOffset - currentParent.offset;
|
|
6170
|
+
currentParent = currentParent.parent;
|
|
6171
|
+
}
|
|
6172
|
+
}
|
|
6173
|
+
function onValue(valueNode) {
|
|
6174
|
+
currentParent.children.push(valueNode);
|
|
6175
|
+
return valueNode;
|
|
6176
|
+
}
|
|
6177
|
+
const visitor = {
|
|
6178
|
+
onObjectBegin: (offset) => {
|
|
6179
|
+
currentParent = onValue({ type: "object", offset, length: -1, parent: currentParent, children: [] });
|
|
6180
|
+
},
|
|
6181
|
+
onObjectProperty: (name, offset, length) => {
|
|
6182
|
+
currentParent = onValue({ type: "property", offset, length: -1, parent: currentParent, children: [] });
|
|
6183
|
+
currentParent.children.push({ type: "string", value: name, offset, length, parent: currentParent });
|
|
6184
|
+
},
|
|
6185
|
+
onObjectEnd: (offset, length) => {
|
|
6186
|
+
ensurePropertyComplete(offset + length);
|
|
6187
|
+
currentParent.length = offset + length - currentParent.offset;
|
|
6188
|
+
currentParent = currentParent.parent;
|
|
6189
|
+
ensurePropertyComplete(offset + length);
|
|
6190
|
+
},
|
|
6191
|
+
onArrayBegin: (offset, length) => {
|
|
6192
|
+
currentParent = onValue({ type: "array", offset, length: -1, parent: currentParent, children: [] });
|
|
6193
|
+
},
|
|
6194
|
+
onArrayEnd: (offset, length) => {
|
|
6195
|
+
currentParent.length = offset + length - currentParent.offset;
|
|
6196
|
+
currentParent = currentParent.parent;
|
|
6197
|
+
ensurePropertyComplete(offset + length);
|
|
6198
|
+
},
|
|
6199
|
+
onLiteralValue: (value, offset, length) => {
|
|
6200
|
+
onValue({ type: getNodeType(value), offset, length, parent: currentParent, value });
|
|
6201
|
+
ensurePropertyComplete(offset + length);
|
|
6202
|
+
},
|
|
6203
|
+
onSeparator: (sep, offset, length) => {
|
|
6204
|
+
if (currentParent.type === "property") {
|
|
6205
|
+
if (sep === ":") {
|
|
6206
|
+
currentParent.colonOffset = offset;
|
|
6207
|
+
} else if (sep === ",") {
|
|
6208
|
+
ensurePropertyComplete(offset);
|
|
6209
|
+
}
|
|
6210
|
+
}
|
|
6211
|
+
},
|
|
6212
|
+
onError: (error, offset, length) => {
|
|
6213
|
+
errors.push({ error, offset, length });
|
|
6214
|
+
}
|
|
6215
|
+
};
|
|
6216
|
+
visit(text2, visitor, options2);
|
|
6217
|
+
const result = currentParent.children[0];
|
|
6218
|
+
if (result) {
|
|
6219
|
+
delete result.parent;
|
|
6220
|
+
}
|
|
6221
|
+
return result;
|
|
6222
|
+
}
|
|
6223
|
+
function getNodePath(node) {
|
|
6224
|
+
if (!node.parent || !node.parent.children) {
|
|
6225
|
+
return [];
|
|
6226
|
+
}
|
|
6227
|
+
const path = getNodePath(node.parent);
|
|
6228
|
+
if (node.parent.type === "property") {
|
|
6229
|
+
const key3 = node.parent.children[0].value;
|
|
6230
|
+
path.push(key3);
|
|
6231
|
+
} else if (node.parent.type === "array") {
|
|
6232
|
+
const index = node.parent.children.indexOf(node);
|
|
6233
|
+
if (index !== -1) {
|
|
6234
|
+
path.push(index);
|
|
6235
|
+
}
|
|
6236
|
+
}
|
|
6237
|
+
return path;
|
|
6238
|
+
}
|
|
6239
|
+
function contains(node, offset, includeRightBound = false) {
|
|
6240
|
+
return offset >= node.offset && offset < node.offset + node.length || includeRightBound && offset === node.offset + node.length;
|
|
6241
|
+
}
|
|
6242
|
+
function findNodeAtOffset(node, offset, includeRightBound = false) {
|
|
6243
|
+
if (contains(node, offset, includeRightBound)) {
|
|
6244
|
+
const children = node.children;
|
|
6245
|
+
if (Array.isArray(children)) {
|
|
6246
|
+
for (let i = 0; i < children.length && children[i].offset <= offset; i++) {
|
|
6247
|
+
const item = findNodeAtOffset(children[i], offset, includeRightBound);
|
|
6248
|
+
if (item) {
|
|
6249
|
+
return item;
|
|
6250
|
+
}
|
|
6251
|
+
}
|
|
6252
|
+
}
|
|
6253
|
+
return node;
|
|
6254
|
+
}
|
|
6255
|
+
return void 0;
|
|
6256
|
+
}
|
|
6257
|
+
function visit(text2, visitor, options2 = ParseOptions.DEFAULT) {
|
|
6258
|
+
const _scanner = createScanner(text2, false);
|
|
6259
|
+
const _jsonPath = [];
|
|
6260
|
+
let suppressedCallbacks = 0;
|
|
6261
|
+
function toNoArgVisit(visitFunction) {
|
|
6262
|
+
return visitFunction ? () => suppressedCallbacks === 0 && visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
|
|
6263
|
+
}
|
|
6264
|
+
function toOneArgVisit(visitFunction) {
|
|
6265
|
+
return visitFunction ? (arg) => suppressedCallbacks === 0 && visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
|
|
6266
|
+
}
|
|
6267
|
+
function toOneArgVisitWithPath(visitFunction) {
|
|
6268
|
+
return visitFunction ? (arg) => suppressedCallbacks === 0 && visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice()) : () => true;
|
|
6269
|
+
}
|
|
6270
|
+
function toBeginVisit(visitFunction) {
|
|
6271
|
+
return visitFunction ? () => {
|
|
6272
|
+
if (suppressedCallbacks > 0) {
|
|
6273
|
+
suppressedCallbacks++;
|
|
6274
|
+
} else {
|
|
6275
|
+
let cbReturn = visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice());
|
|
6276
|
+
if (cbReturn === false) {
|
|
6277
|
+
suppressedCallbacks = 1;
|
|
6278
|
+
}
|
|
6279
|
+
}
|
|
6280
|
+
} : () => true;
|
|
6281
|
+
}
|
|
6282
|
+
function toEndVisit(visitFunction) {
|
|
6283
|
+
return visitFunction ? () => {
|
|
6284
|
+
if (suppressedCallbacks > 0) {
|
|
6285
|
+
suppressedCallbacks--;
|
|
6286
|
+
}
|
|
6287
|
+
if (suppressedCallbacks === 0) {
|
|
6288
|
+
visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter());
|
|
6289
|
+
}
|
|
6290
|
+
} : () => true;
|
|
6291
|
+
}
|
|
6292
|
+
const onObjectBegin = toBeginVisit(visitor.onObjectBegin), onObjectProperty = toOneArgVisitWithPath(visitor.onObjectProperty), onObjectEnd = toEndVisit(visitor.onObjectEnd), onArrayBegin = toBeginVisit(visitor.onArrayBegin), onArrayEnd = toEndVisit(visitor.onArrayEnd), onLiteralValue = toOneArgVisitWithPath(visitor.onLiteralValue), onSeparator = toOneArgVisit(visitor.onSeparator), onComment = toNoArgVisit(visitor.onComment), onError = toOneArgVisit(visitor.onError);
|
|
6293
|
+
const disallowComments = options2 && options2.disallowComments;
|
|
6294
|
+
const allowTrailingComma = options2 && options2.allowTrailingComma;
|
|
6295
|
+
function scanNext() {
|
|
6296
|
+
while (true) {
|
|
6297
|
+
const token = _scanner.scan();
|
|
6298
|
+
switch (_scanner.getTokenError()) {
|
|
6299
|
+
case 4:
|
|
6300
|
+
handleError(
|
|
6301
|
+
14
|
|
6302
|
+
/* ParseErrorCode.InvalidUnicode */
|
|
6303
|
+
);
|
|
6304
|
+
break;
|
|
6305
|
+
case 5:
|
|
6306
|
+
handleError(
|
|
6307
|
+
15
|
|
6308
|
+
/* ParseErrorCode.InvalidEscapeCharacter */
|
|
6309
|
+
);
|
|
6310
|
+
break;
|
|
6311
|
+
case 3:
|
|
6312
|
+
handleError(
|
|
6313
|
+
13
|
|
6314
|
+
/* ParseErrorCode.UnexpectedEndOfNumber */
|
|
6315
|
+
);
|
|
6316
|
+
break;
|
|
6317
|
+
case 1:
|
|
6318
|
+
if (!disallowComments) {
|
|
6319
|
+
handleError(
|
|
6320
|
+
11
|
|
6321
|
+
/* ParseErrorCode.UnexpectedEndOfComment */
|
|
6322
|
+
);
|
|
6323
|
+
}
|
|
6324
|
+
break;
|
|
6325
|
+
case 2:
|
|
6326
|
+
handleError(
|
|
6327
|
+
12
|
|
6328
|
+
/* ParseErrorCode.UnexpectedEndOfString */
|
|
6329
|
+
);
|
|
6330
|
+
break;
|
|
6331
|
+
case 6:
|
|
6332
|
+
handleError(
|
|
6333
|
+
16
|
|
6334
|
+
/* ParseErrorCode.InvalidCharacter */
|
|
6335
|
+
);
|
|
6336
|
+
break;
|
|
6337
|
+
}
|
|
6338
|
+
switch (token) {
|
|
6339
|
+
case 12:
|
|
6340
|
+
case 13:
|
|
6341
|
+
if (disallowComments) {
|
|
6342
|
+
handleError(
|
|
6343
|
+
10
|
|
6344
|
+
/* ParseErrorCode.InvalidCommentToken */
|
|
6345
|
+
);
|
|
6346
|
+
} else {
|
|
6347
|
+
onComment();
|
|
6348
|
+
}
|
|
6349
|
+
break;
|
|
6350
|
+
case 16:
|
|
6351
|
+
handleError(
|
|
6352
|
+
1
|
|
6353
|
+
/* ParseErrorCode.InvalidSymbol */
|
|
6354
|
+
);
|
|
6355
|
+
break;
|
|
6356
|
+
case 15:
|
|
6357
|
+
case 14:
|
|
6358
|
+
break;
|
|
6359
|
+
default:
|
|
6360
|
+
return token;
|
|
6361
|
+
}
|
|
6362
|
+
}
|
|
6363
|
+
}
|
|
6364
|
+
function handleError(error, skipUntilAfter = [], skipUntil = []) {
|
|
6365
|
+
onError(error);
|
|
6366
|
+
if (skipUntilAfter.length + skipUntil.length > 0) {
|
|
6367
|
+
let token = _scanner.getToken();
|
|
6368
|
+
while (token !== 17) {
|
|
6369
|
+
if (skipUntilAfter.indexOf(token) !== -1) {
|
|
6370
|
+
scanNext();
|
|
6371
|
+
break;
|
|
6372
|
+
} else if (skipUntil.indexOf(token) !== -1) {
|
|
6373
|
+
break;
|
|
6374
|
+
}
|
|
6375
|
+
token = scanNext();
|
|
6376
|
+
}
|
|
6377
|
+
}
|
|
6378
|
+
}
|
|
6379
|
+
function parseString(isValue) {
|
|
6380
|
+
const value = _scanner.getTokenValue();
|
|
6381
|
+
if (isValue) {
|
|
6382
|
+
onLiteralValue(value);
|
|
6383
|
+
} else {
|
|
6384
|
+
onObjectProperty(value);
|
|
6385
|
+
_jsonPath.push(value);
|
|
6386
|
+
}
|
|
6387
|
+
scanNext();
|
|
6388
|
+
return true;
|
|
6389
|
+
}
|
|
6390
|
+
function parseLiteral() {
|
|
6391
|
+
switch (_scanner.getToken()) {
|
|
6392
|
+
case 11:
|
|
6393
|
+
const tokenValue = _scanner.getTokenValue();
|
|
6394
|
+
let value = Number(tokenValue);
|
|
6395
|
+
if (isNaN(value)) {
|
|
6396
|
+
handleError(
|
|
6397
|
+
2
|
|
6398
|
+
/* ParseErrorCode.InvalidNumberFormat */
|
|
6399
|
+
);
|
|
6400
|
+
value = 0;
|
|
6401
|
+
}
|
|
6402
|
+
onLiteralValue(value);
|
|
6403
|
+
break;
|
|
6404
|
+
case 7:
|
|
6405
|
+
onLiteralValue(null);
|
|
6406
|
+
break;
|
|
6407
|
+
case 8:
|
|
6408
|
+
onLiteralValue(true);
|
|
6409
|
+
break;
|
|
6410
|
+
case 9:
|
|
6411
|
+
onLiteralValue(false);
|
|
6412
|
+
break;
|
|
6413
|
+
default:
|
|
6414
|
+
return false;
|
|
6415
|
+
}
|
|
6416
|
+
scanNext();
|
|
6417
|
+
return true;
|
|
6418
|
+
}
|
|
6419
|
+
function parseProperty() {
|
|
6420
|
+
if (_scanner.getToken() !== 10) {
|
|
6421
|
+
handleError(3, [], [
|
|
6422
|
+
2,
|
|
6423
|
+
5
|
|
6424
|
+
/* SyntaxKind.CommaToken */
|
|
6425
|
+
]);
|
|
6426
|
+
return false;
|
|
6427
|
+
}
|
|
6428
|
+
parseString(false);
|
|
6429
|
+
if (_scanner.getToken() === 6) {
|
|
6430
|
+
onSeparator(":");
|
|
6431
|
+
scanNext();
|
|
6432
|
+
if (!parseValue()) {
|
|
6433
|
+
handleError(4, [], [
|
|
6434
|
+
2,
|
|
6435
|
+
5
|
|
6436
|
+
/* SyntaxKind.CommaToken */
|
|
6437
|
+
]);
|
|
6438
|
+
}
|
|
6439
|
+
} else {
|
|
6440
|
+
handleError(5, [], [
|
|
6441
|
+
2,
|
|
6442
|
+
5
|
|
6443
|
+
/* SyntaxKind.CommaToken */
|
|
6444
|
+
]);
|
|
6445
|
+
}
|
|
6446
|
+
_jsonPath.pop();
|
|
6447
|
+
return true;
|
|
6448
|
+
}
|
|
6449
|
+
function parseObject() {
|
|
6450
|
+
onObjectBegin();
|
|
6451
|
+
scanNext();
|
|
6452
|
+
let needsComma = false;
|
|
6453
|
+
while (_scanner.getToken() !== 2 && _scanner.getToken() !== 17) {
|
|
6454
|
+
if (_scanner.getToken() === 5) {
|
|
6455
|
+
if (!needsComma) {
|
|
6456
|
+
handleError(4, [], []);
|
|
6457
|
+
}
|
|
6458
|
+
onSeparator(",");
|
|
6459
|
+
scanNext();
|
|
6460
|
+
if (_scanner.getToken() === 2 && allowTrailingComma) {
|
|
6461
|
+
break;
|
|
6462
|
+
}
|
|
6463
|
+
} else if (needsComma) {
|
|
6464
|
+
handleError(6, [], []);
|
|
6465
|
+
}
|
|
6466
|
+
if (!parseProperty()) {
|
|
6467
|
+
handleError(4, [], [
|
|
6468
|
+
2,
|
|
6469
|
+
5
|
|
6470
|
+
/* SyntaxKind.CommaToken */
|
|
6471
|
+
]);
|
|
6472
|
+
}
|
|
6473
|
+
needsComma = true;
|
|
6474
|
+
}
|
|
6475
|
+
onObjectEnd();
|
|
6476
|
+
if (_scanner.getToken() !== 2) {
|
|
6477
|
+
handleError(7, [
|
|
6478
|
+
2
|
|
6479
|
+
/* SyntaxKind.CloseBraceToken */
|
|
6480
|
+
], []);
|
|
6481
|
+
} else {
|
|
6482
|
+
scanNext();
|
|
6483
|
+
}
|
|
6484
|
+
return true;
|
|
6485
|
+
}
|
|
6486
|
+
function parseArray() {
|
|
6487
|
+
onArrayBegin();
|
|
6488
|
+
scanNext();
|
|
6489
|
+
let isFirstElement = true;
|
|
6490
|
+
let needsComma = false;
|
|
6491
|
+
while (_scanner.getToken() !== 4 && _scanner.getToken() !== 17) {
|
|
6492
|
+
if (_scanner.getToken() === 5) {
|
|
6493
|
+
if (!needsComma) {
|
|
6494
|
+
handleError(4, [], []);
|
|
6495
|
+
}
|
|
6496
|
+
onSeparator(",");
|
|
6497
|
+
scanNext();
|
|
6498
|
+
if (_scanner.getToken() === 4 && allowTrailingComma) {
|
|
6499
|
+
break;
|
|
6500
|
+
}
|
|
6501
|
+
} else if (needsComma) {
|
|
6502
|
+
handleError(6, [], []);
|
|
6503
|
+
}
|
|
6504
|
+
if (isFirstElement) {
|
|
6505
|
+
_jsonPath.push(0);
|
|
6506
|
+
isFirstElement = false;
|
|
6507
|
+
} else {
|
|
6508
|
+
_jsonPath[_jsonPath.length - 1]++;
|
|
6509
|
+
}
|
|
6510
|
+
if (!parseValue()) {
|
|
6511
|
+
handleError(4, [], [
|
|
6512
|
+
4,
|
|
6513
|
+
5
|
|
6514
|
+
/* SyntaxKind.CommaToken */
|
|
6515
|
+
]);
|
|
6516
|
+
}
|
|
6517
|
+
needsComma = true;
|
|
6518
|
+
}
|
|
6519
|
+
onArrayEnd();
|
|
6520
|
+
if (!isFirstElement) {
|
|
6521
|
+
_jsonPath.pop();
|
|
6522
|
+
}
|
|
6523
|
+
if (_scanner.getToken() !== 4) {
|
|
6524
|
+
handleError(8, [
|
|
6525
|
+
4
|
|
6526
|
+
/* SyntaxKind.CloseBracketToken */
|
|
6527
|
+
], []);
|
|
6528
|
+
} else {
|
|
6529
|
+
scanNext();
|
|
6530
|
+
}
|
|
6531
|
+
return true;
|
|
6532
|
+
}
|
|
6533
|
+
function parseValue() {
|
|
6534
|
+
switch (_scanner.getToken()) {
|
|
6535
|
+
case 3:
|
|
6536
|
+
return parseArray();
|
|
6537
|
+
case 1:
|
|
6538
|
+
return parseObject();
|
|
6539
|
+
case 10:
|
|
6540
|
+
return parseString(true);
|
|
6541
|
+
default:
|
|
6542
|
+
return parseLiteral();
|
|
6543
|
+
}
|
|
6544
|
+
}
|
|
6545
|
+
scanNext();
|
|
6546
|
+
if (_scanner.getToken() === 17) {
|
|
6547
|
+
if (options2.allowEmptyContent) {
|
|
6548
|
+
return true;
|
|
6549
|
+
}
|
|
6550
|
+
handleError(4, [], []);
|
|
6551
|
+
return false;
|
|
6552
|
+
}
|
|
6553
|
+
if (!parseValue()) {
|
|
6554
|
+
handleError(4, [], []);
|
|
6555
|
+
return false;
|
|
6556
|
+
}
|
|
6557
|
+
if (_scanner.getToken() !== 17) {
|
|
6558
|
+
handleError(9, [], []);
|
|
6559
|
+
}
|
|
6560
|
+
return true;
|
|
6561
|
+
}
|
|
6562
|
+
function getNodeType(value) {
|
|
6563
|
+
switch (typeof value) {
|
|
6564
|
+
case "boolean":
|
|
6565
|
+
return "boolean";
|
|
6566
|
+
case "number":
|
|
6567
|
+
return "number";
|
|
6568
|
+
case "string":
|
|
6569
|
+
return "string";
|
|
6570
|
+
case "object": {
|
|
6571
|
+
if (!value) {
|
|
6572
|
+
return "null";
|
|
6573
|
+
} else if (Array.isArray(value)) {
|
|
6574
|
+
return "array";
|
|
6575
|
+
}
|
|
6576
|
+
return "object";
|
|
6577
|
+
}
|
|
6578
|
+
default:
|
|
6579
|
+
return "null";
|
|
6580
|
+
}
|
|
6581
|
+
}
|
|
6582
|
+
|
|
6583
|
+
// ../../node_modules/.pnpm/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/main.js
|
|
6584
|
+
var ScanError;
|
|
6585
|
+
(function(ScanError2) {
|
|
6586
|
+
ScanError2[ScanError2["None"] = 0] = "None";
|
|
6587
|
+
ScanError2[ScanError2["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment";
|
|
6588
|
+
ScanError2[ScanError2["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString";
|
|
6589
|
+
ScanError2[ScanError2["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber";
|
|
6590
|
+
ScanError2[ScanError2["InvalidUnicode"] = 4] = "InvalidUnicode";
|
|
6591
|
+
ScanError2[ScanError2["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter";
|
|
6592
|
+
ScanError2[ScanError2["InvalidCharacter"] = 6] = "InvalidCharacter";
|
|
6593
|
+
})(ScanError || (ScanError = {}));
|
|
6594
|
+
var SyntaxKind;
|
|
6595
|
+
(function(SyntaxKind2) {
|
|
6596
|
+
SyntaxKind2[SyntaxKind2["OpenBraceToken"] = 1] = "OpenBraceToken";
|
|
6597
|
+
SyntaxKind2[SyntaxKind2["CloseBraceToken"] = 2] = "CloseBraceToken";
|
|
6598
|
+
SyntaxKind2[SyntaxKind2["OpenBracketToken"] = 3] = "OpenBracketToken";
|
|
6599
|
+
SyntaxKind2[SyntaxKind2["CloseBracketToken"] = 4] = "CloseBracketToken";
|
|
6600
|
+
SyntaxKind2[SyntaxKind2["CommaToken"] = 5] = "CommaToken";
|
|
6601
|
+
SyntaxKind2[SyntaxKind2["ColonToken"] = 6] = "ColonToken";
|
|
6602
|
+
SyntaxKind2[SyntaxKind2["NullKeyword"] = 7] = "NullKeyword";
|
|
6603
|
+
SyntaxKind2[SyntaxKind2["TrueKeyword"] = 8] = "TrueKeyword";
|
|
6604
|
+
SyntaxKind2[SyntaxKind2["FalseKeyword"] = 9] = "FalseKeyword";
|
|
6605
|
+
SyntaxKind2[SyntaxKind2["StringLiteral"] = 10] = "StringLiteral";
|
|
6606
|
+
SyntaxKind2[SyntaxKind2["NumericLiteral"] = 11] = "NumericLiteral";
|
|
6607
|
+
SyntaxKind2[SyntaxKind2["LineCommentTrivia"] = 12] = "LineCommentTrivia";
|
|
6608
|
+
SyntaxKind2[SyntaxKind2["BlockCommentTrivia"] = 13] = "BlockCommentTrivia";
|
|
6609
|
+
SyntaxKind2[SyntaxKind2["LineBreakTrivia"] = 14] = "LineBreakTrivia";
|
|
6610
|
+
SyntaxKind2[SyntaxKind2["Trivia"] = 15] = "Trivia";
|
|
6611
|
+
SyntaxKind2[SyntaxKind2["Unknown"] = 16] = "Unknown";
|
|
6612
|
+
SyntaxKind2[SyntaxKind2["EOF"] = 17] = "EOF";
|
|
6613
|
+
})(SyntaxKind || (SyntaxKind = {}));
|
|
6614
|
+
var parseTree2 = parseTree;
|
|
6615
|
+
var findNodeAtOffset2 = findNodeAtOffset;
|
|
6616
|
+
var getNodePath2 = getNodePath;
|
|
6617
|
+
var ParseErrorCode;
|
|
6618
|
+
(function(ParseErrorCode2) {
|
|
6619
|
+
ParseErrorCode2[ParseErrorCode2["InvalidSymbol"] = 1] = "InvalidSymbol";
|
|
6620
|
+
ParseErrorCode2[ParseErrorCode2["InvalidNumberFormat"] = 2] = "InvalidNumberFormat";
|
|
6621
|
+
ParseErrorCode2[ParseErrorCode2["PropertyNameExpected"] = 3] = "PropertyNameExpected";
|
|
6622
|
+
ParseErrorCode2[ParseErrorCode2["ValueExpected"] = 4] = "ValueExpected";
|
|
6623
|
+
ParseErrorCode2[ParseErrorCode2["ColonExpected"] = 5] = "ColonExpected";
|
|
6624
|
+
ParseErrorCode2[ParseErrorCode2["CommaExpected"] = 6] = "CommaExpected";
|
|
6625
|
+
ParseErrorCode2[ParseErrorCode2["CloseBraceExpected"] = 7] = "CloseBraceExpected";
|
|
6626
|
+
ParseErrorCode2[ParseErrorCode2["CloseBracketExpected"] = 8] = "CloseBracketExpected";
|
|
6627
|
+
ParseErrorCode2[ParseErrorCode2["EndOfFileExpected"] = 9] = "EndOfFileExpected";
|
|
6628
|
+
ParseErrorCode2[ParseErrorCode2["InvalidCommentToken"] = 10] = "InvalidCommentToken";
|
|
6629
|
+
ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment";
|
|
6630
|
+
ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString";
|
|
6631
|
+
ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber";
|
|
6632
|
+
ParseErrorCode2[ParseErrorCode2["InvalidUnicode"] = 14] = "InvalidUnicode";
|
|
6633
|
+
ParseErrorCode2[ParseErrorCode2["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter";
|
|
6634
|
+
ParseErrorCode2[ParseErrorCode2["InvalidCharacter"] = 16] = "InvalidCharacter";
|
|
6635
|
+
})(ParseErrorCode || (ParseErrorCode = {}));
|
|
6636
|
+
function printParseErrorCode(code2) {
|
|
6637
|
+
switch (code2) {
|
|
6638
|
+
case 1:
|
|
6639
|
+
return "InvalidSymbol";
|
|
6640
|
+
case 2:
|
|
6641
|
+
return "InvalidNumberFormat";
|
|
6642
|
+
case 3:
|
|
6643
|
+
return "PropertyNameExpected";
|
|
6644
|
+
case 4:
|
|
6645
|
+
return "ValueExpected";
|
|
6646
|
+
case 5:
|
|
6647
|
+
return "ColonExpected";
|
|
6648
|
+
case 6:
|
|
6649
|
+
return "CommaExpected";
|
|
6650
|
+
case 7:
|
|
6651
|
+
return "CloseBraceExpected";
|
|
6652
|
+
case 8:
|
|
6653
|
+
return "CloseBracketExpected";
|
|
6654
|
+
case 9:
|
|
6655
|
+
return "EndOfFileExpected";
|
|
6656
|
+
case 10:
|
|
6657
|
+
return "InvalidCommentToken";
|
|
6658
|
+
case 11:
|
|
6659
|
+
return "UnexpectedEndOfComment";
|
|
6660
|
+
case 12:
|
|
6661
|
+
return "UnexpectedEndOfString";
|
|
6662
|
+
case 13:
|
|
6663
|
+
return "UnexpectedEndOfNumber";
|
|
6664
|
+
case 14:
|
|
6665
|
+
return "InvalidUnicode";
|
|
6666
|
+
case 15:
|
|
6667
|
+
return "InvalidEscapeCharacter";
|
|
6668
|
+
case 16:
|
|
6669
|
+
return "InvalidCharacter";
|
|
6670
|
+
}
|
|
6671
|
+
return "<unknown ParseErrorCode>";
|
|
6672
|
+
}
|
|
6673
|
+
|
|
5708
6674
|
// src/patch.ts
|
|
5709
6675
|
var OPFPatchError = class extends Error {
|
|
5710
6676
|
code;
|
|
@@ -6327,7 +7293,7 @@ function createSchemaValue(schema, root = presentationSchema, depth2 = 0) {
|
|
|
6327
7293
|
function listSchemaFields() {
|
|
6328
7294
|
const result = [];
|
|
6329
7295
|
for (const [name, root] of Object.entries(schemas)) {
|
|
6330
|
-
const
|
|
7296
|
+
const visit2 = (schema, path) => {
|
|
6331
7297
|
if (!schema || typeof schema !== "object") return;
|
|
6332
7298
|
for (const [key3, child] of Object.entries(schema.properties ?? {})) {
|
|
6333
7299
|
result.push({
|
|
@@ -6339,18 +7305,18 @@ function listSchemaFields() {
|
|
|
6339
7305
|
type: child.type ?? null,
|
|
6340
7306
|
values: child.enum ?? (own3(child, "const") ? [child.const] : null)
|
|
6341
7307
|
});
|
|
6342
|
-
|
|
7308
|
+
visit2(child, [...path, "properties", key3]);
|
|
6343
7309
|
}
|
|
6344
|
-
for (const [key3, child] of Object.entries(schema.$defs ?? {}))
|
|
7310
|
+
for (const [key3, child] of Object.entries(schema.$defs ?? {})) visit2(child, [...path, "$defs", key3]);
|
|
6345
7311
|
for (const keyword of ["oneOf", "anyOf", "allOf"]) {
|
|
6346
7312
|
const members = schema[keyword] ?? [];
|
|
6347
|
-
for (let index = 0; index < members.length; index++)
|
|
7313
|
+
for (let index = 0; index < members.length; index++) visit2(members[index], [...path, keyword, String(index)]);
|
|
6348
7314
|
}
|
|
6349
|
-
if (schema.items)
|
|
6350
|
-
if (typeof schema.additionalProperties === "object")
|
|
6351
|
-
for (const [key3, child] of Object.entries(schema.patternProperties ?? {}))
|
|
7315
|
+
if (schema.items) visit2(schema.items, [...path, "items"]);
|
|
7316
|
+
if (typeof schema.additionalProperties === "object") visit2(schema.additionalProperties, [...path, "additionalProperties"]);
|
|
7317
|
+
for (const [key3, child] of Object.entries(schema.patternProperties ?? {})) visit2(child, [...path, "patternProperties", key3]);
|
|
6352
7318
|
};
|
|
6353
|
-
|
|
7319
|
+
visit2(root, []);
|
|
6354
7320
|
}
|
|
6355
7321
|
return result;
|
|
6356
7322
|
}
|
|
@@ -7630,7 +8596,7 @@ function analyzeJsonSyntax(text2, options2 = {}) {
|
|
|
7630
8596
|
|
|
7631
8597
|
// src/check-source.ts
|
|
7632
8598
|
function parseSource(source) {
|
|
7633
|
-
const errors = [], tree =
|
|
8599
|
+
const errors = [], tree = parseTree2(
|
|
7634
8600
|
source.startsWith("\uFEFF") ? " " + source.slice(1) : source,
|
|
7635
8601
|
errors,
|
|
7636
8602
|
{
|
|
@@ -7674,7 +8640,7 @@ function parseSource(source) {
|
|
|
7674
8640
|
if (keys.has(key3.value))
|
|
7675
8641
|
duplicates.push(
|
|
7676
8642
|
finding("opf/duplicate-key", {
|
|
7677
|
-
path: pointer4(
|
|
8643
|
+
path: pointer4(getNodePath2(key3)),
|
|
7678
8644
|
message: `Duplicate JSON property ${JSON.stringify(key3.value)}.`,
|
|
7679
8645
|
help: "Resolve the duplicate explicitly, preserving the intended content from both occurrences. JSON.parse would otherwise hide an earlier value.",
|
|
7680
8646
|
location: location(key3.offset, key3.length)
|
|
@@ -9449,16 +10415,16 @@ function schemaKeys(segments, context) {
|
|
|
9449
10415
|
if (context.keysOf) return context.keysOf(segments);
|
|
9450
10416
|
return attempt(() => [...new Set(schemaVariants(schemaAtPath(context.document, segments)).flatMap((variant) => Object.keys(variant.properties ?? {})))], []);
|
|
9451
10417
|
}
|
|
9452
|
-
function starterText(schema, property,
|
|
10418
|
+
function starterText(schema, property, format2) {
|
|
9453
10419
|
const example = schema?.examples?.find((value) => typeof value === "string" && !value.includes("..."));
|
|
9454
10420
|
const type = Array.isArray(schema?.type) ? schema?.type[0] : schema?.type;
|
|
9455
|
-
if (example !== void 0) return
|
|
10421
|
+
if (example !== void 0) return format2 === "json" ? JSON.stringify(example) : String(example);
|
|
9456
10422
|
if (type === "object") return "{ \u2026 }";
|
|
9457
10423
|
if (type === "array") return "[ \u2026 ]";
|
|
9458
10424
|
if (type === "number" || type === "integer") return "0";
|
|
9459
10425
|
if (type === "boolean") return "false";
|
|
9460
|
-
if (property === "id") return
|
|
9461
|
-
return
|
|
10426
|
+
if (property === "id") return format2 === "json" ? '"acme"' : "acme";
|
|
10427
|
+
return format2 === "json" ? '"\u2026"' : "\u2026";
|
|
9462
10428
|
}
|
|
9463
10429
|
function describeSchema(finding2, context, helpers) {
|
|
9464
10430
|
const { keyword, params: params2 = {}, alternatives } = finding2.validation ?? { keyword: "" };
|
|
@@ -9466,7 +10432,7 @@ function describeSchema(finding2, context, helpers) {
|
|
|
9466
10432
|
const label = fieldLabel(segments);
|
|
9467
10433
|
const actual = helpers.valueAt(segments);
|
|
9468
10434
|
const chord = helpers.chord;
|
|
9469
|
-
const
|
|
10435
|
+
const format2 = helpers.format;
|
|
9470
10436
|
switch (keyword) {
|
|
9471
10437
|
case "required": {
|
|
9472
10438
|
const property = String(params2.missingProperty ?? "");
|
|
@@ -9474,7 +10440,7 @@ function describeSchema(finding2, context, helpers) {
|
|
|
9474
10440
|
const shape = property === "data" ? chartShapeHelp(actual) : void 0;
|
|
9475
10441
|
if (shape) return { message: shape.message, next: shape.next };
|
|
9476
10442
|
const schema = context.schemaAt ? context.schemaAt([...segments, property]) : attempt(() => schemaAtPath(context.document, [...segments, property]), void 0);
|
|
9477
|
-
if (
|
|
10443
|
+
if (format2 === "json") {
|
|
9478
10444
|
const sample2 = property === "slides" ? '[ { "title": "\u2026" } ]' : starterText(schema, property, "json");
|
|
9479
10445
|
return { message: `${cap(where)} is missing ${code(property)}.`, next: `add "${property}": ${sample2}.` };
|
|
9480
10446
|
}
|
|
@@ -10396,4 +11362,4 @@ function assertValidCatalogRecord(kind, value) {
|
|
|
10396
11362
|
if (!report2.valid) throw new OPFValidationError(report2);
|
|
10397
11363
|
}
|
|
10398
11364
|
|
|
10399
|
-
export { BLOCK_AS_VALUES, BLOCK_OPTION_KEYS, CATALOG_SCHEMA, COMMON_KEYS, DEFAULT_VALIDATION_THRESHOLDS, FENCE_ATTRIBUTES, FENCE_KINDS, LINE_KEYWORDS, METRIC_KEYS, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, OPFValidationError, PATTERN_PHRASES, SLIDE_OPTION_KEYS, SOURCE_EXPLAIN, SPAN_FLAGS, SPAN_VALUES, UNRANKED_PRIORITY, activeSchema, analyzeJsonSyntax, applyPatch, applyPatchWithInverse, applyTextEdits, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogIconKinds, catalogKindAt, catalogSchemaNames, collectSlideLinks, createLocator, createSchemaValue, createValidator, credentialInSrc, describeField, describeFinding, distance, documentHash, escapePointerToken, findValidationRule, formatPointer, getAtPointer, hasPointer, idToken, invertPatch, isIdToken, jsonEqual, listSchemaFields, nearest, normalizePatch, parseInstant, parsePointer, parseSource, pointerFromPath, readPointer, refreshStaleLayouts, rememberByText, renameRecordKeys, resolveDrawnFontFamilies, resolveIdPatch, resolveIdPointer, resolveSchema, resolveSlideContext, resolveSlideScriptMeasurement, ruleDocumentation, schemaAtPath, schemaCatalogKinds, schemaLabel, schemaType, schemaVariants, segmentsOf, slideLink, slideLinkId, splitOpfPath, splitPointer2 as splitPointer, starterValue, toIdPatch, toIdPointer, unescapePointerToken, validate, validateCatalogRecord, validationCategories, validationRules, walkPatch };
|
|
11365
|
+
export { BLOCK_AS_VALUES, BLOCK_OPTION_KEYS, CATALOG_SCHEMA, COMMON_KEYS, DEFAULT_VALIDATION_THRESHOLDS, FENCE_ATTRIBUTES, FENCE_KINDS, LINE_KEYWORDS, METRIC_KEYS, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, OPFValidationError, PATTERN_PHRASES, SLIDE_OPTION_KEYS, SOURCE_EXPLAIN, SPAN_FLAGS, SPAN_VALUES, UNRANKED_PRIORITY, activeSchema, analyzeJsonSyntax, applyPatch, applyPatchWithInverse, applyTextEdits, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogIconKinds, catalogKindAt, catalogSchemaNames, collectSlideLinks, createLocator, createSchemaValue, createValidator, credentialInSrc, describeField, describeFinding, distance, documentHash, escapePointerToken, findNodeAtOffset2 as findNodeAtOffset, findValidationRule, formatPointer, getAtPointer, getNodePath2 as getNodePath, hasPointer, idToken, invertPatch, isIdToken, jsonEqual, listSchemaFields, nearest, normalizePatch, parseInstant, parsePointer, parseSource, parseTree2 as parseTree, pointerFromPath, readPointer, refreshStaleLayouts, rememberByText, renameRecordKeys, resolveDrawnFontFamilies, resolveIdPatch, resolveIdPointer, resolveSchema, resolveSlideContext, resolveSlideScriptMeasurement, ruleDocumentation, schemaAtPath, schemaCatalogKinds, schemaLabel, schemaType, schemaVariants, segmentsOf, slideLink, slideLinkId, splitOpfPath, splitPointer2 as splitPointer, starterValue, toIdPatch, toIdPointer, unescapePointerToken, validate, validateCatalogRecord, validationCategories, validationRules, walkPatch };
|