@jbpark/live-editor 1.9.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ast-DiVN0l7x.mjs → ast-C0FNDLFQ.mjs} +2 -2
- package/dist/{ast-DiVN0l7x.mjs.map → ast-C0FNDLFQ.mjs.map} +1 -1
- package/dist/{document-DJDRM79h.mjs → document-CBw2uF_P.mjs} +39 -2
- package/dist/{document-DJDRM79h.mjs.map → document-CBw2uF_P.mjs.map} +1 -1
- package/dist/document-DqLm4Vqi.d.mts +1522 -0
- package/dist/index.d.mts +14 -2
- package/dist/index.mjs +177 -59
- package/dist/index.mjs.map +1 -1
- package/dist/utils/ast/index.d.mts +2 -1513
- package/dist/utils/ast/index.mjs +3 -3
- package/dist/utils/index.d.mts +2 -1
- package/dist/utils/index.mjs +3 -3
- package/dist/{utils-D1tlgtgj.mjs → utils-BjYg1Sh8.mjs} +2 -2
- package/dist/{utils-D1tlgtgj.mjs.map → utils-BjYg1Sh8.mjs.map} +1 -1
- package/package.json +2 -1
package/dist/utils/ast/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { _ as parseArrayExpression, a as bulkUpdate, c as extract, d as getCurrentValue, f as parseBinding, g as extractObjectProperties, h as extractNodeValue, i as replaceIds, m as createNodeFromValue, n as clone, o as update, p as arrayExpressionToCode, r as fillIds, s as clearExtractCache, t as validateBindingValue, u as findEditableChildren, v as parseValue, y as generateCode } from "../../ast-
|
|
1
|
+
import { a as generateSectionPreviews, c as replaceDocumentSections, i as generateSectionPreview, n as createSectionPreviewCache, o as getSections, r as generateDocumentCode, s as parseDocument, t as clearDocumentParseCache } from "../../document-CBw2uF_P.mjs";
|
|
2
|
+
import { _ as parseArrayExpression, a as bulkUpdate, c as extract, d as getCurrentValue, f as parseBinding, g as extractObjectProperties, h as extractNodeValue, i as replaceIds, m as createNodeFromValue, n as clone, o as update, p as arrayExpressionToCode, r as fillIds, s as clearExtractCache, t as validateBindingValue, u as findEditableChildren, v as parseValue, y as generateCode } from "../../ast-C0FNDLFQ.mjs";
|
|
3
3
|
|
|
4
|
-
export { arrayExpressionToCode, bulkUpdate, clearDocumentParseCache, clearExtractCache, clone, createNodeFromValue, extract, extractNodeValue, extractObjectProperties, fillIds, findEditableChildren, generateCode, generateDocumentCode, generateSectionPreview, generateSectionPreviews, getCurrentValue, getSections, parseArrayExpression, parseBinding, parseDocument, parseValue, replaceDocumentSections, replaceIds, update, validateBindingValue };
|
|
4
|
+
export { arrayExpressionToCode, bulkUpdate, clearDocumentParseCache, clearExtractCache, clone, createNodeFromValue, createSectionPreviewCache, extract, extractNodeValue, extractObjectProperties, fillIds, findEditableChildren, generateCode, generateDocumentCode, generateSectionPreview, generateSectionPreviews, getCurrentValue, getSections, parseArrayExpression, parseBinding, parseDocument, parseValue, replaceDocumentSections, replaceIds, update, validateBindingValue };
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { n as Section, t as Module } from "../index-DdSjzvA3.mjs";
|
|
2
|
+
import { i as createSectionPreviewCache, n as SectionPreviewCache } from "../document-DqLm4Vqi.mjs";
|
|
2
3
|
import * as ui from "@jbpark/ui-kit";
|
|
3
4
|
import * as utils from "@jbpark/ui-kit/utils";
|
|
4
5
|
|
|
@@ -24,5 +25,5 @@ declare const generateSections: (codes: string[], fullCode: string) => string[];
|
|
|
24
25
|
declare const getCachedScriptBlob: (src: string) => Promise<string>;
|
|
25
26
|
declare const preloadScripts: (scripts: string[]) => void;
|
|
26
27
|
//#endregion
|
|
27
|
-
export { baseModules, clearCompilationCache, cn, compile, detectTypeScript, extractSections, generateSection, generateSections, getCachedScriptBlob, preloadScripts, replaceSections, transformCode };
|
|
28
|
+
export { type SectionPreviewCache, baseModules, clearCompilationCache, cn, compile, createSectionPreviewCache, detectTypeScript, extractSections, generateSection, generateSections, getCachedScriptBlob, preloadScripts, replaceSections, transformCode };
|
|
28
29
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../document-
|
|
2
|
-
import { a as detectTypeScript, c as generateSections, d as replaceSections, f as transformCode, i as compile, l as getCachedScriptBlob, n as clearCompilationCache, o as extractSections, r as cn, s as generateSection, t as baseModules, u as preloadScripts } from "../utils-
|
|
1
|
+
import { n as createSectionPreviewCache } from "../document-CBw2uF_P.mjs";
|
|
2
|
+
import { a as detectTypeScript, c as generateSections, d as replaceSections, f as transformCode, i as compile, l as getCachedScriptBlob, n as clearCompilationCache, o as extractSections, r as cn, s as generateSection, t as baseModules, u as preloadScripts } from "../utils-BjYg1Sh8.mjs";
|
|
3
3
|
|
|
4
|
-
export { baseModules, clearCompilationCache, cn, compile, detectTypeScript, extractSections, generateSection, generateSections, getCachedScriptBlob, preloadScripts, replaceSections, transformCode };
|
|
4
|
+
export { baseModules, clearCompilationCache, cn, compile, createSectionPreviewCache, detectTypeScript, extractSections, generateSection, generateSections, getCachedScriptBlob, preloadScripts, replaceSections, transformCode };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as generateSectionPreviews, b as TS_PATTERNS, c as replaceDocumentSections, h as CONFIG, i as generateSectionPreview, l as createBoundedCache, o as getSections, s as parseDocument, y as REGEX } from "./document-CBw2uF_P.mjs";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import * as Babel from "@babel/standalone";
|
|
4
4
|
import * as ui from "@jbpark/ui-kit";
|
|
@@ -2033,4 +2033,4 @@ const preloadScripts = (scripts) => {
|
|
|
2033
2033
|
|
|
2034
2034
|
//#endregion
|
|
2035
2035
|
export { detectTypeScript as a, generateSections as c, replaceSections as d, transformCode as f, compile as i, getCachedScriptBlob as l, clearCompilationCache as n, extractSections as o, cn as r, generateSection as s, baseModules as t, preloadScripts as u };
|
|
2036
|
-
//# sourceMappingURL=utils-
|
|
2036
|
+
//# sourceMappingURL=utils-BjYg1Sh8.mjs.map
|