@jbpark/live-editor 4.6.1 → 6.0.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/README.ko.md +37 -35
- package/README.md +37 -35
- package/dist/{boundary-BLB80tyw.js → boundary-CySnDUs2.js} +5 -4
- package/dist/boundary-CySnDUs2.js.map +1 -0
- package/dist/{compile-Dxas-D05.js → compile-my0AjsCw.js} +8 -7
- package/dist/compile-my0AjsCw.js.map +1 -0
- package/dist/constants-st9gnJ5g.js +55 -0
- package/dist/constants-st9gnJ5g.js.map +1 -0
- package/dist/{context-B8MzP7_p.js → context-Bjq0CvBE.js} +3 -3
- package/dist/{context-B8MzP7_p.js.map → context-Bjq0CvBE.js.map} +1 -1
- package/dist/{core-Bgfek364.js → core-BNVuH8-l.js} +51 -14
- package/dist/core-BNVuH8-l.js.map +1 -0
- package/dist/{detect-typescript-Dr_oLniM.js → detect-typescript-CMF0FVKD.js} +2 -2
- package/dist/{detect-typescript-Dr_oLniM.js.map → detect-typescript-CMF0FVKD.js.map} +1 -1
- package/dist/dnd/index.d.ts +3 -2
- package/dist/dnd/index.js +3 -2
- package/dist/dnd-BvjEDo-x.js +4197 -0
- package/dist/dnd-BvjEDo-x.js.map +1 -0
- package/dist/document-BQhb7YR8.d.ts +17 -0
- package/dist/{document-CHO215iP.js → document-uHqw0mvr.js} +194 -109
- package/dist/document-uHqw0mvr.js.map +1 -0
- package/dist/edit-options-C_r9aCz4.d.ts +100 -0
- package/dist/editor/index.d.ts +1 -1
- package/dist/editor/index.js +2 -2
- package/dist/{editor-CMElfHer.js → editor-CvnzrM9J.js} +2 -2
- package/dist/{editor-CMElfHer.js.map → editor-CvnzrM9J.js.map} +1 -1
- package/dist/error/index.d.ts +1 -1
- package/dist/error/index.js +2 -2
- package/dist/{error-CN_GCnXB.js → error-CFzvnLCf.js} +18 -32
- package/dist/error-CFzvnLCf.js.map +1 -0
- package/dist/{index-DpDU1IAw.d.ts → index-92L7F440.d.ts} +2 -2
- package/dist/{index-DrWtSKXu.d.ts → index-BZpZwrxT.d.ts} +2 -2
- package/dist/index-C8h8TcIl.d.ts +15 -0
- package/dist/{index-13BDSrQc.d.ts → index-C93npmTU.d.ts} +4 -6
- package/dist/{index-DQkL37eL.d.ts → index-CqsS207F.d.ts} +6 -12
- package/dist/{index-CiWB0zFb.d.ts → index-DQcdHg_V.d.ts} +18 -136
- package/dist/{index-CRwEhJ7w.d.ts → index-DfIvkht8.d.ts} +3 -3
- package/dist/index.d.ts +12 -11
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/{messages-IBPs4TkZ.d.ts → messages-BpN3QIhj.d.ts} +8 -2
- package/dist/{messages-CSrMI4Rm.js → messages-DrINcRdG.js} +8 -2
- package/dist/messages-DrINcRdG.js.map +1 -0
- package/dist/preview/index.d.ts +2 -2
- package/dist/preview/index.js +2 -3
- package/dist/{preview-CtyG5UbH.js → preview-B05MkVIQ.js} +16 -13
- package/dist/preview-B05MkVIQ.js.map +1 -0
- package/dist/provider/index.d.ts +2 -2
- package/dist/provider/index.js +2 -2
- package/dist/{sections-jYuqS4KB.js → sections-DhH_aVf5.js} +4 -7
- package/dist/sections-DhH_aVf5.js.map +1 -0
- package/dist/style.css +809 -4950
- package/dist/{validate-DB59Z_Nx.d.ts → types-Czps1Txy.d.ts} +12 -28
- package/dist/ui-kit/index.d.ts +22 -0
- package/dist/{constants-DU17Tdwo.js → ui-kit/index.js} +147 -54
- package/dist/ui-kit/index.js.map +1 -0
- package/dist/ui-kit/style.css +5039 -0
- package/dist/update-2PJbwoS8.d.ts +68 -0
- package/dist/{items-BXXtMUNI.js → update-BuYQJqjq.js} +143 -392
- package/dist/update-BuYQJqjq.js.map +1 -0
- package/dist/{use-dynamic-tailwind-BP1toJkW.js → use-dynamic-tailwind-B3l1qZRW.js} +318 -287
- package/dist/use-dynamic-tailwind-B3l1qZRW.js.map +1 -0
- package/dist/use-field-state-iQGW0vc6.js +131 -0
- package/dist/use-field-state-iQGW0vc6.js.map +1 -0
- package/dist/utils/ast/index.d.ts +47 -4
- package/dist/utils/ast/index.js +4 -64
- package/dist/utils/ast/index.js.map +1 -1
- package/dist/utils/index.d.ts +13 -32
- package/dist/utils/index.js +4 -26
- package/dist/validate-CZz30Pnb.js +122 -0
- package/dist/validate-CZz30Pnb.js.map +1 -0
- package/dist/validate-CiA1LF6S.d.ts +33 -0
- package/package.json +20 -10
- package/dist/boundary-BLB80tyw.js.map +0 -1
- package/dist/compile-Dxas-D05.js.map +0 -1
- package/dist/constants-DU17Tdwo.js.map +0 -1
- package/dist/core-Bgfek364.js.map +0 -1
- package/dist/dnd-V8NAxd_R.js +0 -2755
- package/dist/dnd-V8NAxd_R.js.map +0 -1
- package/dist/document-CHO215iP.js.map +0 -1
- package/dist/document-DqRSCtsx.d.ts +0 -1614
- package/dist/error-CN_GCnXB.js.map +0 -1
- package/dist/index-C_PfR4X9.d.ts +0 -734
- package/dist/items-BXXtMUNI.js.map +0 -1
- package/dist/messages-CSrMI4Rm.js.map +0 -1
- package/dist/preview-CtyG5UbH.js.map +0 -1
- package/dist/sections-jYuqS4KB.js.map +0 -1
- package/dist/use-dynamic-tailwind-BP1toJkW.js.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/dist/validate-iLo8IONY.js +0 -64
- package/dist/validate-iLo8IONY.js.map +0 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { o as BindingOptions } from "./types-Czps1Txy.js";
|
|
2
|
+
//#region src/utils/ast/update.d.ts
|
|
3
|
+
type UpdateFailure = {
|
|
4
|
+
reason: 'element-not-found';
|
|
5
|
+
dataId: string;
|
|
6
|
+
} | {
|
|
7
|
+
reason: 'no-binding';
|
|
8
|
+
dataId: string;
|
|
9
|
+
} | {
|
|
10
|
+
reason: 'reserved-property';
|
|
11
|
+
dataId: string;
|
|
12
|
+
property: string;
|
|
13
|
+
} | {
|
|
14
|
+
reason: 'required-property';
|
|
15
|
+
dataId: string;
|
|
16
|
+
property: string;
|
|
17
|
+
} | {
|
|
18
|
+
reason: 'binding-not-declared';
|
|
19
|
+
dataId: string;
|
|
20
|
+
label: string;
|
|
21
|
+
property?: string;
|
|
22
|
+
} | {
|
|
23
|
+
reason: 'duplicate-binding';
|
|
24
|
+
dataId: string;
|
|
25
|
+
label: string;
|
|
26
|
+
property?: string;
|
|
27
|
+
count: number;
|
|
28
|
+
} | {
|
|
29
|
+
reason: 'attribute-not-found';
|
|
30
|
+
dataId: string;
|
|
31
|
+
property: string;
|
|
32
|
+
} | {
|
|
33
|
+
reason: 'self-closing';
|
|
34
|
+
dataId: string;
|
|
35
|
+
property: string;
|
|
36
|
+
} | {
|
|
37
|
+
reason: 'unsupported-syntax';
|
|
38
|
+
dataId: string;
|
|
39
|
+
property: string;
|
|
40
|
+
} | {
|
|
41
|
+
reason: 'parse-error';
|
|
42
|
+
error: unknown;
|
|
43
|
+
};
|
|
44
|
+
interface UpdateResult {
|
|
45
|
+
code: string;
|
|
46
|
+
success: boolean;
|
|
47
|
+
failure?: UpdateFailure;
|
|
48
|
+
}
|
|
49
|
+
declare const update: (code: string, dataId: string, label: string, value: unknown, property?: string, options?: BindingOptions) => UpdateResult;
|
|
50
|
+
interface UpdateEntry {
|
|
51
|
+
dataId: string;
|
|
52
|
+
label: string;
|
|
53
|
+
value: unknown;
|
|
54
|
+
property?: string;
|
|
55
|
+
}
|
|
56
|
+
type UpdateAllResult = {
|
|
57
|
+
success: true;
|
|
58
|
+
code: string;
|
|
59
|
+
} | {
|
|
60
|
+
success: false;
|
|
61
|
+
code: string;
|
|
62
|
+
failure: UpdateFailure;
|
|
63
|
+
index: number;
|
|
64
|
+
};
|
|
65
|
+
declare const updateAll: (raw: string, entries: UpdateEntry[], options?: BindingOptions) => UpdateAllResult;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { update as a, UpdateResult as i, UpdateEntry as n, updateAll as o, UpdateFailure as r, UpdateAllResult as t };
|
|
68
|
+
//# sourceMappingURL=update-2PJbwoS8.d.ts.map
|