@bagelink/vue 1.15.664 → 1.15.667

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/package.json CHANGED
@@ -1,105 +1,106 @@
1
1
  {
2
- "name": "@bagelink/vue",
3
- "type": "module",
4
- "version": "1.15.664",
5
- "description": "Bagel core sdk packages",
6
- "author": {
7
- "name": "Bagel Studio",
8
- "email": "hi@bagelstudio.co.il"
9
- },
10
- "license": "MIT",
11
- "homepage": "https://github.com/bageldb/bagelink/tree/master/packages/vue#readme",
12
- "repository": {
13
- "type": "git",
14
- "url": "git+https://github.com/bageldb/bagelink.git",
15
- "directory": "packages/vue"
16
- },
17
- "bugs": "https://github.com/bageldb/bagelink/issues",
18
- "keywords": [],
19
- "sideEffects": [
20
- "**/*.css"
21
- ],
22
- "exports": {
23
- "./tsconfig.json": "./tsconfig.json",
24
- "./package.json": "./package.json",
25
- "./src": "./src/index.ts",
26
- "./src/components": "./src/components/index.ts",
27
- "./src/utils": "./src/utils/index.ts",
28
- "./src/types": "./src/types/index.ts",
29
- ".": {
30
- "types": "./dist/index.d.ts",
31
- "require": "./dist/index.cjs",
32
- "import": "./dist/index.mjs"
33
- },
34
- "./style.css": "./dist/style.css",
35
- "./styles/core.css": "./dist/core.css",
36
- "./styles/admin.css": "./dist/style.css",
37
- "./styles/fonts/admin.css": "./dist/admin.css",
38
- "./styles/fonts/ploni.css": "./dist/ploni.css",
39
- "./*": "./*"
40
- },
41
- "main": "./dist/index.cjs",
42
- "module": "./dist/index.mjs",
43
- "types": "./dist/index.d.ts",
44
- "typesVersions": {
45
- "*": {
46
- "*": [
47
- "./dist/*",
48
- "./dist/index.d.ts"
49
- ]
50
- }
51
- },
52
- "bin": {
53
- "experimentalGenTypedRoutes": "./bin/experimentalGenTypedRoutes.ts"
54
- },
55
- "files": [
56
- "dist",
57
- "src",
58
- "./vite.config.ts",
59
- "bin/experimentalGenTypedRoutes.ts"
60
- ],
61
- "devDependencies": {
62
- "@types/leaflet": "^1.9.22",
63
- "@types/signature_pad": "^4.0.0",
64
- "vue": "^3.5.43",
65
- "vue-component-type-helpers": "^2.2.12"
66
- },
67
- "peerDependencies": {
68
- "@bagelink/sdk": "*",
69
- "type-fest": "^4",
70
- "vue": "*",
71
- "vue-component-type-helpers": ">=2.2.10",
72
- "vue-draggable-next": "^2.2.1",
73
- "vue-router": "*"
74
- },
75
- "peerDependenciesMeta": {
76
- "vue-draggable-next": {
77
- "optional": true
78
- }
79
- },
80
- "publishConfig": {
81
- "access": "public"
82
- },
83
- "dependencies": {
84
- "@floating-ui/dom": "^1.8.0",
85
- "@oddbird/popover-polyfill": "^0.6.1",
86
- "@vueuse/core": "^13.9.0",
87
- "@zxcvbn-ts/core": "^3.0.4",
88
- "axios": "^1.20.0",
89
- "floating-vue": "^5.4.0",
90
- "libphonenumber-js": "^1.13.14",
91
- "page-flip": "^2.0.7",
92
- "pdfjs-dist": "^6.3.289",
93
- "signature_pad": "^5.1.4",
94
- "swiper": "^12.2.0",
95
- "vue-i18n": "^11.4.12",
96
- "vue-toastification": "^2.0.0-rc.5"
97
- },
98
- "scripts": {
99
- "dev": "tsx watch src/index.ts",
100
- "build": "vite build && pnpm verify:css",
101
- "verify:css": "tsx scripts/verify-css-build.ts",
102
- "gen:cheatsheet": "tsx scripts/gen-cheatsheet.ts",
103
- "start": "tsx src/index.ts"
104
- }
105
- }
2
+ "name": "@bagelink/vue",
3
+ "type": "module",
4
+ "version": "1.15.667",
5
+ "description": "Bagel core sdk packages",
6
+ "author": {
7
+ "name": "Bagel Studio",
8
+ "email": "hi@bagelstudio.co.il"
9
+ },
10
+ "license": "MIT",
11
+ "homepage": "https://github.com/bageldb/bagelink/tree/master/packages/vue#readme",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/bageldb/bagelink.git",
15
+ "directory": "packages/vue"
16
+ },
17
+ "bugs": "https://github.com/bageldb/bagelink/issues",
18
+ "keywords": [],
19
+ "sideEffects": [
20
+ "**/*.css"
21
+ ],
22
+ "exports": {
23
+ "./tsconfig.json": "./tsconfig.json",
24
+ "./package.json": "./package.json",
25
+ "./src": "./src/index.ts",
26
+ "./src/components": "./src/components/index.ts",
27
+ "./src/utils": "./src/utils/index.ts",
28
+ "./src/types": "./src/types/index.ts",
29
+ ".": {
30
+ "types": "./dist/index.d.ts",
31
+ "require": "./dist/index.cjs",
32
+ "import": "./dist/index.mjs"
33
+ },
34
+ "./style.css": "./dist/style.css",
35
+ "./styles/core.css": "./dist/core.css",
36
+ "./styles/admin.css": "./dist/style.css",
37
+ "./styles/fonts/admin.css": "./dist/admin.css",
38
+ "./styles/fonts/ploni.css": "./dist/ploni.css",
39
+ "./*": "./*"
40
+ },
41
+ "main": "./dist/index.cjs",
42
+ "module": "./dist/index.mjs",
43
+ "types": "./dist/index.d.ts",
44
+ "typesVersions": {
45
+ "*": {
46
+ "*": [
47
+ "./dist/*",
48
+ "./dist/index.d.ts"
49
+ ]
50
+ }
51
+ },
52
+ "bin": {
53
+ "experimentalGenTypedRoutes": "./bin/experimentalGenTypedRoutes.ts"
54
+ },
55
+ "files": [
56
+ "dist",
57
+ "src",
58
+ "./vite.config.ts",
59
+ "bin/experimentalGenTypedRoutes.ts"
60
+ ],
61
+ "devDependencies": {
62
+ "@types/leaflet": "^1.9.22",
63
+ "@types/signature_pad": "^4.0.0",
64
+ "vue": "^3.5.43",
65
+ "vue-component-type-helpers": "^2.2.12"
66
+ },
67
+ "peerDependencies": {
68
+ "@bagelink/sdk": "*",
69
+ "type-fest": "^4",
70
+ "vue": "*",
71
+ "vue-component-type-helpers": ">=2.2.10",
72
+ "vue-draggable-next": "^2.2.1",
73
+ "vue-router": "*"
74
+ },
75
+ "peerDependenciesMeta": {
76
+ "vue-draggable-next": {
77
+ "optional": true
78
+ }
79
+ },
80
+ "scripts": {
81
+ "prepublishOnly": "pnpm build",
82
+ "dev": "tsx watch src/index.ts",
83
+ "build": "vite build && pnpm verify:css",
84
+ "verify:css": "tsx scripts/verify-css-build.ts",
85
+ "gen:cheatsheet": "tsx scripts/gen-cheatsheet.ts",
86
+ "start": "tsx src/index.ts"
87
+ },
88
+ "publishConfig": {
89
+ "access": "public"
90
+ },
91
+ "dependencies": {
92
+ "@floating-ui/dom": "^1.8.0",
93
+ "@oddbird/popover-polyfill": "^0.6.1",
94
+ "@vueuse/core": "^13.9.0",
95
+ "@zxcvbn-ts/core": "^3.0.4",
96
+ "axios": "^1.20.0",
97
+ "floating-vue": "^5.4.0",
98
+ "libphonenumber-js": "^1.13.14",
99
+ "page-flip": "^2.0.7",
100
+ "pdfjs-dist": "^6.3.289",
101
+ "signature_pad": "^5.1.4",
102
+ "swiper": "^12.2.0",
103
+ "vue-i18n": "^11.4.12",
104
+ "vue-toastification": "^2.0.0-rc.5"
105
+ }
106
+ }
@@ -266,12 +266,10 @@ const iconStyle = computed(() => {
266
266
 
267
267
  .bgl_icon-font.fa {
268
268
  font-family: 'Font Awesome 6 Free', serif !important;
269
- font-display: swap;
270
269
  }
271
270
 
272
271
  .bgl_icon-font.fa-brands {
273
272
  font-family: 'Font Awesome 6 Brands', serif !important;
274
- font-display: swap;
275
273
  }
276
274
 
277
275
  /* ── Entrance / loop animations (opt-in via `animate`) ─────────────────────── */
@@ -18,6 +18,18 @@ const props = defineProps({
18
18
  height: { type: String, default: '240px' },
19
19
  /** Mobile-only height override. Accepts CSS lengths or a unitless pixel value. */
20
20
  mobileHeight: { type: String, default: undefined },
21
+ /**
22
+ * Cap the editor height (CSS length). Pair with `height="auto"` to let the
23
+ * editor grow with its content up to this cap — suits log/console output.
24
+ */
25
+ maxHeight: { type: String, default: undefined },
26
+ /**
27
+ * Terminal window chrome: a title bar with traffic-light dots on the
28
+ * project's code surface (`--bgl-code-bg` / `--bgl-code-color`).
29
+ */
30
+ terminal: { type: Boolean, default: false },
31
+ /** Title shown in the terminal title bar (e.g. a file name or step key). */
32
+ title: { type: String, default: '' },
21
33
  disabled: { type: Boolean, default: false },
22
34
  /** Wrap long lines instead of scrolling horizontally */
23
35
  wrap: { type: Boolean, default: false },
@@ -173,10 +185,21 @@ watch(() => props.modelValue, () => {
173
185
 
174
186
  <template>
175
187
  <div
176
- class="bagel-input code-editor-container ltr" :class="[shellClass, { '': label && !singleLine, 'has-value': hasCodeValue, 'single-line': singleLine }]"
177
- :style="[{ height: maxHeight }, shellStyle]"
188
+ class="bagel-input code-editor-container ltr" :class="[shellClass, { '': label && !singleLine, 'has-value': hasCodeValue, 'single-line': singleLine, terminal }]"
189
+ :style="[{ height: maxHeight, '--code-max-height': props.maxHeight }, shellStyle]"
178
190
  >
179
191
  <label v-if="label" class="label">{{ label }}</label>
192
+ <div
193
+ v-if="terminal"
194
+ class="code-terminal-bar monospace flex gap-05 py-05 px-075 txt11 line-height-1 border-bottom"
195
+ >
196
+ <span class="inline-flex gap-025 flex-shrink-0" aria-hidden="true">
197
+ <span class="square-10 round bg-red" />
198
+ <span class="square-10 round bg-yellow" />
199
+ <span class="square-10 round bg-green" />
200
+ </span>
201
+ <span v-if="title" class="opacity-5 ellipsis-1">{{ title }}</span>
202
+ </div>
180
203
  <div
181
204
  v-if="loaded"
182
205
  ref="editorRef"
@@ -215,6 +238,7 @@ watch(() => props.modelValue, () => {
215
238
  border-radius: var(--code-border-radius, 0.25rem);
216
239
  width: 100%;
217
240
  height: 100%;
241
+ max-height: var(--code-max-height, none);
218
242
  overflow: auto;
219
243
  overscroll-behavior: contain;
220
244
  padding: 1ch;
@@ -352,6 +376,32 @@ watch(() => props.modelValue, () => {
352
376
  font-size: var(--bgl-input-font-size);
353
377
  white-space: pre;
354
378
  }
379
+
380
+ /* ── Terminal window variant ─────────────────────────────────────────────────
381
+ A console/CI-log surface with a traffic-light title bar. Surface and ink come
382
+ from the project's `--bgl-code-bg` / `--bgl-code-color` tokens. */
383
+ .code-editor-container.terminal {
384
+ padding: 0;
385
+ margin-bottom: 0;
386
+ overflow: hidden;
387
+ color: var(--bgl-code-color, #38bdf8);
388
+ background: var(--bgl-code-bg, #0b0f19);
389
+ border: 1px solid var(--bgl-border-color);
390
+ border-radius: calc(var(--bgl-radius, 6px) * 2);
391
+ }
392
+
393
+ .code-terminal-bar {
394
+ background: rgba(255, 255, 255, 0.04);
395
+ }
396
+
397
+ .code-editor-container.terminal .code-editor-grandpa {
398
+ flex: 1 1 auto;
399
+ height: auto;
400
+ min-height: 0;
401
+ background: transparent;
402
+ border-radius: 0;
403
+ padding: 0.75rem;
404
+ }
355
405
  </style>
356
406
 
357
407
  <style>
@@ -74,3 +74,39 @@ button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
74
74
  @media screen and (max-width: 910px) {
75
75
  body { min-height: 100vh; min-height: -webkit-fill-available; height: -webkit-fill-available; }
76
76
  }
77
+
78
+ /* ── Icon font display strategy ─────────────────────────────────────────────
79
+ Font Awesome ships every face with `font-display: block`, keeping icon glyphs
80
+ invisible for up to 3s (flagged by Lighthouse). Its glyphs render through
81
+ `::before` on an empty element, so `swap` shows no fallback text and causes no
82
+ layout shift — `Icon.vue` additionally holds the span at `visibility: hidden`
83
+ until `document.fonts.check` passes.
84
+
85
+ These re-declarations must come AFTER the `@import` at the top of this file
86
+ (the last matching `@font-face` wins) and stay in sync with the pinned Font
87
+ Awesome version in that import. Material Symbols is deliberately left at its
88
+ default `block`: it renders ligature *text* (`arrow_back`), which `swap` would
89
+ flash on screen before the font loads. */
90
+ @font-face {
91
+ font-display: swap;
92
+ font-family: 'Font Awesome 6 Brands';
93
+ font-style: normal;
94
+ font-weight: 400;
95
+ src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/webfonts/fa-brands-400.woff2') format('woff2');
96
+ }
97
+
98
+ @font-face {
99
+ font-display: swap;
100
+ font-family: 'Font Awesome 6 Free';
101
+ font-style: normal;
102
+ font-weight: 400;
103
+ src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/webfonts/fa-regular-400.woff2') format('woff2');
104
+ }
105
+
106
+ @font-face {
107
+ font-display: swap;
108
+ font-family: 'Font Awesome 6 Free';
109
+ font-style: normal;
110
+ font-weight: 900;
111
+ src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/webfonts/fa-solid-900.woff2') format('woff2');
112
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Bagel Studio
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.