@payload-enchants/translator 0.0.1-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/README.md +193 -0
- package/dist/client/api/index.d.ts +8 -0
- package/dist/client/api/index.d.ts.map +1 -0
- package/dist/client/api/index.js +28 -0
- package/dist/client/api/index.js.map +1 -0
- package/dist/client/components/CustomSaveButton/CustomSaveButton.d.ts +4 -0
- package/dist/client/components/CustomSaveButton/CustomSaveButton.d.ts.map +1 -0
- package/dist/client/components/CustomSaveButton/CustomSaveButton.js +22 -0
- package/dist/client/components/CustomSaveButton/CustomSaveButton.js.map +1 -0
- package/dist/client/components/CustomSaveButton/index.d.ts +2 -0
- package/dist/client/components/CustomSaveButton/index.d.ts.map +1 -0
- package/dist/client/components/CustomSaveButton/index.js +3 -0
- package/dist/client/components/CustomSaveButton/index.js.map +1 -0
- package/dist/client/components/CustomSaveButton/styles.scss +5 -0
- package/dist/client/components/LocaleLabel/LocaleLabel.d.ts +6 -0
- package/dist/client/components/LocaleLabel/LocaleLabel.d.ts.map +1 -0
- package/dist/client/components/LocaleLabel/LocaleLabel.js +19 -0
- package/dist/client/components/LocaleLabel/LocaleLabel.js.map +1 -0
- package/dist/client/components/LocaleLabel/index.d.ts +2 -0
- package/dist/client/components/LocaleLabel/index.d.ts.map +1 -0
- package/dist/client/components/LocaleLabel/index.js +3 -0
- package/dist/client/components/LocaleLabel/index.js.map +1 -0
- package/dist/client/components/ResolverButton/ResolverButton.d.ts +6 -0
- package/dist/client/components/ResolverButton/ResolverButton.d.ts.map +1 -0
- package/dist/client/components/ResolverButton/ResolverButton.js +16 -0
- package/dist/client/components/ResolverButton/ResolverButton.js.map +1 -0
- package/dist/client/components/ResolverButton/index.d.ts +2 -0
- package/dist/client/components/ResolverButton/index.d.ts.map +1 -0
- package/dist/client/components/ResolverButton/index.js +3 -0
- package/dist/client/components/ResolverButton/index.js.map +1 -0
- package/dist/client/components/TranslatorModal/Content.d.ts +3 -0
- package/dist/client/components/TranslatorModal/Content.d.ts.map +1 -0
- package/dist/client/components/TranslatorModal/Content.js +42 -0
- package/dist/client/components/TranslatorModal/Content.js.map +1 -0
- package/dist/client/components/TranslatorModal/TranslatorModal.d.ts +4 -0
- package/dist/client/components/TranslatorModal/TranslatorModal.d.ts.map +1 -0
- package/dist/client/components/TranslatorModal/TranslatorModal.js +21 -0
- package/dist/client/components/TranslatorModal/TranslatorModal.js.map +1 -0
- package/dist/client/components/TranslatorModal/index.d.ts +2 -0
- package/dist/client/components/TranslatorModal/index.d.ts.map +1 -0
- package/dist/client/components/TranslatorModal/index.js +3 -0
- package/dist/client/components/TranslatorModal/index.js.map +1 -0
- package/dist/client/components/TranslatorModal/styles.scss +76 -0
- package/dist/client/providers/Translator/TranslatorProvider.d.ts +5 -0
- package/dist/client/providers/Translator/TranslatorProvider.d.ts.map +1 -0
- package/dist/client/providers/Translator/TranslatorProvider.js +100 -0
- package/dist/client/providers/Translator/TranslatorProvider.js.map +1 -0
- package/dist/client/providers/Translator/context.d.ts +22 -0
- package/dist/client/providers/Translator/context.d.ts.map +1 -0
- package/dist/client/providers/Translator/context.js +9 -0
- package/dist/client/providers/Translator/context.js.map +1 -0
- package/dist/i18n-translations.d.ts +25 -0
- package/dist/i18n-translations.d.ts.map +1 -0
- package/dist/i18n-translations.js +26 -0
- package/dist/i18n-translations.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +79 -0
- package/dist/index.js.map +1 -0
- package/dist/resolvers/copy.d.ts +3 -0
- package/dist/resolvers/copy.d.ts.map +1 -0
- package/dist/resolvers/copy.js +14 -0
- package/dist/resolvers/copy.js.map +1 -0
- package/dist/resolvers/google.d.ts +11 -0
- package/dist/resolvers/google.d.ts.map +1 -0
- package/dist/resolvers/google.js +47 -0
- package/dist/resolvers/google.js.map +1 -0
- package/dist/resolvers/openAI.d.ts +21 -0
- package/dist/resolvers/openAI.d.ts.map +1 -0
- package/dist/resolvers/openAI.js +97 -0
- package/dist/resolvers/openAI.js.map +1 -0
- package/dist/resolvers/types.d.ts +20 -0
- package/dist/resolvers/types.d.ts.map +1 -0
- package/dist/resolvers/types.js +3 -0
- package/dist/resolvers/types.js.map +1 -0
- package/dist/translate/endpoint.d.ts +3 -0
- package/dist/translate/endpoint.d.ts.map +1 -0
- package/dist/translate/endpoint.js +22 -0
- package/dist/translate/endpoint.js.map +1 -0
- package/dist/translate/findEntityWithConfig.d.ts +15 -0
- package/dist/translate/findEntityWithConfig.d.ts.map +1 -0
- package/dist/translate/findEntityWithConfig.js +32 -0
- package/dist/translate/findEntityWithConfig.js.map +1 -0
- package/dist/translate/operation.d.ts +9 -0
- package/dist/translate/operation.d.ts.map +1 -0
- package/dist/translate/operation.js +74 -0
- package/dist/translate/operation.js.map +1 -0
- package/dist/translate/traverseFields.d.ts +13 -0
- package/dist/translate/traverseFields.d.ts.map +1 -0
- package/dist/translate/traverseFields.js +160 -0
- package/dist/translate/traverseFields.js.map +1 -0
- package/dist/translate/traverseRichText.d.ts +6 -0
- package/dist/translate/traverseRichText.d.ts.map +1 -0
- package/dist/translate/traverseRichText.js +17 -0
- package/dist/translate/traverseRichText.js.map +1 -0
- package/dist/translate/types.d.ts +25 -0
- package/dist/translate/types.d.ts.map +1 -0
- package/dist/translate/types.js +3 -0
- package/dist/translate/types.js.map +1 -0
- package/dist/translate/updateEntity.d.ts +14 -0
- package/dist/translate/updateEntity.d.ts.map +1 -0
- package/dist/translate/updateEntity.js +26 -0
- package/dist/translate/updateEntity.js.map +1 -0
- package/dist/types.d.ts +21 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/chunkArray.d.ts +2 -0
- package/dist/utils/chunkArray.d.ts.map +1 -0
- package/dist/utils/chunkArray.js +7 -0
- package/dist/utils/chunkArray.js.map +1 -0
- package/dist/utils/isEmpty.d.ts +2 -0
- package/dist/utils/isEmpty.d.ts.map +1 -0
- package/dist/utils/isEmpty.js +8 -0
- package/dist/utils/isEmpty.js.map +1 -0
- package/package.json +75 -0
package/package.json
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
{
|
2
|
+
"name": "@payload-enchants/translator",
|
3
|
+
"private": false,
|
4
|
+
"version": "0.0.1-alpha.1",
|
5
|
+
"repository": "https://github.com/r1tsuu/payload-plugin-translator",
|
6
|
+
"author": "r1tsuu",
|
7
|
+
"bugs": "https://github.com/r1tsuu/payload-plugin-translator/issues",
|
8
|
+
"type": "module",
|
9
|
+
"peerDependencies": {
|
10
|
+
"@payloadcms/translations": "^3.0.0-beta.24",
|
11
|
+
"@payloadcms/ui": "^3.0.0-beta.24",
|
12
|
+
"payload": "^3.0.0-beta.24",
|
13
|
+
"react": "^18.2.0"
|
14
|
+
},
|
15
|
+
"devDependencies": {
|
16
|
+
"@payloadcms/translations": "3.0.0-beta.24",
|
17
|
+
"@payloadcms/ui": "3.0.0-beta.24",
|
18
|
+
"@types/react": "18.2.64",
|
19
|
+
"payload": "3.0.0-beta.24",
|
20
|
+
"react": "18.2.0",
|
21
|
+
"typescript": "^5.4.2"
|
22
|
+
},
|
23
|
+
"exports": {
|
24
|
+
".": {
|
25
|
+
"import": "./dist/index.js",
|
26
|
+
"require": "./dist/index.js",
|
27
|
+
"types": "./dist/index.d.ts"
|
28
|
+
},
|
29
|
+
"./types": {
|
30
|
+
"import": "./dist/types.js",
|
31
|
+
"require": "./dist/types.js",
|
32
|
+
"types": "./dist/types.d.ts"
|
33
|
+
},
|
34
|
+
"./resolvers/types": {
|
35
|
+
"import": "./dist/resolvers/types.js",
|
36
|
+
"require": "./dist/resolvers/types.js",
|
37
|
+
"types": "./dist/resolvers/types.d.ts"
|
38
|
+
},
|
39
|
+
"./resolvers/google": {
|
40
|
+
"import": "./dist/resolvers/google.js",
|
41
|
+
"require": "./dist/resolvers/google.js",
|
42
|
+
"types": "./dist/resolvers/google.d.ts"
|
43
|
+
},
|
44
|
+
"./resolvers/copy": {
|
45
|
+
"import": "./dist/resolvers/copy.js",
|
46
|
+
"require": "./dist/resolvers/copy.js",
|
47
|
+
"types": "./dist/resolvers/copy.d.ts"
|
48
|
+
},
|
49
|
+
"./resolvers/openAI": {
|
50
|
+
"import": "./dist/resolvers/openAI.js",
|
51
|
+
"require": "./dist/resolvers/openAI.js",
|
52
|
+
"types": "./dist/resolvers/openAI.d.ts"
|
53
|
+
}
|
54
|
+
},
|
55
|
+
"publishConfig": {
|
56
|
+
"registry": "https://registry.npmjs.org/"
|
57
|
+
},
|
58
|
+
"files": [
|
59
|
+
"dist"
|
60
|
+
],
|
61
|
+
"dependencies": {
|
62
|
+
"bson-objectid": "^2.0.4"
|
63
|
+
},
|
64
|
+
"scripts": {
|
65
|
+
"build": "pnpm copyfiles && pnpm build:swc && pnpm build:types",
|
66
|
+
"build:swc": "swc ./src -d ./dist --config-file .swcrc",
|
67
|
+
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
68
|
+
"lint": "eslint src",
|
69
|
+
"lint:fix": "eslint --fix --ext .ts,.tsx src",
|
70
|
+
"clean": "rimraf dist && rimraf tsconfig.tsbuildinfo",
|
71
|
+
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/"
|
72
|
+
},
|
73
|
+
"main": "./dist/index.js",
|
74
|
+
"types": "./dist/index.d.ts"
|
75
|
+
}
|