@blinkk/root-cms 1.0.0-beta.41 → 1.0.0-beta.43
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/ui/ui.js +7 -7
- package/package.json +3 -3
package/dist/ui/ui.js
CHANGED
|
@@ -39600,7 +39600,7 @@ ${this.customData.serverResponse}`;
|
|
|
39600
39600
|
// package.json
|
|
39601
39601
|
var package_default = {
|
|
39602
39602
|
name: "@blinkk/root-cms",
|
|
39603
|
-
version: "1.0.0-beta.
|
|
39603
|
+
version: "1.0.0-beta.43",
|
|
39604
39604
|
author: "s@blinkk.com",
|
|
39605
39605
|
license: "MIT",
|
|
39606
39606
|
engines: {
|
|
@@ -39705,7 +39705,7 @@ ${this.customData.serverResponse}`;
|
|
|
39705
39705
|
vitest: "^0.18.1"
|
|
39706
39706
|
},
|
|
39707
39707
|
peerDependencies: {
|
|
39708
|
-
"@blinkk/root": "1.0.0-beta.
|
|
39708
|
+
"@blinkk/root": "1.0.0-beta.43",
|
|
39709
39709
|
"firebase-admin": ">=11",
|
|
39710
39710
|
"firebase-functions": ">=4",
|
|
39711
39711
|
preact: "10.x",
|
|
@@ -44446,13 +44446,14 @@ ${content}</tr>
|
|
|
44446
44446
|
function reloadIframe() {
|
|
44447
44447
|
const iframe = iframeRef.current;
|
|
44448
44448
|
iframe.src = "about:blank";
|
|
44449
|
+
const localizedUrl = selectedLocale ? getLocalizedUrl(previewPath, selectedLocale) : previewPath;
|
|
44449
44450
|
window.setTimeout(() => {
|
|
44450
|
-
if (iframe.src !==
|
|
44451
|
-
iframe.src =
|
|
44451
|
+
if (iframe.src !== localizedUrl) {
|
|
44452
|
+
iframe.src = localizedUrl;
|
|
44452
44453
|
} else {
|
|
44453
44454
|
iframe.contentWindow.location.reload();
|
|
44454
44455
|
}
|
|
44455
|
-
},
|
|
44456
|
+
}, 30);
|
|
44456
44457
|
}
|
|
44457
44458
|
s2(() => {
|
|
44458
44459
|
const iframe = iframeRef.current;
|
|
@@ -44476,8 +44477,7 @@ ${content}</tr>
|
|
|
44476
44477
|
};
|
|
44477
44478
|
}, []);
|
|
44478
44479
|
s2(() => {
|
|
44479
|
-
|
|
44480
|
-
const localizedUrl = selectedLocale ? getLocalizedUrl(servingPath, selectedLocale) : servingPath;
|
|
44480
|
+
const localizedUrl = selectedLocale ? getLocalizedUrl(previewPath, selectedLocale) : previewPath;
|
|
44481
44481
|
const iframe = iframeRef.current;
|
|
44482
44482
|
iframe.src = localizedUrl;
|
|
44483
44483
|
}, [selectedLocale]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blinkk/root-cms",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.43",
|
|
4
4
|
"author": "s@blinkk.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"//": "NOTE(stevenle): due to compat issues with mantine and preact, mantine is pinned to v4.2.12",
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@babel/core": "^7.17.9",
|
|
60
|
-
"@blinkk/root": "1.0.0-beta.
|
|
60
|
+
"@blinkk/root": "1.0.0-beta.43",
|
|
61
61
|
"@emotion/react": "^11.10.5",
|
|
62
62
|
"@firebase/app-compat": "^0.1.33",
|
|
63
63
|
"@firebase/app-types": "^0.7.0",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"vitest": "^0.18.1"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@blinkk/root": "1.0.0-beta.
|
|
95
|
+
"@blinkk/root": "1.0.0-beta.43",
|
|
96
96
|
"firebase-admin": ">=11",
|
|
97
97
|
"firebase-functions": ">=4",
|
|
98
98
|
"preact": "10.x",
|