@amplifyup/sdk 0.1.37 → 0.1.39
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/AmplifyRenderer.js +35 -8
- package/dist/AmplifyRenderer.js.map +1 -1
- package/dist/AmplifyRenderer.mjs +35 -8
- package/dist/AmplifyRenderer.mjs.map +1 -1
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -3
- package/dist/index.mjs.map +1 -1
- package/dist/react.js +35 -8
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +35 -8
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1982,6 +1982,12 @@ Available Console Commands:
|
|
|
1982
1982
|
);
|
|
1983
1983
|
return;
|
|
1984
1984
|
}
|
|
1985
|
+
if (event.data?.type === "AMPLIFYUP_PROPS_PATCH") {
|
|
1986
|
+
window.dispatchEvent(
|
|
1987
|
+
new CustomEvent("amplifyup:props-patch", { detail: event.data })
|
|
1988
|
+
);
|
|
1989
|
+
return;
|
|
1990
|
+
}
|
|
1985
1991
|
if (event.data?.type === "COMPONENT_DELETABLE_STATUS") {
|
|
1986
1992
|
const { componentId, deletable, nodeId } = event.data;
|
|
1987
1993
|
const element = document.querySelector(`[data-component-id="${componentId}"]`);
|
|
@@ -2617,7 +2623,7 @@ Available Console Commands:
|
|
|
2617
2623
|
if (!highlightComponents && !showZones) return;
|
|
2618
2624
|
const existing = document.getElementById("amplifyup-preview-highlights");
|
|
2619
2625
|
if (existing) existing.remove();
|
|
2620
|
-
const primary = "hsl(82
|
|
2626
|
+
const primary = "hsl(82 100% 52%)";
|
|
2621
2627
|
const lines = [];
|
|
2622
2628
|
if (highlightComponents) {
|
|
2623
2629
|
lines.push(
|
|
@@ -2627,7 +2633,7 @@ Available Console Commands:
|
|
|
2627
2633
|
"[data-amplifyup-component].amplifyup-selected, [data-component-id].amplifyup-selected {",
|
|
2628
2634
|
` outline: 2px solid ${primary} !important;`,
|
|
2629
2635
|
" outline-offset: -2px !important;",
|
|
2630
|
-
" box-shadow: inset 0 0 0 1px hsl(82
|
|
2636
|
+
" box-shadow: inset 0 0 0 1px hsl(82 100% 52% / 0.25) !important;",
|
|
2631
2637
|
"}",
|
|
2632
2638
|
"[data-amplifyup-component].amplifyup-component-hover:not(.amplifyup-selected),",
|
|
2633
2639
|
"[data-component-id].amplifyup-component-hover:not(.amplifyup-selected) {",
|
|
@@ -2639,7 +2645,7 @@ Available Console Commands:
|
|
|
2639
2645
|
if (highlightComponents || showZones) {
|
|
2640
2646
|
lines.push(
|
|
2641
2647
|
"[data-slot-id].amplifyup-selected, [data-amplifyup-slot].amplifyup-selected {",
|
|
2642
|
-
" background-color:
|
|
2648
|
+
" background-color: hsl(82 100% 52% / 0.12) !important;",
|
|
2643
2649
|
"}"
|
|
2644
2650
|
);
|
|
2645
2651
|
}
|