@wovvmap/runtime-core 1.2.0 → 1.2.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/README.md +37 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @wovvmap/runtime-core
|
|
2
|
+
|
|
3
|
+
## Package reference and installation
|
|
4
|
+
|
|
5
|
+
Framework-independent runtime, lifecycle, commands, queries, and plugins for WovVMap.
|
|
6
|
+
|
|
7
|
+
[Published package](https://www.npmjs.com/package/@wovvmap/runtime-core) · [Integration guide](https://sdk-doc.wovvtech.com/docs/architecture/overview) · [Public API reference](https://sdk-doc.wovvtech.com/api/runtime-core/index.html)
|
|
8
|
+
|
|
9
|
+
Install version `1.2.0` in your application with one package manager.
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install @wovvmap/runtime-core
|
|
13
|
+
# or
|
|
14
|
+
yarn add @wovvmap/runtime-core
|
|
15
|
+
# or
|
|
16
|
+
pnpm add @wovvmap/runtime-core
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
This release declares no peer dependencies.
|
|
20
|
+
|
|
21
|
+
## Use a viewer’s search channel
|
|
22
|
+
|
|
23
|
+
Create one coordinator per viewer when building an adapter. Pass the operations for the committed map and use a separate channel for each endpoint field.
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
import { ViewerDiscoveryCoordinator, type ViewerOperations } from '@wovvmap/runtime-core'
|
|
27
|
+
|
|
28
|
+
export function createDirectory(operations: ViewerOperations, mallId: string) {
|
|
29
|
+
const discovery = new ViewerDiscoveryCoordinator(
|
|
30
|
+
() => operations,
|
|
31
|
+
() => mallId,
|
|
32
|
+
)
|
|
33
|
+
return discovery.getChannel('general', 'stores')
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Repository: [WovVMap platform](https://git.wovvtech.com/Wovvtech/wovvmap-platform). Package license field: `UNLICENSED`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wovvmap/runtime-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Framework-independent runtime, lifecycle, commands, queries, and plugins for WovVMap.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"zustand": "^5.0.10",
|
|
27
|
-
"@wovvmap/contracts": "1.2.
|
|
27
|
+
"@wovvmap/contracts": "1.2.1"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "tsc -p tsconfig.build.json",
|