@bagelink/blox 1.13.0 → 1.13.2
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/{prerender-1I_qD2kp.js → prerender-BXf1VF7r.js} +24 -7
- package/dist/{prerender-Br-vA3A0.cjs → prerender-DN7Ugbtc.cjs} +24 -7
- package/dist/ssg/cli.cjs +4 -2
- package/dist/ssg/cli.mjs +4 -2
- package/dist/ssg/index.cjs +1 -1
- package/dist/ssg/index.mjs +2 -2
- package/dist/ssg/seo.d.ts.map +1 -1
- package/package.json +126 -125
- package/LICENSE +0 -21
|
@@ -119,11 +119,13 @@ function buildPageHead(options) {
|
|
|
119
119
|
const parts = [];
|
|
120
120
|
const meta = (website == null ? void 0 : website.meta) ?? {};
|
|
121
121
|
const page = resolvedData == null ? void 0 : resolvedData.page;
|
|
122
|
-
const
|
|
122
|
+
const ctx = extractPrimaryContext(resolvedData == null ? void 0 : resolvedData.contexts);
|
|
123
|
+
const title = (page == null ? void 0 : page.meta_title) || ctx.title || ((page == null ? void 0 : page.title) && meta.og_site_name ? `${page.title} · ${meta.og_site_name}` : null) || (page == null ? void 0 : page.title) || meta.default_meta_title;
|
|
123
124
|
if (title) {
|
|
124
|
-
|
|
125
|
+
const fullTitle = ctx.title && meta.og_site_name && !ctx.title.includes(meta.og_site_name) ? `${esc(ctx.title)} · ${esc(meta.og_site_name)}` : esc(title);
|
|
126
|
+
parts.push(`<title>${fullTitle}</title>`);
|
|
125
127
|
}
|
|
126
|
-
const description = (page == null ? void 0 : page.meta_description) || meta.default_meta_description;
|
|
128
|
+
const description = (page == null ? void 0 : page.meta_description) || ctx.description || meta.default_meta_description;
|
|
127
129
|
if (description) {
|
|
128
130
|
parts.push(`<meta name="description" content="${esc(description)}">`);
|
|
129
131
|
}
|
|
@@ -131,9 +133,9 @@ function buildPageHead(options) {
|
|
|
131
133
|
if (canonicalBase) {
|
|
132
134
|
parts.push(`<link rel="canonical" href="${esc(canonicalBase + url)}">`);
|
|
133
135
|
}
|
|
134
|
-
const ogTitle = (page == null ? void 0 : page.meta_title) || (page == null ? void 0 : page.title) || meta.og_site_name || meta.default_meta_title;
|
|
135
|
-
const ogDesc = (page == null ? void 0 : page.meta_description) || meta.og_description || meta.default_meta_description;
|
|
136
|
-
const ogImage = (page == null ? void 0 : page.og_image) || meta.default_og_image;
|
|
136
|
+
const ogTitle = (page == null ? void 0 : page.meta_title) || ctx.title || (page == null ? void 0 : page.title) || meta.og_site_name || meta.default_meta_title;
|
|
137
|
+
const ogDesc = (page == null ? void 0 : page.meta_description) || ctx.description || meta.og_description || meta.default_meta_description;
|
|
138
|
+
const ogImage = (page == null ? void 0 : page.og_image) || ctx.image || meta.default_og_image;
|
|
137
139
|
const ogType = meta.og_type || "website";
|
|
138
140
|
if (ogTitle) parts.push(`<meta property="og:title" content="${esc(ogTitle)}">`);
|
|
139
141
|
if (ogDesc) parts.push(`<meta property="og:description" content="${esc(ogDesc)}">`);
|
|
@@ -141,7 +143,7 @@ function buildPageHead(options) {
|
|
|
141
143
|
parts.push(`<meta property="og:type" content="${esc(ogType)}">`);
|
|
142
144
|
if (canonicalBase) parts.push(`<meta property="og:url" content="${esc(canonicalBase + url)}">`);
|
|
143
145
|
if (meta.og_site_name) parts.push(`<meta property="og:site_name" content="${esc(meta.og_site_name)}">`);
|
|
144
|
-
const twitterCard = meta.twitter_card || "summary_large_image";
|
|
146
|
+
const twitterCard = meta.twitter_card || (ogImage ? "summary_large_image" : "summary");
|
|
145
147
|
parts.push(`<meta name="twitter:card" content="${esc(twitterCard)}">`);
|
|
146
148
|
if (ogTitle) parts.push(`<meta name="twitter:title" content="${esc(ogTitle)}">`);
|
|
147
149
|
if (ogDesc) parts.push(`<meta name="twitter:description" content="${esc(ogDesc)}">`);
|
|
@@ -238,6 +240,21 @@ function generateNetlifyRedirects(redirects) {
|
|
|
238
240
|
function stripTemplateSeoTags(template) {
|
|
239
241
|
return template.replace(/<title>[^<]*<\/title>/gi, "<!--ssg:title-->").replace(/<meta\s[^>]*name\s*=\s*["']description["'][^>]*>/gi, "").replace(/<meta\s[^>]*property\s*=\s*["']og:[^"']*["'][^>]*>/gi, "").replace(/<meta\s[^>]*(?:property|name)\s*=\s*["']twitter:[^"']*["'][^>]*>/gi, "").replace(/<link\s[^>]*rel\s*=\s*["']apple-touch-icon["'][^>]*>/gi, "").replace(/<link\s[^>]*rel\s*=\s*["']icon["'][^>]*>/gi, "").replace(/\n\s*\n\s*\n/g, "\n\n");
|
|
240
242
|
}
|
|
243
|
+
function extractPrimaryContext(contexts) {
|
|
244
|
+
const empty = { title: null, description: null, image: null };
|
|
245
|
+
if (!contexts || typeof contexts !== "object") return empty;
|
|
246
|
+
const ctx = Object.values(contexts).find((c) => c != null);
|
|
247
|
+
if (!ctx) return empty;
|
|
248
|
+
const str = (key) => {
|
|
249
|
+
const v = ctx[key];
|
|
250
|
+
return typeof v === "string" && v.trim() ? v.trim() : null;
|
|
251
|
+
};
|
|
252
|
+
return {
|
|
253
|
+
title: str("meta_title") || str("title"),
|
|
254
|
+
description: str("meta_description") || str("excerpt") || str("description") || str("blurb") || str("summary"),
|
|
255
|
+
image: str("og_image") || str("cover_image_url") || str("image_url") || str("image")
|
|
256
|
+
};
|
|
257
|
+
}
|
|
241
258
|
function esc(s) {
|
|
242
259
|
return s.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
243
260
|
}
|
|
@@ -142,11 +142,13 @@ function buildPageHead(options) {
|
|
|
142
142
|
const parts = [];
|
|
143
143
|
const meta = (website == null ? void 0 : website.meta) ?? {};
|
|
144
144
|
const page = resolvedData == null ? void 0 : resolvedData.page;
|
|
145
|
-
const
|
|
145
|
+
const ctx = extractPrimaryContext(resolvedData == null ? void 0 : resolvedData.contexts);
|
|
146
|
+
const title = (page == null ? void 0 : page.meta_title) || ctx.title || ((page == null ? void 0 : page.title) && meta.og_site_name ? `${page.title} · ${meta.og_site_name}` : null) || (page == null ? void 0 : page.title) || meta.default_meta_title;
|
|
146
147
|
if (title) {
|
|
147
|
-
|
|
148
|
+
const fullTitle = ctx.title && meta.og_site_name && !ctx.title.includes(meta.og_site_name) ? `${esc(ctx.title)} · ${esc(meta.og_site_name)}` : esc(title);
|
|
149
|
+
parts.push(`<title>${fullTitle}</title>`);
|
|
148
150
|
}
|
|
149
|
-
const description = (page == null ? void 0 : page.meta_description) || meta.default_meta_description;
|
|
151
|
+
const description = (page == null ? void 0 : page.meta_description) || ctx.description || meta.default_meta_description;
|
|
150
152
|
if (description) {
|
|
151
153
|
parts.push(`<meta name="description" content="${esc(description)}">`);
|
|
152
154
|
}
|
|
@@ -154,9 +156,9 @@ function buildPageHead(options) {
|
|
|
154
156
|
if (canonicalBase) {
|
|
155
157
|
parts.push(`<link rel="canonical" href="${esc(canonicalBase + url)}">`);
|
|
156
158
|
}
|
|
157
|
-
const ogTitle = (page == null ? void 0 : page.meta_title) || (page == null ? void 0 : page.title) || meta.og_site_name || meta.default_meta_title;
|
|
158
|
-
const ogDesc = (page == null ? void 0 : page.meta_description) || meta.og_description || meta.default_meta_description;
|
|
159
|
-
const ogImage = (page == null ? void 0 : page.og_image) || meta.default_og_image;
|
|
159
|
+
const ogTitle = (page == null ? void 0 : page.meta_title) || ctx.title || (page == null ? void 0 : page.title) || meta.og_site_name || meta.default_meta_title;
|
|
160
|
+
const ogDesc = (page == null ? void 0 : page.meta_description) || ctx.description || meta.og_description || meta.default_meta_description;
|
|
161
|
+
const ogImage = (page == null ? void 0 : page.og_image) || ctx.image || meta.default_og_image;
|
|
160
162
|
const ogType = meta.og_type || "website";
|
|
161
163
|
if (ogTitle) parts.push(`<meta property="og:title" content="${esc(ogTitle)}">`);
|
|
162
164
|
if (ogDesc) parts.push(`<meta property="og:description" content="${esc(ogDesc)}">`);
|
|
@@ -164,7 +166,7 @@ function buildPageHead(options) {
|
|
|
164
166
|
parts.push(`<meta property="og:type" content="${esc(ogType)}">`);
|
|
165
167
|
if (canonicalBase) parts.push(`<meta property="og:url" content="${esc(canonicalBase + url)}">`);
|
|
166
168
|
if (meta.og_site_name) parts.push(`<meta property="og:site_name" content="${esc(meta.og_site_name)}">`);
|
|
167
|
-
const twitterCard = meta.twitter_card || "summary_large_image";
|
|
169
|
+
const twitterCard = meta.twitter_card || (ogImage ? "summary_large_image" : "summary");
|
|
168
170
|
parts.push(`<meta name="twitter:card" content="${esc(twitterCard)}">`);
|
|
169
171
|
if (ogTitle) parts.push(`<meta name="twitter:title" content="${esc(ogTitle)}">`);
|
|
170
172
|
if (ogDesc) parts.push(`<meta name="twitter:description" content="${esc(ogDesc)}">`);
|
|
@@ -261,6 +263,21 @@ function generateNetlifyRedirects(redirects) {
|
|
|
261
263
|
function stripTemplateSeoTags(template) {
|
|
262
264
|
return template.replace(/<title>[^<]*<\/title>/gi, "<!--ssg:title-->").replace(/<meta\s[^>]*name\s*=\s*["']description["'][^>]*>/gi, "").replace(/<meta\s[^>]*property\s*=\s*["']og:[^"']*["'][^>]*>/gi, "").replace(/<meta\s[^>]*(?:property|name)\s*=\s*["']twitter:[^"']*["'][^>]*>/gi, "").replace(/<link\s[^>]*rel\s*=\s*["']apple-touch-icon["'][^>]*>/gi, "").replace(/<link\s[^>]*rel\s*=\s*["']icon["'][^>]*>/gi, "").replace(/\n\s*\n\s*\n/g, "\n\n");
|
|
263
265
|
}
|
|
266
|
+
function extractPrimaryContext(contexts) {
|
|
267
|
+
const empty = { title: null, description: null, image: null };
|
|
268
|
+
if (!contexts || typeof contexts !== "object") return empty;
|
|
269
|
+
const ctx = Object.values(contexts).find((c) => c != null);
|
|
270
|
+
if (!ctx) return empty;
|
|
271
|
+
const str = (key) => {
|
|
272
|
+
const v = ctx[key];
|
|
273
|
+
return typeof v === "string" && v.trim() ? v.trim() : null;
|
|
274
|
+
};
|
|
275
|
+
return {
|
|
276
|
+
title: str("meta_title") || str("title"),
|
|
277
|
+
description: str("meta_description") || str("excerpt") || str("description") || str("blurb") || str("summary"),
|
|
278
|
+
image: str("og_image") || str("cover_image_url") || str("image_url") || str("image")
|
|
279
|
+
};
|
|
280
|
+
}
|
|
264
281
|
function esc(s) {
|
|
265
282
|
return s.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
266
283
|
}
|
package/dist/ssg/cli.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
"use strict";
|
|
3
3
|
const process = require("node:process");
|
|
4
|
-
const prerender = require("../prerender-
|
|
4
|
+
const prerender = require("../prerender-DN7Ugbtc.cjs");
|
|
5
5
|
async function resolveApiBase(mode) {
|
|
6
6
|
if (process.env.BAGELINK_API_URL != null && process.env.BAGELINK_API_URL !== "") {
|
|
7
7
|
return { apiBase: process.env.BAGELINK_API_URL };
|
|
@@ -123,7 +123,9 @@ ${"=".repeat(60)}`);
|
|
|
123
123
|
if (result.failures.length > 10) {
|
|
124
124
|
console.log(` ... and ${result.failures.length - 10} more`);
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
if (result.rendered.length === 0) {
|
|
127
|
+
process.exitCode = 1;
|
|
128
|
+
}
|
|
127
129
|
}
|
|
128
130
|
} catch (err) {
|
|
129
131
|
console.error("Fatal error:", err);
|
package/dist/ssg/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import process from "node:process";
|
|
3
|
-
import { p as polyfillBloxSsgGlobals, a as fetchCmsSiteData, c as prerender } from "../prerender-
|
|
3
|
+
import { p as polyfillBloxSsgGlobals, a as fetchCmsSiteData, c as prerender } from "../prerender-BXf1VF7r.js";
|
|
4
4
|
async function resolveApiBase(mode) {
|
|
5
5
|
if (process.env.BAGELINK_API_URL != null && process.env.BAGELINK_API_URL !== "") {
|
|
6
6
|
return { apiBase: process.env.BAGELINK_API_URL };
|
|
@@ -122,7 +122,9 @@ ${"=".repeat(60)}`);
|
|
|
122
122
|
if (result.failures.length > 10) {
|
|
123
123
|
console.log(` ... and ${result.failures.length - 10} more`);
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
if (result.rendered.length === 0) {
|
|
126
|
+
process.exitCode = 1;
|
|
127
|
+
}
|
|
126
128
|
}
|
|
127
129
|
} catch (err) {
|
|
128
130
|
console.error("Fatal error:", err);
|
package/dist/ssg/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const prerender = require("../prerender-
|
|
3
|
+
const prerender = require("../prerender-DN7Ugbtc.cjs");
|
|
4
4
|
const constants = require("../constants-fZvybj0k.cjs");
|
|
5
5
|
const ssg_client = require("./client.cjs");
|
|
6
6
|
async function renderBloxSsgPage(options) {
|
package/dist/ssg/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as buildPageHead } from "../prerender-
|
|
2
|
-
import { d, f, a, g, e, h, p, c } from "../prerender-
|
|
1
|
+
import { b as buildPageHead } from "../prerender-BXf1VF7r.js";
|
|
2
|
+
import { d, f, a, g, e, h, p, c } from "../prerender-BXf1VF7r.js";
|
|
3
3
|
import { B as BLOX_STATE_WINDOW_KEY } from "../constants-BIbQhd3z.js";
|
|
4
4
|
import { installBloxStateCache } from "./client.mjs";
|
|
5
5
|
async function renderBloxSsgPage(options) {
|
package/dist/ssg/seo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seo.d.ts","sourceRoot":"","sources":["../../src/ssg/seo.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAMzD,4DAA4D;AAC5D,MAAM,WAAW,WAAW;IAC3B,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACnC,QAAQ,CA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|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
2
|
+
"name": "@bagelink/blox",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.13.2",
|
|
5
|
+
"description": "Blox page builder library for drag-and-drop page building and static data management",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Bagel Studio",
|
|
8
|
+
"email": "info@bagelstudio.co.il",
|
|
9
|
+
"url": "https://bagelstudio.co.il"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"homepage": "https://github.com/bageldb/bagelink/tree/master/packages/blox#readme",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/bageldb/bagelink.git",
|
|
16
|
+
"directory": "packages/blox"
|
|
17
|
+
},
|
|
18
|
+
"bugs": "https://github.com/bageldb/bagelink/issues",
|
|
19
|
+
"keywords": [
|
|
20
|
+
"blox",
|
|
21
|
+
"page-builder",
|
|
22
|
+
"preview",
|
|
23
|
+
"external-preview",
|
|
24
|
+
"cms",
|
|
25
|
+
"vue",
|
|
26
|
+
"component-library",
|
|
27
|
+
"drag-and-drop",
|
|
28
|
+
"static-pages"
|
|
29
|
+
],
|
|
30
|
+
"bin": {
|
|
31
|
+
"blox-ssg": "./dist/ssg/cli.mjs"
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"exports": {
|
|
35
|
+
"./package.json": "./package.json",
|
|
36
|
+
"./vite": {
|
|
37
|
+
"types": "./dist/vite-plugin.d.ts",
|
|
38
|
+
"import": "./dist/vite-plugin.mjs"
|
|
39
|
+
},
|
|
40
|
+
".": {
|
|
41
|
+
"types": "./dist/index.d.ts",
|
|
42
|
+
"require": "./dist/index.cjs",
|
|
43
|
+
"import": "./dist/index.mjs"
|
|
44
|
+
},
|
|
45
|
+
"./ssg": {
|
|
46
|
+
"types": "./dist/ssg/index.d.ts",
|
|
47
|
+
"import": "./dist/ssg/index.mjs"
|
|
48
|
+
},
|
|
49
|
+
"./ssg/client": {
|
|
50
|
+
"types": "./dist/ssg/client.d.ts",
|
|
51
|
+
"import": "./dist/ssg/client.mjs"
|
|
52
|
+
},
|
|
53
|
+
"./components": {
|
|
54
|
+
"types": "./dist/components/index.d.ts",
|
|
55
|
+
"import": "./dist/components/index.mjs"
|
|
56
|
+
},
|
|
57
|
+
"./core": {
|
|
58
|
+
"types": "./dist/core/types.d.ts",
|
|
59
|
+
"import": "./dist/core/types.mjs"
|
|
60
|
+
},
|
|
61
|
+
"./utils": {
|
|
62
|
+
"types": "./dist/utils/styles.d.ts",
|
|
63
|
+
"import": "./dist/utils/styles.mjs"
|
|
64
|
+
},
|
|
65
|
+
"./dist/style.css": "./dist/style.css"
|
|
66
|
+
},
|
|
67
|
+
"main": "./dist/index.cjs",
|
|
68
|
+
"module": "./dist/index.mjs",
|
|
69
|
+
"types": "./dist/index.d.ts",
|
|
70
|
+
"typesVersions": {
|
|
71
|
+
"*": {
|
|
72
|
+
"*": [
|
|
73
|
+
"./dist/*",
|
|
74
|
+
"./dist/index.d.ts"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"files": [
|
|
79
|
+
"dist",
|
|
80
|
+
"core",
|
|
81
|
+
"components",
|
|
82
|
+
"config",
|
|
83
|
+
"ssg",
|
|
84
|
+
"utils",
|
|
85
|
+
"views",
|
|
86
|
+
"setup.ts",
|
|
87
|
+
"index.ts",
|
|
88
|
+
"README.md"
|
|
89
|
+
],
|
|
90
|
+
"scripts": {
|
|
91
|
+
"prepublishOnly": "pnpm build",
|
|
92
|
+
"dev": "vite build --watch",
|
|
93
|
+
"build": "vite build",
|
|
94
|
+
"typecheck": "vue-tsc --noEmit"
|
|
95
|
+
},
|
|
96
|
+
"publishConfig": {
|
|
97
|
+
"access": "public"
|
|
98
|
+
},
|
|
99
|
+
"peerDependencies": {
|
|
100
|
+
"@bagelink/vue": "*",
|
|
101
|
+
"happy-dom": ">=14.0.0",
|
|
102
|
+
"vite": ">=5.0.0",
|
|
103
|
+
"vue": "^3.3.0",
|
|
104
|
+
"vue-router": "^4.0.0"
|
|
105
|
+
},
|
|
106
|
+
"peerDependenciesMeta": {
|
|
107
|
+
"happy-dom": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
110
|
+
"vite": {
|
|
111
|
+
"optional": true
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"devDependencies": {
|
|
115
|
+
"@vitejs/plugin-vue": "^5.0.0",
|
|
116
|
+
"@vue/tsconfig": "^0.7.0",
|
|
117
|
+
"magic-string": "^0.30.21",
|
|
118
|
+
"typescript": "^5.8.3",
|
|
119
|
+
"vite": "^5.0.0",
|
|
120
|
+
"vite-plugin-dts": "^4.0.0",
|
|
121
|
+
"vite-tsconfig-paths": "^5.0.0",
|
|
122
|
+
"vitest": "^3.2.4",
|
|
123
|
+
"vue": "^3.5.32",
|
|
124
|
+
"vue-router": "^4.6.3",
|
|
125
|
+
"vue-tsc": "^2.0.0"
|
|
126
|
+
}
|
|
127
|
+
}
|
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.
|