@bagelink/vue 1.20.87 → 1.20.93
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/StructuredEditor-qeR0lmPO.cjs +2 -0
- package/dist/StructuredEditor-yWtlPHRI.js +2508 -0
- package/dist/StructuredEditor.css +1 -1
- package/dist/components/Image.vue.d.ts +5 -0
- package/dist/components/Image.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts +17 -0
- package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/CodeEditor/StructuredEditor.vue.d.ts +9 -0
- package/dist/components/form/inputs/CodeEditor/StructuredEditor.vue.d.ts.map +1 -1
- package/dist/core.css +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-CgzOmRZD.js → src-BZuVp81N.js} +3580 -3580
- package/dist/{src-CxSyib2S.cjs → src-C4MiRND-.cjs} +33 -33
- package/dist/src.css +1 -1
- package/dist/style.css +3 -3
- package/package.json +2 -2
- package/src/components/Image.vue +14 -3
- package/src/components/form/inputs/CodeEditor/Index.vue +35 -17
- package/src/components/form/inputs/CodeEditor/StructuredEditor.vue +147 -9
- package/src/styles/dark.css +4 -3
- package/src/styles/inputs.css +11 -2
- package/dist/StructuredEditor-CTifmpdL.cjs +0 -2
- package/dist/StructuredEditor-spYZx2EI.js +0 -2431
|
@@ -1 +1 @@
|
|
|
1
|
-
.code-search-panel[data-v-c5ae435d]{font-family:var(--bgl-font-family,sans-serif);color:var(--bgl-color,inherit);background:var(--bgl-input-bg,transparent);z-index:10;box-sizing:border-box;width:min(100% - 2rem,540px);margin-inline-start:auto}.code-search-field[data-v-c5ae435d]{grid-template-columns:minmax(0,1fr) auto;align-items:center;display:grid}.code-search-field[data-v-c5ae435d]>.bagel-input{grid-area:1/1/2/3;margin-bottom:0}.code-search-field[data-v-c5ae435d] input{padding-inline-end:5rem}.code-search-options[data-v-c5ae435d]{z-index:1;grid-area:1/2}.code-search-panel[data-v-c5ae435d] .bgl_btn-icon{width:24px;min-width:24px;height:24px;padding:2px}.code-replace-row[data-v-c5ae435d]{padding-inline-start:28px}.code-replace-row[data-v-c5ae435d]>.bagel-input{margin-bottom:0}.structured-editor[data-v-
|
|
1
|
+
.code-search-panel[data-v-c5ae435d]{font-family:var(--bgl-font-family,sans-serif);color:var(--bgl-color,inherit);background:var(--bgl-input-bg,transparent);z-index:10;box-sizing:border-box;width:min(100% - 2rem,540px);margin-inline-start:auto}.code-search-field[data-v-c5ae435d]{grid-template-columns:minmax(0,1fr) auto;align-items:center;display:grid}.code-search-field[data-v-c5ae435d]>.bagel-input{grid-area:1/1/2/3;margin-bottom:0}.code-search-field[data-v-c5ae435d] input{padding-inline-end:5rem}.code-search-options[data-v-c5ae435d]{z-index:1;grid-area:1/2}.code-search-panel[data-v-c5ae435d] .bgl_btn-icon{width:24px;min-width:24px;height:24px;padding:2px}.code-replace-row[data-v-c5ae435d]{padding-inline-start:28px}.code-replace-row[data-v-c5ae435d]>.bagel-input{margin-bottom:0}.structured-editor[data-v-7cd77e82]{height:100%;min-height:0;max-height:var(--code-max-height,none);font-variant-ligatures:none;flex-direction:column;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;display:flex;position:relative;overflow:hidden}.structured-editor-host[data-v-7cd77e82]{flex:1;min-height:0;overflow:auto}.structured-editor:not(.toolbar-hover):not(.terminal):not(.single-line) .structured-editor-host[data-v-7cd77e82]{border-radius:var(--code-border-radius,.25rem);overflow:hidden}.toolbar-hover[data-v-7cd77e82],.structured-editor.single-line[data-v-7cd77e82]{border-radius:var(--code-border-radius,.25rem)}.structured-editor.single-line[data-v-7cd77e82]{border-radius:var(--bgl-input-border-radius)}.code-terminal-bar[data-v-7cd77e82]{background:#ffffff0a}.code-toolbar[data-v-7cd77e82]{z-index:1;position:relative}.toolbar-hover .code-toolbar[data-v-7cd77e82]{z-index:3;opacity:0;pointer-events:none;background:linear-gradient(to bottom, color-mix(in srgb, var(--bgl-box-bg,#fff) 92%, transparent), color-mix(in srgb, var(--bgl-box-bg,#fff) 55%, transparent), transparent);padding-inline:.5rem;transition:opacity .15s;position:absolute;inset-block-start:0;inset-inline:0}.toolbar-hover:hover .code-toolbar[data-v-7cd77e82],.toolbar-hover:focus-within .code-toolbar[data-v-7cd77e82],.toolbar-hover.toolbar-pinned .code-toolbar[data-v-7cd77e82]{opacity:1;pointer-events:auto}.code-alert[data-v-7cd77e82]{z-index:2;position:relative}.toolbar-hover .code-alert[data-v-7cd77e82]{z-index:3;position:absolute;inset-block-start:2rem;inset-inline:0}
|
|
@@ -26,6 +26,11 @@ interface ImageProps {
|
|
|
26
26
|
rounded?: boolean | number;
|
|
27
27
|
/** Defer the download until the image nears the viewport. */
|
|
28
28
|
lazy?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Mark as the LCP / above-the-fold candidate. Sets `fetchpriority="high"`
|
|
31
|
+
* and disables lazy loading so the browser fetches it immediately.
|
|
32
|
+
*/
|
|
33
|
+
priority?: boolean;
|
|
29
34
|
}
|
|
30
35
|
declare function __VLS_template(): {
|
|
31
36
|
attrs: Partial<{}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.vue.d.ts","sourceRoot":"","sources":["../../src/components/Image.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Image.vue.d.ts","sourceRoot":"","sources":["../../src/components/Image.vue"],"names":[],"mappings":"AAyNA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAInE,UAAU,UAAU;IACnB,GAAG,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAAA;IACnC,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,OA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
default: boolean;
|
|
78
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* Toolbar chrome: `bar` keeps language + actions above the editor;
|
|
81
|
+
* `hover` reveals them on hover/focus. Terminal mode always uses the title bar.
|
|
82
|
+
*/
|
|
83
|
+
toolbarMode: {
|
|
84
|
+
type: PropType<"bar" | "hover">;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
79
87
|
singleLine: {
|
|
80
88
|
type: BooleanConstructor;
|
|
81
89
|
default: boolean;
|
|
@@ -187,6 +195,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
187
195
|
type: BooleanConstructor;
|
|
188
196
|
default: boolean;
|
|
189
197
|
};
|
|
198
|
+
/**
|
|
199
|
+
* Toolbar chrome: `bar` keeps language + actions above the editor;
|
|
200
|
+
* `hover` reveals them on hover/focus. Terminal mode always uses the title bar.
|
|
201
|
+
*/
|
|
202
|
+
toolbarMode: {
|
|
203
|
+
type: PropType<"bar" | "hover">;
|
|
204
|
+
default: string;
|
|
205
|
+
};
|
|
190
206
|
singleLine: {
|
|
191
207
|
type: BooleanConstructor;
|
|
192
208
|
default: boolean;
|
|
@@ -245,6 +261,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
245
261
|
folding: boolean;
|
|
246
262
|
formatting: boolean;
|
|
247
263
|
singleLine: boolean;
|
|
264
|
+
toolbarMode: "hover" | "bar";
|
|
248
265
|
autodetect: boolean;
|
|
249
266
|
ignoreIllegals: boolean;
|
|
250
267
|
mobileHeight: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/CodeEditor/Index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/CodeEditor/Index.vue"],"names":[],"mappings":"AAiMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;;;cAmR9B,QAAQ,CAAC,QAAQ,CAAC;;;;;;;;cAEN,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;IAC9E,kFAAkF;;;;;IAElF,+EAA+E;;;;;;;;;;;;;;;;;IAK/E,yEAAyE;;;;;IAEzE,gEAAgE;;;;;;;;;;;;;;;;;;;;;IAMhE,mCAAmC;;;;;IAEnC,yDAAyD;;;;;IAEzD,iFAAiF;;;;;IAEjF;;;OAGG;;cAC4B,QAAQ,CAAC,KAAK,GAAG,OAAO,CAAC;;;;;;;IAExD,wEAAwE;;cAC/C,QAAQ,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA/BrB,QAAQ,CAAC,QAAQ,CAAC;;;;;;;;cAEN,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;;IAC9E,kFAAkF;;;;;IAElF,+EAA+E;;;;;;;;;;;;;;;;;IAK/E,yEAAyE;;;;;IAEzE,gEAAgE;;;;;;;;;;;;;;;;;;;;;IAMhE,mCAAmC;;;;;IAEnC,yDAAyD;;;;;IAEzD,iFAAiF;;;;;IAEjF;;;OAGG;;cAC4B,QAAQ,CAAC,KAAK,GAAG,OAAO,CAAC;;;;;;;IAExD,wEAAwE;;cAC/C,QAAQ,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAtClD,wBA+CG"}
|
|
@@ -11,6 +11,15 @@ type __VLS_Props = {
|
|
|
11
11
|
placeholder: string;
|
|
12
12
|
label: string;
|
|
13
13
|
dark: boolean;
|
|
14
|
+
terminal?: boolean;
|
|
15
|
+
/** Shown in the terminal title bar. */
|
|
16
|
+
title?: string;
|
|
17
|
+
/**
|
|
18
|
+
* `bar` (default) — language label + actions always visible above the editor.
|
|
19
|
+
* `hover` — immersive surface; chrome appears on hover/focus.
|
|
20
|
+
* Terminal mode always uses the title-bar row for chrome.
|
|
21
|
+
*/
|
|
22
|
+
toolbarMode?: 'bar' | 'hover';
|
|
14
23
|
};
|
|
15
24
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
25
|
"update:modelValue": (value: string) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StructuredEditor.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/CodeEditor/StructuredEditor.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StructuredEditor.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/CodeEditor/StructuredEditor.vue"],"names":[],"mappings":"AAkaA,KAAK,WAAW,GAAG;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,OAAO,CAAA;IACpB,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,GAAG,OAAO,CAAA;CAC7B,CAAC;;;;;;;;;;;;AAofF,wBASG"}
|