@sanity/assist 5.0.3 → 6.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/LICENSE +1 -1
- package/README.md +28 -254
- package/dist/index.d.ts +322 -410
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3182 -2673
- package/dist/index.js.map +1 -1
- package/package.json +41 -77
- package/dist/index.cjs +0 -4264
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -791
- package/sanity.json +0 -8
- package/src/_lib/connector/ConnectFromRegion.tsx +0 -25
- package/src/_lib/connector/ConnectToRegion.tsx +0 -23
- package/src/_lib/connector/ConnectorRegion.tsx +0 -24
- package/src/_lib/connector/ConnectorsProvider.tsx +0 -20
- package/src/_lib/connector/ConnectorsStore.ts +0 -122
- package/src/_lib/connector/ConnectorsStoreContext.ts +0 -5
- package/src/_lib/connector/helpers.ts +0 -5
- package/src/_lib/connector/index.ts +0 -9
- package/src/_lib/connector/mapConnectorToLine.ts +0 -83
- package/src/_lib/connector/types.ts +0 -56
- package/src/_lib/connector/useConnectorsStore.ts +0 -14
- package/src/_lib/connector/useRegionRects.ts +0 -142
- package/src/_lib/fixedListenQuery.ts +0 -101
- package/src/_lib/form/DocumentForm.tsx +0 -201
- package/src/_lib/form/constants.ts +0 -1
- package/src/_lib/form/helpers.ts +0 -32
- package/src/_lib/form/index.ts +0 -1
- package/src/_lib/randomKey.ts +0 -29
- package/src/_lib/useListeningQuery.ts +0 -62
- package/src/_lib/usePrevious.ts +0 -9
- package/src/assistConnectors/AssistConnectorsOverlay.tsx +0 -133
- package/src/assistConnectors/ConnectorPath.tsx +0 -63
- package/src/assistConnectors/draw/arrowPath.ts +0 -9
- package/src/assistConnectors/draw/connectorPath.ts +0 -142
- package/src/assistConnectors/index.ts +0 -1
- package/src/assistDocument/AssistDocumentContext.tsx +0 -51
- package/src/assistDocument/AssistDocumentContextProvider.tsx +0 -17
- package/src/assistDocument/AssistDocumentInput.tsx +0 -61
- package/src/assistDocument/AssistDocumentLayout.tsx +0 -12
- package/src/assistDocument/RequestRunInstructionProvider.tsx +0 -61
- package/src/assistDocument/components/AssistDocumentForm.tsx +0 -286
- package/src/assistDocument/components/AssistTypeContext.tsx +0 -7
- package/src/assistDocument/components/FieldRefPreview.tsx +0 -26
- package/src/assistDocument/components/InstructionsArrayField.tsx +0 -8
- package/src/assistDocument/components/InstructionsArrayInput.tsx +0 -27
- package/src/assistDocument/components/SelectedFieldContext.tsx +0 -10
- package/src/assistDocument/components/generic/HiddenFieldTitle.tsx +0 -5
- package/src/assistDocument/components/helpers.ts +0 -21
- package/src/assistDocument/components/instruction/BackToInstructionsLink.tsx +0 -32
- package/src/assistDocument/components/instruction/FieldRefInput.tsx +0 -54
- package/src/assistDocument/components/instruction/InstructionInput.tsx +0 -89
- package/src/assistDocument/components/instruction/InstructionOutputField.tsx +0 -46
- package/src/assistDocument/components/instruction/InstructionOutputInput.tsx +0 -206
- package/src/assistDocument/components/instruction/PromptInput.tsx +0 -59
- package/src/assistDocument/components/instruction/appearance/IconInput.tsx +0 -46
- package/src/assistDocument/components/instruction/appearance/InstructionVisibility.tsx +0 -37
- package/src/assistDocument/hooks/useAssistDocumentContextValue.tsx +0 -129
- package/src/assistDocument/hooks/useDocumentState.ts +0 -6
- package/src/assistDocument/hooks/useInstructionToaster.tsx +0 -75
- package/src/assistDocument/hooks/useStudioAssistDocument.ts +0 -99
- package/src/assistDocument/index.ts +0 -1
- package/src/assistFormComponents/AssistField.tsx +0 -63
- package/src/assistFormComponents/AssistFormBlock.tsx +0 -31
- package/src/assistFormComponents/AssistInlineFormBlock.tsx +0 -13
- package/src/assistFormComponents/AssistItem.tsx +0 -21
- package/src/assistFormComponents/validation/listItem.tsx +0 -63
- package/src/assistFormComponents/validation/validationList.tsx +0 -90
- package/src/assistInspector/AssistInspector.tsx +0 -423
- package/src/assistInspector/FieldAutocomplete.tsx +0 -146
- package/src/assistInspector/InstructionTaskHistoryButton.tsx +0 -262
- package/src/assistInspector/constants.ts +0 -1
- package/src/assistInspector/helpers.ts +0 -211
- package/src/assistInspector/index.ts +0 -27
- package/src/assistLayout/AiAssistanceConfigContext.tsx +0 -32
- package/src/assistLayout/AiAssistanceConfigProvider.tsx +0 -98
- package/src/assistLayout/AssistLayout.tsx +0 -39
- package/src/assistLayout/RunInstructionProvider.tsx +0 -278
- package/src/assistLayout/fieldRefCache.tsx +0 -34
- package/src/assistTypes.ts +0 -83
- package/src/components/AssistFeatureBadge.tsx +0 -9
- package/src/components/FadeInContent.tsx +0 -40
- package/src/components/HideReferenceChangedBannerInput.tsx +0 -25
- package/src/components/ImageContext.tsx +0 -85
- package/src/components/SafeValueInput.tsx +0 -74
- package/src/components/TimeAgo.tsx +0 -18
- package/src/constants.ts +0 -20
- package/src/fieldActions/PrivateIcon.tsx +0 -20
- package/src/fieldActions/assistFieldActions.tsx +0 -320
- package/src/fieldActions/customFieldActions.tsx +0 -333
- package/src/fieldActions/generateCaptionActions.tsx +0 -77
- package/src/fieldActions/generateImageActions.tsx +0 -58
- package/src/fieldActions/useUserInput.ts +0 -107
- package/src/globals.d.ts +0 -4
- package/src/helpers/assistSupported.ts +0 -49
- package/src/helpers/conditionalMembers.test.ts +0 -319
- package/src/helpers/conditionalMembers.ts +0 -134
- package/src/helpers/ids.test.ts +0 -28
- package/src/helpers/ids.ts +0 -23
- package/src/helpers/misc.ts +0 -25
- package/src/helpers/styleguide.ts +0 -24
- package/src/helpers/typeUtils.ts +0 -60
- package/src/helpers/useAssistSupported.ts +0 -8
- package/src/index.ts +0 -26
- package/src/onboarding/FirstAssistedPathProvider.tsx +0 -30
- package/src/onboarding/InspectorOnboarding.tsx +0 -47
- package/src/onboarding/onboardingStore.ts +0 -32
- package/src/plugin.tsx +0 -162
- package/src/presence/AiFieldPresence.tsx +0 -28
- package/src/presence/AssistAvatar.tsx +0 -96
- package/src/presence/AssistDocumentPresence.tsx +0 -50
- package/src/presence/useAssistPresence.ts +0 -64
- package/src/schemas/assistDocumentSchema.tsx +0 -497
- package/src/schemas/contextDocumentSchema.tsx +0 -57
- package/src/schemas/index.ts +0 -69
- package/src/schemas/serialize/SchemTypeTool.tsx +0 -103
- package/src/schemas/serialize/schemaUtils.ts +0 -38
- package/src/schemas/serialize/serializeSchema.test.ts +0 -819
- package/src/schemas/serialize/serializeSchema.ts +0 -224
- package/src/schemas/serializedSchemaTypeSchema.ts +0 -60
- package/src/schemas/typeDefExtensions.ts +0 -127
- package/src/translate/FieldTranslationProvider.tsx +0 -382
- package/src/translate/getLanguageParams.ts +0 -26
- package/src/translate/languageStore.ts +0 -18
- package/src/translate/paths.test.ts +0 -181
- package/src/translate/paths.ts +0 -183
- package/src/translate/translateActions.tsx +0 -205
- package/src/translate/types.ts +0 -197
- package/src/types.ts +0 -220
- package/src/useApiClient.ts +0 -338
- package/v2-incompatible.js +0 -11
package/package.json
CHANGED
|
@@ -1,106 +1,70 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/assist",
|
|
3
|
-
"version": "
|
|
4
|
-
"type": "module",
|
|
3
|
+
"version": "6.0.0",
|
|
5
4
|
"description": "You create the instructions; Sanity AI Assist does the rest.",
|
|
6
5
|
"keywords": [
|
|
6
|
+
"ai",
|
|
7
7
|
"sanity",
|
|
8
|
-
"sanity-plugin"
|
|
9
|
-
"ai"
|
|
8
|
+
"sanity-plugin"
|
|
10
9
|
],
|
|
11
|
-
"homepage": "https://github.com/sanity-io/assist#readme",
|
|
10
|
+
"homepage": "https://github.com/sanity-io/plugins/tree/main/plugins/@sanity/assist#readme",
|
|
12
11
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/sanity-io/
|
|
12
|
+
"url": "https://github.com/sanity-io/plugins/issues"
|
|
14
13
|
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"author": "Sanity.io <hello@sanity.io>",
|
|
15
16
|
"repository": {
|
|
16
17
|
"type": "git",
|
|
17
|
-
"url": "git+ssh://git@github.com/sanity-io/
|
|
18
|
+
"url": "git+ssh://git@github.com/sanity-io/plugins.git",
|
|
19
|
+
"directory": "plugins/@sanity/assist"
|
|
18
20
|
},
|
|
19
|
-
"license": "MIT",
|
|
20
|
-
"author": "Sanity <hello@sanity.io>",
|
|
21
|
-
"sideEffects": false,
|
|
22
|
-
"exports": {
|
|
23
|
-
".": {
|
|
24
|
-
"source": "./src/index.ts",
|
|
25
|
-
"import": "./dist/index.js",
|
|
26
|
-
"require": "./dist/index.cjs",
|
|
27
|
-
"default": "./dist/index.js"
|
|
28
|
-
},
|
|
29
|
-
"./package.json": "./package.json"
|
|
30
|
-
},
|
|
31
|
-
"main": "./dist/index.cjs",
|
|
32
|
-
"module": "./dist/index.js",
|
|
33
|
-
"types": "./dist/index.d.ts",
|
|
34
21
|
"files": [
|
|
35
|
-
"dist"
|
|
36
|
-
"sanity.json",
|
|
37
|
-
"src",
|
|
38
|
-
"v2-incompatible.js"
|
|
22
|
+
"dist"
|
|
39
23
|
],
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"lint": "eslint src/**/* --ext .tsx,.ts",
|
|
46
|
-
"prepublishOnly": "run-s build",
|
|
47
|
-
"watch": "pkg-utils watch --strict",
|
|
48
|
-
"compile": "tsc --noEmit",
|
|
49
|
-
"test": "vitest",
|
|
50
|
-
"release": "semantic-release"
|
|
24
|
+
"type": "module",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": "./dist/index.js",
|
|
28
|
+
"./package.json": "./package.json"
|
|
51
29
|
},
|
|
52
30
|
"dependencies": {
|
|
31
|
+
"@portabletext/types": "^4.0.1",
|
|
32
|
+
"@sanity/client": "^7.14.0",
|
|
33
|
+
"@sanity/color": "^3.0.6",
|
|
53
34
|
"@sanity/icons": "^3.7.4",
|
|
54
|
-
"@sanity/
|
|
55
|
-
"@sanity/ui": "^3.1.11",
|
|
35
|
+
"@sanity/ui": "^3.1.13",
|
|
56
36
|
"date-fns": "^3.6.0",
|
|
57
|
-
"lodash": "^4.17.21",
|
|
58
37
|
"lodash-es": "^4.17.21",
|
|
59
38
|
"react-fast-compare": "^3.2.2",
|
|
60
|
-
"rxjs": "^7.8.
|
|
39
|
+
"rxjs": "^7.8.2",
|
|
61
40
|
"rxjs-exhaustmap-with-trailing": "^2.1.1"
|
|
62
41
|
},
|
|
63
42
|
"devDependencies": {
|
|
64
|
-
"@
|
|
65
|
-
"@
|
|
66
|
-
"@rollup/plugin-image": "^3.0.3",
|
|
67
|
-
"@sanity/pkg-utils": "^8.1.25",
|
|
68
|
-
"@sanity/plugin-kit": "^4.0.20",
|
|
69
|
-
"@sanity/schema": "^4.11.0",
|
|
70
|
-
"@sanity/semantic-release-preset": "^4.1.7",
|
|
71
|
-
"@types/lodash": "^4.17.0",
|
|
43
|
+
"@sanity/pkg-utils": "^10.4.7",
|
|
44
|
+
"@sanity/schema": "^5",
|
|
72
45
|
"@types/lodash-es": "^4.17.12",
|
|
73
|
-
"@types/react": "^
|
|
74
|
-
"@
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"npm-run-all2": "^5.0.2",
|
|
84
|
-
"react": "^18.2.0",
|
|
85
|
-
"react-dom": "^18.2.0",
|
|
86
|
-
"rimraf": "^5.0.5",
|
|
87
|
-
"sanity": "^4.0.0",
|
|
88
|
-
"semantic-release": "^23.0.8",
|
|
89
|
-
"styled-components": "^6.1.16",
|
|
90
|
-
"typescript": "^5.7.2",
|
|
91
|
-
"vitest": "^3.1.4"
|
|
46
|
+
"@types/react": "^19.2.14",
|
|
47
|
+
"@types/react-dom": "^19.2.3",
|
|
48
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
49
|
+
"babel-plugin-styled-components": "^2.1.4",
|
|
50
|
+
"react": "^19.2.4",
|
|
51
|
+
"react-dom": "^19.2.4",
|
|
52
|
+
"sanity": "^5.13.0",
|
|
53
|
+
"styled-components": "^6.3.11",
|
|
54
|
+
"@repo/package.config": "0.0.0",
|
|
55
|
+
"@repo/tsconfig": "0.0.0"
|
|
92
56
|
},
|
|
93
57
|
"peerDependencies": {
|
|
94
|
-
"@sanity/mutator": "^
|
|
95
|
-
"react": "^
|
|
96
|
-
"
|
|
58
|
+
"@sanity/mutator": "^5",
|
|
59
|
+
"react": "^19.2",
|
|
60
|
+
"react-dom": "^19.2",
|
|
61
|
+
"sanity": "^5",
|
|
97
62
|
"styled-components": "^6.1"
|
|
98
63
|
},
|
|
99
64
|
"engines": {
|
|
100
|
-
"node": ">=20"
|
|
101
|
-
},
|
|
102
|
-
"publishConfig": {
|
|
103
|
-
"access": "public"
|
|
65
|
+
"node": ">=20.19 <22 || >=22.12"
|
|
104
66
|
},
|
|
105
|
-
"
|
|
106
|
-
|
|
67
|
+
"scripts": {
|
|
68
|
+
"build": "pkg build --strict --check --clean"
|
|
69
|
+
}
|
|
70
|
+
}
|