@crowdin/app-project-module 2.5.1 → 2.6.1

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.
package/out/types.d.ts CHANGED
@@ -25,6 +25,31 @@ import { Migration as D1Migration, D1StorageConfig } from './storage/drizzle/d1/
25
25
  export { Storage } from './storage/types';
26
26
  export { Cron };
27
27
  export { D1StorageConfig } from './storage/drizzle/d1/types';
28
+ /**
29
+ * Install hook, called when the app is installed
30
+ */
31
+ export type OnInstallHandler = (options: {
32
+ organization: string;
33
+ userId: number;
34
+ client: Crowdin;
35
+ }) => Promise<void>;
36
+ /**
37
+ * Uninstall hook for cleanup logic, called when the app is uninstalled
38
+ */
39
+ export type OnUninstallHandler = (options: {
40
+ organization: string;
41
+ allCredentials: {
42
+ settings?: any;
43
+ credentials: any;
44
+ }[];
45
+ }) => Promise<void>;
46
+ /**
47
+ * Error interceptor (can be used to log error in centralized place)
48
+ */
49
+ export type OnErrorHandler = (options: {
50
+ error: any;
51
+ context?: CrowdinContextInfo;
52
+ }) => void;
28
53
  export interface ClientConfig extends ImagePath {
29
54
  /**
30
55
  * Authentication Crowdin App type: "authorization_code", "crowdin_app", "crowdin_agent". Default: "crowdin_app"
@@ -191,28 +216,15 @@ export interface ClientConfig extends ImagePath {
191
216
  /**
192
217
  * Install hook
193
218
  */
194
- onInstall?: (options: {
195
- organization: string;
196
- userId: number;
197
- client: Crowdin;
198
- }) => Promise<void>;
219
+ onInstall?: OnInstallHandler;
199
220
  /**
200
221
  * Uninstall hook for cleanup logic
201
222
  */
202
- onUninstall?: (options: {
203
- organization: string;
204
- allCredentials: {
205
- settings?: any;
206
- credentials: any;
207
- }[];
208
- }) => Promise<void>;
223
+ onUninstall?: OnUninstallHandler;
209
224
  /**
210
225
  * Error interceptor (can be used to log error in centralized place)
211
226
  */
212
- onError?: (options: {
213
- error: any;
214
- context?: CrowdinContextInfo;
215
- }) => void;
227
+ onError?: OnErrorHandler;
216
228
  /**
217
229
  * Disable global error handling of unhandledRejection and uncaughtException events
218
230
  */
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FormPage = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const Head_1 = require("./layout/Head");
9
- const FormPage = ({ formGetDataUrl, formPostDataUrl, formPatchDataUrl, formSchema, formUiSchema, sentryData, }) => (react_1.default.createElement("html", { lang: "en" },
9
+ const FormPage = ({ formGetDataUrl, formPostDataUrl, formPatchDataUrl, formSchema, formUiSchema, sentryData, }) => (react_1.default.createElement("html", { lang: "en", className: "rjsf-form-page" },
10
10
  react_1.default.createElement(Head_1.Head, { sentryData: sentryData }),
11
11
  react_1.default.createElement("body", null,
12
12
  react_1.default.createElement("div", { className: "relative mx-auto max-w-[680px] px-6 py-4" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "2.5.1",
3
+ "version": "2.6.1",
4
4
  "description": "Module that generates for you all common endpoints for serving standalone Crowdin App",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
@@ -58,7 +58,7 @@
58
58
  ],
59
59
  "dependencies": {
60
60
  "@crowdin/crowdin-api-client": "^1.55.0",
61
- "@crowdin/logs-formatter": "^2.3.0",
61
+ "@crowdin/logs-formatter": "^2.4.0",
62
62
  "@godaddy/terminus": "^4.12.1",
63
63
  "ajv": "^8.17.1",
64
64
  "amqplib": "^2.0.1",
@@ -96,13 +96,16 @@
96
96
  "@aws-sdk/client-s3": "^3.995.0",
97
97
  "@aws-sdk/s3-request-presigner": "^3.995.0",
98
98
  "@cloudflare/workers-types": "^4.20260228.0",
99
+ "@emotion/react": "^11.14.0",
100
+ "@emotion/styled": "^11.14.1",
99
101
  "@eslint/eslintrc": "^3.3.3",
100
102
  "@eslint/js": "^10.0.1",
101
103
  "@monaco-editor/react": "^4.7.0",
102
104
  "@mui/material": "^7.3.8",
103
- "@rjsf/core": "^6.3.1",
104
- "@rjsf/mui": "^6.3.1",
105
- "@rjsf/validator-ajv8": "^6.3.1",
105
+ "@rjsf/core": "^6.6.2",
106
+ "@rjsf/shadcn": "^6.6.2",
107
+ "@rjsf/utils": "^6.6.2",
108
+ "@rjsf/validator-ajv8": "^6.6.2",
106
109
  "@rollup/plugin-commonjs": "^29.0.0",
107
110
  "@rollup/plugin-json": "^6.1.0",
108
111
  "@rollup/plugin-node-resolve": "^16.0.3",