@easyling/sanity-connector 0.0.4-rc.5 → 1.2.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.
@@ -15,11 +15,19 @@ export interface DocumentCreationOptions {
15
15
  /** Creation mode: 'draft' creates a draft document, 'published' creates a published document */
16
16
  creationMode?: 'draft' | 'published';
17
17
  }
18
+ export interface SlugFallbackInfo {
19
+ documentId: string;
20
+ originalSlug: string;
21
+ fallbackSlug: string;
22
+ locale: string;
23
+ reason: string;
24
+ }
18
25
  export interface DocumentCreationResult {
19
26
  success: boolean;
20
27
  documentId?: string;
21
28
  document?: SanityDocument;
22
29
  error?: string;
30
+ slugFallback?: SlugFallbackInfo;
23
31
  }
24
32
  export interface BulkDocumentCreationResult {
25
33
  totalDocuments: number;
@@ -28,6 +36,7 @@ export interface BulkDocumentCreationResult {
28
36
  results: DocumentCreationResult[];
29
37
  errors: string[];
30
38
  rollbackInfo?: RollbackInfo;
39
+ slugFallbacks: SlugFallbackInfo[];
31
40
  }
32
41
  export interface RollbackInfo {
33
42
  canRollback: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@easyling/sanity-connector",
3
- "version": "0.0.4-rc.5",
4
- "description": "A Sanity Studio plugin that enables document translation with support for single and bulk operations. Extracts document content as HTML and prepares translation requests for external services.",
3
+ "version": "1.2.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.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist-types/index.d.ts",
@@ -31,28 +31,39 @@
31
31
  "lint:fix": "eslint src --ext .ts,.tsx --fix",
32
32
  "typecheck": "tsc --noEmit",
33
33
  "prepublishOnly": "npm run build && npm run test && npm run lint",
34
- "prepare-publish": "node scripts/preparePublish.js"
34
+ "prepare-publish": "node scripts/preparePublish.js",
35
+ "semantic-release": "semantic-release --debug --repository-url ${CI_REPOSITORY_URL}"
35
36
  },
36
37
  "keywords": [
37
38
  "sanity",
38
- "sanity-plugin",
39
39
  "translation",
40
- "studio",
41
- "i18n",
42
40
  "localization",
43
- "content-management",
44
- "cms"
41
+ "language",
42
+ "localize",
43
+ "translate",
44
+ "multilingual",
45
+ "multilingual-content",
46
+ "i18n",
47
+ "l10n",
48
+ "easyling"
49
+ ],
50
+ "author": "Easyling",
51
+ "contributors": [
52
+ {
53
+ "name": "Zalan Meggyesi",
54
+ "email": "zmeggyesi@easyling.com"
55
+ }
45
56
  ],
46
- "author": "",
47
57
  "license": "MIT",
48
58
  "repository": {
49
59
  "type": "git",
50
- "url": ""
60
+ "url": "git+https://github.com/easyling/el-sanity-connector.git"
51
61
  },
52
62
  "bugs": {
53
- "url": ""
63
+ "url": "https://github.com/easyling/el-sanity-connector/issues",
64
+ "email": "support@easyling.com"
54
65
  },
55
- "homepage": "",
66
+ "homepage": "https://easyling.com/",
56
67
  "peerDependencies": {
57
68
  "@sanity/icons": "^3.7.4",
58
69
  "@sanity/ui": "^3.1.11",
@@ -64,6 +75,13 @@
64
75
  "@easyling/sanity": "^1.0.6",
65
76
  "@sanity/icons": "^3.7.4",
66
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",
67
85
  "@testing-library/jest-dom": "^6.9.1",
68
86
  "@testing-library/react": "^16.3.0",
69
87
  "@types/jest": "^29.0.0",