@yoamigo.com/core 0.1.4 → 0.1.6
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/index.js +6 -2
- package/dist/prod.js +6 -2
- package/dist/router.js +6 -2
- package/package.json +32 -2
package/dist/index.js
CHANGED
|
@@ -2260,8 +2260,12 @@ function detectBasename() {
|
|
|
2260
2260
|
if (typeof window === "undefined") return "";
|
|
2261
2261
|
const sessionMatch = window.location.pathname.match(/^\/session\/[^/]+/);
|
|
2262
2262
|
if (sessionMatch) return sessionMatch[0];
|
|
2263
|
-
const
|
|
2264
|
-
if (
|
|
2263
|
+
const deployPreviewMatch = window.location.pathname.match(/^\/deploy-preview\/[^/]+/);
|
|
2264
|
+
if (deployPreviewMatch) return deployPreviewMatch[0];
|
|
2265
|
+
const devTestPreviewMatch = window.location.pathname.match(/^\/dev\/test-preview\/[^/]+/);
|
|
2266
|
+
if (devTestPreviewMatch) return devTestPreviewMatch[0];
|
|
2267
|
+
const devPreviewMatch = window.location.pathname.match(/^\/dev\/preview\/[^/]+/);
|
|
2268
|
+
if (devPreviewMatch) return devPreviewMatch[0];
|
|
2265
2269
|
return "";
|
|
2266
2270
|
}
|
|
2267
2271
|
function Router({ children, base }) {
|
package/dist/prod.js
CHANGED
|
@@ -326,8 +326,12 @@ function detectBasename() {
|
|
|
326
326
|
if (typeof window === "undefined") return "";
|
|
327
327
|
const sessionMatch = window.location.pathname.match(/^\/session\/[^/]+/);
|
|
328
328
|
if (sessionMatch) return sessionMatch[0];
|
|
329
|
-
const
|
|
330
|
-
if (
|
|
329
|
+
const deployPreviewMatch = window.location.pathname.match(/^\/deploy-preview\/[^/]+/);
|
|
330
|
+
if (deployPreviewMatch) return deployPreviewMatch[0];
|
|
331
|
+
const devTestPreviewMatch = window.location.pathname.match(/^\/dev\/test-preview\/[^/]+/);
|
|
332
|
+
if (devTestPreviewMatch) return devTestPreviewMatch[0];
|
|
333
|
+
const devPreviewMatch = window.location.pathname.match(/^\/dev\/preview\/[^/]+/);
|
|
334
|
+
if (devPreviewMatch) return devPreviewMatch[0];
|
|
331
335
|
return "";
|
|
332
336
|
}
|
|
333
337
|
function Router({ children, base }) {
|
package/dist/router.js
CHANGED
|
@@ -27,8 +27,12 @@ function detectBasename() {
|
|
|
27
27
|
if (typeof window === "undefined") return "";
|
|
28
28
|
const sessionMatch = window.location.pathname.match(/^\/session\/[^/]+/);
|
|
29
29
|
if (sessionMatch) return sessionMatch[0];
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
30
|
+
const deployPreviewMatch = window.location.pathname.match(/^\/deploy-preview\/[^/]+/);
|
|
31
|
+
if (deployPreviewMatch) return deployPreviewMatch[0];
|
|
32
|
+
const devTestPreviewMatch = window.location.pathname.match(/^\/dev\/test-preview\/[^/]+/);
|
|
33
|
+
if (devTestPreviewMatch) return devTestPreviewMatch[0];
|
|
34
|
+
const devPreviewMatch = window.location.pathname.match(/^\/dev\/preview\/[^/]+/);
|
|
35
|
+
if (devPreviewMatch) return devPreviewMatch[0];
|
|
32
36
|
return "";
|
|
33
37
|
}
|
|
34
38
|
function Router({ children, base }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoamigo.com/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Core components, router, and utilities for YoAmigo templates",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -95,9 +95,18 @@
|
|
|
95
95
|
"vite": "^7.2.4"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
|
+
"@vitejs/plugin-react": "^5.0.0",
|
|
99
|
+
"@preact/preset-vite": "^2.0.0",
|
|
98
100
|
"react": "^18.0.0 || ^19.0.0",
|
|
99
101
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
100
|
-
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
102
|
+
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
103
|
+
"@tiptap/core": "^3.0.0",
|
|
104
|
+
"@tiptap/extension-link": "^3.0.0",
|
|
105
|
+
"@tiptap/extension-text-style": "^3.0.0",
|
|
106
|
+
"@tiptap/pm": "^3.0.0",
|
|
107
|
+
"@tiptap/react": "^3.0.0",
|
|
108
|
+
"@tiptap/starter-kit": "^3.0.0",
|
|
109
|
+
"dompurify": "^3.0.0"
|
|
101
110
|
},
|
|
102
111
|
"peerDependenciesMeta": {
|
|
103
112
|
"react": {
|
|
@@ -108,6 +117,27 @@
|
|
|
108
117
|
},
|
|
109
118
|
"vite": {
|
|
110
119
|
"optional": true
|
|
120
|
+
},
|
|
121
|
+
"@tiptap/core": {
|
|
122
|
+
"optional": true
|
|
123
|
+
},
|
|
124
|
+
"@tiptap/extension-link": {
|
|
125
|
+
"optional": true
|
|
126
|
+
},
|
|
127
|
+
"@tiptap/extension-text-style": {
|
|
128
|
+
"optional": true
|
|
129
|
+
},
|
|
130
|
+
"@tiptap/pm": {
|
|
131
|
+
"optional": true
|
|
132
|
+
},
|
|
133
|
+
"@tiptap/react": {
|
|
134
|
+
"optional": true
|
|
135
|
+
},
|
|
136
|
+
"@tiptap/starter-kit": {
|
|
137
|
+
"optional": true
|
|
138
|
+
},
|
|
139
|
+
"dompurify": {
|
|
140
|
+
"optional": true
|
|
111
141
|
}
|
|
112
142
|
}
|
|
113
143
|
}
|