@decaf-ts/ui-decorators 0.20.1 → 0.20.3
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/ui-decorators.cjs +1 -1
- package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs +7 -0
- package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs.map +1 -1
- package/lib/cjs/graph/constants.cjs +1 -15
- package/lib/cjs/graph/constants.cjs.map +1 -1
- package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs +67 -10
- package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs.map +1 -1
- package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs +46 -4
- package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs.map +1 -1
- package/lib/cjs/graph/snapshot.cjs +77 -8
- package/lib/cjs/graph/snapshot.cjs.map +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/cjs/user-requests/UserRequestHandler.cjs +1 -1
- package/lib/esm/graph/catalog/GraphNodePolicyManifest.js +7 -0
- package/lib/esm/graph/catalog/GraphNodePolicyManifest.js.map +1 -1
- package/lib/esm/graph/constants.js +0 -13
- package/lib/esm/graph/constants.js.map +1 -1
- package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js +67 -10
- package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js.map +1 -1
- package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js +46 -4
- package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js.map +1 -1
- package/lib/esm/graph/snapshot.js +77 -8
- package/lib/esm/graph/snapshot.js.map +1 -1
- package/lib/esm/index.js +3 -3
- package/lib/esm/user-requests/UserRequestHandler.js +1 -1
- package/lib/types/graph/catalog/GraphNodePolicyManifest.d.cts +35 -0
- package/lib/types/graph/catalog/GraphNodePolicyManifest.d.mts +35 -0
- package/lib/types/graph/constants.d.cts +0 -8
- package/lib/types/graph/constants.d.mts +0 -8
- package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.cts +21 -0
- package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.mts +21 -0
- package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.cts +44 -0
- package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.mts +44 -0
- package/lib/types/graph/snapshot.d.cts +11 -2
- package/lib/types/graph/snapshot.d.mts +11 -2
- package/lib/types/index.d.cts +3 -3
- package/lib/types/index.d.mts +3 -3
- package/lib/types/user-requests/UserRequestHandler.d.cts +1 -1
- package/lib/types/user-requests/UserRequestHandler.d.mts +1 -1
- package/package.json +1 -1
|
@@ -85,6 +85,8 @@ export type GraphWorkflowSnapshotState = {
|
|
|
85
85
|
ui: Record<string, unknown>;
|
|
86
86
|
metadata: Record<string, unknown>;
|
|
87
87
|
};
|
|
88
|
+
/** Snapshot schema version literal type ({@link GRAPH_WORKFLOW_SNAPSHOT_VERSION}). */
|
|
89
|
+
export type GraphWorkflowSnapshotVersion = typeof GRAPH_WORKFLOW_SNAPSHOT_VERSION;
|
|
88
90
|
/**
|
|
89
91
|
* Legacy persisted snapshot (`{ version, definition, state }`). Kept only for
|
|
90
92
|
* loading/compatibility of persisted data; the canonical snapshot is
|
|
@@ -93,7 +95,7 @@ export type GraphWorkflowSnapshotState = {
|
|
|
93
95
|
* {@link graphWorkflowSnapshotToLegacy}.
|
|
94
96
|
*/
|
|
95
97
|
export type LegacyGraphWorkflowSnapshot = {
|
|
96
|
-
version:
|
|
98
|
+
version: GraphWorkflowSnapshotVersion;
|
|
97
99
|
definition: GraphWorkflowSnapshotDefinition;
|
|
98
100
|
state: GraphWorkflowSnapshotState;
|
|
99
101
|
};
|
|
@@ -146,7 +148,14 @@ export type GraphWorkflowSnapshot = {
|
|
|
146
148
|
metadata?: Record<string, GraphJsonValue>;
|
|
147
149
|
};
|
|
148
150
|
export type GraphWorkflowSnapshotLike = LegacyGraphWorkflowSnapshot | GraphWorkflowSnapshot;
|
|
149
|
-
/**
|
|
151
|
+
/**
|
|
152
|
+
* Maps a legacy (pre-P7) canvas snapshot to the canonical
|
|
153
|
+
* {@link GraphWorkflowDocument} (DECAF-50 §4.4.6): legacy `node.data` becomes
|
|
154
|
+
* instance `parameters`, legacy `node.metadata` becomes instance `metadata`,
|
|
155
|
+
* workflow boundary badges (`input-{port}`) fold back onto their workflow
|
|
156
|
+
* ports, and edge labels missing from cloned edge rows are restored from the
|
|
157
|
+
* decorated definition's relation labels (§4.4.7).
|
|
158
|
+
*/
|
|
150
159
|
export declare function graphWorkflowDocumentFromLegacySnapshot(snapshot: LegacyGraphWorkflowSnapshot): GraphWorkflowDocument;
|
|
151
160
|
/**
|
|
152
161
|
* Converts a legacy persisted snapshot into the canonical wrapper. The canonical
|
|
@@ -85,6 +85,8 @@ export type GraphWorkflowSnapshotState = {
|
|
|
85
85
|
ui: Record<string, unknown>;
|
|
86
86
|
metadata: Record<string, unknown>;
|
|
87
87
|
};
|
|
88
|
+
/** Snapshot schema version literal type ({@link GRAPH_WORKFLOW_SNAPSHOT_VERSION}). */
|
|
89
|
+
export type GraphWorkflowSnapshotVersion = typeof GRAPH_WORKFLOW_SNAPSHOT_VERSION;
|
|
88
90
|
/**
|
|
89
91
|
* Legacy persisted snapshot (`{ version, definition, state }`). Kept only for
|
|
90
92
|
* loading/compatibility of persisted data; the canonical snapshot is
|
|
@@ -93,7 +95,7 @@ export type GraphWorkflowSnapshotState = {
|
|
|
93
95
|
* {@link graphWorkflowSnapshotToLegacy}.
|
|
94
96
|
*/
|
|
95
97
|
export type LegacyGraphWorkflowSnapshot = {
|
|
96
|
-
version:
|
|
98
|
+
version: GraphWorkflowSnapshotVersion;
|
|
97
99
|
definition: GraphWorkflowSnapshotDefinition;
|
|
98
100
|
state: GraphWorkflowSnapshotState;
|
|
99
101
|
};
|
|
@@ -146,7 +148,14 @@ export type GraphWorkflowSnapshot = {
|
|
|
146
148
|
metadata?: Record<string, GraphJsonValue>;
|
|
147
149
|
};
|
|
148
150
|
export type GraphWorkflowSnapshotLike = LegacyGraphWorkflowSnapshot | GraphWorkflowSnapshot;
|
|
149
|
-
/**
|
|
151
|
+
/**
|
|
152
|
+
* Maps a legacy (pre-P7) canvas snapshot to the canonical
|
|
153
|
+
* {@link GraphWorkflowDocument} (DECAF-50 §4.4.6): legacy `node.data` becomes
|
|
154
|
+
* instance `parameters`, legacy `node.metadata` becomes instance `metadata`,
|
|
155
|
+
* workflow boundary badges (`input-{port}`) fold back onto their workflow
|
|
156
|
+
* ports, and edge labels missing from cloned edge rows are restored from the
|
|
157
|
+
* decorated definition's relation labels (§4.4.7).
|
|
158
|
+
*/
|
|
150
159
|
export declare function graphWorkflowDocumentFromLegacySnapshot(snapshot: LegacyGraphWorkflowSnapshot): GraphWorkflowDocument;
|
|
151
160
|
/**
|
|
152
161
|
* Converts a legacy persisted snapshot into the canonical wrapper. The canonical
|
package/lib/types/index.d.cts
CHANGED
|
@@ -15,19 +15,19 @@ export * from "./ui/index.d.cts";
|
|
|
15
15
|
* @const VERSION
|
|
16
16
|
* @memberOf module:ui-decorators
|
|
17
17
|
*/
|
|
18
|
-
export declare const VERSION = "0.20.
|
|
18
|
+
export declare const VERSION = "0.20.3";
|
|
19
19
|
/**
|
|
20
20
|
* @description Represents the current commit hash of the module build.
|
|
21
21
|
* @summary Stores the current git commit hash for the package. The build replaces
|
|
22
22
|
* the placeholder with the actual commit hash at publish time.
|
|
23
23
|
* @const COMMIT
|
|
24
24
|
*/
|
|
25
|
-
export declare const COMMIT = "
|
|
25
|
+
export declare const COMMIT = "9f3f8bd";
|
|
26
26
|
/**
|
|
27
27
|
* @description Represents the full version string of the module.
|
|
28
28
|
* @summary Stores the semver version and commit hash for the package.
|
|
29
29
|
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
30
30
|
* @const FULL_VERSION
|
|
31
31
|
*/
|
|
32
|
-
export declare const FULL_VERSION = "0.20.
|
|
32
|
+
export declare const FULL_VERSION = "0.20.3-9f3f8bd";
|
|
33
33
|
export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
|
package/lib/types/index.d.mts
CHANGED
|
@@ -15,19 +15,19 @@ export * from "./ui/index.d.mts";
|
|
|
15
15
|
* @const VERSION
|
|
16
16
|
* @memberOf module:ui-decorators
|
|
17
17
|
*/
|
|
18
|
-
export declare const VERSION = "0.20.
|
|
18
|
+
export declare const VERSION = "0.20.3";
|
|
19
19
|
/**
|
|
20
20
|
* @description Represents the current commit hash of the module build.
|
|
21
21
|
* @summary Stores the current git commit hash for the package. The build replaces
|
|
22
22
|
* the placeholder with the actual commit hash at publish time.
|
|
23
23
|
* @const COMMIT
|
|
24
24
|
*/
|
|
25
|
-
export declare const COMMIT = "
|
|
25
|
+
export declare const COMMIT = "9f3f8bd";
|
|
26
26
|
/**
|
|
27
27
|
* @description Represents the full version string of the module.
|
|
28
28
|
* @summary Stores the semver version and commit hash for the package.
|
|
29
29
|
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
30
30
|
* @const FULL_VERSION
|
|
31
31
|
*/
|
|
32
|
-
export declare const FULL_VERSION = "0.20.
|
|
32
|
+
export declare const FULL_VERSION = "0.20.3-9f3f8bd";
|
|
33
33
|
export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
|
|
@@ -69,7 +69,7 @@ export declare abstract class UserRequestHandler<T = unknown, C extends Context<
|
|
|
69
69
|
* decorator under `USER_REQUEST_KEY`.
|
|
70
70
|
* @param {string} reference The request id/type the handler is registered
|
|
71
71
|
* for.
|
|
72
|
-
* @return {
|
|
72
|
+
* @return {Constructor<UserRequestHandler> | undefined}
|
|
73
73
|
* The registered handler constructor, or `undefined` when unknown.
|
|
74
74
|
*/
|
|
75
75
|
static getHandler(reference: string): Constructor<UserRequestHandler> | undefined;
|
|
@@ -69,7 +69,7 @@ export declare abstract class UserRequestHandler<T = unknown, C extends Context<
|
|
|
69
69
|
* decorator under `USER_REQUEST_KEY`.
|
|
70
70
|
* @param {string} reference The request id/type the handler is registered
|
|
71
71
|
* for.
|
|
72
|
-
* @return {
|
|
72
|
+
* @return {Constructor<UserRequestHandler> | undefined}
|
|
73
73
|
* The registered handler constructor, or `undefined` when unknown.
|
|
74
74
|
*/
|
|
75
75
|
static getHandler(reference: string): Constructor<UserRequestHandler> | undefined;
|