@easyling/sanity-connector 1.4.0 → 2.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.
Files changed (69) hide show
  1. package/README.md +560 -90
  2. package/dist/index.js +2 -1
  3. package/dist/index.js.map +1 -0
  4. package/package.json +38 -54
  5. package/LICENSE +0 -21
  6. package/dist/.tsbuildinfo +0 -1
  7. package/dist-types/actions/bulkTranslate.d.ts +0 -6
  8. package/dist-types/actions/manageDNTFields.d.ts +0 -11
  9. package/dist-types/actions/translateDocument.d.ts +0 -6
  10. package/dist-types/components/RadioWithDefault.d.ts +0 -16
  11. package/dist-types/components/auth/AuthNavbar.d.ts +0 -17
  12. package/dist-types/components/auth/AuthStatus.d.ts +0 -26
  13. package/dist-types/components/auth/AuthStatusWrapper.d.ts +0 -14
  14. package/dist-types/components/auth/MigrationPrompt.d.ts +0 -19
  15. package/dist-types/components/auth/MigrationPromptWrapper.d.ts +0 -13
  16. package/dist-types/components/auth/OAuthCallback.d.ts +0 -19
  17. package/dist-types/components/auth/index.d.ts +0 -14
  18. package/dist-types/components/config/LocaleConfigTool.d.ts +0 -16
  19. package/dist-types/components/config/LocaleConfigToolWrapper.d.ts +0 -12
  20. package/dist-types/components/config/OAuthConfig.d.ts +0 -25
  21. package/dist-types/components/config/OAuthConfigWrapper.d.ts +0 -12
  22. package/dist-types/components/config/PasswordInput.d.ts +0 -13
  23. package/dist-types/components/config/index.d.ts +0 -8
  24. package/dist-types/components/config/localeConfigToolDefinition.d.ts +0 -12
  25. package/dist-types/components/config/oauthConfigToolDefinition.d.ts +0 -12
  26. package/dist-types/components/dialogs/ConfirmationDialog.d.ts +0 -20
  27. package/dist-types/components/dialogs/ErrorDialog.d.ts +0 -20
  28. package/dist-types/components/dialogs/LocaleSelectionDialog.d.ts +0 -62
  29. package/dist-types/components/dialogs/SuccessDialog.d.ts +0 -18
  30. package/dist-types/components/dialogs/index.d.ts +0 -11
  31. package/dist-types/components/dnt/DNTFieldBadge.d.ts +0 -15
  32. package/dist-types/components/dnt/DNTFieldComponent.d.ts +0 -16
  33. package/dist-types/components/dnt/DNTFieldInput.d.ts +0 -13
  34. package/dist-types/components/dnt/DebugDNTBadge.d.ts +0 -19
  35. package/dist-types/components/dnt/index.d.ts +0 -7
  36. package/dist-types/config/index.d.ts +0 -5
  37. package/dist-types/config/pluginConfig.d.ts +0 -162
  38. package/dist-types/index.d.ts +0 -11
  39. package/dist-types/plugin.d.ts +0 -12
  40. package/dist-types/services/authStateManager.d.ts +0 -93
  41. package/dist-types/services/collisionDetectionService.d.ts +0 -85
  42. package/dist-types/services/contentExtractor.d.ts +0 -161
  43. package/dist-types/services/dialogService.d.ts +0 -95
  44. package/dist-types/services/dntServiceManager.d.ts +0 -43
  45. package/dist-types/services/dntStorageAdapter.d.ts +0 -72
  46. package/dist-types/services/documentCreationService.d.ts +0 -262
  47. package/dist-types/services/localeService.d.ts +0 -159
  48. package/dist-types/services/localeStorageAdapter.d.ts +0 -41
  49. package/dist-types/services/oauthConfigStorage.d.ts +0 -45
  50. package/dist-types/services/oauthService.d.ts +0 -47
  51. package/dist-types/services/oauthServiceManager.d.ts +0 -195
  52. package/dist-types/services/tokenStorage.d.ts +0 -53
  53. package/dist-types/services/translationService.d.ts +0 -385
  54. package/dist-types/services/unifiedConfigStorage.d.ts +0 -158
  55. package/dist-types/test-utils.d.ts +0 -8
  56. package/dist-types/types/dialog.d.ts +0 -118
  57. package/dist-types/types/dnt.d.ts +0 -83
  58. package/dist-types/types/index.d.ts +0 -11
  59. package/dist-types/types/locale.d.ts +0 -115
  60. package/dist-types/types/oauth.d.ts +0 -89
  61. package/dist-types/types/pluginConfig.d.ts +0 -64
  62. package/dist-types/types/translation.d.ts +0 -121
  63. package/dist-types/utils/dntDefaults.d.ts +0 -101
  64. package/dist-types/utils/htmlFormatter.d.ts +0 -65
  65. package/dist-types/utils/index.d.ts +0 -16
  66. package/dist-types/utils/logger.d.ts +0 -104
  67. package/dist-types/utils/oauthErrorFeedback.d.ts +0 -75
  68. package/dist-types/utils/oauthLogger.d.ts +0 -175
  69. package/dist-types/utils/validator.d.ts +0 -66
package/package.json CHANGED
@@ -1,41 +1,35 @@
1
1
  {
2
2
  "name": "@easyling/sanity-connector",
3
- "version": "1.4.0",
4
- "description": "A *Sanity Studio v4* plugin that enables document translation with support for single and bulk operations, using Easyling's AI translation capabilities.",
3
+ "version": "2.0.0",
4
+ "description": "Sanity Studio v3 plugin for document translation with Easyling",
5
5
  "main": "dist/index.js",
6
- "module": "dist/index.js",
7
- "types": "dist-types/index.d.ts",
6
+ "types": "dist/index.d.ts",
8
7
  "exports": {
9
8
  ".": {
10
- "types": "./dist-types/index.d.ts",
11
- "import": "./dist/index.js",
12
- "require": "./dist/index.js"
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
13
11
  }
14
12
  },
15
13
  "files": [
16
14
  "dist",
17
- "dist-types",
18
15
  "README.md",
19
16
  "LICENSE"
20
17
  ],
21
18
  "scripts": {
22
- "build": "npm run clean && webpack build && tsc --project tsconfig.types.json",
23
- "build:simple": "npm run clean && tsc --project tsconfig.bundle.json",
24
- "build:watch": "tsc --watch",
25
- "clean": "rimraf dist dist-types",
26
- "dev": "npm run build:watch",
19
+ "build": "webpack --mode production",
20
+ "dev": "webpack --mode development --watch",
21
+ "clean": "rimraf dist",
27
22
  "test": "jest",
28
23
  "test:watch": "jest --watch",
29
24
  "test:coverage": "jest --coverage",
30
25
  "lint": "eslint src --ext .ts,.tsx",
31
26
  "lint:fix": "eslint src --ext .ts,.tsx --fix",
32
27
  "typecheck": "tsc --noEmit",
33
- "prepublishOnly": "npm run build && npm run test && npm run lint",
34
- "prepare-publish": "node scripts/preparePublish.js",
35
- "semantic-release": "semantic-release --debug --repository-url ${CI_REPOSITORY_URL}"
28
+ "prepublishOnly": "npm run clean && npm run build && npm run test && npm run lint"
36
29
  },
37
30
  "keywords": [
38
31
  "sanity",
32
+ "sanity-plugin",
39
33
  "translation",
40
34
  "localization",
41
35
  "language",
@@ -57,7 +51,8 @@
57
51
  "license": "MIT",
58
52
  "repository": {
59
53
  "type": "git",
60
- "url": "git+https://github.com/easyling/el-sanity-connector.git"
54
+ "url": "git+https://github.com/easyling/el-sanity-connector.git",
55
+ "directory": "plugin"
61
56
  },
62
57
  "bugs": {
63
58
  "url": "https://github.com/easyling/el-sanity-connector/issues",
@@ -65,46 +60,35 @@
65
60
  },
66
61
  "homepage": "https://easyling.com/",
67
62
  "peerDependencies": {
68
- "@sanity/icons": "^3.7.4",
69
- "@sanity/ui": "^3.1.11",
70
- "react": "^19.1.0",
71
- "react-dom": "^19.1.0",
72
- "sanity": "^4.16.0"
63
+ "react": "^18.0.0",
64
+ "react-dom": "^18.0.0",
65
+ "sanity": "^3.0.0"
66
+ },
67
+ "dependencies": {
68
+ "@sanity/icons": "^3.5.0",
69
+ "@sanity/ui": "^2.10.14"
73
70
  },
74
71
  "devDependencies": {
75
- "@easyling/sanity": "^2.0.0",
76
- "@sanity/icons": "^3.7.4",
77
- "@sanity/ui": "^3.1.11",
78
- "@semantic-release/changelog": "^6.0.3",
79
- "@semantic-release/commit-analyzer": "^13.0.1",
80
- "@semantic-release/git": "^10.0.1",
81
- "@semantic-release/gitlab": "^13.2.9",
82
- "@semantic-release/release-notes-generator": "^14.1.0",
83
- "conventional-changelog-conventionalcommits": "^9.1.0",
84
- "semantic-release": "^25.0.2",
85
- "@testing-library/jest-dom": "^6.9.1",
86
- "@testing-library/react": "^16.3.0",
87
- "@types/jest": "^29.0.0",
88
- "@types/react": "^19.0.0",
89
- "@types/react-dom": "^19.0.0",
90
- "@typescript-eslint/eslint-plugin": "^8.48.1",
91
- "@typescript-eslint/parser": "^8.48.1",
92
- "eslint": "^9.39.1",
93
- "get-random-values-esm": "^1.0.2",
94
- "jest": "^29.0.0",
95
- "jest-environment-jsdom": "^30.2.0",
96
- "jsdom": "^27.1.0",
97
- "react": "^19.0.0",
98
- "react-dom": "^19.0.0",
72
+ "@easyling/sanity-connector-shared": "*",
73
+ "@testing-library/jest-dom": "^6.6.3",
74
+ "@testing-library/react": "^16.1.0",
75
+ "@types/jest": "^29.5.14",
76
+ "@types/react": "^18.3.18",
77
+ "@types/react-dom": "^18.3.5",
78
+ "@typescript-eslint/eslint-plugin": "^8.20.0",
79
+ "@typescript-eslint/parser": "^8.20.0",
80
+ "eslint": "^9.18.0",
81
+ "fast-check": "^3.23.2",
82
+ "jest": "^29.7.0",
83
+ "jest-environment-jsdom": "^29.7.0",
84
+ "react": "^18.3.1",
85
+ "react-dom": "^18.3.1",
99
86
  "rimraf": "^6.1.2",
100
- "sanity": "^4.0.0",
101
- "ts-jest": "^29.4.5",
102
- "ts-loader": "^9.5.4",
103
- "typescript": "^5.0.0",
104
- "webpack": "^5.103.0",
87
+ "sanity": "^3.69.3",
88
+ "ts-jest": "^29.2.5",
89
+ "ts-loader": "^9.5.1",
90
+ "typescript": "^5.7.3",
91
+ "webpack": "^5.97.1",
105
92
  "webpack-cli": "^6.0.1"
106
- },
107
- "dependencies": {
108
- "protobufjs": "^7.5.4"
109
93
  }
110
94
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 Sanity Translation Plugin
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.