@milaboratories/pl-model-middle-layer 1.34.6 → 1.35.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.
@@ -1,5 +1,5 @@
1
1
  import { StorageDebugView } from "./storage_debug_view.js";
2
- import { AuthorMarker, BlockOutputsBase, BlockState, NavigationState, StringifiedJson } from "@milaboratories/pl-model-common";
2
+ import { AuthorMarker, BlockColumnLinks, BlockOutputsBase, BlockState, NavigationState, StringifiedJson } from "@milaboratories/pl-model-common";
3
3
  import { Optional } from "utility-types";
4
4
  export type BlockStateInternal<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = Optional<Readonly<BlockState<Args, Outputs, UiState, Href>>, "outputs">;
5
5
  export type BlockStateInternalV3<Outputs extends BlockOutputsBase = BlockOutputsBase, Href extends `/${string}` = `/${string}`> = {
@@ -12,5 +12,10 @@ export type BlockStateInternalV3<Outputs extends BlockOutputsBase = BlockOutputs
12
12
  /** Current navigation state */
13
13
  readonly navigationState: NavigationState<Href>;
14
14
  readonly author: AuthorMarker | undefined;
15
+ /**
16
+ * Column links of the block: outputs of other blocks its args reference, and blocks whose args
17
+ * reference its outputs. `undefined` while they are not computed for it.
18
+ */
19
+ readonly columnLinks: BlockColumnLinks | undefined;
15
20
  };
16
21
  //# sourceMappingURL=block_state.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"block_state.d.ts","names":[],"sources":["../src/block_state.ts"],"mappings":";;;YAWY,mBACV,gBACA,gBAAgB,mBAAmB,kBACnC,mBACA,4CACE,SAAS,SAAS,WAAW,MAAM,SAAS,SAAS;YAG7C,qBACV,gBAAgB,mBAAmB,kBACnC;;WAGS;;WAGA,mBAAmB,gBAAgB;;EAG5C,UAAU;;WAGD,iBAAiB,gBAAgB;WAEjC,QAAQ"}
1
+ {"version":3,"file":"block_state.d.ts","names":[],"sources":["../src/block_state.ts"],"mappings":";;;YAYY,mBACV,gBACA,gBAAgB,mBAAmB,kBACnC,mBACA,4CACE,SAAS,SAAS,WAAW,MAAM,SAAS,SAAS;YAG7C,qBACV,gBAAgB,mBAAmB,kBACnC;;WAGS;;WAGA,mBAAmB,gBAAgB;;EAG5C,UAAU;;WAGD,iBAAiB,gBAAgB;WAEjC,QAAQ;;;;;WAMR,aAAa"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-model-middle-layer",
3
- "version": "1.34.6",
3
+ "version": "1.35.0",
4
4
  "description": "Common model between middle layer and non-block UI code",
5
5
  "files": [
6
6
  "./dist/**/*",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@milaboratories/helpers": "1.14.6",
21
- "@milaboratories/pl-model-common": "1.54.2",
21
+ "@milaboratories/pl-model-common": "1.55.0",
22
22
  "es-toolkit": "^1.39.10",
23
23
  "utility-types": "^3.11.0",
24
24
  "zod": "~3.25.76"
@@ -1,5 +1,6 @@
1
1
  import type {
2
2
  AuthorMarker,
3
+ BlockColumnLinks,
3
4
  BlockOutputsBase,
4
5
  BlockState,
5
6
  NavigationState,
@@ -34,4 +35,10 @@ export type BlockStateInternalV3<
34
35
  readonly navigationState: NavigationState<Href>;
35
36
 
36
37
  readonly author: AuthorMarker | undefined;
38
+
39
+ /**
40
+ * Column links of the block: outputs of other blocks its args reference, and blocks whose args
41
+ * reference its outputs. `undefined` while they are not computed for it.
42
+ */
43
+ readonly columnLinks: BlockColumnLinks | undefined;
37
44
  };