@marimo-team/islands 0.23.10-dev3 → 0.23.10-dev31
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/{ConnectedDataExplorerComponent-CyV83R2m.js → ConnectedDataExplorerComponent-DmBropAy.js} +31 -31
- package/dist/{ErrorBoundary-rULOrC_p.js → ErrorBoundary-DpbaKVv7.js} +1 -1
- package/dist/{any-language-editor-DfdpyDv_.js → any-language-editor-DNmoSiWL.js} +20 -20
- package/dist/assets/__vite-browser-external-eshhtsgZ.js +1 -0
- package/dist/assets/worker-CC0Oul9k.js +73 -0
- package/dist/{chat-ui-C1tL1pML.js → chat-ui-D6oraHT2.js} +76 -76
- package/dist/{check-DTbrK0zt.js → check-BCaJeT-J.js} +1 -1
- package/dist/{code-visibility-DfnO0DcH.js → code-visibility-B9qGgair.js} +2166 -1292
- package/dist/{copy-BuQpJEzp.js → copy-UqRYxiOg.js} +33 -33
- package/dist/dist-7QfXoMdB.js +5 -0
- package/dist/{dist-DgnE8F-r.js → dist-A2846XWO.js} +1 -1
- package/dist/dist-BEXXyZig.js +5 -0
- package/dist/{dist-B3pZ0Ab6.js → dist-BR_gyG9L.js} +3 -3
- package/dist/{dist-CcXxepx6.js → dist-BSAt6RhH.js} +27 -27
- package/dist/{dist-Bde4a2kU.js → dist-BY018Paw.js} +8 -8
- package/dist/dist-BYj57OV4.js +5 -0
- package/dist/{dist-CUCNs1ja.js → dist-BaoDKvdy.js} +2 -2
- package/dist/{dist-Cy1WxgBD.js → dist-Bf7SHuNp.js} +5 -5
- package/dist/{dist-Bz_sYWbr.js → dist-Bk75fBZA.js} +2 -2
- package/dist/dist-BlSvQzNr.js +5 -0
- package/dist/{dist-C5VC_yzu.js → dist-BzEzfugY.js} +1 -1
- package/dist/dist-CCBlxAgS.js +8 -0
- package/dist/dist-CIDTVIUf.js +5 -0
- package/dist/{dist-CLUtPrdy.js → dist-CIYBwstr.js} +1 -1
- package/dist/{dist-BotSqB48.js → dist-C_Y3oV3C.js} +12 -12
- package/dist/{dist-BTfv03uy.js → dist-CcWX6tmx.js} +2 -2
- package/dist/{dist-BhM8gdSO.js → dist-CoXAujgg.js} +4 -4
- package/dist/{dist-4j4c7bjm.js → dist-CpxNdDkw.js} +3 -3
- package/dist/dist-CqQyhAM8.js +8 -0
- package/dist/dist-CwRu2Xzh.js +5 -0
- package/dist/{dist-BcuoonNH.js → dist-CxJDU6Bh.js} +9 -9
- package/dist/{dist-DxvORzUR.js → dist-D-W5ny5a.js} +8 -8
- package/dist/dist-D8CDTVgf.js +6 -0
- package/dist/dist-D8DNB0nO.js +8 -0
- package/dist/dist-DL6N_q-A.js +5 -0
- package/dist/{dist-BbbIBDiQ.js → dist-DMjWuVs8.js} +1 -1
- package/dist/dist-DOFbNV_b.js +8 -0
- package/dist/dist-DPrYzMY0.js +6 -0
- package/dist/{dist-h2c8sZvT.js → dist-DZORgqKY.js} +1 -1
- package/dist/{dist-B3P2fFpz.js → dist-DZo4nSS0.js} +14 -14
- package/dist/{dist-D4CewLk6.js → dist-Dax--nl9.js} +1 -1
- package/dist/{dist-DRfcqpxJ.js → dist-DgGbNavJ.js} +2 -2
- package/dist/{dist-C1BYNeCR.js → dist-Dk6PV_d3.js} +10 -10
- package/dist/{dist-fQ0ViXGs.js → dist-Dv_Y15yk.js} +107 -107
- package/dist/{dist-Bfwsv11D.js → dist-DyyjKEYf.js} +2 -2
- package/dist/{dist-p2qyWijU.js → dist-GZXUmt0b.js} +2 -2
- package/dist/{dist-CLJWPTX2.js → dist-LTU8Hdvn.js} +3 -3
- package/dist/{dist-DqAWR3CS.js → dist-M9Vag9Y0.js} +20 -20
- package/dist/{dist-DNdhYsgW.js → dist-U4F-tbMs.js} +79 -62
- package/dist/{dist-RqXTaiir.js → dist-abid3KgM.js} +11 -11
- package/dist/dist-cdmMjgsn.js +5 -0
- package/dist/dist-hT4QzYX-.js +1247 -0
- package/dist/{dist-luvabDEB.js → dist-t9Kf7xqC.js} +2 -2
- package/dist/{error-banner-5bz0L9hS.js → error-banner-Cc0I3C9e.js} +1 -1
- package/dist/esm-BaH2eg5-.js +1171 -0
- package/dist/{esm-Duie8iU-.js → esm-ga2Bf3O2.js} +43 -43
- package/dist/{extends-BgdxCfYu.js → extends-D_hDsj6R.js} +4 -4
- package/dist/{formats-DHxc-FdY.js → formats-C4wO47tk.js} +1 -1
- package/dist/{glide-data-editor-BOmK9ETQ.js → glide-data-editor-Qhu8oCX-.js} +12 -12
- package/dist/{html-to-image-CNa5ok96.js → html-to-image-UEH5lFDZ.js} +2318 -2275
- package/dist/{input-_2sjvfne.js → input-CMYy4hzj.js} +187 -185
- package/dist/{label-LWtdw5i8.js → label-CC4ytI1X.js} +1 -1
- package/dist/main.js +6941 -6913
- package/dist/{mermaid-lXOw5Py9.js → mermaid-zuLgJ8J8.js} +4 -4
- package/dist/{process-output-DKr4f1di.js → process-output-CyMLTogj.js} +3 -3
- package/dist/{reveal-component-UdMnCK5U.js → reveal-component-Co2AuBAx.js} +697 -619
- package/dist/{spec-B96zNUEA.js → spec-X7FwLJni.js} +4 -4
- package/dist/{strings-Bu3vlb6W.js → strings-J57tzLr3.js} +47 -46
- package/dist/style.css +1 -1
- package/dist/{toDate-x-WRDCH7.js → toDate-d8RCRrRd.js} +2 -2
- package/dist/{tooltip-C5FYOpQc.js → tooltip-DpcyNkQ2.js} +2 -2
- package/dist/{types-CVvp1fKr.js → types-ChtMFmZ2.js} +1 -1
- package/dist/{useAsyncData-iRgKDT5s.js → useAsyncData-PonK__yh.js} +1 -1
- package/dist/{useDateFormatter-BA4FCquG.js → useDateFormatter-QB-3MpYr.js} +2 -2
- package/dist/{useDeepCompareMemoize-CkQ57VS2.js → useDeepCompareMemoize-D3NGWke6.js} +1 -1
- package/dist/{useLifecycle-BBO9PIph.js → useLifecycle-00mO3OSS.js} +2 -2
- package/dist/{useTheme-DHIrRQOe.js → useTheme-DEhDzATN.js} +1 -1
- package/dist/{vega-component-Dq-SH463.js → vega-component-9h1ACS78.js} +8 -8
- package/dist/{zod-CoBiJ5v4.js → zod-aLSua2NL.js} +24 -23
- package/package.json +3 -3
- package/src/components/data-table/TableBottomBar.tsx +1 -15
- package/src/components/data-table/TableTopBar.tsx +8 -13
- package/src/components/data-table/__tests__/TableBottomBar.test.tsx +6 -12
- package/src/components/data-table/__tests__/column-visibility-dropdown.test.tsx +227 -0
- package/src/components/data-table/__tests__/data-table.test.tsx +154 -12
- package/src/components/data-table/column-visibility-dropdown.tsx +204 -0
- package/src/components/data-table/data-table.tsx +1 -1
- package/src/components/data-table/filter-by-values-picker.tsx +39 -17
- package/src/components/data-table/filter-pills.tsx +1 -1
- package/src/components/data-table/hover-tooltip/__tests__/content.test.ts +60 -0
- package/src/components/data-table/hover-tooltip/content.ts +44 -0
- package/src/components/data-table/hover-tooltip/hover-tooltip.tsx +55 -0
- package/src/components/data-table/hover-tooltip/use-table-hover-tooltip.ts +159 -0
- package/src/components/data-table/renderers.tsx +27 -43
- package/src/components/datasources/__tests__/filter-empty.test.ts +183 -0
- package/src/components/datasources/datasources.tsx +92 -3
- package/src/components/editor/cell/cell-context-menu.tsx +15 -2
- package/src/components/editor/cell/code/language-toggle.tsx +7 -1
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +97 -52
- package/src/components/editor/chrome/wrapper/lazy-panels.ts +91 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +2 -0
- package/src/components/editor/documentation.css +35 -0
- package/src/components/editor/file-tree/file-explorer.tsx +8 -18
- package/src/components/editor/file-tree/tree-actions.tsx +46 -1
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +20 -0
- package/src/components/editor/renderers/slides-layout/types.ts +1 -0
- package/src/components/slides/__tests__/minimap-actions.test.tsx +166 -0
- package/src/components/slides/__tests__/reveal-component.test.ts +425 -0
- package/src/components/slides/minimap.tsx +127 -10
- package/src/components/slides/reveal-component.tsx +287 -61
- package/src/components/slides/slide-cell-view.tsx +26 -2
- package/src/components/slides/slide-form.tsx +26 -4
- package/src/components/storage/__tests__/storage-inspector.test.ts +53 -0
- package/src/components/storage/storage-inspector.tsx +68 -48
- package/src/components/ui/__tests__/use-toast.test.ts +75 -0
- package/src/components/ui/combobox.tsx +51 -32
- package/src/components/ui/reorderable-list.tsx +13 -0
- package/src/components/ui/select-core/__tests__/use-select-list.test.ts +294 -0
- package/src/components/ui/select-core/__tests__/utils.test.ts +222 -0
- package/src/components/ui/select-core/index.ts +16 -0
- package/src/components/ui/select-core/option-row.tsx +33 -0
- package/src/components/ui/select-core/render-slot.ts +20 -0
- package/src/components/ui/select-core/select-list.tsx +248 -0
- package/src/components/ui/select-core/types.ts +44 -0
- package/src/components/ui/select-core/use-select-list.ts +347 -0
- package/src/components/ui/select-core/utils.ts +121 -0
- package/src/components/ui/use-toast.ts +33 -13
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -28
- package/src/core/cells/__tests__/cell.test.ts +29 -2
- package/src/core/cells/cell.ts +5 -1
- package/src/core/codemirror/go-to-definition/commands.ts +4 -3
- package/src/core/codemirror/language/languages/python.ts +2 -0
- package/src/core/codemirror/language/languages/sql/utils.ts +3 -1
- package/src/core/codemirror/lsp/__tests__/markdown-renderer.test.ts +41 -0
- package/src/core/codemirror/lsp/markdown-renderer.ts +59 -0
- package/src/core/datasets/data-source-connections.ts +2 -0
- package/src/core/network/__tests__/requests-static.test.ts +30 -0
- package/src/core/network/requests-static.ts +14 -10
- package/src/core/wasm/worker/bootstrap.ts +12 -4
- package/src/plugins/impl/MultiselectPlugin.tsx +19 -142
- package/src/plugins/impl/SearchableSelect.tsx +16 -97
- package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +5 -2
- package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +1 -1
- package/src/plugins/layout/DownloadPlugin.tsx +1 -1
- package/src/utils/lazy.ts +6 -1
- package/dist/assets/__vite-browser-external-Ci2ZQfXU.js +0 -1
- package/dist/assets/worker-ip3AI_sN.js +0 -73
- package/dist/dist-0Fif7jnk.js +0 -5
- package/dist/dist-B5h_9sHB.js +0 -6
- package/dist/dist-B9M6R5ye.js +0 -5
- package/dist/dist-BCt3tnck.js +0 -8
- package/dist/dist-BUIJwMwn.js +0 -8
- package/dist/dist-BpquMd3k.js +0 -5
- package/dist/dist-BzJsqYfz.js +0 -5
- package/dist/dist-CA5ELXAf.js +0 -6
- package/dist/dist-CLBRs6Uv.js +0 -5
- package/dist/dist-CStVCMbq.js +0 -5
- package/dist/dist-CZRIEY3Y.js +0 -8
- package/dist/dist-CuUHbFD0.js +0 -5
- package/dist/dist-DV7Iabxb.js +0 -8
- package/dist/dist-DhHh0jLg.js +0 -1247
- package/dist/dist-DuEeHMvL.js +0 -5
- package/dist/esm-BfhQmZjp.js +0 -1171
- package/src/plugins/impl/multiselectFilterFn.tsx +0 -22
- /package/src/components/{data-table → ui}/value-chips.tsx +0 -0
|
@@ -2,67 +2,67 @@ import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
|
2
2
|
import { _ as Logger } from "./button-C5K9fIPF.js";
|
|
3
3
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
4
4
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
5
|
-
import { u as createLucideIcon } from "./dist-
|
|
5
|
+
import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
|
|
6
6
|
require_compiler_runtime(), require_react();
|
|
7
7
|
var TOAST_LIMIT = 1, TOAST_REMOVE_DELAY = 1e4, count = 0;
|
|
8
8
|
function genId() {
|
|
9
9
|
return count = (count + 1) % Number.MAX_VALUE, count.toString();
|
|
10
10
|
}
|
|
11
|
-
var toastTimeouts = /* @__PURE__ */ new Map(), addToRemoveQueue = (e) => {
|
|
11
|
+
var toastTimeouts = /* @__PURE__ */ new Map(), shownOnceKeys = /* @__PURE__ */ new Set(), addToRemoveQueue = (e) => {
|
|
12
12
|
if (toastTimeouts.has(e)) return;
|
|
13
|
-
let
|
|
13
|
+
let d = setTimeout(() => {
|
|
14
14
|
toastTimeouts.delete(e), dispatch({
|
|
15
15
|
type: "REMOVE_TOAST",
|
|
16
16
|
toastId: e
|
|
17
17
|
});
|
|
18
18
|
}, TOAST_REMOVE_DELAY);
|
|
19
|
-
toastTimeouts.set(e,
|
|
19
|
+
toastTimeouts.set(e, d);
|
|
20
20
|
};
|
|
21
|
-
const reducer = (e,
|
|
22
|
-
switch (
|
|
21
|
+
const reducer = (e, d) => {
|
|
22
|
+
switch (d.type) {
|
|
23
23
|
case "ADD_TOAST":
|
|
24
24
|
return {
|
|
25
25
|
...e,
|
|
26
|
-
toasts: [
|
|
26
|
+
toasts: [d.toast, ...e.toasts].slice(0, TOAST_LIMIT)
|
|
27
27
|
};
|
|
28
28
|
case "UPDATE_TOAST":
|
|
29
29
|
return {
|
|
30
30
|
...e,
|
|
31
|
-
toasts: e.toasts.map((e2) => e2.id ===
|
|
31
|
+
toasts: e.toasts.map((e2) => e2.id === d.toast.id ? {
|
|
32
32
|
...e2,
|
|
33
|
-
...
|
|
33
|
+
...d.toast
|
|
34
34
|
} : e2)
|
|
35
35
|
};
|
|
36
36
|
case "DISMISS_TOAST": {
|
|
37
|
-
let { toastId:
|
|
38
|
-
return
|
|
37
|
+
let { toastId: f } = d;
|
|
38
|
+
return f ? addToRemoveQueue(f) : e.toasts.forEach((e2) => {
|
|
39
39
|
addToRemoveQueue(e2.id);
|
|
40
40
|
}), {
|
|
41
41
|
...e,
|
|
42
|
-
toasts: e.toasts.map((e2) => e2.id ===
|
|
42
|
+
toasts: e.toasts.map((e2) => e2.id === f || f === void 0 ? {
|
|
43
43
|
...e2,
|
|
44
44
|
open: false
|
|
45
45
|
} : e2)
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
case "REMOVE_TOAST":
|
|
49
|
-
return
|
|
49
|
+
return d.toastId === void 0 ? {
|
|
50
50
|
...e,
|
|
51
51
|
toasts: []
|
|
52
52
|
} : {
|
|
53
53
|
...e,
|
|
54
|
-
toasts: e.toasts.filter((e2) => e2.id !==
|
|
54
|
+
toasts: e.toasts.filter((e2) => e2.id !== d.toastId)
|
|
55
55
|
};
|
|
56
56
|
case "UPSERT_TOAST":
|
|
57
|
-
return e.toasts.findIndex((e2) => e2.id ===
|
|
57
|
+
return e.toasts.findIndex((e2) => e2.id === d.toast.id) > -1 ? {
|
|
58
58
|
...e,
|
|
59
|
-
toasts: e.toasts.map((e2) => e2.id ===
|
|
59
|
+
toasts: e.toasts.map((e2) => e2.id === d.toast.id ? {
|
|
60
60
|
...e2,
|
|
61
|
-
...
|
|
61
|
+
...d.toast
|
|
62
62
|
} : e2)
|
|
63
63
|
} : {
|
|
64
64
|
...e,
|
|
65
|
-
toasts: [
|
|
65
|
+
toasts: [d.toast, ...e.toasts].slice(0, TOAST_LIMIT)
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
};
|
|
@@ -72,39 +72,39 @@ function dispatch(e) {
|
|
|
72
72
|
e2(memoryState);
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
function toast({ id: e, ...
|
|
76
|
-
let
|
|
75
|
+
function toast({ id: e, once: d, ...f }) {
|
|
76
|
+
let p = e || genId(), m = d === true && e !== void 0, h = (e2) => dispatch({
|
|
77
77
|
type: "UPDATE_TOAST",
|
|
78
78
|
toast: {
|
|
79
79
|
...e2,
|
|
80
|
-
id:
|
|
80
|
+
id: p
|
|
81
81
|
}
|
|
82
82
|
}), g = () => dispatch({
|
|
83
83
|
type: "DISMISS_TOAST",
|
|
84
|
-
toastId:
|
|
84
|
+
toastId: p
|
|
85
85
|
}), _ = (e2) => dispatch({
|
|
86
86
|
type: "UPSERT_TOAST",
|
|
87
87
|
toast: {
|
|
88
88
|
...e2,
|
|
89
|
-
id:
|
|
89
|
+
id: p,
|
|
90
90
|
open: true,
|
|
91
91
|
onOpenChange: (e3) => {
|
|
92
92
|
e3 || g();
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
});
|
|
96
|
-
return dispatch({
|
|
95
|
+
}), v = m && shownOnceKeys.has(p);
|
|
96
|
+
return m && shownOnceKeys.add(p), v || dispatch({
|
|
97
97
|
type: "ADD_TOAST",
|
|
98
98
|
toast: {
|
|
99
|
-
...
|
|
100
|
-
id:
|
|
99
|
+
...f,
|
|
100
|
+
id: p,
|
|
101
101
|
open: true,
|
|
102
102
|
onOpenChange: (e2) => {
|
|
103
103
|
e2 || g();
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
}), {
|
|
107
|
-
id:
|
|
107
|
+
id: p,
|
|
108
108
|
dismiss: g,
|
|
109
109
|
update: h,
|
|
110
110
|
upsert: _
|
|
@@ -122,17 +122,17 @@ var Copy = createLucideIcon("copy", [["rect", {
|
|
|
122
122
|
d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
|
|
123
123
|
key: "zix9uf"
|
|
124
124
|
}]]);
|
|
125
|
-
async function copyToClipboard(e,
|
|
125
|
+
async function copyToClipboard(e, f) {
|
|
126
126
|
if (navigator.clipboard === void 0) {
|
|
127
127
|
Logger.warn("navigator.clipboard is not supported"), window.prompt("Copy to clipboard: Ctrl+C, Enter", e);
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
|
-
if (
|
|
131
|
-
let
|
|
132
|
-
"text/html": new Blob([
|
|
130
|
+
if (f && navigator.clipboard.write) try {
|
|
131
|
+
let d = new ClipboardItem({
|
|
132
|
+
"text/html": new Blob([f], { type: "text/html" }),
|
|
133
133
|
"text/plain": new Blob([e], { type: "text/plain" })
|
|
134
134
|
});
|
|
135
|
-
await navigator.clipboard.write([
|
|
135
|
+
await navigator.clipboard.write([d]);
|
|
136
136
|
return;
|
|
137
137
|
} catch {
|
|
138
138
|
Logger.warn("Failed to write rich text, falling back to plain text");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent } from "./dist-U4F-tbMs.js";
|
|
2
2
|
var javaHighlighting = styleTags({
|
|
3
3
|
null: tags.null,
|
|
4
4
|
instanceof: tags.operatorKeyword,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as html } from "./dist-
|
|
1
|
+
import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, V as styleTags, X as parseMixed, i as LocalTokenGroup, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { n as html } from "./dist-BSAt6RhH.js";
|
|
3
3
|
var interpolationStart = 1, commentTagStart = 2, tagStart = 3, text = 155, endrawTagStart = 4, rawText = 156;
|
|
4
4
|
function wordChar(h) {
|
|
5
5
|
return h >= 65 && h <= 90 || h >= 97 && h <= 122;
|
|
@@ -288,7 +288,7 @@ function jinjaCompletionSource(h = {}) {
|
|
|
288
288
|
} : null;
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
|
-
var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((h, z, B
|
|
291
|
+
var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((h, R, z, B) => B != "%" || R != z || h.state.doc.sliceString(R - 1, z + 1) != "{}" ? false : (h.dispatch(h.state.changeByRange((h2) => ({
|
|
292
292
|
changes: {
|
|
293
293
|
from: h2.from,
|
|
294
294
|
to: h2.to,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as cssLanguage, t as css } from "./dist-
|
|
3
|
-
import { c as typescriptLanguage, i as jsxLanguage, n as javascript, r as javascriptLanguage, s as tsxLanguage } from "./dist-
|
|
1
|
+
import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, V as styleTags, X as parseMixed, m as bracketMatchingHandle, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { r as cssLanguage, t as css } from "./dist-D-W5ny5a.js";
|
|
3
|
+
import { c as typescriptLanguage, i as jsxLanguage, n as javascript, r as javascriptLanguage, s as tsxLanguage } from "./dist-M9Vag9Y0.js";
|
|
4
4
|
var scriptText = 54, StartCloseScriptTag = 1, styleText = 55, StartCloseStyleTag = 2, textareaText = 56, StartCloseTextareaTag = 3, EndTag = 4, SelfClosingEndTag = 5, StartTag = 6, StartScriptTag = 7, StartStyleTag = 8, StartTextareaTag = 9, StartSelfClosingTag = 10, StartCloseTag = 11, NoMatchStartCloseTag = 12, MismatchedStartCloseTag = 13, missingCloseTag = 57, IncompleteCloseTag = 14, commentContent$1 = 58, Element = 20, TagName = 22, Attribute = 23, AttributeName = 24, AttributeValue = 26, UnquotedAttributeValue = 27, ScriptText = 28, StyleText = 31, TextareaText = 34, OpenTag = 36, CloseTag = 37, Dialect_noMatch = 0, Dialect_selfClosing = 1, selfClosers$1 = {
|
|
5
5
|
area: true,
|
|
6
6
|
base: true,
|
|
@@ -356,19 +356,19 @@ function maybeNest(g, G, K) {
|
|
|
356
356
|
return null;
|
|
357
357
|
}
|
|
358
358
|
function configureNesting(g = [], G = []) {
|
|
359
|
-
let K = [],
|
|
360
|
-
for (let G2 of g) (G2.tag == "script" ? K : G2.tag == "style" ?
|
|
359
|
+
let K = [], q = [], J = [], Y = [];
|
|
360
|
+
for (let G2 of g) (G2.tag == "script" ? K : G2.tag == "style" ? q : G2.tag == "textarea" ? J : Y).push(G2);
|
|
361
361
|
let Z = G.length ? /* @__PURE__ */ Object.create(null) : null;
|
|
362
362
|
for (let g2 of G) (Z[g2.name] || (Z[g2.name] = [])).push(g2);
|
|
363
363
|
return parseMixed((g2, G2) => {
|
|
364
|
-
let
|
|
365
|
-
if (
|
|
366
|
-
if (
|
|
367
|
-
if (
|
|
368
|
-
if (
|
|
369
|
-
let K2 = g2.node, q2 = K2.firstChild, J2 = q2 && findTagName(q2, G2),
|
|
364
|
+
let X = g2.type.id;
|
|
365
|
+
if (X == ScriptText) return maybeNest(g2, G2, K);
|
|
366
|
+
if (X == StyleText) return maybeNest(g2, G2, q);
|
|
367
|
+
if (X == TextareaText) return maybeNest(g2, G2, J);
|
|
368
|
+
if (X == Element && Y.length) {
|
|
369
|
+
let K2 = g2.node, q2 = K2.firstChild, J2 = q2 && findTagName(q2, G2), X2;
|
|
370
370
|
if (J2) {
|
|
371
|
-
for (let g3 of
|
|
371
|
+
for (let g3 of Y) if (g3.tag == J2 && (!g3.attrs || g3.attrs(X2 || (X2 = getAttrs(q2, G2))))) {
|
|
372
372
|
let G3 = K2.lastChild, J3 = G3.type.id == CloseTag ? G3.from : K2.to;
|
|
373
373
|
if (J3 > q2.to) return {
|
|
374
374
|
parser: g3.parser,
|
|
@@ -380,7 +380,7 @@ function configureNesting(g = [], G = []) {
|
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
if (Z &&
|
|
383
|
+
if (Z && X == Attribute) {
|
|
384
384
|
let K2 = g2.node, q2;
|
|
385
385
|
if (q2 = K2.firstChild) {
|
|
386
386
|
let g3 = Z[G2.read(q2.from, q2.to)];
|
|
@@ -1281,31 +1281,31 @@ function html(g = {}) {
|
|
|
1281
1281
|
css().support
|
|
1282
1282
|
]);
|
|
1283
1283
|
}
|
|
1284
|
-
var selfClosers = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((g,
|
|
1285
|
-
if (g.composing || g.state.readOnly ||
|
|
1284
|
+
var selfClosers = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((g, G, q, Y, X) => {
|
|
1285
|
+
if (g.composing || g.state.readOnly || G != q || Y != ">" && Y != "/" || !htmlLanguage.isActiveAt(g.state, G, -1)) return false;
|
|
1286
1286
|
let Z = X(), { state: Q } = Z, $ = Q.changeByRange((g2) => {
|
|
1287
1287
|
var _a, _b, _c;
|
|
1288
|
-
let
|
|
1289
|
-
if (
|
|
1290
|
-
let
|
|
1291
|
-
if (((_b = (_a =
|
|
1288
|
+
let G2 = Q.doc.sliceString(g2.from - 1, g2.to) == Y, { head: q2 } = g2, X2 = syntaxTree(Q).resolveInner(q2, -1), Z2;
|
|
1289
|
+
if (G2 && Y == ">" && X2.name == "EndTag") {
|
|
1290
|
+
let G3 = X2.parent;
|
|
1291
|
+
if (((_b = (_a = G3.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && (Z2 = elementName(Q.doc, G3.parent, q2)) && !selfClosers.has(Z2)) return {
|
|
1292
1292
|
range: g2,
|
|
1293
1293
|
changes: {
|
|
1294
|
-
from:
|
|
1295
|
-
to:
|
|
1294
|
+
from: q2,
|
|
1295
|
+
to: q2 + (Q.doc.sliceString(q2, q2 + 1) === ">" ? 1 : 0),
|
|
1296
1296
|
insert: `</${Z2}>`
|
|
1297
1297
|
}
|
|
1298
1298
|
};
|
|
1299
|
-
} else if (
|
|
1299
|
+
} else if (G2 && Y == "/" && X2.name == "IncompleteCloseTag") {
|
|
1300
1300
|
let g3 = X2.parent;
|
|
1301
|
-
if (X2.from ==
|
|
1302
|
-
let g4 =
|
|
1301
|
+
if (X2.from == q2 - 2 && ((_c = g3.lastChild) == null ? void 0 : _c.name) != "CloseTag" && (Z2 = elementName(Q.doc, g3, q2)) && !selfClosers.has(Z2)) {
|
|
1302
|
+
let g4 = q2 + (Q.doc.sliceString(q2, q2 + 1) === ">" ? 1 : 0), G3 = `${Z2}>`;
|
|
1303
1303
|
return {
|
|
1304
|
-
range: EditorSelection.cursor(
|
|
1304
|
+
range: EditorSelection.cursor(q2 + G3.length, -1),
|
|
1305
1305
|
changes: {
|
|
1306
|
-
from:
|
|
1306
|
+
from: q2,
|
|
1307
1307
|
to: g4,
|
|
1308
|
-
insert:
|
|
1308
|
+
insert: G3
|
|
1309
1309
|
}
|
|
1310
1310
|
};
|
|
1311
1311
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as html } from "./dist-
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, X as parseMixed, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { n as html } from "./dist-BSAt6RhH.js";
|
|
3
3
|
var castOpen = 1, HeredocString = 2, interpolatedStringContent = 263, EscapeSequence = 3, afterInterpolation = 264, automaticSemicolon = 265, eof = 266, abstract = 4, and = 5, array = 6, as = 7, Boolean = 8, _break = 9, _case = 10, _catch = 11, clone = 12, _const = 13, _continue = 14, _default = 15, declare = 16, _do = 17, echo = 18, _else = 19, elseif = 20, enddeclare = 21, endfor = 22, endforeach = 23, endif = 24, endswitch = 25, endwhile = 26, _enum = 27, _extends = 28, final = 29, _finally = 30, fn = 31, _for = 32, foreach = 33, from = 34, _function = 35, global = 36, goto = 37, _if = 38, _implements = 39, include = 40, include_once = 41, _instanceof = 42, insteadof = 43, _interface = 44, list = 45, match = 46, namespace = 47, _new = 48, _null = 49, or = 50, print = 51, _require = 52, require_once = 53, _return = 54, _switch = 55, _throw = 56, trait = 57, _try = 58, unset = 59, use = 60, _var = 61, Visibility = 62, keywordMap = {
|
|
4
4
|
abstract,
|
|
5
5
|
and,
|
|
@@ -407,19 +407,19 @@ var interpolated = new ExternalTokenizer((S, Z) => {
|
|
|
407
407
|
}
|
|
408
408
|
});
|
|
409
409
|
function php(S = {}) {
|
|
410
|
-
let
|
|
411
|
-
if (S.baseLanguage !== null) if (S.baseLanguage)
|
|
410
|
+
let Z = [], Q;
|
|
411
|
+
if (S.baseLanguage !== null) if (S.baseLanguage) Q = S.baseLanguage;
|
|
412
412
|
else {
|
|
413
413
|
let S2 = html({ matchClosingTags: false });
|
|
414
|
-
|
|
414
|
+
Z.push(S2.support), Q = S2.language;
|
|
415
415
|
}
|
|
416
416
|
return new LanguageSupport(phpLanguage.configure({
|
|
417
|
-
wrap:
|
|
418
|
-
parser:
|
|
417
|
+
wrap: Q && parseMixed((S2) => S2.type.isTop ? {
|
|
418
|
+
parser: Q.parser,
|
|
419
419
|
overlay: (S3) => S3.name == "Text"
|
|
420
420
|
} : null),
|
|
421
421
|
top: S.plain ? "Program" : "Template"
|
|
422
|
-
}),
|
|
422
|
+
}), Z);
|
|
423
423
|
}
|
|
424
424
|
export {
|
|
425
425
|
phpLanguage as n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./dist-
|
|
2
|
-
import { i as snippets, n as goLanguage, r as localCompletionSource, t as go } from "./dist-
|
|
1
|
+
import "./dist-U4F-tbMs.js";
|
|
2
|
+
import { i as snippets, n as goLanguage, r as localCompletionSource, t as go } from "./dist-abid3KgM.js";
|
|
3
3
|
export {
|
|
4
4
|
go
|
|
5
5
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./dist-
|
|
2
|
-
import { a as markdown, c as pasteURLAsLink, i as insertNewlineContinueMarkupCommand, n as deleteMarkupBackward, o as markdownKeymap, r as insertNewlineContinueMarkup, s as markdownLanguage, t as commonmarkLanguage } from "./dist-
|
|
3
|
-
import "./dist-
|
|
4
|
-
import "./dist-
|
|
5
|
-
import "./dist-
|
|
1
|
+
import "./dist-U4F-tbMs.js";
|
|
2
|
+
import { a as markdown, c as pasteURLAsLink, i as insertNewlineContinueMarkupCommand, n as deleteMarkupBackward, o as markdownKeymap, r as insertNewlineContinueMarkup, s as markdownLanguage, t as commonmarkLanguage } from "./dist-Dv_Y15yk.js";
|
|
3
|
+
import "./dist-BSAt6RhH.js";
|
|
4
|
+
import "./dist-D-W5ny5a.js";
|
|
5
|
+
import "./dist-M9Vag9Y0.js";
|
|
6
6
|
export {
|
|
7
7
|
markdown
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./dist-
|
|
2
|
-
import { a as PLSQL, c as SQLite, d as schemaCompletionSource, f as sql, i as MySQL, l as StandardSQL, n as MSSQL, o as PostgreSQL, r as MariaSQL, s as SQLDialect, t as Cassandra, u as keywordCompletionSource } from "./dist-
|
|
1
|
+
import "./dist-U4F-tbMs.js";
|
|
2
|
+
import { a as PLSQL, c as SQLite, d as schemaCompletionSource, f as sql, i as MySQL, l as StandardSQL, n as MSSQL, o as PostgreSQL, r as MariaSQL, s as SQLDialect, t as Cassandra, u as keywordCompletionSource } from "./dist-CcWX6tmx.js";
|
|
3
3
|
export {
|
|
4
4
|
Cassandra,
|
|
5
5
|
MSSQL,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
2
|
var blockEnd = 63, eof = 64, DirectiveEnd = 1, DocEnd = 2, sequenceStartMark = 3, sequenceContinueMark = 4, explicitMapStartMark = 5, explicitMapContinueMark = 6, flowMapMark = 7, mapStartMark = 65, mapContinueMark = 66, Literal = 8, QuotedLiteral = 9, Anchor = 10, Alias = 11, Tag = 12, BlockLiteralContent = 13, BracketL = 19, FlowSequence = 20, Colon = 29, BraceL = 33, FlowMapping = 34, BlockLiteralHeader = 47, type_Top = 0, type_Seq = 1, type_Map = 2, type_Flow = 3, type_Lit = 4, Context = class {
|
|
3
3
|
constructor(v, q, J) {
|
|
4
4
|
this.parent = v, this.depth = q, this.type = J, this.hash = (v ? v.hash + v.hash << 8 : 0) + q + (q << 4) + J;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent } from "./dist-U4F-tbMs.js";
|
|
2
2
|
var RawString = 1, templateArgsEndFallback = 2, MacroName = 3, R = 82, L = 76, u = 117, U = 85, a = 97, z = 122, A = 65, Z = 90, Underscore = 95, Zero = 48, Quote = 34, ParenL = 40, ParenR = 41, Space = 32, GreaterThan = 62, rawString = new ExternalTokenizer((y) => {
|
|
3
3
|
if (y.next == L || y.next == U ? y.advance() : y.next == u && (y.advance(), y.next == Zero + 8 && y.advance()), y.next != R || (y.advance(), y.next != Quote)) return;
|
|
4
4
|
y.advance();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-
|
|
1
|
+
import { H as tags, I as syntaxTree, O as indentNodeProp, S as foldInside, U as IterMode, V as styleTags, n as ExternalTokenizer, q as NodeWeakMap, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-hT4QzYX-.js";
|
|
3
3
|
var printKeyword = 1, indent = 194, dedent = 195, newline$1 = 196, blankLineStart = 197, newlineBracketed = 198, eof = 199, stringContent = 200, Escape = 2, replacementStart = 3, stringEnd = 201, ParenL = 24, ParenthesizedExpression = 25, TupleExpression = 49, ComprehensionExpression = 50, BracketL = 55, ArrayExpression = 56, ArrayComprehensionExpression = 57, BraceL = 59, DictionaryExpression = 60, DictionaryComprehensionExpression = 61, SetExpression = 62, SetComprehensionExpression = 63, ArgList = 65, subscript = 238, String$1 = 71, stringStart = 241, stringStartD = 242, stringStartL = 243, stringStartLD = 244, stringStartR = 245, stringStartRD = 246, stringStartRL = 247, stringStartRLD = 248, FormatString = 72, stringStartF = 249, stringStartFD = 250, stringStartFL = 251, stringStartFLD = 252, stringStartFR = 253, stringStartFRD = 254, stringStartFRL = 255, stringStartFRLD = 256, FormatReplacement = 73, nestedFormatReplacement = 77, importList = 263, TypeParamList = 112, ParamList = 130, SequencePattern = 151, MappingPattern = 152, PatternArgList = 155, newline = 10, carriageReturn = 13, space = 32, tab = 9, hash = 35, parenOpen = 40, dot = 46, braceOpen = 123, braceClose = 125, singleQuote = 39, doubleQuote = 34, backslash = 92, letter_o = 111, letter_x = 120, letter_N = 78, letter_u = 117, letter_U = 85, bracketed = /* @__PURE__ */ new Set([
|
|
4
4
|
ParenthesizedExpression,
|
|
5
5
|
TupleExpression,
|
|
@@ -388,19 +388,19 @@ var gatherCompletions = {
|
|
|
388
388
|
function getScope(v, q) {
|
|
389
389
|
let J = cache.get(q);
|
|
390
390
|
if (J) return J;
|
|
391
|
-
let Y = [],
|
|
391
|
+
let Y = [], Z = true;
|
|
392
392
|
function Q(q2, J2) {
|
|
393
|
-
let
|
|
393
|
+
let X = v.sliceString(q2.from, q2.to);
|
|
394
394
|
Y.push({
|
|
395
|
-
label:
|
|
395
|
+
label: X,
|
|
396
396
|
type: J2
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
399
|
return q.cursor(IterMode.IncludeAnonymous).iterate((q2) => {
|
|
400
400
|
if (q2.name) {
|
|
401
401
|
let v2 = gatherCompletions[q2.name];
|
|
402
|
-
if (v2 && v2(q2, Q,
|
|
403
|
-
|
|
402
|
+
if (v2 && v2(q2, Q, Z) || !Z && ScopeNodes.has(q2.name)) return false;
|
|
403
|
+
Z = false;
|
|
404
404
|
} else if (q2.to - q2.from > 8192) {
|
|
405
405
|
for (let J2 of getScope(v, q2.node)) Y.push(J2);
|
|
406
406
|
return false;
|
|
@@ -414,15 +414,15 @@ var Identifier = /^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/, dontComplete = [
|
|
|
414
414
|
"PropertyName"
|
|
415
415
|
];
|
|
416
416
|
function localCompletionSource(v) {
|
|
417
|
-
let
|
|
418
|
-
if (dontComplete.indexOf(
|
|
419
|
-
let Y =
|
|
417
|
+
let J = syntaxTree(v.state).resolveInner(v.pos, -1);
|
|
418
|
+
if (dontComplete.indexOf(J.name) > -1) return null;
|
|
419
|
+
let Y = J.name == "VariableName" || J.to - J.from < 20 && Identifier.test(v.state.sliceDoc(J.from, J.to));
|
|
420
420
|
if (!Y && !v.explicit) return null;
|
|
421
421
|
let X = [];
|
|
422
|
-
for (let
|
|
422
|
+
for (let q = J; q; q = q.parent) ScopeNodes.has(q.name) && (X = X.concat(getScope(v.state.doc, q)));
|
|
423
423
|
return {
|
|
424
424
|
options: X,
|
|
425
|
-
from: Y ?
|
|
425
|
+
from: Y ? J.from : v.pos,
|
|
426
426
|
validFor: Identifier
|
|
427
427
|
};
|
|
428
428
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { l as ifNotIn, s as completeFromList } from "./dist-
|
|
1
|
+
import { H as tags, I as syntaxTree, O as indentNodeProp, V as styleTags, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { l as ifNotIn, s as completeFromList } from "./dist-hT4QzYX-.js";
|
|
3
3
|
var whitespace = 36, LineComment = 1, BlockComment = 2, String$1 = 3, Number = 4, Bool = 5, Null = 6, ParenL = 7, ParenR = 8, BraceL = 9, BraceR = 10, BracketL = 11, BracketR = 12, Semi = 13, Dot = 14, Operator = 15, Punctuation = 16, SpecialVar = 17, Identifier = 18, QuotedIdentifier = 19, Keyword = 20, Type = 21, Bits = 22, Bytes = 23, Builtin = 24;
|
|
4
4
|
function isAlpha(h3) {
|
|
5
5
|
return h3 >= 65 && h3 <= 90 || h3 >= 97 && h3 <= 122 || h3 >= 48 && h3 <= 57;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./dist-
|
|
2
|
-
import { a as htmlLanguage, i as htmlCompletionSourceWith, n as html, o as htmlPlain, r as htmlCompletionSource, t as autoCloseTags } from "./dist-
|
|
3
|
-
import "./dist-
|
|
4
|
-
import "./dist-
|
|
1
|
+
import "./dist-U4F-tbMs.js";
|
|
2
|
+
import { a as htmlLanguage, i as htmlCompletionSourceWith, n as html, o as htmlPlain, r as htmlCompletionSource, t as autoCloseTags } from "./dist-BSAt6RhH.js";
|
|
3
|
+
import "./dist-D-W5ny5a.js";
|
|
4
|
+
import "./dist-M9Vag9Y0.js";
|
|
5
5
|
export {
|
|
6
6
|
html
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as html } from "./dist-
|
|
1
|
+
import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, V as styleTags, X as parseMixed, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { n as html } from "./dist-BSAt6RhH.js";
|
|
3
3
|
var interpolationStart = 1, tagStart = 2, endTagStart = 3, text = 180, endrawTagStart = 4, rawText = 181, endcommentTagStart = 5, commentText = 182, InlineComment = 6;
|
|
4
4
|
function wordChar(_) {
|
|
5
5
|
return _ >= 65 && _ <= 90 || _ >= 97 && _ <= 122;
|
|
@@ -284,7 +284,7 @@ function liquidCompletionSource(_ = {}) {
|
|
|
284
284
|
} : null;
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
-
var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((_, H, U
|
|
287
|
+
var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((_, V, H, U) => U != "%" || V != H || _.state.doc.sliceString(V - 1, H + 1) != "{}" ? false : (_.dispatch(_.state.changeByRange((_2) => ({
|
|
288
288
|
changes: {
|
|
289
289
|
from: _2.from,
|
|
290
290
|
to: _2.to,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./dist-U4F-tbMs.js";
|
|
2
|
+
import "./dist-BSAt6RhH.js";
|
|
3
|
+
import "./dist-D-W5ny5a.js";
|
|
4
|
+
import "./dist-M9Vag9Y0.js";
|
|
5
|
+
import { i as liquidLanguage, n as liquid, r as liquidCompletionSource, t as closePercentBrace } from "./dist-CpxNdDkw.js";
|
|
6
|
+
export {
|
|
7
|
+
liquid
|
|
8
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as html } from "./dist-
|
|
3
|
-
import "./dist-
|
|
4
|
-
import { r as javascriptLanguage } from "./dist-
|
|
1
|
+
import { H as tags, V as styleTags, X as parseMixed, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport } from "./dist-U4F-tbMs.js";
|
|
2
|
+
import { n as html } from "./dist-BSAt6RhH.js";
|
|
3
|
+
import "./dist-D-W5ny5a.js";
|
|
4
|
+
import { r as javascriptLanguage } from "./dist-M9Vag9Y0.js";
|
|
5
5
|
var Text = 1, attributeContentSingle = 33, attributeContentDouble = 34, scriptAttributeContentSingle = 35, scriptAttributeContentDouble = 36, text = /* @__PURE__ */ new ExternalTokenizer((p) => {
|
|
6
6
|
let A = p.pos;
|
|
7
7
|
for (; ; ) {
|
|
@@ -13,11 +13,11 @@ var Text = 1, attributeContentSingle = 33, attributeContentDouble = 34, scriptAt
|
|
|
13
13
|
}
|
|
14
14
|
p.pos > A && p.acceptToken(Text);
|
|
15
15
|
});
|
|
16
|
-
function attrContent(p, A,
|
|
17
|
-
return new ExternalTokenizer((
|
|
18
|
-
let N =
|
|
19
|
-
for (;
|
|
20
|
-
|
|
16
|
+
function attrContent(p, A, j) {
|
|
17
|
+
return new ExternalTokenizer((M) => {
|
|
18
|
+
let N = M.pos;
|
|
19
|
+
for (; M.next != p && M.next >= 0 && (j || M.next != 38 && (M.next != 123 || M.peek(1) != 123)); ) M.advance();
|
|
20
|
+
M.pos > N && M.acceptToken(A);
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
var attrSingle = /* @__PURE__ */ attrContent(39, attributeContentSingle, false), attrDouble = /* @__PURE__ */ attrContent(34, attributeContentDouble, false), scriptAttrSingle = /* @__PURE__ */ attrContent(39, scriptAttributeContentSingle, true), scriptAttrDouble = /* @__PURE__ */ attrContent(34, scriptAttributeContentDouble, true), parser = /* @__PURE__ */ LRParser.deserialize({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as tags$1, I as syntaxTree, O as indentNodeProp, S as foldInside, U as IterMode, V as styleTags, h as continuedIndent, i as LocalTokenGroup, n as ExternalTokenizer, q as NodeWeakMap, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
|
|
2
2
|
var descendantOp = 122, Unit = 1, identifier$1 = 123, callee = 124, VariableName = 2, queryIdentifier = 125, queryVariableName = 3, QueryCallee = 4, space = [
|
|
3
3
|
9,
|
|
4
4
|
10,
|
|
@@ -283,11 +283,11 @@ function variableNames(_, K, q) {
|
|
|
283
283
|
if (K.to - K.from > 4096) {
|
|
284
284
|
let J = VariablesByNode.get(K);
|
|
285
285
|
if (J) return J;
|
|
286
|
-
let
|
|
286
|
+
let X = [], Z = /* @__PURE__ */ new Set(), Q = K.cursor(IterMode.IncludeAnonymous);
|
|
287
287
|
if (Q.firstChild()) do
|
|
288
|
-
for (let K2 of variableNames(_, Q.node, q)) Z.has(K2.label) || (Z.add(K2.label),
|
|
288
|
+
for (let K2 of variableNames(_, Q.node, q)) Z.has(K2.label) || (Z.add(K2.label), X.push(K2));
|
|
289
289
|
while (Q.nextSibling());
|
|
290
|
-
return VariablesByNode.set(K,
|
|
290
|
+
return VariablesByNode.set(K, X), X;
|
|
291
291
|
} else {
|
|
292
292
|
let J = [], Y = /* @__PURE__ */ new Set();
|
|
293
293
|
return K.cursor().iterate((K2) => {
|
|
@@ -302,8 +302,8 @@ function variableNames(_, K, q) {
|
|
|
302
302
|
}), J;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
var defineCSSCompletionSource = (_) => (
|
|
306
|
-
let { state: J, pos: Y } =
|
|
305
|
+
var defineCSSCompletionSource = (_) => (q) => {
|
|
306
|
+
let { state: J, pos: Y } = q, X = syntaxTree(J).resolveInner(Y, -1), Z = X.type.isError && X.from == X.to - 1 && J.doc.sliceString(X.from, X.to) == "-";
|
|
307
307
|
if (X.name == "PropertyName" || (Z || X.name == "TagName") && /^(Block|Styles)$/.test(X.resolve(X.to).name)) return {
|
|
308
308
|
from: X.from,
|
|
309
309
|
options: properties(),
|
|
@@ -319,7 +319,7 @@ var defineCSSCompletionSource = (_) => (K) => {
|
|
|
319
319
|
options: pseudoClasses,
|
|
320
320
|
validFor: identifier
|
|
321
321
|
};
|
|
322
|
-
if (_(X) || (
|
|
322
|
+
if (_(X) || (q.explicit || Z) && isVarArg(X, J.doc)) return {
|
|
323
323
|
from: _(X) || Z ? X.from : Y,
|
|
324
324
|
options: variableNames(J.doc, astTop(X), _),
|
|
325
325
|
validFor: variable
|
|
@@ -341,7 +341,7 @@ var defineCSSCompletionSource = (_) => (K) => {
|
|
|
341
341
|
options: atRules,
|
|
342
342
|
validFor: identifier
|
|
343
343
|
};
|
|
344
|
-
if (!
|
|
344
|
+
if (!q.explicit) return null;
|
|
345
345
|
let Q = X.resolve(Y), $ = Q.childBefore(Y);
|
|
346
346
|
return $ && $.name == ":" && Q.name == "PseudoClassSelector" ? {
|
|
347
347
|
from: Y,
|