@milaboratories/pl-model-middle-layer 1.7.52 → 1.8.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.
- package/dist/author_marker.d.ts +2 -7
- package/dist/author_marker.d.ts.map +1 -1
- package/dist/block_state.d.ts +1 -6
- package/dist/block_state.d.ts.map +1 -1
- package/dist/project_overview.d.ts +1 -2
- package/dist/project_overview.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/author_marker.ts +3 -8
- package/src/block_state.ts +1 -6
- package/src/project_overview.ts +1 -2
package/dist/author_marker.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
+
import { AuthorMarker } from '@milaboratories/pl-model-common';
|
|
1
2
|
/** Structure to help resolve conflicts if multiple participants writes to
|
|
2
3
|
* the same state */
|
|
3
|
-
export
|
|
4
|
-
/** Unique identifier of client or even a specific window that sets this
|
|
5
|
-
* particular state */
|
|
6
|
-
authorId: string;
|
|
7
|
-
/** Sequential version of the state local to the author */
|
|
8
|
-
localVersion: number;
|
|
9
|
-
}
|
|
4
|
+
export type { AuthorMarker };
|
|
10
5
|
//# sourceMappingURL=author_marker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"author_marker.d.ts","sourceRoot":"","sources":["../src/author_marker.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"author_marker.d.ts","sourceRoot":"","sources":["../src/author_marker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;oBACoB;AACpB,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/block_state.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { BlockOutputsBase, BlockState } from '@milaboratories/pl-model-common';
|
|
2
|
-
import { AuthorMarker } from './author_marker';
|
|
3
2
|
import { Optional } from 'utility-types';
|
|
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
|
-
/** Author marker for Args and UI State. Absence of author marker, means that
|
|
6
|
-
* last modifier of the state provided no author marker. */
|
|
7
|
-
readonly author?: AuthorMarker;
|
|
8
|
-
};
|
|
3
|
+
export type BlockStateInternal<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = Optional<Readonly<BlockState<Args, Outputs, UiState, Href>>, 'outputs'>;
|
|
9
4
|
//# sourceMappingURL=block_state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_state.d.ts","sourceRoot":"","sources":["../src/block_state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"block_state.d.ts","sourceRoot":"","sources":["../src/block_state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,MAAM,kBAAkB,CAC5B,IAAI,GAAG,OAAO,EACd,OAAO,SAAS,gBAAgB,GAAG,gBAAgB,EACnD,OAAO,GAAG,OAAO,EACjB,IAAI,SAAS,IAAI,MAAM,EAAE,GAAG,IAAI,MAAM,EAAE,IACtC,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ProjectMeta } from './project';
|
|
2
2
|
import { BlockPackSpec } from './block_registry/block_pack_spec';
|
|
3
|
-
import { BlockCodeFeatureFlags, BlockRenderingMode, BlockSection, NavigationState } from '@milaboratories/pl-model-common';
|
|
4
|
-
import { AuthorMarker } from './author_marker';
|
|
3
|
+
import { BlockCodeFeatureFlags, BlockRenderingMode, BlockSection, NavigationState, AuthorMarker } from '@milaboratories/pl-model-common';
|
|
5
4
|
import { UpdateSuggestions } from './update_info';
|
|
6
5
|
import { BlockSettings } from './block_settings';
|
|
7
6
|
/** Generalized block status, to be used in block item "styling". */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project_overview.d.ts","sourceRoot":"","sources":["../src/project_overview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,YAAY,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"project_overview.d.ts","sourceRoot":"","sources":["../src/project_overview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACzI,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,oEAAoE;AACpE,MAAM,MAAM,sBAAsB,GAAG,eAAe,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;AAEpF,4EAA4E;AAC5E,MAAM,MAAM,eAAe,GAAG;IAC5B,+DAA+D;IAC/D,IAAI,EAAE,WAAW,CAAC;IAElB,0BAA0B;IAC1B,OAAO,EAAE,IAAI,CAAC;IAEd,mCAAmC;IACnC,YAAY,EAAE,IAAI,CAAC;IAEnB;;;;;;SAMK;IACL,YAAY,CA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S,CAAC;IAE5C,6BAA6B;IAC7B,QAAQ,EAAE,aAAa,CAAC;IAExB,8BAA8B;IAC9B,iBAAiB,EAAE,iBAAiB,CAAC;IAErC,4CAA4C;IAC5C,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-model-middle-layer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Common model between middle layer and non-block UI code",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"remeda": "^2.22.6",
|
|
21
21
|
"zod": "~3.23.8",
|
|
22
22
|
"utility-types": "^3.11.0",
|
|
23
|
-
"@milaboratories/pl-model-common": "^1.
|
|
23
|
+
"@milaboratories/pl-model-common": "^1.17.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"typescript": "~5.6.3",
|
package/src/author_marker.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
+
import type { AuthorMarker } from '@milaboratories/pl-model-common';
|
|
2
|
+
|
|
1
3
|
/** Structure to help resolve conflicts if multiple participants writes to
|
|
2
4
|
* the same state */
|
|
3
|
-
export
|
|
4
|
-
/** Unique identifier of client or even a specific window that sets this
|
|
5
|
-
* particular state */
|
|
6
|
-
authorId: string;
|
|
7
|
-
|
|
8
|
-
/** Sequential version of the state local to the author */
|
|
9
|
-
localVersion: number;
|
|
10
|
-
}
|
|
5
|
+
export type { AuthorMarker };
|
package/src/block_state.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BlockOutputsBase, BlockState } from '@milaboratories/pl-model-common';
|
|
2
|
-
import { AuthorMarker } from './author_marker';
|
|
3
2
|
import { Optional } from 'utility-types';
|
|
4
3
|
|
|
5
4
|
export type BlockStateInternal<
|
|
@@ -7,8 +6,4 @@ export type BlockStateInternal<
|
|
|
7
6
|
Outputs extends BlockOutputsBase = BlockOutputsBase,
|
|
8
7
|
UiState = unknown,
|
|
9
8
|
Href extends `/${string}` = `/${string}`
|
|
10
|
-
> = Optional<Readonly<BlockState<Args, Outputs, UiState, Href>>, 'outputs'
|
|
11
|
-
/** Author marker for Args and UI State. Absence of author marker, means that
|
|
12
|
-
* last modifier of the state provided no author marker. */
|
|
13
|
-
readonly author?: AuthorMarker;
|
|
14
|
-
};
|
|
9
|
+
> = Optional<Readonly<BlockState<Args, Outputs, UiState, Href>>, 'outputs'>;
|
package/src/project_overview.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ProjectMeta } from './project';
|
|
2
2
|
import { BlockPackSpec } from './block_registry/block_pack_spec';
|
|
3
|
-
import { BlockCodeFeatureFlags, BlockRenderingMode, BlockSection, NavigationState } from '@milaboratories/pl-model-common';
|
|
4
|
-
import { AuthorMarker } from './author_marker';
|
|
3
|
+
import { BlockCodeFeatureFlags, BlockRenderingMode, BlockSection, NavigationState, AuthorMarker } from '@milaboratories/pl-model-common';
|
|
5
4
|
import { UpdateSuggestions } from './update_info';
|
|
6
5
|
import { BlockSettings } from './block_settings';
|
|
7
6
|
|