@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/index.js CHANGED
@@ -1986,6 +1986,12 @@ Available Console Commands:
1986
1986
  );
1987
1987
  return;
1988
1988
  }
1989
+ if (event.data?.type === "AMPLIFYUP_PROPS_PATCH") {
1990
+ window.dispatchEvent(
1991
+ new CustomEvent("amplifyup:props-patch", { detail: event.data })
1992
+ );
1993
+ return;
1994
+ }
1989
1995
  if (event.data?.type === "COMPONENT_DELETABLE_STATUS") {
1990
1996
  const { componentId, deletable, nodeId } = event.data;
1991
1997
  const element = document.querySelector(`[data-component-id="${componentId}"]`);
@@ -2621,7 +2627,7 @@ Available Console Commands:
2621
2627
  if (!highlightComponents && !showZones) return;
2622
2628
  const existing = document.getElementById("amplifyup-preview-highlights");
2623
2629
  if (existing) existing.remove();
2624
- const primary = "hsl(82 92% 42%)";
2630
+ const primary = "hsl(82 100% 52%)";
2625
2631
  const lines = [];
2626
2632
  if (highlightComponents) {
2627
2633
  lines.push(
@@ -2631,7 +2637,7 @@ Available Console Commands:
2631
2637
  "[data-amplifyup-component].amplifyup-selected, [data-component-id].amplifyup-selected {",
2632
2638
  ` outline: 2px solid ${primary} !important;`,
2633
2639
  " outline-offset: -2px !important;",
2634
- " box-shadow: inset 0 0 0 1px hsl(82 92% 42% / 0.25) !important;",
2640
+ " box-shadow: inset 0 0 0 1px hsl(82 100% 52% / 0.25) !important;",
2635
2641
  "}",
2636
2642
  "[data-amplifyup-component].amplifyup-component-hover:not(.amplifyup-selected),",
2637
2643
  "[data-component-id].amplifyup-component-hover:not(.amplifyup-selected) {",
@@ -2643,7 +2649,7 @@ Available Console Commands:
2643
2649
  if (highlightComponents || showZones) {
2644
2650
  lines.push(
2645
2651
  "[data-slot-id].amplifyup-selected, [data-amplifyup-slot].amplifyup-selected {",
2646
- " background-color: rgba(245, 245, 220, 0.35) !important;",
2652
+ " background-color: hsl(82 100% 52% / 0.12) !important;",
2647
2653
  "}"
2648
2654
  );
2649
2655
  }