@sanity/cli 4.16.1-next.4 → 4.17.0-next.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/cli",
3
- "version": "4.16.1-next.4+da0accee58",
3
+ "version": "4.17.0-next.10+966f4b4f06",
4
4
  "description": "Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets",
5
5
  "keywords": [
6
6
  "sanity",
@@ -61,7 +61,7 @@
61
61
  "pkg-dir": "^5.0.0",
62
62
  "prettier": "^3.6.2",
63
63
  "semver": "^7.7.2",
64
- "@sanity/codegen": "4.16.1-next.4+da0accee58"
64
+ "@sanity/codegen": "4.17.0-next.10+966f4b4f06"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@rexxars/gitconfiglocal": "^3.0.1",
@@ -116,11 +116,11 @@
116
116
  "vitest": "^3.2.4",
117
117
  "which": "^2.0.2",
118
118
  "xdg-basedir": "^4.0.0",
119
- "@repo/eslint-config": "4.16.1-next.4+da0accee58",
120
- "@repo/package.config": "4.16.1-next.4+da0accee58",
121
- "@repo/tsconfig": "4.16.1-next.4+da0accee58",
122
- "@repo/test-config": "4.16.1-next.4+da0accee58",
123
- "@sanity/types": "4.16.1-next.4+da0accee58"
119
+ "@repo/eslint-config": "4.17.0-next.10+966f4b4f06",
120
+ "@repo/tsconfig": "4.17.0-next.10+966f4b4f06",
121
+ "@repo/test-config": "4.17.0-next.10+966f4b4f06",
122
+ "@repo/package.config": "4.17.0-next.10+966f4b4f06",
123
+ "@sanity/types": "4.17.0-next.10+966f4b4f06"
124
124
  },
125
125
  "peerDependencies": {
126
126
  "babel-plugin-react-compiler": "*"
@@ -13,14 +13,12 @@ import {SANITY_API_VERSION} from '../../constants'
13
13
  export default (props: ShopifyDocumentActionProps): DocumentActionDescription | undefined => {
14
14
  const {
15
15
  draft,
16
- onComplete,
17
16
  type,
18
17
  published,
19
18
  }: {
20
19
  draft: ShopifyDocument
21
20
  published: ShopifyDocument
22
21
  type: string
23
- onComplete: () => void
24
22
  } = props
25
23
 
26
24
  const [dialogOpen, setDialogOpen] = useState(false)
@@ -39,7 +37,7 @@ export default (props: ShopifyDocumentActionProps): DocumentActionDescription |
39
37
  <Text weight="medium">No content on Shopify will be deleted.</Text>
40
38
  </Stack>
41
39
  ),
42
- onCancel: onComplete,
40
+ onCancel: () => setDialogOpen(false),
43
41
  onConfirm: async () => {
44
42
  const productId = published?.store?.id
45
43
 
@@ -85,8 +83,7 @@ export default (props: ShopifyDocumentActionProps): DocumentActionDescription |
85
83
  title: message,
86
84
  })
87
85
  } finally {
88
- // Signal that the action is complete
89
- onComplete()
86
+ setDialogOpen(false)
90
87
  }
91
88
  },
92
89
  type: 'confirm',
@@ -101,7 +98,7 @@ export default (props: ShopifyDocumentActionProps): DocumentActionDescription |
101
98
  <Text weight="medium">No content on Shopify will be deleted.</Text>
102
99
  </Stack>
103
100
  ),
104
- onCancel: onComplete,
101
+ onCancel: () => setDialogOpen(false),
105
102
  onConfirm: async () => {
106
103
  // Delete current document (including draft)
107
104
  const transaction = client.transaction()
@@ -125,8 +122,7 @@ export default (props: ShopifyDocumentActionProps): DocumentActionDescription |
125
122
  title: message,
126
123
  })
127
124
  } finally {
128
- // Signal that the action is complete
129
- onComplete()
125
+ setDialogOpen(false)
130
126
  }
131
127
  },
132
128
  type: 'confirm',
@@ -13,14 +13,12 @@ import {SANITY_API_VERSION} from '../../constants'
13
13
  export default (props: ShopifyDocumentActionProps): DocumentActionDescription | undefined => {
14
14
  const {
15
15
  draft,
16
- onComplete,
17
16
  type,
18
17
  published,
19
18
  }: {
20
19
  draft: ShopifyDocument
21
20
  published: ShopifyDocument
22
21
  type: string
23
- onComplete: () => void
24
22
  } = props
25
23
 
26
24
  const [dialogOpen, setDialogOpen] = useState(false)
@@ -39,7 +37,7 @@ export default (props: ShopifyDocumentActionProps): DocumentActionDescription |
39
37
  <Text weight="medium">No content on Shopify will be deleted.</Text>
40
38
  </Stack>
41
39
  ),
42
- onCancel: onComplete,
40
+ onCancel: () => setDialogOpen(false),
43
41
  onConfirm: async () => {
44
42
  const productId = published?.store?.id
45
43
 
@@ -85,8 +83,7 @@ export default (props: ShopifyDocumentActionProps): DocumentActionDescription |
85
83
  title: message,
86
84
  })
87
85
  } finally {
88
- // Signal that the action is complete
89
- onComplete()
86
+ setDialogOpen(false)
90
87
  }
91
88
  },
92
89
  type: 'confirm',
@@ -101,7 +98,7 @@ export default (props: ShopifyDocumentActionProps): DocumentActionDescription |
101
98
  <Text weight="medium">No content on Shopify will be deleted.</Text>
102
99
  </Stack>
103
100
  ),
104
- onCancel: onComplete,
101
+ onCancel: () => setDialogOpen(false),
105
102
  onConfirm: async () => {
106
103
  // Delete current document (including draft)
107
104
  const transaction = client.transaction()
@@ -125,8 +122,7 @@ export default (props: ShopifyDocumentActionProps): DocumentActionDescription |
125
122
  title: message,
126
123
  })
127
124
  } finally {
128
- // Signal that the action is complete
129
- onComplete()
125
+ setDialogOpen(false)
130
126
  }
131
127
  },
132
128
  type: 'confirm',