@jbpark/live-editor 4.5.0 → 4.6.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.ko.md +4 -1
- package/README.md +5 -1
- package/dist/{boundary-DnjGgsK6.js → boundary-BLB80tyw.js} +2 -2
- package/dist/boundary-BLB80tyw.js.map +1 -0
- package/dist/cache-B0-XcIxJ.js.map +1 -1
- package/dist/{compile-DDfk5P25.js → compile-Dxas-D05.js} +3 -3
- package/dist/compile-Dxas-D05.js.map +1 -0
- package/dist/{constants-h1JAgOeW.js → constants-DU17Tdwo.js} +3 -3
- package/dist/constants-DU17Tdwo.js.map +1 -0
- package/dist/{context-DsEXJl4h.js → context-B8MzP7_p.js} +3 -3
- package/dist/context-B8MzP7_p.js.map +1 -0
- package/dist/{core-CRsAGpei.js → core-Bgfek364.js} +2 -2
- package/dist/core-Bgfek364.js.map +1 -0
- package/dist/{detect-typescript-CCj9ALXc.js → detect-typescript-Dr_oLniM.js} +2 -2
- package/dist/detect-typescript-Dr_oLniM.js.map +1 -0
- package/dist/dnd/index.d.ts +1 -1
- package/dist/dnd/index.js +1 -1
- package/dist/{dnd-DGNp20Nk.js → dnd-V8NAxd_R.js} +435 -413
- package/dist/dnd-V8NAxd_R.js.map +1 -0
- package/dist/document-CHO215iP.js +33992 -0
- package/dist/document-CHO215iP.js.map +1 -0
- package/dist/{document-Ct4jW78J.d.ts → document-DqRSCtsx.d.ts} +496 -435
- package/dist/editor/index.js +2 -2
- package/dist/{editor-DQ8Q--qR.js → editor-CMElfHer.js} +2 -2
- package/dist/editor-CMElfHer.js.map +1 -0
- package/dist/editor-caches-ClMvdcQF.js.map +1 -1
- package/dist/error/index.d.ts +1 -1
- package/dist/error/index.js +2 -2
- package/dist/{error-DwqwjJ2C.js → error-CN_GCnXB.js} +3 -3
- package/dist/{error-DwqwjJ2C.js.map → error-CN_GCnXB.js.map} +1 -1
- package/dist/{index-vtyggWy0.d.ts → index-CRwEhJ7w.d.ts} +2 -2
- package/dist/index-C_PfR4X9.d.ts +734 -0
- package/dist/{index-P9Aifaui.d.ts → index-CiWB0zFb.d.ts} +72 -70
- package/dist/{index-WQgFy510.d.ts → index-DrWtSKXu.d.ts} +2 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -6
- package/dist/{items-DdrwGxJw.js → items-BXXtMUNI.js} +307 -390
- package/dist/items-BXXtMUNI.js.map +1 -0
- package/dist/{messages-CzUPVnzH.js → messages-CSrMI4Rm.js} +2 -1
- package/dist/messages-CSrMI4Rm.js.map +1 -0
- package/dist/{messages-Cp3g1mn1.d.ts → messages-IBPs4TkZ.d.ts} +2 -1
- package/dist/preview/index.js +2 -2
- package/dist/{preview-BKFgq_5u.js → preview-CtyG5UbH.js} +4 -4
- package/dist/{preview-BKFgq_5u.js.map → preview-CtyG5UbH.js.map} +1 -1
- package/dist/provider/index.d.ts +2 -2
- package/dist/provider/index.js +2 -2
- package/dist/{sections-BRH3KHYc.js → sections-jYuqS4KB.js} +3 -3
- package/dist/sections-jYuqS4KB.js.map +1 -0
- package/dist/states-Ci1AvoQ9.js.map +1 -1
- package/dist/{use-dynamic-tailwind-T9r9ExbR.js → use-dynamic-tailwind-BP1toJkW.js} +59 -39
- package/dist/use-dynamic-tailwind-BP1toJkW.js.map +1 -0
- package/dist/utils/ast/index.d.ts +2 -2
- package/dist/utils/ast/index.js +84 -2
- package/dist/utils/ast/index.js.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +4 -4
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/tailwind/index.js.map +1 -1
- package/dist/validate-iLo8IONY.js.map +1 -1
- package/package.json +5 -7
- package/dist/boundary-DnjGgsK6.js.map +0 -1
- package/dist/compile-DDfk5P25.js.map +0 -1
- package/dist/constants-h1JAgOeW.js.map +0 -1
- package/dist/context-DsEXJl4h.js.map +0 -1
- package/dist/core-CRsAGpei.js.map +0 -1
- package/dist/detect-typescript-CCj9ALXc.js.map +0 -1
- package/dist/dnd-DGNp20Nk.js.map +0 -1
- package/dist/document-DGHTfrda.js +0 -38667
- package/dist/document-DGHTfrda.js.map +0 -1
- package/dist/editor-DQ8Q--qR.js.map +0 -1
- package/dist/index-CHknA6k1.d.ts +0 -221
- package/dist/items-DdrwGxJw.js.map +0 -1
- package/dist/messages-CzUPVnzH.js.map +0 -1
- package/dist/sections-BRH3KHYc.js.map +0 -1
- package/dist/use-dynamic-tailwind-T9r9ExbR.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor-DQ8Q--qR.js","names":["Editor","EditorImpl"],"sources":["../src/components/editor/editor.tsx","../src/components/editor/index.ts"],"sourcesContent":["import { useCallback, useState } from 'react';\n\nimport { useDebouncedCallback } from '@jbpark/use-hooks';\n\nimport { useError, usePreview } from '~/components/context/states';\n\nimport Core, { type Props as CoreProps } from './core';\nimport { useFormatCode } from './use-format-code';\n\nexport interface EditorRenderData {\n value: string;\n onChange: (value: string) => void;\n // Same prettier-based formatting Core's own Cmd+S uses - reused rather\n // than reimplemented, so a custom editor can offer equivalent\n // format-on-save behavior without duplicating the prettier wiring.\n formatCode: (code: string) => Promise<string>;\n}\n\nexport interface Props extends Omit<CoreProps, 'value' | 'onSave' | 'onError'> {\n value?: string;\n defaultValue?: string;\n debounce?: number;\n // Full replacement for the built-in CodeMirror editor. Editor still owns\n // syncing `value` to the shared preview code (debounced), regardless of\n // which UI renders it - only the editing surface itself is customizable.\n renderEditor?: (data: EditorRenderData) => React.ReactNode;\n}\n\nconst Editor = ({\n defaultValue,\n value: _value,\n debounce = 1000,\n onChange: _onChange,\n renderEditor,\n fragment,\n prettierOptions,\n ...props\n}: Props) => {\n const { code, setCode } = usePreview();\n const { setError } = useError();\n\n // Controlled, the host owns the document. Uncontrolled, the provider does\n // (#341): `draft` shows each keystroke at once, while the provider only\n // hears about it after `debounce`. Without a draft, the editor had nowhere\n // to keep what was typed, so an uncontrolled editor dropped every edit.\n const controlled = _value !== undefined;\n const [draft, setDraft] = useState(() => defaultValue ?? code);\n\n // The last code this editor pushed, and the provider code it has already\n // seen. A provider change that isn't this editor's own push came from\n // somewhere else sharing the provider — an uncontrolled DnD, say — and the\n // draft follows it. Adjusted during render so no frame shows the old one.\n const [pushed, setPushed] = useState<string | null>(null);\n const [seenCode, setSeenCode] = useState(code);\n\n if (code !== seenCode) {\n setSeenCode(code);\n\n if (!controlled && code !== pushed) {\n setDraft(code);\n }\n }\n\n const value = controlled ? _value : draft;\n\n const pushCode = useCallback(\n (next: string) => {\n setPushed(next);\n setCode(next);\n },\n [setCode],\n );\n\n const onChange = useCallback(\n (next: string) => {\n if (!controlled) {\n setDraft(next);\n }\n\n _onChange?.(next);\n },\n [_onChange, controlled],\n );\n\n // Formatting on save reaches the provider at once, ahead of the debounce.\n const onSave = useCallback(\n (formattedCode: string) => {\n pushCode(formattedCode);\n },\n [pushCode],\n );\n\n const onError = useCallback(\n (error: string | null) => {\n setError(error);\n },\n [setError],\n );\n\n const formatCode = useFormatCode({ fragment, prettierOptions });\n\n // Pushes `value` to the provider `debounce` ms after it stops changing,\n // and at once on mount. A pending push is never dropped: it runs when the\n // editor unmounts, and when focus leaves it — so clicking into another\n // surface right after typing edits a document that includes the typing.\n const push = useDebouncedCallback(\n () => pushCode(value),\n { delay: debounce, flushOnUnmount: true },\n [value],\n );\n\n // `display: contents` so the wrapper adds a blur listener without adding a\n // box: the editor lays out against this element's parent, as before.\n return (\n <div style={{ display: 'contents' }} onBlur={push.flush}>\n {renderEditor ? (\n renderEditor({ value, onChange, formatCode })\n ) : (\n <Core\n value={value}\n onChange={onChange}\n onSave={onSave}\n onError={onError}\n fragment={fragment}\n prettierOptions={prettierOptions}\n {...props}\n />\n )}\n </div>\n );\n};\n\nexport default Editor;\n","import Core, { type Props as CoreProps } from './core';\nimport EditorImpl, { type EditorRenderData, type Props } from './editor';\n\ntype EditorComponent = typeof EditorImpl & { Core: typeof Core };\n\nconst Editor = EditorImpl as EditorComponent;\n\nEditor.Core = Core;\n\nexport { Core };\nexport type { Props, CoreProps, EditorRenderData };\nexport default Editor;\n"],"mappings":";;;;;;AA4BA,MAAMA,YAAU,EACd,cACA,OAAO,QACP,WAAW,KACX,UAAU,WACV,cACA,UACA,iBACA,GAAG,YACQ;CACX,MAAM,EAAE,MAAM,YAAY,WAAW;CACrC,MAAM,EAAE,aAAa,SAAS;CAM9B,MAAM,aAAa,WAAW,KAAA;CAC9B,MAAM,CAAC,OAAO,YAAY,eAAe,gBAAgB,IAAI;CAM7D,MAAM,CAAC,QAAQ,aAAa,SAAwB,IAAI;CACxD,MAAM,CAAC,UAAU,eAAe,SAAS,IAAI;CAE7C,IAAI,SAAS,UAAU;EACrB,YAAY,IAAI;EAEhB,IAAI,CAAC,cAAc,SAAS,QAC1B,SAAS,IAAI;CAEjB;CAEA,MAAM,QAAQ,aAAa,SAAS;CAEpC,MAAM,WAAW,aACd,SAAiB;EAChB,UAAU,IAAI;EACd,QAAQ,IAAI;CACd,GACA,CAAC,OAAO,CACV;CAEA,MAAM,WAAW,aACd,SAAiB;EAChB,IAAI,CAAC,YACH,SAAS,IAAI;EAGf,YAAY,IAAI;CAClB,GACA,CAAC,WAAW,UAAU,CACxB;CAGA,MAAM,SAAS,aACZ,kBAA0B;EACzB,SAAS,aAAa;CACxB,GACA,CAAC,QAAQ,CACX;CAEA,MAAM,UAAU,aACb,UAAyB;EACxB,SAAS,KAAK;CAChB,GACA,CAAC,QAAQ,CACX;CAEA,MAAM,aAAa,cAAc;EAAE;EAAU;CAAgB,CAAC;CAM9D,MAAM,OAAO,2BACL,SAAS,KAAK,GACpB;EAAE,OAAO;EAAU,gBAAgB;CAAK,GACxC,CAAC,KAAK,CACR;CAIA,OACE,oBAAC,OAAD;EAAK,OAAO,EAAE,SAAS,WAAW;EAAG,QAAQ,KAAK;EAC/C,UAAA,eACC,aAAa;GAAE;GAAO;GAAU;EAAW,CAAC,IAE5C,oBAAC,MAAD;GACS;GACG;GACF;GACC;GACC;GACO;GACjB,GAAI;EACL,CAAA;CAEA,CAAA;AAET;;;AC7HA,MAAM,SAASC;AAEf,OAAO,OAAO"}
|
package/dist/index-CHknA6k1.d.ts
DELETED
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import { b as ExtractedNodeValue$1, c as BindingItem, d as BindingOptions, f as BindingRegistry, g as BindingType, l as BindingKeyMap, m as BindingRenderMap, v as DataAttrNode, x as NodeValueType$1, y as EditableNodeValueType$1 } from "./validate-DB59Z_Nx.js";
|
|
2
|
-
import { C as ObjectExpression, S as Node, b as Expression, x as File, y as ArrayExpression } from "./document-Ct4jW78J.js";
|
|
3
|
-
//#region node_modules/.pnpm/@babel+parser@7.29.9/node_modules/@babel/parser/typings/babel-parser.d.ts
|
|
4
|
-
declare class Position {
|
|
5
|
-
line: number;
|
|
6
|
-
column: number;
|
|
7
|
-
index: number;
|
|
8
|
-
constructor(line: number, col: number, index: number);
|
|
9
|
-
}
|
|
10
|
-
type SyntaxPlugin = "flow" | "typescript" | "jsx" | "functionBind" | "pipelineOperator" | "placeholders";
|
|
11
|
-
type ParseErrorCode = "BABEL_PARSER_SYNTAX_ERROR" | "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";
|
|
12
|
-
interface ParseErrorSpecification<ErrorDetails> {
|
|
13
|
-
code: ParseErrorCode;
|
|
14
|
-
reasonCode: string;
|
|
15
|
-
syntaxPlugin?: SyntaxPlugin;
|
|
16
|
-
missingPlugin?: string | string[];
|
|
17
|
-
loc: Position;
|
|
18
|
-
details: ErrorDetails;
|
|
19
|
-
pos: number;
|
|
20
|
-
}
|
|
21
|
-
type ParseError$1<ErrorDetails> = SyntaxError & ParseErrorSpecification<ErrorDetails>;
|
|
22
|
-
type ParseError = ParseError$1<object>;
|
|
23
|
-
type ParseResult<Result extends File | Expression = File> = Result & {
|
|
24
|
-
comments: File["comments"];
|
|
25
|
-
errors: null | ParseError[];
|
|
26
|
-
tokens?: File["tokens"];
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/utils/ast/extract.d.ts
|
|
30
|
-
declare function extract(raw: string, options?: BindingOptions): DataAttrNode[];
|
|
31
|
-
declare function clearExtractCache$1(): void;
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/utils/ast/items.d.ts
|
|
34
|
-
type ItemKind$1 = 'object' | 'primitive';
|
|
35
|
-
interface ArrayItem$1 {
|
|
36
|
-
index: number;
|
|
37
|
-
kind: ItemKind$1;
|
|
38
|
-
node: Expression;
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region src/utils/ast/binding.d.ts
|
|
42
|
-
declare const findEditableChildren: (node: DataAttrNode) => DataAttrNode[];
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region src/utils/ast/value.d.ts
|
|
45
|
-
declare const parseValue: (value: unknown) => unknown;
|
|
46
|
-
type EditablePathSegment = string | number;
|
|
47
|
-
type EditablePrimitive = string | number | boolean;
|
|
48
|
-
interface EditableValueEntry {
|
|
49
|
-
path: EditablePathSegment[];
|
|
50
|
-
value: EditablePrimitive;
|
|
51
|
-
}
|
|
52
|
-
declare const flattenEditableValue: (value: string) => EditableValueEntry[] | null;
|
|
53
|
-
declare const setEditableValue: (value: string, path: EditablePathSegment[], next: EditablePrimitive) => string;
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region src/utils/ast/update.d.ts
|
|
56
|
-
type UpdateFailure = {
|
|
57
|
-
reason: 'element-not-found';
|
|
58
|
-
dataId: string;
|
|
59
|
-
} | {
|
|
60
|
-
reason: 'no-binding';
|
|
61
|
-
dataId: string;
|
|
62
|
-
} | {
|
|
63
|
-
reason: 'reserved-property';
|
|
64
|
-
dataId: string;
|
|
65
|
-
property: string;
|
|
66
|
-
} | {
|
|
67
|
-
reason: 'required-property';
|
|
68
|
-
dataId: string;
|
|
69
|
-
property: string;
|
|
70
|
-
} | {
|
|
71
|
-
reason: 'binding-not-declared';
|
|
72
|
-
dataId: string;
|
|
73
|
-
label: string;
|
|
74
|
-
property?: string;
|
|
75
|
-
} | {
|
|
76
|
-
reason: 'duplicate-binding';
|
|
77
|
-
dataId: string;
|
|
78
|
-
label: string;
|
|
79
|
-
property?: string;
|
|
80
|
-
count: number;
|
|
81
|
-
} | {
|
|
82
|
-
reason: 'attribute-not-found';
|
|
83
|
-
dataId: string;
|
|
84
|
-
property: string;
|
|
85
|
-
} | {
|
|
86
|
-
reason: 'unsupported-syntax';
|
|
87
|
-
dataId: string;
|
|
88
|
-
property: string;
|
|
89
|
-
} | {
|
|
90
|
-
reason: 'parse-error';
|
|
91
|
-
error: unknown;
|
|
92
|
-
};
|
|
93
|
-
interface UpdateResult {
|
|
94
|
-
code: string;
|
|
95
|
-
success: boolean;
|
|
96
|
-
failure?: UpdateFailure;
|
|
97
|
-
failures?: UpdateFailure[];
|
|
98
|
-
}
|
|
99
|
-
declare const update: (code: string, dataId: string, label: string, value: unknown, property?: string, options?: BindingOptions) => UpdateResult;
|
|
100
|
-
interface UpdateEntry {
|
|
101
|
-
dataId: string;
|
|
102
|
-
label: string;
|
|
103
|
-
value: unknown;
|
|
104
|
-
property?: string;
|
|
105
|
-
}
|
|
106
|
-
type UpdateAllResult = {
|
|
107
|
-
success: true;
|
|
108
|
-
code: string;
|
|
109
|
-
} | {
|
|
110
|
-
success: false;
|
|
111
|
-
code: string;
|
|
112
|
-
failure: UpdateFailure;
|
|
113
|
-
index: number;
|
|
114
|
-
};
|
|
115
|
-
declare const updateAll: (raw: string, entries: UpdateEntry[], options?: BindingOptions) => UpdateAllResult;
|
|
116
|
-
/**
|
|
117
|
-
* @deprecated Not atomic: when an entry fails, the ones before and after it
|
|
118
|
-
* are still applied, and the returned `code` carries them. Use `updateAll`,
|
|
119
|
-
* which applies every entry or none. Will be removed in the next major.
|
|
120
|
-
*/
|
|
121
|
-
declare const bulkUpdate: (raw: string, entries: UpdateEntry[]) => UpdateResult;
|
|
122
|
-
//#endregion
|
|
123
|
-
//#region src/utils/ast/children.d.ts
|
|
124
|
-
type ChildrenAction = {
|
|
125
|
-
type: 'move';
|
|
126
|
-
from: number;
|
|
127
|
-
to: number;
|
|
128
|
-
} | {
|
|
129
|
-
type: 'move-selected';
|
|
130
|
-
indices: number[];
|
|
131
|
-
direction: 'up' | 'down';
|
|
132
|
-
} | {
|
|
133
|
-
type: 'remove' | 'duplicate';
|
|
134
|
-
indices: number[];
|
|
135
|
-
} | {
|
|
136
|
-
type: 'append';
|
|
137
|
-
};
|
|
138
|
-
interface ChildrenEdit {
|
|
139
|
-
kind: 'children-edit';
|
|
140
|
-
expected: string[];
|
|
141
|
-
action: ChildrenAction;
|
|
142
|
-
}
|
|
143
|
-
declare const getChildrenSignatures: (nodes: DataAttrNode[]) => string[];
|
|
144
|
-
//#endregion
|
|
145
|
-
//#region src/utils/ast/index.d.ts
|
|
146
|
-
/** @deprecated Internal. Use `useDndItems` from `./dnd`. Removed in the next major. */
|
|
147
|
-
declare const appendArrayItem: (code: string, kind: ItemKind$1, generateId?: () => string) => string | null;
|
|
148
|
-
/** @deprecated Internal. Use `useDndItems` from `./dnd`. Removed in the next major. */
|
|
149
|
-
declare const duplicateArrayItems: (code: string, indices: Set<number>, generateId?: () => string) => string | null;
|
|
150
|
-
/** @deprecated Internal. Use `useDndItems` from `./dnd`. Removed in the next major. */
|
|
151
|
-
declare const moveArrayItem: (code: string, from: number, to: number) => string | null;
|
|
152
|
-
/** @deprecated Internal. Use `useDndItems` from `./dnd`. Removed in the next major. */
|
|
153
|
-
declare const moveArrayItems: (code: string, indices: Set<number>, direction: "up" | "down") => {
|
|
154
|
-
code: string;
|
|
155
|
-
indices: Set<number>;
|
|
156
|
-
} | null;
|
|
157
|
-
/** @deprecated Internal. Use `useDndItems` from `./dnd`. Removed in the next major. */
|
|
158
|
-
declare const parseItems: (code: string) => ArrayItem$1[] | null;
|
|
159
|
-
/** @deprecated Internal. Use `useDndItems` from `./dnd`. Removed in the next major. */
|
|
160
|
-
declare const removeArrayItems: (code: string, indices: Set<number>, kind?: ItemKind$1) => string | null;
|
|
161
|
-
/** @deprecated Internal. Use `useDndItems` from `./dnd`. Removed in the next major. */
|
|
162
|
-
declare const updateArrayItemProperty: (code: string, index: number, key: string, value: unknown, render?: BindingRenderMap) => string | null;
|
|
163
|
-
/** @deprecated Internal. Use `useDndItems` from `./dnd`. Removed in the next major. */
|
|
164
|
-
declare const updateArrayItemValue: (code: string, index: number, value: unknown) => string | null;
|
|
165
|
-
/** @deprecated Internal. Use `useDndItems` from `./dnd`. Removed in the next major. */
|
|
166
|
-
declare const parseArrayExpression: (value: string) => ArrayExpression | null;
|
|
167
|
-
/** @deprecated Internal. Use `useDndItems` from `./dnd`. Removed in the next major. */
|
|
168
|
-
declare const arrayExpressionToCode: (elements: ObjectExpression[]) => string;
|
|
169
|
-
/** @deprecated Internal. Use `useDndItems` from `./dnd`. Removed in the next major. */
|
|
170
|
-
declare const canStructurallyEditArray: (source: string) => boolean;
|
|
171
|
-
/** @deprecated Internal. Use `useDndItems` from `./dnd`. Removed in the next major. */
|
|
172
|
-
type ArrayItem = ArrayItem$1;
|
|
173
|
-
/** @deprecated Internal. Use `useDndItems` from `./dnd`. Removed in the next major. */
|
|
174
|
-
type ItemKind = ItemKind$1;
|
|
175
|
-
/** @deprecated Internal. Read values through `extract` or `PanelBinding.value`. Removed in the next major. */
|
|
176
|
-
declare const extractNodeValue: (node: Node) => ExtractedNodeValue$1;
|
|
177
|
-
/** @deprecated Internal. Read values through `extract` or `PanelBinding.value`. Removed in the next major. */
|
|
178
|
-
declare const extractObjectProperties: (element: ObjectExpression) => Record<string, ExtractedNodeValue$1 & {
|
|
179
|
-
astNode: Node;
|
|
180
|
-
}>;
|
|
181
|
-
/** @deprecated Internal. Write values through `update` or `PanelBinding.onChange`. Removed in the next major. */
|
|
182
|
-
declare const createNodeFromValue: (type: NodeValueType$1, value: unknown) => Expression | null;
|
|
183
|
-
/** @deprecated Internal. Check `PanelBinding.canEditValue` instead. Removed in the next major. */
|
|
184
|
-
declare const canLosslesslyEvaluateSource: (source: string) => boolean;
|
|
185
|
-
/** @deprecated Internal. Read values through `extract` or `PanelBinding.value`. Removed in the next major. */
|
|
186
|
-
declare const getCurrentValue: (node: DataAttrNode, property: string) => string;
|
|
187
|
-
/** @deprecated Internal. Read values through `extract` or `PanelBinding.value`. Removed in the next major. */
|
|
188
|
-
declare const getStructuredValue: (node: DataAttrNode, property: string, type?: BindingType) => unknown;
|
|
189
|
-
/** @deprecated Internal. Removed in the next major. */
|
|
190
|
-
type ExtractedNodeValue = ExtractedNodeValue$1;
|
|
191
|
-
/** @deprecated Internal. Removed in the next major. */
|
|
192
|
-
type NodeValueType = NodeValueType$1;
|
|
193
|
-
/** @deprecated Internal. Removed in the next major. */
|
|
194
|
-
type EditableNodeValueType = EditableNodeValueType$1;
|
|
195
|
-
/** @deprecated Internal. Read bindings through `extract` or `useDndPanel().bindings`. Removed in the next major. */
|
|
196
|
-
declare const parseBinding: (bindingValue: string | null) => BindingItem[];
|
|
197
|
-
/** @deprecated Internal. Read bindings through `extract` or `useDndPanel().bindings`. Removed in the next major. */
|
|
198
|
-
declare const parseBindingExpression: (expression: ArrayExpression) => BindingItem[];
|
|
199
|
-
/** @deprecated Internal. Read bindings through `extract` or `useDndPanel().bindings`. Removed in the next major. */
|
|
200
|
-
declare const readNodeBindings: (node: DataAttrNode) => BindingItem[];
|
|
201
|
-
/** @deprecated Internal. Read bindings through `extract` or `useDndPanel().bindings`. Removed in the next major. */
|
|
202
|
-
declare const resolveBindings: (own: BindingItem[] | undefined, key: string | null | undefined, tagName: string, options?: BindingOptions) => BindingItem[];
|
|
203
|
-
/** @deprecated Internal. Read bindings through `extract` or `useDndPanel().bindings`. Removed in the next major. */
|
|
204
|
-
declare const getKeyBindings: (bindingKeys: BindingKeyMap | undefined, key: string) => BindingItem[] | undefined;
|
|
205
|
-
/** @deprecated Internal. Read bindings through `extract` or `useDndPanel().bindings`. Removed in the next major. */
|
|
206
|
-
declare const getRegistryBindings: (registry: BindingRegistry | undefined, tagName: string) => BindingItem[] | undefined;
|
|
207
|
-
/** @deprecated Internal. Removed in the next major. */
|
|
208
|
-
declare const isComponentTagName: (tagName: string) => boolean;
|
|
209
|
-
/** @deprecated Internal. Removed in the next major. */
|
|
210
|
-
declare const fillIds: (code: string, generateId?: () => string) => string;
|
|
211
|
-
/** @deprecated Internal. Removed in the next major. */
|
|
212
|
-
declare const replaceIds: (code: string, generateId?: () => string) => string;
|
|
213
|
-
/** @deprecated Internal. Removed in the next major. */
|
|
214
|
-
declare const clone: (element: Node, generateId?: () => string) => ParseResult<Expression>;
|
|
215
|
-
/** @deprecated Internal. Removed in the next major. */
|
|
216
|
-
declare const generateCode: (node: Node) => string;
|
|
217
|
-
/** @deprecated Internal. Use `clearEditorCaches` from `./utils`. Removed in the next major. */
|
|
218
|
-
declare const clearExtractCache: typeof clearExtractCache$1;
|
|
219
|
-
//#endregion
|
|
220
|
-
export { removeArrayItems as A, UpdateFailure as B, moveArrayItem as C, parseBindingExpression as D, parseBinding as E, ChildrenAction as F, EditablePathSegment as G, bulkUpdate as H, ChildrenEdit as I, flattenEditableValue as J, EditablePrimitive as K, getChildrenSignatures as L, resolveBindings as M, updateArrayItemProperty as N, parseItems as O, updateArrayItemValue as P, extract as Q, UpdateAllResult as R, isComponentTagName as S, parseArrayExpression as T, update as U, UpdateResult as V, updateAll as W, setEditableValue as X, parseValue as Y, findEditableChildren as Z, generateCode as _, NodeValueType as a, getRegistryBindings as b, canLosslesslyEvaluateSource as c, clone as d, createNodeFromValue as f, fillIds as g, extractObjectProperties as h, ItemKind as i, replaceIds as j, readNodeBindings as k, canStructurallyEditArray as l, extractNodeValue as m, EditableNodeValueType as n, appendArrayItem as o, duplicateArrayItems as p, EditableValueEntry as q, ExtractedNodeValue as r, arrayExpressionToCode as s, ArrayItem as t, clearExtractCache as u, getCurrentValue as v, moveArrayItems as w, getStructuredValue as x, getKeyBindings as y, UpdateEntry as z };
|
|
221
|
-
//# sourceMappingURL=index-CHknA6k1.d.ts.map
|