@bagelink/blox 1.11.9 → 1.12.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.
@@ -1137,10 +1137,10 @@ function bloxPlugin() {
1137
1137
  }
1138
1138
  const hoistedImports = [];
1139
1139
  const importRe = /^[ \t]*import\s[^\n]+from\s+['"](?:@bagelink\/blox|@bagelink\/vue)['"]\s*/gm;
1140
- let importMatch;
1141
- while ((importMatch = importRe.exec(remaining)) !== null) {
1142
- hoistedImports.push(importMatch[0].trimEnd());
1143
- }
1140
+ remaining = remaining.replace(importRe, (match) => {
1141
+ hoistedImports.push(match.trimEnd());
1142
+ return "";
1143
+ });
1144
1144
  const langMatch = attrs.match(/lang="([^"]+)"/);
1145
1145
  const lang = langMatch ? ` lang="${langMatch[1]}"` : "";
1146
1146
  const nonSetupBlock = [
@@ -1 +1 @@
1
- {"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../src/vite-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAGlC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,UAAU,IAAI,MAAM,CA6HnC"}
1
+ {"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../src/vite-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAGlC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,UAAU,IAAI,MAAM,CA4HnC"}
@@ -1135,10 +1135,10 @@ function bloxPlugin() {
1135
1135
  }
1136
1136
  const hoistedImports = [];
1137
1137
  const importRe = /^[ \t]*import\s[^\n]+from\s+['"](?:@bagelink\/blox|@bagelink\/vue)['"]\s*/gm;
1138
- let importMatch;
1139
- while ((importMatch = importRe.exec(remaining)) !== null) {
1140
- hoistedImports.push(importMatch[0].trimEnd());
1141
- }
1138
+ remaining = remaining.replace(importRe, (match) => {
1139
+ hoistedImports.push(match.trimEnd());
1140
+ return "";
1141
+ });
1142
1142
  const langMatch = attrs.match(/lang="([^"]+)"/);
1143
1143
  const lang = langMatch ? ` lang="${langMatch[1]}"` : "";
1144
1144
  const nonSetupBlock = [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/blox",
3
3
  "type": "module",
4
- "version": "1.11.9",
4
+ "version": "1.12.1",
5
5
  "description": "Blox page builder library for drag-and-drop page building and static data management",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -80,9 +80,9 @@
80
80
  },
81
81
  "peerDependencies": {
82
82
  "@bagelink/vue": "*",
83
+ "vite": ">=5.0.0",
83
84
  "vue": "^3.3.0",
84
- "vue-router": "^4.0.0",
85
- "vite": ">=5.0.0"
85
+ "vue-router": "^4.0.0"
86
86
  },
87
87
  "peerDependenciesMeta": {
88
88
  "vite": {
@@ -97,6 +97,7 @@
97
97
  "vite": "^5.0.0",
98
98
  "vite-plugin-dts": "^4.0.0",
99
99
  "vite-tsconfig-paths": "^5.0.0",
100
+ "vitest": "^3.2.4",
100
101
  "vue": "^3.5.16",
101
102
  "vue-router": "^4.6.3",
102
103
  "vue-tsc": "^2.0.0"