@sanity/cross-dataset-duplicator 1.4.0-beta.1 → 1.4.0-beta.2
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/README.md +4 -4
- package/package.json +1 -1
- package/src/types/index.ts +1 -1
package/README.md
CHANGED
|
@@ -5,13 +5,13 @@ Sanity Studio v3 Tool and Document Action for empowering content editors to migr
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install --save @sanity/cross-dataset-duplicator
|
|
8
|
+
npm install --save @sanity/cross-dataset-duplicator@reference-max-depth
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
or
|
|
12
12
|
|
|
13
13
|
```
|
|
14
|
-
yarn add @sanity/cross-dataset-duplicator
|
|
14
|
+
yarn add @sanity/cross-dataset-duplicator@reference-max-depth
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
### Important Notes
|
|
@@ -69,7 +69,7 @@ The plugin has some configuration options. These can be set by adding a config f
|
|
|
69
69
|
follow: [],
|
|
70
70
|
reference: {
|
|
71
71
|
maxDepth: 1, // Number of documents deep to follow. 0 represents the current document only.
|
|
72
|
-
assetsOnly: true, // If true, only gather image and file
|
|
72
|
+
assetsOnly: true, // If true, only gather image and file assets. 'referenceMaxDepth' must be set.
|
|
73
73
|
},
|
|
74
74
|
})
|
|
75
75
|
]
|
|
@@ -83,7 +83,7 @@ The plugin has some configuration options. These can be set by adding a config f
|
|
|
83
83
|
- `filter` (String, default: undefined) - Set a predicate for documents when gathering dependencies.
|
|
84
84
|
- `follow` (("inbound" | "outbound")[], default: []) – Add buttons to allow the user to begin with just the existing document or first fetch all inbound references.
|
|
85
85
|
- `reference.maxDepth` (Number, default: undefined) - The level of documents deep to follow, `0` represents the current document only. Must be a positive number. This is useful for when when gathering references returns a large number of references or when you want to be a bit more intentional about the which reference you gather.
|
|
86
|
-
- `reference.assetsOnly`: (boolean) - If true, only gather image and file
|
|
86
|
+
- `reference.assetsOnly`: (boolean) - If true, only gather image and file assets. The 'referenceMaxDepth' option must be set for this to work.
|
|
87
87
|
|
|
88
88
|
#### Action Options
|
|
89
89
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cross-dataset-duplicator",
|
|
3
|
-
"version": "1.4.0-beta.
|
|
3
|
+
"version": "1.4.0-beta.2",
|
|
4
4
|
"description": "Empower content editors to migrate Documents and Assets between Sanity Projects and Datasets from inside Sanity Studio",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
package/src/types/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ import {SanityDocument} from 'sanity'
|
|
|
6
6
|
*/
|
|
7
7
|
export type reference = {
|
|
8
8
|
maxDepth: number // Number of documents deep to follow
|
|
9
|
-
assetsOnly?: boolean // If true, only gather image and file
|
|
9
|
+
assetsOnly?: boolean // If true, only gather image and file assets
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
/**
|