sanity-plugin-media 4.3.5 → 5.0.0
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.d.ts +190 -413
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2532 -3564
- package/dist/index.js.map +1 -1
- package/package.json +29 -35
- package/dist/index.cjs +0 -5753
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -462
- package/sanity.json +0 -8
- package/src/__tests__/fixtures/createEpicTestStore.ts +0 -28
- package/src/__tests__/fixtures/listenMock.ts +0 -9
- package/src/__tests__/fixtures/mockSanityClient.ts +0 -84
- package/src/__tests__/fixtures/renderWithProviders.tsx +0 -55
- package/src/__tests__/fixtures/rootState.ts +0 -27
- package/src/__tests__/fixtures/withinDialog.ts +0 -28
- package/src/components/AssetGridVirtualized/index.tsx +0 -94
- package/src/components/AssetMetadata/index.tsx +0 -122
- package/src/components/AssetTableVirtualized/index.tsx +0 -73
- package/src/components/AutoTagInputWrapper/index.tsx +0 -87
- package/src/components/Browser/Browser.test.tsx +0 -45
- package/src/components/Browser/index.tsx +0 -90
- package/src/components/Browser/useBrowserInit.ts +0 -126
- package/src/components/ButtonAssetCopy/index.tsx +0 -65
- package/src/components/ButtonViewGroup/index.tsx +0 -39
- package/src/components/CardAsset/CardAsset.test.tsx +0 -323
- package/src/components/CardAsset/index.tsx +0 -290
- package/src/components/CardUpload/index.tsx +0 -161
- package/src/components/Controls/index.tsx +0 -136
- package/src/components/DebugControls/index.tsx +0 -80
- package/src/components/Dialog/index.tsx +0 -11
- package/src/components/DialogAssetEdit/Details.tsx +0 -181
- package/src/components/DialogAssetEdit/DialogAssetEdit.test.tsx +0 -216
- package/src/components/DialogAssetEdit/index.tsx +0 -492
- package/src/components/DialogConfirm/index.tsx +0 -88
- package/src/components/DialogSearchFacets/index.tsx +0 -42
- package/src/components/DialogTagCreate/DialogTagCreate.test.tsx +0 -121
- package/src/components/DialogTagCreate/index.tsx +0 -103
- package/src/components/DialogTagEdit/DialogTagEdit.test.tsx +0 -165
- package/src/components/DialogTagEdit/index.tsx +0 -190
- package/src/components/DialogTags/index.tsx +0 -45
- package/src/components/Dialogs/index.tsx +0 -76
- package/src/components/DocumentList/index.tsx +0 -62
- package/src/components/FileAssetPreview/index.tsx +0 -37
- package/src/components/FileIcon/index.tsx +0 -43
- package/src/components/FormBuilderTool/FormBuilderTool.test.tsx +0 -63
- package/src/components/FormBuilderTool/index.tsx +0 -69
- package/src/components/FormFieldInputLabel/index.tsx +0 -66
- package/src/components/FormFieldInputTags/index.tsx +0 -98
- package/src/components/FormFieldInputText/index.tsx +0 -41
- package/src/components/FormFieldInputTextarea/index.tsx +0 -43
- package/src/components/FormSubmitButton/index.tsx +0 -59
- package/src/components/Header/index.tsx +0 -80
- package/src/components/Image/index.tsx +0 -41
- package/src/components/Items/index.tsx +0 -68
- package/src/components/Notifications/index.tsx +0 -24
- package/src/components/OrderSelect/index.tsx +0 -66
- package/src/components/PickedBar/index.tsx +0 -77
- package/src/components/Progress/index.tsx +0 -38
- package/src/components/ReduxProvider/index.tsx +0 -96
- package/src/components/SearchFacet/index.tsx +0 -66
- package/src/components/SearchFacetNumber/index.tsx +0 -133
- package/src/components/SearchFacetSelect/index.tsx +0 -110
- package/src/components/SearchFacetString/index.tsx +0 -88
- package/src/components/SearchFacetTags/index.tsx +0 -121
- package/src/components/SearchFacets/index.tsx +0 -72
- package/src/components/SearchFacetsControl/index.tsx +0 -140
- package/src/components/TableHeader/index.tsx +0 -110
- package/src/components/TableHeaderItem/index.tsx +0 -61
- package/src/components/TableRowAsset/index.tsx +0 -420
- package/src/components/TableRowUpload/index.tsx +0 -164
- package/src/components/Tag/index.tsx +0 -200
- package/src/components/TagIcon/index.tsx +0 -22
- package/src/components/TagView/index.tsx +0 -39
- package/src/components/TagViewHeader/index.tsx +0 -70
- package/src/components/TagsPanel/index.tsx +0 -40
- package/src/components/TagsVirtualized/index.tsx +0 -160
- package/src/components/TextInputNumber/index.tsx +0 -32
- package/src/components/TextInputSearch/index.tsx +0 -60
- package/src/components/Tool/index.tsx +0 -13
- package/src/components/UploadDropzone/UploadDropzone.test.tsx +0 -40
- package/src/components/UploadDropzone/index.tsx +0 -173
- package/src/config/orders.ts +0 -28
- package/src/config/searchFacets.ts +0 -312
- package/src/constants.ts +0 -87
- package/src/contexts/AssetSourceDispatchContext.tsx +0 -37
- package/src/contexts/DropzoneDispatchContext.tsx +0 -34
- package/src/contexts/ToolOptionsContext.tsx +0 -65
- package/src/formSchema/index.test.ts +0 -56
- package/src/formSchema/index.ts +0 -39
- package/src/hooks/useBreakpointIndex.ts +0 -49
- package/src/hooks/useKeyPress.ts +0 -39
- package/src/hooks/useOnScreen.ts +0 -34
- package/src/hooks/usePortalPopoverProps.ts +0 -13
- package/src/hooks/useTypedSelector.ts +0 -7
- package/src/hooks/useVersionedClient.ts +0 -6
- package/src/index.ts +0 -5
- package/src/modules/assets/actions.ts +0 -42
- package/src/modules/assets/deleteAndUpdateEpics.test.ts +0 -87
- package/src/modules/assets/fetchEpic.test.ts +0 -73
- package/src/modules/assets/index.ts +0 -825
- package/src/modules/assets/reducer.test.ts +0 -91
- package/src/modules/assets/tagsAndListenerEpics.test.ts +0 -206
- package/src/modules/debug/index.ts +0 -28
- package/src/modules/dialog/actions.ts +0 -10
- package/src/modules/dialog/epics.test.ts +0 -168
- package/src/modules/dialog/index.ts +0 -238
- package/src/modules/dialog/reducer.test.ts +0 -185
- package/src/modules/index.ts +0 -124
- package/src/modules/notifications/epics.test.ts +0 -374
- package/src/modules/notifications/index.ts +0 -199
- package/src/modules/notifications/reducer.test.ts +0 -54
- package/src/modules/search/index.test.ts +0 -36
- package/src/modules/search/index.ts +0 -167
- package/src/modules/selected/index.ts +0 -22
- package/src/modules/selectors.test.ts +0 -21
- package/src/modules/selectors.ts +0 -17
- package/src/modules/tags/epics.test.ts +0 -96
- package/src/modules/tags/index.test.ts +0 -42
- package/src/modules/tags/index.ts +0 -540
- package/src/modules/types.ts +0 -3
- package/src/modules/uploads/actions.ts +0 -13
- package/src/modules/uploads/epics.test.ts +0 -109
- package/src/modules/uploads/index.test.ts +0 -59
- package/src/modules/uploads/index.ts +0 -282
- package/src/operators/checkTagName.test.ts +0 -29
- package/src/operators/checkTagName.ts +0 -33
- package/src/operators/debugThrottle.ts +0 -25
- package/src/plugin.tsx +0 -54
- package/src/schemas/tag.ts +0 -28
- package/src/styled/GlobalStyles/index.tsx +0 -40
- package/src/styled/react-select/creatable.tsx +0 -184
- package/src/styled/react-select/single.tsx +0 -184
- package/src/types/index.ts +0 -379
- package/src/types/sanity-ui.d.ts +0 -6
- package/src/utils/applyMediaTags.ts +0 -87
- package/src/utils/blocksToText.test.ts +0 -43
- package/src/utils/blocksToText.ts +0 -27
- package/src/utils/constructFilter.test.ts +0 -120
- package/src/utils/constructFilter.ts +0 -98
- package/src/utils/generatePreviewBlobUrl.test.ts +0 -70
- package/src/utils/generatePreviewBlobUrl.ts +0 -53
- package/src/utils/getAssetResolution.test.ts +0 -13
- package/src/utils/getAssetResolution.ts +0 -7
- package/src/utils/getDocumentAssetIds.test.ts +0 -50
- package/src/utils/getDocumentAssetIds.ts +0 -35
- package/src/utils/getSchemeColor.test.ts +0 -12
- package/src/utils/getSchemeColor.ts +0 -43
- package/src/utils/getTagSelectOptions.test.ts +0 -44
- package/src/utils/getTagSelectOptions.ts +0 -16
- package/src/utils/getUniqueDocuments.test.ts +0 -26
- package/src/utils/getUniqueDocuments.ts +0 -15
- package/src/utils/imageDprUrl.test.ts +0 -46
- package/src/utils/imageDprUrl.ts +0 -27
- package/src/utils/isSupportedAssetType.test.ts +0 -16
- package/src/utils/isSupportedAssetType.ts +0 -15
- package/src/utils/mediaField.ts +0 -73
- package/src/utils/sanitizeFormData.test.ts +0 -59
- package/src/utils/sanitizeFormData.ts +0 -26
- package/src/utils/typeGuards.test.ts +0 -18
- package/src/utils/typeGuards.ts +0 -9
- package/src/utils/uploadSanityAsset.test.ts +0 -29
- package/src/utils/uploadSanityAsset.ts +0 -97
- package/src/utils/withMaxConcurrency.test.ts +0 -43
- package/src/utils/withMaxConcurrency.ts +0 -55
- package/src/utils/zodFormResolver.ts +0 -17
- package/v2-incompatible.js +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sanity-plugin-media",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "This version of `sanity-plugin-media` is for Sanity Studio V3.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"asset",
|
|
@@ -24,74 +24,67 @@
|
|
|
24
24
|
"directory": "plugins/sanity-plugin-media"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
|
-
"dist"
|
|
28
|
-
"sanity.json",
|
|
29
|
-
"src",
|
|
30
|
-
"v2-incompatible.js"
|
|
27
|
+
"dist"
|
|
31
28
|
],
|
|
32
29
|
"type": "module",
|
|
33
|
-
"main": "./dist/index.cjs",
|
|
34
30
|
"types": "./dist/index.d.ts",
|
|
35
31
|
"exports": {
|
|
36
|
-
".":
|
|
37
|
-
"source": "./src/index.ts",
|
|
38
|
-
"import": "./dist/index.js",
|
|
39
|
-
"require": "./dist/index.cjs",
|
|
40
|
-
"default": "./dist/index.js"
|
|
41
|
-
},
|
|
32
|
+
".": "./dist/index.js",
|
|
42
33
|
"./package.json": "./package.json"
|
|
43
34
|
},
|
|
44
35
|
"dependencies": {
|
|
45
|
-
"@hookform/resolvers": "^
|
|
46
|
-
"@reduxjs/toolkit": "^2.
|
|
36
|
+
"@hookform/resolvers": "^4.1.3",
|
|
37
|
+
"@reduxjs/toolkit": "^2.12.0",
|
|
47
38
|
"@sanity/client": "^7.23.0",
|
|
48
39
|
"@sanity/color": "^3.0.6",
|
|
49
40
|
"@sanity/icons": "^3.7.4",
|
|
50
|
-
"@sanity/incompatible-plugin": "^1.0.5",
|
|
51
41
|
"@sanity/ui": "^3.2.0",
|
|
52
|
-
"@sanity/uuid": "^3.0.
|
|
53
|
-
"@tanem/react-nprogress": "^5.0.
|
|
54
|
-
"copy-to-clipboard": "^3.3.
|
|
42
|
+
"@sanity/uuid": "^3.0.3",
|
|
43
|
+
"@tanem/react-nprogress": "^5.0.63",
|
|
44
|
+
"copy-to-clipboard": "^3.3.3",
|
|
55
45
|
"date-fns": "^4.0.0",
|
|
56
|
-
"filesize": "^9.0.
|
|
46
|
+
"filesize": "^9.0.11",
|
|
57
47
|
"groq": "^6.1.0",
|
|
58
48
|
"is-hotkey-esm": "^1.0.0",
|
|
59
|
-
"nanoid": "^3.3.
|
|
49
|
+
"nanoid": "^3.3.12",
|
|
60
50
|
"pluralize": "^8.0.0",
|
|
61
|
-
"react-dropzone": "^11.
|
|
51
|
+
"react-dropzone": "^11.7.1",
|
|
62
52
|
"react-file-icon": "^1.6.0",
|
|
63
|
-
"react-hook-form": "^7.
|
|
64
|
-
"react-redux": "^9.
|
|
65
|
-
"react-select": "^5.10.
|
|
66
|
-
"react-virtuoso": "^4.
|
|
53
|
+
"react-hook-form": "^7.79.0",
|
|
54
|
+
"react-redux": "^9.3.0",
|
|
55
|
+
"react-select": "^5.10.2",
|
|
56
|
+
"react-virtuoso": "^4.18.7",
|
|
67
57
|
"redux": "^5.0.1",
|
|
68
58
|
"redux-observable": "3.0.0-rc.2",
|
|
69
59
|
"rxjs": "^7.8.2",
|
|
70
|
-
"zod": "^3.
|
|
60
|
+
"zod": "^3.25.76"
|
|
71
61
|
},
|
|
72
62
|
"devDependencies": {
|
|
73
63
|
"@sanity/pkg-utils": "^10.5.7",
|
|
74
|
-
"@testing-library/jest-dom": "^6.
|
|
75
|
-
"@testing-library/react": "^16.2
|
|
64
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
65
|
+
"@testing-library/react": "^16.3.2",
|
|
76
66
|
"@testing-library/user-event": "^14.6.1",
|
|
77
67
|
"@types/pluralize": "^0.0.33",
|
|
78
68
|
"@types/react": "^19.2.17",
|
|
79
69
|
"@types/react-dom": "^19.2.3",
|
|
80
70
|
"@types/react-file-icon": "^1.0.4",
|
|
81
|
-
"
|
|
71
|
+
"babel-plugin-styled-components": "^2.3.0",
|
|
72
|
+
"jsdom": "^29.1.1",
|
|
82
73
|
"react": "^19.2.7",
|
|
83
74
|
"react-dom": "^19.2.7",
|
|
84
|
-
"react-is": "^19.
|
|
75
|
+
"react-is": "^19.2.7",
|
|
85
76
|
"sanity": "^6.1.0",
|
|
86
77
|
"styled-components": "^6.4.2",
|
|
87
|
-
"typescript": "5.
|
|
88
|
-
"@
|
|
78
|
+
"typescript": "5.9.3",
|
|
79
|
+
"@repo/package.config": "0.0.0",
|
|
80
|
+
"@sanity/plugin-kit": "6.0.0",
|
|
81
|
+
"@repo/tsconfig": "0.0.0"
|
|
89
82
|
},
|
|
90
83
|
"peerDependencies": {
|
|
91
84
|
"react": "^18.3 || ^19",
|
|
92
85
|
"react-dom": "^18.3 || ^19",
|
|
93
86
|
"react-is": "^18.3 || ^19",
|
|
94
|
-
"sanity": "^
|
|
87
|
+
"sanity": "^5 || ^6.0.0-0",
|
|
95
88
|
"styled-components": "^6.1"
|
|
96
89
|
},
|
|
97
90
|
"engines": {
|
|
@@ -99,12 +92,13 @@
|
|
|
99
92
|
},
|
|
100
93
|
"sanityPlugin": {
|
|
101
94
|
"verifyPackage": {
|
|
95
|
+
"tsconfig": false,
|
|
96
|
+
"tsc": false,
|
|
102
97
|
"eslintImports": false,
|
|
103
98
|
"scripts": false
|
|
104
99
|
}
|
|
105
100
|
},
|
|
106
101
|
"scripts": {
|
|
107
|
-
"build": "plugin-kit verify-package --silent && pkg-utils build --strict --check --clean"
|
|
108
|
-
"watch": "pkg-utils watch --strict"
|
|
102
|
+
"build": "plugin-kit verify-package --silent && pkg-utils build --strict --check --clean"
|
|
109
103
|
}
|
|
110
104
|
}
|