@yoamigo.com/cli 0.1.23 → 0.1.24
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
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@tiptap/pm": "^3.11.1",
|
|
15
15
|
"@tiptap/react": "^3.11.1",
|
|
16
16
|
"@tiptap/starter-kit": "^3.11.1",
|
|
17
|
-
"@yoamigo.com/core": "^0.1.
|
|
17
|
+
"@yoamigo.com/core": "^0.1.10",
|
|
18
18
|
"dompurify": "^3.2.3",
|
|
19
19
|
"react": "^19.2.1",
|
|
20
20
|
"react-dom": "^19.2.1"
|
|
@@ -2065,12 +2065,13 @@
|
|
|
2065
2065
|
}
|
|
2066
2066
|
},
|
|
2067
2067
|
"node_modules/@yoamigo.com/core": {
|
|
2068
|
-
"version": "0.1.
|
|
2069
|
-
"resolved": "https://registry.npmjs.org/@yoamigo.com/core/-/core-0.1.
|
|
2070
|
-
"integrity": "sha512-
|
|
2068
|
+
"version": "0.1.12",
|
|
2069
|
+
"resolved": "https://registry.npmjs.org/@yoamigo.com/core/-/core-0.1.12.tgz",
|
|
2070
|
+
"integrity": "sha512-f2ev6TaG6fSrC98JoaL+OjVK5IYb2N1lLlmDchF5k6C9AOH6rvJmBXL4CaQqg7KwUpltw3Z+Uiqs9MnikaqjXA==",
|
|
2071
2071
|
"license": "SEE LICENSE IN LICENSE",
|
|
2072
2072
|
"dependencies": {
|
|
2073
2073
|
"clsx": "^2.1.1",
|
|
2074
|
+
"html2canvas-pro": "^1.6.1",
|
|
2074
2075
|
"preact": "^10.27.2",
|
|
2075
2076
|
"wouter": "^3.8.0"
|
|
2076
2077
|
},
|
|
@@ -2136,6 +2137,15 @@
|
|
|
2136
2137
|
"@babel/core": "^7.12.10"
|
|
2137
2138
|
}
|
|
2138
2139
|
},
|
|
2140
|
+
"node_modules/base64-arraybuffer": {
|
|
2141
|
+
"version": "1.0.2",
|
|
2142
|
+
"resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz",
|
|
2143
|
+
"integrity": "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ==",
|
|
2144
|
+
"license": "MIT",
|
|
2145
|
+
"engines": {
|
|
2146
|
+
"node": ">= 0.6.0"
|
|
2147
|
+
}
|
|
2148
|
+
},
|
|
2139
2149
|
"node_modules/baseline-browser-mapping": {
|
|
2140
2150
|
"version": "2.9.7",
|
|
2141
2151
|
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.7.tgz",
|
|
@@ -2225,6 +2235,15 @@
|
|
|
2225
2235
|
"integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==",
|
|
2226
2236
|
"license": "MIT"
|
|
2227
2237
|
},
|
|
2238
|
+
"node_modules/css-line-break": {
|
|
2239
|
+
"version": "2.1.0",
|
|
2240
|
+
"resolved": "https://registry.npmjs.org/css-line-break/-/css-line-break-2.1.0.tgz",
|
|
2241
|
+
"integrity": "sha512-FHcKFCZcAha3LwfVBhCQbW2nCNbkZXn7KVUJcsT5/P8YmfsVja0FMPJr0B903j/E69HUphKiV9iQArX8SDYA4w==",
|
|
2242
|
+
"license": "MIT",
|
|
2243
|
+
"dependencies": {
|
|
2244
|
+
"utrie": "^1.0.2"
|
|
2245
|
+
}
|
|
2246
|
+
},
|
|
2228
2247
|
"node_modules/css-select": {
|
|
2229
2248
|
"version": "5.2.2",
|
|
2230
2249
|
"resolved": "https://registry.npmjs.org/css-select/-/css-select-5.2.2.tgz",
|
|
@@ -2498,6 +2517,19 @@
|
|
|
2498
2517
|
"he": "bin/he"
|
|
2499
2518
|
}
|
|
2500
2519
|
},
|
|
2520
|
+
"node_modules/html2canvas-pro": {
|
|
2521
|
+
"version": "1.6.1",
|
|
2522
|
+
"resolved": "https://registry.npmjs.org/html2canvas-pro/-/html2canvas-pro-1.6.1.tgz",
|
|
2523
|
+
"integrity": "sha512-TAwiVhNNmMGIqCax3cPirMaAqp7GbPTAAFAU95DO13diXZTWEI2Ih0hDez5yUplvmqirklZQkKVVXLTpEt2o9Q==",
|
|
2524
|
+
"license": "MIT",
|
|
2525
|
+
"dependencies": {
|
|
2526
|
+
"css-line-break": "^2.1.0",
|
|
2527
|
+
"text-segmentation": "^1.0.3"
|
|
2528
|
+
},
|
|
2529
|
+
"engines": {
|
|
2530
|
+
"node": ">=16.0.0"
|
|
2531
|
+
}
|
|
2532
|
+
},
|
|
2501
2533
|
"node_modules/jiti": {
|
|
2502
2534
|
"version": "2.6.1",
|
|
2503
2535
|
"resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz",
|
|
@@ -3332,6 +3364,15 @@
|
|
|
3332
3364
|
"url": "https://opencollective.com/webpack"
|
|
3333
3365
|
}
|
|
3334
3366
|
},
|
|
3367
|
+
"node_modules/text-segmentation": {
|
|
3368
|
+
"version": "1.0.3",
|
|
3369
|
+
"resolved": "https://registry.npmjs.org/text-segmentation/-/text-segmentation-1.0.3.tgz",
|
|
3370
|
+
"integrity": "sha512-iOiPUo/BGnZ6+54OsWxZidGCsdU8YbE4PSpdPinp7DeMtUJNJBoJ/ouUSTJjHkh1KntHaltHl/gDs2FC4i5+Nw==",
|
|
3371
|
+
"license": "MIT",
|
|
3372
|
+
"dependencies": {
|
|
3373
|
+
"utrie": "^1.0.2"
|
|
3374
|
+
}
|
|
3375
|
+
},
|
|
3335
3376
|
"node_modules/tinyglobby": {
|
|
3336
3377
|
"version": "0.2.15",
|
|
3337
3378
|
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
|
|
@@ -3436,6 +3477,15 @@
|
|
|
3436
3477
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
3437
3478
|
}
|
|
3438
3479
|
},
|
|
3480
|
+
"node_modules/utrie": {
|
|
3481
|
+
"version": "1.0.2",
|
|
3482
|
+
"resolved": "https://registry.npmjs.org/utrie/-/utrie-1.0.2.tgz",
|
|
3483
|
+
"integrity": "sha512-1MLa5ouZiOmQzUbjbu9VmjLzn1QLXBhwpUa7kdLUQK+KQ5KA9I1vk5U4YHe/X2Ch7PYnJfWuWT+VbuxbGwljhw==",
|
|
3484
|
+
"license": "MIT",
|
|
3485
|
+
"dependencies": {
|
|
3486
|
+
"base64-arraybuffer": "^1.0.2"
|
|
3487
|
+
}
|
|
3488
|
+
},
|
|
3439
3489
|
"node_modules/vite": {
|
|
3440
3490
|
"version": "7.3.0",
|
|
3441
3491
|
"resolved": "https://registry.npmjs.org/vite/-/vite-7.3.0.tgz",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StrictMode } from 'react'
|
|
2
2
|
import { createRoot } from 'react-dom/client'
|
|
3
|
-
import { ContentStoreProvider, registerContent } from '@yoamigo.com/core'
|
|
3
|
+
import { ContentStoreProvider, registerContent, setAssetResolver } from '@yoamigo.com/core'
|
|
4
4
|
import App from './App'
|
|
5
5
|
import content from './content'
|
|
6
6
|
import './styles/globals.css'
|
|
@@ -8,6 +8,24 @@ import './styles/globals.css'
|
|
|
8
8
|
// Register content for the content store
|
|
9
9
|
registerContent(content)
|
|
10
10
|
|
|
11
|
+
// Configure asset resolver for builder preview
|
|
12
|
+
// - Builder: base=/session/{sessionId}/ → /session/{sessionId}/assets/...
|
|
13
|
+
// - Production: base=./ → ./assets/...
|
|
14
|
+
setAssetResolver((path) => {
|
|
15
|
+
if (!path || path.startsWith('http://') || path.startsWith('https://')) {
|
|
16
|
+
return path
|
|
17
|
+
}
|
|
18
|
+
const relativePath = path.startsWith('/') ? path.slice(1) : path
|
|
19
|
+
return `${import.meta.env.BASE_URL}${relativePath}`
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
// Initialize builder selection mode (dev only)
|
|
23
|
+
if (import.meta.env.DEV) {
|
|
24
|
+
import('@yoamigo.com/core').then(({ initBuilderSelection }) => {
|
|
25
|
+
initBuilderSelection()
|
|
26
|
+
})
|
|
27
|
+
}
|
|
28
|
+
|
|
11
29
|
createRoot(document.getElementById('root')!).render(
|
|
12
30
|
<StrictMode>
|
|
13
31
|
<ContentStoreProvider initialContent={content}>
|