@yoamigo.com/core 0.1.5 → 0.1.7

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 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 previewMatch = window.location.pathname.match(/^\/deploy-preview\/[^/]+/);
2264
- if (previewMatch) return previewMatch[0];
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/plugin.js CHANGED
@@ -54,7 +54,7 @@ function yoamigoPlugin(options = {}) {
54
54
  dedupe: ["react", "react-dom"]
55
55
  },
56
56
  server: {
57
- port: 5173,
57
+ port: process.env.PORT ? parseInt(process.env.PORT, 10) : 5173,
58
58
  strictPort: false,
59
59
  // Allow Vite to find next available port
60
60
  hmr: {
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 previewMatch = window.location.pathname.match(/^\/deploy-preview\/[^/]+/);
330
- if (previewMatch) return previewMatch[0];
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 previewMatch = window.location.pathname.match(/^\/deploy-preview\/[^/]+/);
31
- if (previewMatch) return previewMatch[0];
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.5",
3
+ "version": "0.1.7",
4
4
  "description": "Core components, router, and utilities for YoAmigo templates",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -99,7 +99,14 @@
99
99
  "@preact/preset-vite": "^2.0.0",
100
100
  "react": "^18.0.0 || ^19.0.0",
101
101
  "react-dom": "^18.0.0 || ^19.0.0",
102
- "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"
103
110
  },
104
111
  "peerDependenciesMeta": {
105
112
  "react": {
@@ -110,6 +117,27 @@
110
117
  },
111
118
  "vite": {
112
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
113
141
  }
114
142
  }
115
143
  }