@measured/puck 0.17.1 → 0.17.2-canary.98a70fd
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/{chunk-7IH6SUIT.mjs → chunk-LNGCTWA7.mjs} +2 -4
- package/dist/index.css +12 -14
- package/dist/index.js +616 -502
- package/dist/index.mjs +480 -363
- package/dist/rsc.js +2 -4
- package/dist/rsc.mjs +1 -1
- package/package.json +2 -2
@@ -128,13 +128,11 @@ var resolveComponentData = (item, config, onResolveStart, onResolveEnd) => __asy
|
|
128
128
|
onResolveStart(item);
|
129
129
|
}
|
130
130
|
const { props: resolvedProps, readOnly = {} } = yield configForItem.resolveData(item, { changed, lastData: oldItem });
|
131
|
-
const { readOnly: existingReadOnly = {} } = item || {};
|
132
|
-
const newReadOnly = __spreadValues(__spreadValues({}, existingReadOnly), readOnly);
|
133
131
|
const resolvedItem = __spreadProps(__spreadValues({}, item), {
|
134
132
|
props: __spreadValues(__spreadValues({}, item.props), resolvedProps)
|
135
133
|
});
|
136
|
-
if (Object.keys(
|
137
|
-
resolvedItem.readOnly =
|
134
|
+
if (Object.keys(readOnly).length) {
|
135
|
+
resolvedItem.readOnly = readOnly;
|
138
136
|
}
|
139
137
|
cache.lastChange[item.props.id] = {
|
140
138
|
item,
|
package/dist/index.css
CHANGED
@@ -1743,7 +1743,7 @@ textarea._Input-input_1l5m8_47 {
|
|
1743
1743
|
}
|
1744
1744
|
|
1745
1745
|
/* css-module:/home/runner/work/puck/puck/packages/core/components/Puck/components/Canvas/styles.module.css/#css-module-data */
|
1746
|
-
.
|
1746
|
+
._PuckCanvas_18jay_1 {
|
1747
1747
|
background: var(--puck-color-grey-11);
|
1748
1748
|
display: flex;
|
1749
1749
|
grid-area: editor;
|
@@ -1752,28 +1752,26 @@ textarea._Input-input_1l5m8_47 {
|
|
1752
1752
|
overflow: auto;
|
1753
1753
|
}
|
1754
1754
|
@media (min-width: 1198px) {
|
1755
|
-
.
|
1755
|
+
._PuckCanvas_18jay_1 {
|
1756
1756
|
padding: calc(var(--puck-space-px) * 1.5);
|
1757
1757
|
padding-top: var(--puck-space-px);
|
1758
1758
|
}
|
1759
|
-
.
|
1759
|
+
._PuckCanvas_18jay_1:not(._PuckCanvas_18jay_1:has(._PuckCanvas-controls_18jay_16)) {
|
1760
1760
|
padding-top: calc(var(--puck-space-px) * 1.5);
|
1761
1761
|
}
|
1762
1762
|
}
|
1763
|
-
._PuckCanvas-
|
1764
|
-
box-sizing: border-box;
|
1763
|
+
._PuckCanvas-inner_18jay_21 {
|
1765
1764
|
display: flex;
|
1766
1765
|
height: 100%;
|
1767
1766
|
justify-content: center;
|
1768
1767
|
min-width: 358px;
|
1769
|
-
overflow: hidden;
|
1770
1768
|
position: relative;
|
1771
1769
|
width: 100%;
|
1772
1770
|
}
|
1773
|
-
._PuckCanvas-
|
1771
|
+
._PuckCanvas-root_18jay_30 {
|
1774
1772
|
background: white;
|
1775
1773
|
border: 1px solid var(--puck-color-grey-09);
|
1776
|
-
box-sizing:
|
1774
|
+
box-sizing: content-box;
|
1777
1775
|
min-width: 321px;
|
1778
1776
|
position: absolute;
|
1779
1777
|
pointer-events: none;
|
@@ -1783,20 +1781,20 @@ textarea._Input-input_1l5m8_47 {
|
|
1783
1781
|
opacity: 0;
|
1784
1782
|
}
|
1785
1783
|
@media (min-width: 1198px) {
|
1786
|
-
._PuckCanvas-
|
1784
|
+
._PuckCanvas-root_18jay_30 {
|
1787
1785
|
min-width: unset;
|
1788
1786
|
}
|
1789
1787
|
}
|
1790
1788
|
@media (prefers-reduced-motion: reduce) {
|
1791
|
-
._PuckCanvas-
|
1789
|
+
._PuckCanvas-root_18jay_30 {
|
1792
1790
|
transition: none !important;
|
1793
1791
|
}
|
1794
1792
|
}
|
1795
|
-
._PuckCanvas--
|
1793
|
+
._PuckCanvas--ready_18jay_55 ._PuckCanvas-root_18jay_30 {
|
1796
1794
|
pointer-events: unset;
|
1797
1795
|
opacity: 1;
|
1798
1796
|
}
|
1799
|
-
._PuckCanvas-
|
1797
|
+
._PuckCanvas-loader_18jay_60 {
|
1800
1798
|
align-items: center;
|
1801
1799
|
color: var(--puck-color-grey-06);
|
1802
1800
|
display: flex;
|
@@ -1805,10 +1803,10 @@ textarea._Input-input_1l5m8_47 {
|
|
1805
1803
|
transition: opacity 250ms ease-out;
|
1806
1804
|
opacity: 0;
|
1807
1805
|
}
|
1808
|
-
._PuckCanvas--
|
1806
|
+
._PuckCanvas--showLoader_18jay_70 ._PuckCanvas-loader_18jay_60 {
|
1809
1807
|
opacity: 1;
|
1810
1808
|
}
|
1811
|
-
._PuckCanvas--
|
1809
|
+
._PuckCanvas--showLoader_18jay_70._PuckCanvas--ready_18jay_55 ._PuckCanvas-loader_18jay_60 {
|
1812
1810
|
opacity: 0;
|
1813
1811
|
height: 0;
|
1814
1812
|
transition: none;
|