@measured/puck 0.18.1-canary.486a863 → 0.18.1-canary.7649086

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -93,8 +93,8 @@ npx create-puck-app my-app
93
93
 
94
94
  Available recipes include:
95
95
 
96
- - [**next**](https://github.com/measuredco/puck/tree/main/recipes/next): Next.js 13 app example, using App Router and static page generation
97
- - [**remix**](https://github.com/measuredco/puck/tree/main/recipes/remix): Remix Run v2 app example, using dynamic routes at root-level
96
+ - [**next**](https://github.com/measuredco/puck/tree/main/recipes/next): Next.js example, using App Router and static page generation
97
+ - [**remix**](https://github.com/measuredco/puck/tree/main/recipes/remix): Remix Run v2 example, using dynamic routes at root-level
98
98
 
99
99
  ## Community
100
100
 
package/dist/index.js CHANGED
@@ -5832,7 +5832,7 @@ var Fields = ({ wrapFields = true }) => {
5832
5832
  const newProps = __spreadProps(__spreadValues({}, currentProps), {
5833
5833
  [fieldName]: value
5834
5834
  });
5835
- if (itemSelector) {
5835
+ if (selectedItem && itemSelector) {
5836
5836
  const replaceActionData = {
5837
5837
  type: "replace",
5838
5838
  destinationIndex: itemSelector.index,
package/dist/index.mjs CHANGED
@@ -5690,7 +5690,7 @@ var Fields = ({ wrapFields = true }) => {
5690
5690
  const newProps = __spreadProps(__spreadValues({}, currentProps), {
5691
5691
  [fieldName]: value
5692
5692
  });
5693
- if (itemSelector) {
5693
+ if (selectedItem && itemSelector) {
5694
5694
  const replaceActionData = {
5695
5695
  type: "replace",
5696
5696
  destinationIndex: itemSelector.index,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.18.1-canary.486a863",
3
+ "version": "0.18.1-canary.7649086",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",