@payload-enchants/translator 1.3.0-pre.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/README.md +4 -0
  2. package/dist/client/api/index.js.map +1 -1
  3. package/dist/client/components/CustomButton/CustomButtonWithTranslator.d.ts.map +1 -1
  4. package/dist/client/components/CustomButton/CustomButtonWithTranslator.js +2 -4
  5. package/dist/client/components/CustomButton/CustomButtonWithTranslator.js.map +1 -1
  6. package/dist/client/components/CustomButton/index.d.ts +2 -2
  7. package/dist/client/components/CustomButton/index.d.ts.map +1 -1
  8. package/dist/client/components/CustomButton/index.js +2 -2
  9. package/dist/client/components/CustomButton/index.js.map +1 -1
  10. package/dist/client/components/LocaleLabel/LocaleLabel.js.map +1 -1
  11. package/dist/client/components/ResolverButton/ResolverButton.js +0 -1
  12. package/dist/client/components/ResolverButton/ResolverButton.js.map +1 -1
  13. package/dist/client/components/TranslatorModal/TranslatorModal.d.ts.map +1 -1
  14. package/dist/client/components/TranslatorModal/TranslatorModal.js +2 -3
  15. package/dist/client/components/TranslatorModal/TranslatorModal.js.map +1 -1
  16. package/dist/client/providers/Translator/TranslatorProvider.d.ts.map +1 -1
  17. package/dist/client/providers/Translator/TranslatorProvider.js +24 -18
  18. package/dist/client/providers/Translator/TranslatorProvider.js.map +1 -1
  19. package/dist/i18n-translations.d.ts +18 -0
  20. package/dist/i18n-translations.d.ts.map +1 -1
  21. package/dist/i18n-translations.js +18 -0
  22. package/dist/i18n-translations.js.map +1 -1
  23. package/dist/index.d.ts +5 -0
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +6 -1
  26. package/dist/index.js.map +1 -1
  27. package/dist/resolvers/google.js +1 -1
  28. package/dist/resolvers/google.js.map +1 -1
  29. package/dist/resolvers/libreTranslate.d.ts +16 -0
  30. package/dist/resolvers/libreTranslate.d.ts.map +1 -0
  31. package/dist/resolvers/libreTranslate.js +48 -0
  32. package/dist/resolvers/libreTranslate.js.map +1 -0
  33. package/dist/resolvers/openAI.d.ts +2 -2
  34. package/dist/resolvers/openAI.d.ts.map +1 -1
  35. package/dist/resolvers/openAI.js +10 -10
  36. package/dist/resolvers/openAI.js.map +1 -1
  37. package/dist/translate/findEntityWithConfig.d.ts.map +1 -1
  38. package/dist/translate/findEntityWithConfig.js +4 -4
  39. package/dist/translate/findEntityWithConfig.js.map +1 -1
  40. package/dist/translate/operation.d.ts.map +1 -1
  41. package/dist/translate/operation.js +3 -1
  42. package/dist/translate/operation.js.map +1 -1
  43. package/dist/translate/traverseFields.d.ts.map +1 -1
  44. package/dist/translate/traverseFields.js +94 -86
  45. package/dist/translate/traverseFields.js.map +1 -1
  46. package/dist/translate/traverseRichText.js +3 -3
  47. package/dist/translate/traverseRichText.js.map +1 -1
  48. package/dist/translate/updateEntity.d.ts.map +1 -1
  49. package/dist/translate/updateEntity.js +2 -2
  50. package/dist/translate/updateEntity.js.map +1 -1
  51. package/package.json +12 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payload-enchants/translator",
3
- "version": "1.3.0-pre.0",
3
+ "version": "1.3.0",
4
4
  "private": false,
5
5
  "bugs": "https://github.com/r1tsuu/payload-enchants/issues",
6
6
  "repository": "https://github.com/r1tsuu/payload-enchants",
@@ -48,22 +48,21 @@
48
48
  "dist"
49
49
  ],
50
50
  "dependencies": {
51
- "bson-objectid": "^2.0.4"
51
+ "bson-objectid": "^2.0.4",
52
+ "he": "^1.2.0"
52
53
  },
53
54
  "devDependencies": {
54
- "@payloadcms/translations": "3.0.0-beta.84",
55
- "@payloadcms/ui": "3.0.0-beta.84",
56
- "@types/react": "npm:types-react@19.0.0-beta.2",
57
- "@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
58
- "payload": "3.0.0-beta.84",
59
- "react": "19.0.0-rc-06d0b89e-20240801",
60
- "react-dom": "19.0.0-rc-06d0b89e-20240801",
61
- "typescript": "^5.5.2"
55
+ "@types/he": "^1.2.3",
56
+ "@types/react": "npm:types-react@19.0.0-rc.1",
57
+ "@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
58
+ "react": "19.0.0-rc-66855b96-20241106",
59
+ "react-dom": "19.0.0-rc-66855b96-20241106",
60
+ "typescript": "5.7.2"
62
61
  },
63
62
  "peerDependencies": {
64
- "@payloadcms/translations": "^3.0.0-beta.84",
65
- "@payloadcms/ui": "^3.0.0-beta.84",
66
- "payload": "^3.0.0-beta.84"
63
+ "@payloadcms/translations": "^3.1.0",
64
+ "@payloadcms/ui": "^3.1.0",
65
+ "payload": "^3.1.0"
67
66
  },
68
67
  "publishConfig": {
69
68
  "registry": "https://registry.npmjs.org/"