@crowdin/app-project-module 0.105.1 → 0.107.0-cf-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 (164) hide show
  1. package/out/app-test/integration/get-integration-files.js +0 -1
  2. package/out/app-test/integration/mocks/mock-axios.js +0 -1
  3. package/out/app-test/integration/update-crowdin.js +0 -1
  4. package/out/app-test/integration/update-integration.js +0 -1
  5. package/out/index.d.ts +1 -0
  6. package/out/index.js +30 -12
  7. package/out/middlewares/crowdin-client.d.ts +1 -1
  8. package/out/middlewares/integration-credentials.d.ts +1 -1
  9. package/out/middlewares/integration-credentials.js +4 -1
  10. package/out/middlewares/render-ui-module.d.ts +3 -3
  11. package/out/middlewares/render-ui-module.js +9 -13
  12. package/out/middlewares/ui-module.d.ts +1 -1
  13. package/out/middlewares/ui-module.js +10 -1
  14. package/out/modules/about.d.ts +2 -1
  15. package/out/modules/about.js +10 -3
  16. package/out/modules/ai-prompt-provider/handlers/compile.d.ts +1 -1
  17. package/out/modules/ai-prompt-provider/index.js +2 -2
  18. package/out/modules/ai-provider/handlers/chat-completions.d.ts +1 -1
  19. package/out/modules/ai-provider/handlers/chat-completions.js +0 -1
  20. package/out/modules/ai-provider/handlers/get-model-list.d.ts +1 -1
  21. package/out/modules/ai-provider/index.js +2 -2
  22. package/out/modules/ai-provider/types.d.ts +2 -2
  23. package/out/modules/ai-provider/util/index.js +0 -2
  24. package/out/modules/ai-request-processors/handler.d.ts +1 -1
  25. package/out/modules/ai-tools/handlers/tool-calls.d.ts +1 -1
  26. package/out/modules/ai-tools/index.js +1 -1
  27. package/out/modules/api/api.js +0 -1
  28. package/out/modules/auth-guard/handlers/verify.d.ts +1 -1
  29. package/out/modules/auth-guard/index.js +1 -1
  30. package/out/modules/automation-action/handlers/execute.d.ts +1 -1
  31. package/out/modules/automation-action/handlers/input-schema.d.ts +1 -1
  32. package/out/modules/automation-action/handlers/output-schema.d.ts +1 -1
  33. package/out/modules/automation-action/handlers/validate-settings.d.ts +1 -1
  34. package/out/modules/automation-action/index.js +1 -1
  35. package/out/modules/context-menu/index.js +2 -2
  36. package/out/modules/custom-mt/handlers/translate.d.ts +2 -2
  37. package/out/modules/custom-mt/handlers/translate.js +53 -4
  38. package/out/modules/custom-mt/index.js +6 -3
  39. package/out/modules/custom-mt/types.d.ts +14 -2
  40. package/out/modules/custom-spell-check/handlers/get-languages-list.d.ts +1 -1
  41. package/out/modules/custom-spell-check/handlers/spell-check.d.ts +1 -1
  42. package/out/modules/custom-spell-check/index.js +4 -4
  43. package/out/modules/editor-right-panel/index.js +1 -1
  44. package/out/modules/external-qa-check/handlers/validate.d.ts +1 -1
  45. package/out/modules/external-qa-check/index.js +2 -2
  46. package/out/modules/file-processing/handlers/custom-file-format.d.ts +7 -2
  47. package/out/modules/file-processing/handlers/custom-file-format.js +59 -19
  48. package/out/modules/file-processing/handlers/file-download.d.ts +1 -1
  49. package/out/modules/file-processing/handlers/file-download.js +5 -0
  50. package/out/modules/file-processing/handlers/pre-post-process.d.ts +1 -1
  51. package/out/modules/file-processing/handlers/pre-post-process.js +34 -14
  52. package/out/modules/file-processing/handlers/translations-alignment.d.ts +1 -1
  53. package/out/modules/file-processing/index.js +12 -2
  54. package/out/modules/file-processing/util/defaults.js +50 -6
  55. package/out/modules/file-processing/util/files.js +2 -1
  56. package/out/modules/form-data-display.d.ts +1 -1
  57. package/out/modules/form-data-save.d.ts +1 -1
  58. package/out/modules/install.d.ts +1 -1
  59. package/out/modules/integration/handlers/crowdin-file-progress.d.ts +1 -1
  60. package/out/modules/integration/handlers/crowdin-files.d.ts +1 -1
  61. package/out/modules/integration/handlers/crowdin-project.d.ts +1 -1
  62. package/out/modules/integration/handlers/crowdin-update.d.ts +1 -1
  63. package/out/modules/integration/handlers/crowdin-webhook.d.ts +1 -1
  64. package/out/modules/integration/handlers/integration-data.d.ts +1 -1
  65. package/out/modules/integration/handlers/integration-login.d.ts +1 -1
  66. package/out/modules/integration/handlers/integration-logout.d.ts +1 -1
  67. package/out/modules/integration/handlers/integration-update.d.ts +1 -1
  68. package/out/modules/integration/handlers/integration-webhook.d.ts +1 -1
  69. package/out/modules/integration/handlers/invite-users.d.ts +1 -1
  70. package/out/modules/integration/handlers/job-cancel.d.ts +1 -1
  71. package/out/modules/integration/handlers/job-info-deprecated.d.ts +1 -1
  72. package/out/modules/integration/handlers/job-info.d.ts +1 -1
  73. package/out/modules/integration/handlers/job-list.d.ts +1 -1
  74. package/out/modules/integration/handlers/main.d.ts +1 -1
  75. package/out/modules/integration/handlers/main.js +13 -1
  76. package/out/modules/integration/handlers/oauth-login.d.ts +1 -1
  77. package/out/modules/integration/handlers/oauth-login.js +12 -3
  78. package/out/modules/integration/handlers/oauth-polling.d.ts +2 -2
  79. package/out/modules/integration/handlers/oauth-polling.js +5 -3
  80. package/out/modules/integration/handlers/oauth-url.d.ts +1 -1
  81. package/out/modules/integration/handlers/settings-save.d.ts +1 -1
  82. package/out/modules/integration/handlers/settings.d.ts +1 -1
  83. package/out/modules/integration/handlers/sync-settings-save.d.ts +1 -1
  84. package/out/modules/integration/handlers/sync-settings-save.js +0 -2
  85. package/out/modules/integration/handlers/sync-settings.d.ts +1 -1
  86. package/out/modules/integration/handlers/user-errors.d.ts +1 -1
  87. package/out/modules/integration/handlers/users.d.ts +1 -1
  88. package/out/modules/integration/index.js +13 -34
  89. package/out/modules/integration/util/cron.js +1 -10
  90. package/out/modules/integration/util/defaults.js +31 -28
  91. package/out/modules/integration/util/files.js +18 -11
  92. package/out/modules/integration/util/job.js +0 -4
  93. package/out/modules/integration/util/snapshot.js +1 -5
  94. package/out/modules/integration/util/webhooks.js +1 -8
  95. package/out/modules/manifest.js +15 -13
  96. package/out/modules/modal/index.js +2 -2
  97. package/out/modules/organization-menu/index.js +5 -4
  98. package/out/modules/organization-settings-menu/index.js +5 -4
  99. package/out/modules/profile-resources-menu/index.js +5 -4
  100. package/out/modules/profile-settings-menu/index.js +5 -4
  101. package/out/modules/project-menu/index.js +1 -1
  102. package/out/modules/project-menu-crowdsource/index.js +1 -1
  103. package/out/modules/project-reports/index.js +3 -2
  104. package/out/modules/project-tools/index.js +3 -2
  105. package/out/modules/status.d.ts +1 -1
  106. package/out/modules/status.js +12 -3
  107. package/out/modules/subscription-paid.d.ts +1 -1
  108. package/out/modules/uninstall.d.ts +1 -1
  109. package/out/modules/webhooks/handlers/webhook-handler.d.ts +1 -1
  110. package/out/modules/webhooks/handlers/webhook-handler.js +30 -15
  111. package/out/modules/webhooks/types.d.ts +7 -0
  112. package/out/modules/workflow-step-type/handlers/delete-step.d.ts +1 -1
  113. package/out/modules/workflow-step-type/handlers/step-settings-save.d.ts +1 -1
  114. package/out/modules/workflow-step-type/index.js +2 -2
  115. package/out/storage/d1.d.ts +107 -0
  116. package/out/storage/d1.js +829 -0
  117. package/out/storage/index.js +8 -2
  118. package/out/storage/mysql.js +0 -3
  119. package/out/storage/postgre.js +0 -1
  120. package/out/storage/sqlite.js +0 -3
  121. package/out/types.d.ts +41 -2
  122. package/out/util/axios.js +0 -1
  123. package/out/util/credentials-masker.d.ts +1 -1
  124. package/out/util/cron.d.ts +29 -0
  125. package/out/util/cron.js +87 -0
  126. package/out/util/index.d.ts +12 -1
  127. package/out/util/index.js +54 -6
  128. package/out/util/jsx-renderer.d.ts +6 -0
  129. package/out/util/jsx-renderer.js +13 -0
  130. package/out/util/logger.js +0 -4
  131. package/out/util/static-files.d.ts +19 -0
  132. package/out/util/static-files.js +87 -0
  133. package/out/views/AboutPage.d.ts +10 -0
  134. package/out/views/AboutPage.js +76 -0
  135. package/out/views/ErrorPage.d.ts +18 -0
  136. package/out/views/ErrorPage.js +56 -0
  137. package/out/views/FormPage.d.ts +14 -0
  138. package/out/views/FormPage.js +28 -0
  139. package/out/views/InstallPage.d.ts +10 -0
  140. package/out/views/InstallPage.js +22 -0
  141. package/out/views/LoginPage.d.ts +33 -0
  142. package/out/views/LoginPage.js +200 -0
  143. package/out/views/MainPage.d.ts +81 -0
  144. package/out/views/MainPage.js +1784 -0
  145. package/out/views/OAuthPage.d.ts +7 -0
  146. package/out/views/OAuthPage.js +17 -0
  147. package/out/views/SubscriptionPage.d.ts +7 -0
  148. package/out/views/SubscriptionPage.js +26 -0
  149. package/out/views/index.d.ts +13 -0
  150. package/out/views/index.js +25 -0
  151. package/out/views/layout/Head.d.ts +9 -0
  152. package/out/views/layout/Head.js +54 -0
  153. package/package.json +33 -18
  154. package/out/util/handlebars.d.ts +0 -1
  155. package/out/util/handlebars.js +0 -46
  156. package/out/views/about.handlebars +0 -102
  157. package/out/views/error.handlebars +0 -54
  158. package/out/views/form.handlebars +0 -31
  159. package/out/views/install.handlebars +0 -16
  160. package/out/views/login.handlebars +0 -332
  161. package/out/views/main.handlebars +0 -2042
  162. package/out/views/oauth.handlebars +0 -11
  163. package/out/views/partials/head.handlebars +0 -53
  164. package/out/views/subscription.handlebars +0 -26
@@ -1,11 +0,0 @@
1
- <script type="text/javascript">
2
- {{#if oauthMode}}
3
- const oauthMode = '{{{ oauthMode }}}';
4
- {{else}}
5
- const oauthMode = undefined;
6
- {{/if}}
7
- if (oauthMode !== 'polling') {
8
- window.opener.postMessage('{{{message}}}');
9
- }
10
- window.close();
11
- </script>
@@ -1,53 +0,0 @@
1
- <head>
2
- <meta charset="UTF-8">
3
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
5
- <title></title>
6
- <link rel="stylesheet" href="/assets/css/styles.css">
7
- <link rel="stylesheet" href="/assets/css/crowdin-ui-colors.css">
8
- <script type="module"
9
- src="https://crowdin-web-components.s3.amazonaws.com/crowdin-web-components/crowdin-web-components.esm.js"></script>
10
- <script nomodule=""
11
- src="https://crowdin-web-components.s3.amazonaws.com/crowdin-web-components/crowdin-web-components.js"></script>
12
- <script type="text/javascript" src="https://cdn.crowdin.com/apps/dist/iframe.js"></script>
13
- <script type="text/javascript" src="/assets/js/polyfills/promise.js"></script>
14
- <script type="text/javascript" src="/assets/js/polyfills/fetch.js"></script>
15
- <script type="text/javascript" src="/assets/js/main.js"></script>
16
- <script type="text/javascript" src="/assets/js/dependent.js"></script>
17
- <style>
18
- .ml-10 {
19
- margin-left: 10px;
20
- }
21
- </style>
22
- {{#if sentryData}}
23
- <script
24
- src="https://browser.sentry-cdn.com/7.60.0/bundle.replay.min.js"
25
- integrity="sha384-N+VZps2PwFdv9LugkPA8nw+SMI1mGJG7IDe49jaxZlWDDJhHQ+SHakMpwhLQLAka"
26
- crossorigin="anonymous"
27
- ></script>
28
- <script>
29
- if (typeof Sentry !== 'undefined') {
30
- Sentry.init({
31
- dsn: "{{sentryData.dsn}}",
32
- environment: "frontend",
33
- replaysSessionSampleRate: 0,
34
- replaysOnErrorSampleRate: 1.0,
35
- integrations: [new Sentry.Replay()],
36
- });
37
-
38
- Sentry.configureScope(function(scope) {
39
- scope.setTag("identifier", "{{sentryData.appIdentifier}}");
40
-
41
- AP.getContext(contextData => {
42
- const { user_id, ...rest } = contextData;
43
-
44
- user_id && scope.setUser({ id: user_id });
45
- scope.setTags(rest);
46
- });
47
- });
48
- } else {
49
- console.warn('Sentry is not available. This might be due to ad/tracking blockers or network issues.');
50
- }
51
- </script>
52
- {{/if}}
53
- </head>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
8
- <title></title>
9
- <script type="module"
10
- src="https://crowdin-web-components.s3.amazonaws.com/crowdin-web-components/crowdin-web-components.esm.js"></script>
11
- <script nomodule=""
12
- src="https://crowdin-web-components.s3.amazonaws.com/crowdin-web-components/crowdin-web-components.js"></script>
13
- <script type="text/javascript" src="https://cdn.crowdin.com/apps/dist/iframe.js"></script>
14
- </head>
15
-
16
- <body>
17
- <div class="i_w center">
18
- <crowdin-alert type="warning">Subscribe to continue using the {{name}} app.</crowdin-alert>
19
- <br/>
20
- <crowdin-button primary onclick="window.open('{{subscribeLink}}','_blank')">Subscribe</crowdin-button>
21
- <crowdin-button outlined onclick="window.open('https://crowdin.com/contacts','_blank')">Contact us
22
- </crowdin-button>
23
- </div>
24
- </body>
25
-
26
- </html>