@codenotch/codenotch.react 1.0.82 → 2.0.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/dist/components/CodeEditor.d.ts +1 -1
- package/dist/components/CodeEditor.d.ts.map +1 -1
- package/dist/components/CodeEditor.js +66 -64
- package/dist/index.d.ts +67 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +134 -113
- package/dist/models/Codenotch.d.ts +28 -131
- package/dist/models/Codenotch.d.ts.map +1 -1
- package/package.json +45 -44
- package/src/components/CodeEditor.tsx +204 -203
- package/src/index.ts +399 -385
- package/src/models/Codenotch.ts +29 -148
- package/README.md +0 -145
- package/dist/components/Auml.d.ts +0 -46
- package/dist/components/Auml.d.ts.map +0 -1
- package/dist/components/Auml.js +0 -208
- package/dist/models/AppManifestModels.d.ts +0 -46
- package/dist/models/AppManifestModels.d.ts.map +0 -1
- package/dist/models/AppManifestModels.js +0 -2
- package/dist/models/ProjectManifestModels.d.ts +0 -126
- package/dist/models/ProjectManifestModels.d.ts.map +0 -1
- package/dist/models/ProjectManifestModels.js +0 -158
- package/dist/utils/I18nUtils.d.ts +0 -7
- package/dist/utils/I18nUtils.d.ts.map +0 -1
- package/dist/utils/I18nUtils.js +0 -37
- package/src/core/ProcessUtils.ts +0 -86
- package/src/core/SignalR.ts +0 -375
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { IAppManifest, ICodenotchProjectManifest } from "@codenotch/codenotch.core";
|
|
3
3
|
/**
|
|
4
4
|
* Runtime environment of a Codenotch application.
|
|
5
5
|
*
|
|
@@ -19,92 +19,17 @@ export interface ICodenotchEnv {
|
|
|
19
19
|
accessToken?: string;
|
|
20
20
|
/** Base URL of the current application. */
|
|
21
21
|
baseUrl?: string;
|
|
22
|
-
/**
|
|
23
|
-
i18n?: {
|
|
24
|
-
[language: string]: {
|
|
25
|
-
[key: string]: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
/** Current language code (e.g. `"en"`). Defaults to the first language found in {@link i18n}. */
|
|
22
|
+
/** Current language code (e.g. `"en"`). */
|
|
29
23
|
language?: string;
|
|
30
24
|
/** Current UI theme. Resolved from the `_theme` URL parameter, or `prefers-color-scheme` as a fallback. */
|
|
31
25
|
theme?: 'light' | 'dark';
|
|
32
26
|
/** Manifest of the current application (the `<AppName>.manifest.json` file next to the app). */
|
|
33
27
|
appManifest?: IAppManifest;
|
|
34
28
|
/** Manifest of the Codenotch project (the project's `manifest.json` file). */
|
|
35
|
-
projectManifest?:
|
|
29
|
+
projectManifest?: ICodenotchProjectManifest;
|
|
36
30
|
/** Any additional environment variable passed to `init()`. */
|
|
37
31
|
[key: string]: any;
|
|
38
32
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Registry of the project's BPMN processes, used to type {@link ICodenotchApi.startProcess}.
|
|
41
|
-
*
|
|
42
|
-
* Empty by default: the Codenotch IDE fills it through declaration merging in the
|
|
43
|
-
* auto-generated `typings/process.d.ts` file of each project, with one entry per
|
|
44
|
-
* BPMN process. Each entry maps the process name to its start events (`nodes`,
|
|
45
|
-
* keyed by start node id, valued with the start event's input parameters) and to
|
|
46
|
-
* the `output` of its end event.
|
|
47
|
-
*
|
|
48
|
-
* When the registry has not been augmented (project built without the IDE
|
|
49
|
-
* typings), `startProcess` falls back to plain string names and untyped inputs,
|
|
50
|
-
* so the code still compiles.
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* // typings/process.d.ts (auto-generated by the Codenotch IDE)
|
|
54
|
-
* import 'codenotch-react';
|
|
55
|
-
* declare module 'codenotch-react' {
|
|
56
|
-
* interface ProcessRegistry {
|
|
57
|
-
* 'getTodos': {
|
|
58
|
-
* nodes: { 'start': { UserId: string } };
|
|
59
|
-
* output: { todos: any[] };
|
|
60
|
-
* };
|
|
61
|
-
* }
|
|
62
|
-
* }
|
|
63
|
-
*/
|
|
64
|
-
export interface ProcessRegistry {
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Registry of the project's translation keys, used to type {@link ICodenotchApi.i18n}.
|
|
68
|
-
*
|
|
69
|
-
* Empty by default: the Codenotch IDE fills it through declaration merging in the
|
|
70
|
-
* auto-generated `typings/i18n.d.ts` file of each project, from the project's
|
|
71
|
-
* `.i18n.csv` files. Each entry maps a translation key to the tuple of arguments
|
|
72
|
-
* expected by its `{0}`, `{1}`, … placeholders.
|
|
73
|
-
*
|
|
74
|
-
* When the registry has not been augmented (project built without the IDE
|
|
75
|
-
* typings), `i18n` falls back to plain string keys and untyped arguments,
|
|
76
|
-
* so the code still compiles.
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* // typings/i18n.d.ts (auto-generated by the Codenotch IDE)
|
|
80
|
-
* import 'codenotch-react';
|
|
81
|
-
* declare module 'codenotch-react' {
|
|
82
|
-
* interface TranslationRegistry {
|
|
83
|
-
* 'welcome': [];
|
|
84
|
-
* 'greeting': [arg1: any, arg2: any];
|
|
85
|
-
* }
|
|
86
|
-
* }
|
|
87
|
-
*/
|
|
88
|
-
export interface TranslationRegistry {
|
|
89
|
-
}
|
|
90
|
-
/** A BPMN process name: a key of {@link ProcessRegistry}, or any string when the registry is empty. */
|
|
91
|
-
export type ProcessName = keyof ProcessRegistry extends never ? string : keyof ProcessRegistry;
|
|
92
|
-
/** The start nodes of process `P`: its `nodes` map from {@link ProcessRegistry}, or an open map when unknown. */
|
|
93
|
-
export type ProcessNodes<P> = P extends keyof ProcessRegistry ? ProcessRegistry[P] extends {
|
|
94
|
-
nodes: infer N;
|
|
95
|
-
} ? N : {
|
|
96
|
-
[nodeId: string]: any;
|
|
97
|
-
} : {
|
|
98
|
-
[nodeId: string]: any;
|
|
99
|
-
};
|
|
100
|
-
/** The end-event output of process `P` from {@link ProcessRegistry}, or `any` when unknown. */
|
|
101
|
-
export type ProcessOutput<P> = P extends keyof ProcessRegistry ? ProcessRegistry[P] extends {
|
|
102
|
-
output: infer O;
|
|
103
|
-
} ? O : any : any;
|
|
104
|
-
/** A translation key: a key of {@link TranslationRegistry}, or any string when the registry is empty. */
|
|
105
|
-
export type TranslationKey = keyof TranslationRegistry extends never ? string : keyof TranslationRegistry;
|
|
106
|
-
/** The placeholder arguments of translation key `K` from {@link TranslationRegistry}, or `any[]` when unknown. */
|
|
107
|
-
export type TranslationArgs<K> = K extends keyof TranslationRegistry ? TranslationRegistry[K] extends any[] ? TranslationRegistry[K] : any[] : any[];
|
|
108
33
|
/**
|
|
109
34
|
* Result of a BPMN process execution started with {@link ICodenotchApi.startProcess}.
|
|
110
35
|
*/
|
|
@@ -119,49 +44,22 @@ export interface IProcessResult<T = any> {
|
|
|
119
44
|
errorMessage: string;
|
|
120
45
|
}
|
|
121
46
|
/**
|
|
122
|
-
* The Codenotch client API
|
|
47
|
+
* The Codenotch client API.
|
|
48
|
+
*
|
|
49
|
+
* Obtained with the `useCodenotch()` hook in function components, through the
|
|
50
|
+
* `cn` prop injected by `withCodenotch()` in class components, or with the
|
|
51
|
+
* plain `getCodenotch()` function anywhere else (handlers, modules, services).
|
|
123
52
|
*
|
|
124
53
|
* It is the bridge between a React app and the Codenotch runtime: it starts
|
|
125
|
-
* server-side BPMN processes, runs CNQL queries,
|
|
54
|
+
* server-side BPMN processes, runs CNQL queries,
|
|
126
55
|
* listens to real-time signals and manages theme/language.
|
|
127
|
-
*
|
|
128
|
-
* @example
|
|
129
|
-
* import { useCodenotch } from 'codenotch-react';
|
|
130
|
-
*
|
|
131
|
-
* const cn = useCodenotch();
|
|
132
|
-
* const title = cn.i18n('welcome');
|
|
133
|
-
* const result = await cn.startProcess('getTodos', 'start', { UserId: '42' });
|
|
134
56
|
*/
|
|
135
57
|
export interface ICodenotchApi {
|
|
136
58
|
/**
|
|
137
59
|
* Start a server-side BPMN process and wait for its completion.
|
|
138
|
-
*
|
|
139
|
-
* @param processName Name of the process — the `.bpmn` file name without extension (e.g. `processes/getTodos.bpmn` → `'getTodos'`).
|
|
140
|
-
* @param startNodeId Id of the start event to trigger (conventionally `'start'`).
|
|
141
|
-
* @param inputs Input parameters declared by that start event.
|
|
142
|
-
* @returns The process result; check `isError` before using `output` (the parameters of the end event reached).
|
|
143
|
-
* @example
|
|
144
|
-
* const result = await cn.startProcess('getTodos', 'start', { UserId: userId });
|
|
145
|
-
* if (!result.isError) {
|
|
146
|
-
* setTodos(result.output.todos);
|
|
147
|
-
* }
|
|
148
60
|
*/
|
|
149
|
-
startProcess<
|
|
150
|
-
/**
|
|
151
|
-
* Translate a key for the current language ({@link ICodenotchEnv.language}).
|
|
152
|
-
*
|
|
153
|
-
* Placeholders `{0}`, `{1}`, … in the translated text are replaced by `args`.
|
|
154
|
-
* Never throws: if the key or the language is missing, a warning is logged
|
|
155
|
-
* and the key itself is returned.
|
|
156
|
-
*
|
|
157
|
-
* @param key Translation key, as defined in the project's `.i18n.csv` files.
|
|
158
|
-
* @param args Values for the `{0}`, `{1}`, … placeholders of the translation.
|
|
159
|
-
* @example
|
|
160
|
-
* cn.i18n('welcome'); // "Bienvenue"
|
|
161
|
-
* cn.i18n('greeting', 'Fabian', 3); // "Bonjour Fabian, 3 messages" (from "Bonjour {0}, {1} messages")
|
|
162
|
-
*/
|
|
163
|
-
i18n<K extends TranslationKey>(key: K, ...args: TranslationArgs<K>): string;
|
|
164
|
-
/** Runtime environment (cluster, service, language, theme, i18n dictionaries, manifests…). Populated by `init()`. */
|
|
61
|
+
startProcess<TProcess, TInput, TOutput>(process: TProcess, inputs: TInput): Promise<IProcessResult<TOutput>>;
|
|
62
|
+
/** Runtime environment (cluster, service, language, theme dictionaries, manifests…). Populated by `init()`. */
|
|
165
63
|
readonly env: ICodenotchEnv;
|
|
166
64
|
/**
|
|
167
65
|
* Execute a CNQL query (XML, SELECT-only) against the project's SQL tables and return the parsed JSON result.
|
|
@@ -196,7 +94,7 @@ export interface ICodenotchApi {
|
|
|
196
94
|
* </div>
|
|
197
95
|
* );
|
|
198
96
|
*/
|
|
199
|
-
readonly showDialog: (node:
|
|
97
|
+
readonly showDialog: (node: ReactNode) => ICodenotchDialog;
|
|
200
98
|
/**
|
|
201
99
|
* Fetch the text content of a file of the deployed Codenotch project.
|
|
202
100
|
* @param relativePath Path of the file relative to the project root (e.g. `'readme.md'`).
|
|
@@ -208,25 +106,11 @@ export interface ICodenotchApi {
|
|
|
208
106
|
* @param relativePath Path of the file relative to the project root.
|
|
209
107
|
*/
|
|
210
108
|
readonly getProjectFileUrl: (relativePath: string) => string;
|
|
211
|
-
/**
|
|
212
|
-
* Subscribe to a real-time signal emitted by the project's BPMN processes (via SignalR).
|
|
213
|
-
*
|
|
214
|
-
* @param signalId Id of the signal, as declared in the BPMN process.
|
|
215
|
-
* @param callback Called each time the signal is received, with `{ signalId, data }`.
|
|
216
|
-
* @returns A disposable — call `dispose()` to unsubscribe (e.g. in a `useEffect` cleanup).
|
|
217
|
-
* @example
|
|
218
|
-
* useEffect(() => {
|
|
219
|
-
* let sub: IDisposable | undefined;
|
|
220
|
-
* cn.listenSignal('todosChanged', () => refresh()).then(s => sub = s);
|
|
221
|
-
* return () => sub?.dispose();
|
|
222
|
-
* }, []);
|
|
223
|
-
*/
|
|
224
|
-
readonly listenSignal: (signalId: string, callback: (data: ICodenotchSignal) => void) => Promise<IDisposable>;
|
|
225
109
|
/** Set the UI theme. Also toggles the `light`/`dark` class on `<html>` (Tailwind `dark:` variants). */
|
|
226
110
|
readonly setTheme: (theme: 'light' | 'dark') => void;
|
|
227
111
|
/** Current UI theme, if resolved. */
|
|
228
112
|
readonly getTheme: () => 'light' | 'dark' | undefined;
|
|
229
|
-
/** Set the current language
|
|
113
|
+
/** Set the current language. Must be one of the project's languages. */
|
|
230
114
|
readonly setLanguage: (lang: string) => void;
|
|
231
115
|
/** Current language code, if any. */
|
|
232
116
|
readonly getLanguage: () => string | undefined;
|
|
@@ -239,10 +123,23 @@ export interface ICodenotchApi {
|
|
|
239
123
|
/** Generate a random UUID v4. */
|
|
240
124
|
readonly uuid: () => string;
|
|
241
125
|
/** Manifest of the Codenotch project. Throws if not available in the environment. */
|
|
242
|
-
readonly getProjectManifest: () =>
|
|
126
|
+
readonly getProjectManifest: () => ICodenotchProjectManifest;
|
|
243
127
|
/** Manifest of the current application, if any. */
|
|
244
128
|
readonly getAppManifest: () => IAppManifest | undefined;
|
|
245
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Props injected by the `withCodenotch()` higher-order component.
|
|
132
|
+
* Extend it in the props of a class component wrapped by `withCodenotch`.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* interface Props extends WithCodenotchProps { userId: string }
|
|
136
|
+
* class TodoList extends React.Component<Props> { ... }
|
|
137
|
+
* export default withCodenotch(TodoList);
|
|
138
|
+
*/
|
|
139
|
+
export interface WithCodenotchProps {
|
|
140
|
+
/** The Codenotch client API; refreshed (new reference) whenever the environment changes. */
|
|
141
|
+
cn: ICodenotchApi;
|
|
142
|
+
}
|
|
246
143
|
/**
|
|
247
144
|
* Handle on a dialog opened with {@link ICodenotchApi.showDialog}.
|
|
248
145
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Codenotch.d.ts","sourceRoot":"","sources":["../../src/models/Codenotch.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Codenotch.d.ts","sourceRoot":"","sources":["../../src/models/Codenotch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAGpF;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC1B,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iGAAiG;IACjG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oHAAoH;IACpH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iGAAiG;IACjG,UAAU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|
-
"name": "@codenotch/codenotch.react",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "React bindings for Codenotch applications: start BPMN processes, run cnql queries,
|
|
5
|
-
"keywords": [
|
|
6
|
-
"codenotch",
|
|
7
|
-
"react"
|
|
8
|
-
],
|
|
9
|
-
"publishConfig": {
|
|
10
|
-
"access": "public"
|
|
11
|
-
},
|
|
12
|
-
"homepage": "https://codenotch.com",
|
|
13
|
-
"main": "dist/index.js",
|
|
14
|
-
"types": "dist/index.d.ts",
|
|
15
|
-
"author": "Codenotch SA",
|
|
16
|
-
"license": "MIT",
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build": "tsc",
|
|
19
|
-
"dev": "tsc --watch",
|
|
20
|
-
"prepublishOnly": "npm run build",
|
|
21
|
-
"clean": "rm -rf dist"
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"dist/**/*",
|
|
25
|
-
"src/**/*"
|
|
26
|
-
],
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"@codenotch/codenotch.core": "1.0.
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"@types/
|
|
34
|
-
"@types/react": "^
|
|
35
|
-
"@types/
|
|
36
|
-
"@types/
|
|
37
|
-
"
|
|
38
|
-
"react-dom": "^
|
|
39
|
-
"typescript": "^5.9.3"
|
|
40
|
-
},
|
|
41
|
-
"peerDependencies": {
|
|
42
|
-
"react": ">=
|
|
43
|
-
|
|
44
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@codenotch/codenotch.react",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "React bindings for Codenotch applications: start BPMN processes, run cnql queries, listen to real-time signals, manage theme and language.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"codenotch",
|
|
7
|
+
"react"
|
|
8
|
+
],
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://codenotch.com",
|
|
13
|
+
"main": "dist/index.js",
|
|
14
|
+
"types": "dist/index.d.ts",
|
|
15
|
+
"author": "Codenotch SA",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc",
|
|
19
|
+
"dev": "tsc --watch",
|
|
20
|
+
"prepublishOnly": "npm run build",
|
|
21
|
+
"clean": "rm -rf dist"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist/**/*",
|
|
25
|
+
"src/**/*"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@codenotch/codenotch.core": "1.0.23",
|
|
29
|
+
"uuid": "^8.2.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@types/node": "^25.3.2",
|
|
33
|
+
"@types/react": "^19.1.0",
|
|
34
|
+
"@types/react-dom": "^19.1.0",
|
|
35
|
+
"@types/uuid": "8.0.0",
|
|
36
|
+
"@types/json-schema": "^7.0.6",
|
|
37
|
+
"react": "^19.1.0",
|
|
38
|
+
"react-dom": "^19.1.0",
|
|
39
|
+
"typescript": "^5.9.3"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"react": ">=19.0.0",
|
|
43
|
+
"react-dom": ">=19.0.0"
|
|
44
|
+
}
|
|
45
|
+
}
|