@decaf-ts/ui-decorators 0.20.0 → 0.20.2

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 (37) hide show
  1. package/README.md +12 -0
  2. package/dist/ui-decorators.cjs +1 -1
  3. package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs +5 -0
  4. package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs.map +1 -1
  5. package/lib/cjs/graph/constants.cjs +1 -15
  6. package/lib/cjs/graph/constants.cjs.map +1 -1
  7. package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs +67 -10
  8. package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs.map +1 -1
  9. package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs +46 -4
  10. package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs.map +1 -1
  11. package/lib/cjs/graph/snapshot.cjs +77 -8
  12. package/lib/cjs/graph/snapshot.cjs.map +1 -1
  13. package/lib/cjs/index.cjs +3 -3
  14. package/lib/esm/graph/catalog/GraphNodePolicyManifest.js +5 -0
  15. package/lib/esm/graph/catalog/GraphNodePolicyManifest.js.map +1 -1
  16. package/lib/esm/graph/constants.js +0 -13
  17. package/lib/esm/graph/constants.js.map +1 -1
  18. package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js +67 -10
  19. package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js.map +1 -1
  20. package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js +46 -4
  21. package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js.map +1 -1
  22. package/lib/esm/graph/snapshot.js +77 -8
  23. package/lib/esm/graph/snapshot.js.map +1 -1
  24. package/lib/esm/index.js +3 -3
  25. package/lib/types/graph/catalog/GraphNodePolicyManifest.d.cts +33 -0
  26. package/lib/types/graph/catalog/GraphNodePolicyManifest.d.mts +33 -0
  27. package/lib/types/graph/constants.d.cts +0 -8
  28. package/lib/types/graph/constants.d.mts +0 -8
  29. package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.cts +21 -0
  30. package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.mts +21 -0
  31. package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.cts +44 -0
  32. package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.mts +44 -0
  33. package/lib/types/graph/snapshot.d.cts +8 -1
  34. package/lib/types/graph/snapshot.d.mts +8 -1
  35. package/lib/types/index.d.cts +3 -3
  36. package/lib/types/index.d.mts +3 -3
  37. package/package.json +2 -1
@@ -146,7 +146,14 @@ export type GraphWorkflowSnapshot = {
146
146
  metadata?: Record<string, GraphJsonValue>;
147
147
  };
148
148
  export type GraphWorkflowSnapshotLike = LegacyGraphWorkflowSnapshot | GraphWorkflowSnapshot;
149
- /** Maps a legacy snapshot to the canonical {@link GraphWorkflowDocument}. */
149
+ /**
150
+ * Maps a legacy (pre-P7) canvas snapshot to the canonical
151
+ * {@link GraphWorkflowDocument} (DECAF-50 §4.4.6): legacy `node.data` becomes
152
+ * instance `parameters`, legacy `node.metadata` becomes instance `metadata`,
153
+ * workflow boundary badges (`input-{port}`) fold back onto their workflow
154
+ * ports, and edge labels missing from cloned edge rows are restored from the
155
+ * decorated definition's relation labels (§4.4.7).
156
+ */
150
157
  export declare function graphWorkflowDocumentFromLegacySnapshot(snapshot: LegacyGraphWorkflowSnapshot): GraphWorkflowDocument;
151
158
  /**
152
159
  * Converts a legacy persisted snapshot into the canonical wrapper. The canonical
@@ -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.19.1";
18
+ export declare const VERSION = "0.20.2";
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 = "e9c549d";
25
+ export declare const COMMIT = "f5a4e57";
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.19.1-e9c549d";
32
+ export declare const FULL_VERSION = "0.20.2-f5a4e57";
33
33
  export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
@@ -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.19.1";
18
+ export declare const VERSION = "0.20.2";
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 = "e9c549d";
25
+ export declare const COMMIT = "f5a4e57";
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.19.1-e9c549d";
32
+ export declare const FULL_VERSION = "0.20.2-f5a4e57";
33
33
  export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/ui-decorators",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
4
4
  "description": "Extension of decorator validation to ui elements to allow for web integration",
5
5
  "type": "module",
6
6
  "exports": {
@@ -69,6 +69,7 @@
69
69
  "repo:setup": "codex exec \"$(cat ./.codex/prompts/repo-setup.md)\nbase_path is ./\"",
70
70
  "repo:doc": "codex exec \"$(cat ./.codex/prompts/doc.md) $(cat ./.codex/prompts/bulk-docs.md)\nbase_path is ./\"",
71
71
  "repo:tests": "codex exec \"$(cat ./.codex/prompts/bulk-tests.md)\nbase_path is ./ and coverage is 95%\" -s workspace-write",
72
+ "prepare-it-tests": "echo \"prepare-it-tests: no infra to boot\"",
72
73
  "repo:readme": "codex exec \"$(cat ./.codex/prompts/update-readme.md)\nbase_path is ./\"",
73
74
  "repo:pr": "npm run repo:doc && npm run repo:tests && npm run repo:readme",
74
75
  "sync-codex": "./bin/sync-codex.sh"