@speedkit/cli 2.70.1 → 2.71.0
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [2.71.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.70.1...v2.71.0) (2024-12-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **wizard:** lambda add initial hiding of shadow-dom and un-hide when rendered ([dddfd62](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/dddfd62791754558ae7481914c1be3eef65ffc8f))
|
|
7
|
+
* **wizard:** remove legacy dynamic blocks lambda server-side rendering related code ([3ee1e4a](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/3ee1e4a755b21b28f56aa4f2e74f910e093be6ba))
|
|
8
|
+
|
|
1
9
|
## [2.70.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.70.0...v2.70.1) (2024-12-12)
|
|
2
10
|
|
|
3
11
|
|
package/README.md
CHANGED
|
@@ -98,6 +98,8 @@ const config = {
|
|
|
98
98
|
assignStylesToShadowDom(document);
|
|
99
99
|
addDeclarativeShadowDOMPolyfill(document);
|
|
100
100
|
addPolyFillAfterMainPreRenderTemplate(document);
|
|
101
|
+
hideCustomShadowDom(document);
|
|
102
|
+
showCustomShadowDom(document);
|
|
101
103
|
{{/unless}}
|
|
102
104
|
{{#if supportShadowDomInPreRendering}}
|
|
103
105
|
overrideCustomElementDefine(document);
|
|
@@ -350,6 +352,26 @@ export const post = async (db, req, res) => {
|
|
|
350
352
|
topTemplate.after(polyfillScript);
|
|
351
353
|
});
|
|
352
354
|
}
|
|
355
|
+
|
|
356
|
+
function hideCustomShadowDom(document) {
|
|
357
|
+
const customShadowRoots = getCustomShadowElements(document);
|
|
358
|
+
|
|
359
|
+
customShadowRoots.forEach((element) => {
|
|
360
|
+
const style = document.createElement("style");
|
|
361
|
+
style.textContent = `.speed-kit-pre-rendered-block-added{visibility:hidden;}`;
|
|
362
|
+
element.prepend(style);
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
function showCustomShadowDom(document) {
|
|
367
|
+
const customShadowRoots = getCustomShadowElements(document);
|
|
368
|
+
|
|
369
|
+
customShadowRoots.forEach((element) => {
|
|
370
|
+
const style = document.createElement("style");
|
|
371
|
+
style.textContent = `.speed-kit-pre-rendered-block-added{visibility:visible;}`;
|
|
372
|
+
element.appendChild(style);
|
|
373
|
+
});
|
|
374
|
+
}
|
|
353
375
|
{{#if supportShadowDomInPreRendering}}
|
|
354
376
|
//================================================================================
|
|
355
377
|
// PuppeteerCallback
|
|
@@ -13,20 +13,6 @@
|
|
|
13
13
|
{{/if}}
|
|
14
14
|
|
|
15
15
|
blocks: [
|
|
16
|
-
{{#if addPreRendering}}
|
|
17
|
-
{{#unless supportShadowDomInPreRendering}}
|
|
18
|
-
...preRenderedRootConfig.map((config) => {
|
|
19
|
-
return {
|
|
20
|
-
selector: config.selector,
|
|
21
|
-
merge: (localBlock, remoteBlock) => {
|
|
22
|
-
handlePreRenderBlock(localBlock, remoteBlock);
|
|
23
|
-
},
|
|
24
|
-
detectChanges: false,
|
|
25
|
-
};
|
|
26
|
-
}),
|
|
27
|
-
|
|
28
|
-
{{/unless}}
|
|
29
|
-
{{/if}}
|
|
30
16
|
// TODO: adjust/replace this exemplary list
|
|
31
17
|
{
|
|
32
18
|
{{#if addPreRendering}}
|
package/oclif.manifest.json
CHANGED