@inditextech/weave-store-websockets 0.2.0 → 0.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/dist/client.d.cts +6 -2
- package/dist/client.d.ts +6 -2
- package/package.json +3 -3
package/dist/client.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExtractRoomId, FetchInitialState, FetchRoom, PerformUpgrade, PersistRoom, WEAVE_STORE_WEBSOCKETS, WEAVE_STORE_WEBSOCKETS_CONNECTION_STATUS, WeaveStoreWebsocketsCallbacks, WeaveStoreWebsocketsConnectionStatus, WeaveStoreWebsocketsConnectionStatusKeys, WeaveStoreWebsocketsOptions } from "./types.d-BvFBHeXv.cjs";
|
|
2
2
|
import Konva from "konva";
|
|
3
3
|
import { Vector2d } from "konva/lib/types";
|
|
4
|
-
import
|
|
4
|
+
import * as Y from "yjs";
|
|
5
5
|
import { Doc } from "yjs";
|
|
6
6
|
import Emittery from "emittery";
|
|
7
7
|
import pino, { Logger } from "pino";
|
|
@@ -154,7 +154,11 @@ type WeaveCallbacks = {
|
|
|
154
154
|
onStateChange?: (state: WeaveState) => void;
|
|
155
155
|
onUndoManagerStatusChange?: (undoManagerStatus: WeaveUndoRedoChange) => void;
|
|
156
156
|
};
|
|
157
|
-
|
|
157
|
+
declare type docElementTypeDescription = "xml" | "text" | Array<any> | object;
|
|
158
|
+
declare type DocTypeDescription = {
|
|
159
|
+
[key: string]: docElementTypeDescription;
|
|
160
|
+
};
|
|
161
|
+
declare type MappedTypeDescription<T extends DocTypeDescription> = { readonly [P in keyof T]: T[P] extends "xml" ? Y.XmlFragment : T[P] extends "text" ? Y.Text : T[P] extends Array<any> ? T[P] : T[P] extends object ? Partial<T[P]> : never };
|
|
158
162
|
//#endregion
|
|
159
163
|
//#region src/base/node.d.ts
|
|
160
164
|
interface WeaveNodeBase {
|
package/dist/client.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ExtractRoomId, FetchInitialState, FetchRoom, PerformUpgrade, PersistRoom, WEAVE_STORE_WEBSOCKETS$1 as WEAVE_STORE_WEBSOCKETS, WEAVE_STORE_WEBSOCKETS_CONNECTION_STATUS$1 as WEAVE_STORE_WEBSOCKETS_CONNECTION_STATUS, WeaveStoreWebsocketsCallbacks, WeaveStoreWebsocketsConnectionStatus, WeaveStoreWebsocketsConnectionStatusKeys, WeaveStoreWebsocketsOptions } from "./types.d-BmaSRpK3.js";
|
|
2
|
+
import * as Y from "yjs";
|
|
2
3
|
import { Doc } from "yjs";
|
|
3
4
|
import { WebsocketProvider } from "y-websocket";
|
|
4
5
|
import Konva from "konva";
|
|
5
6
|
import { Vector2d } from "konva/lib/types";
|
|
6
|
-
import { MappedTypeDescription } from "@syncedstore/core/types/doc";
|
|
7
7
|
import Emittery from "emittery";
|
|
8
8
|
import pino, { Logger } from "pino";
|
|
9
9
|
import { StageConfig } from "konva/lib/Stage";
|
|
@@ -154,7 +154,11 @@ type WeaveCallbacks = {
|
|
|
154
154
|
onStateChange?: (state: WeaveState) => void;
|
|
155
155
|
onUndoManagerStatusChange?: (undoManagerStatus: WeaveUndoRedoChange) => void;
|
|
156
156
|
};
|
|
157
|
-
|
|
157
|
+
declare type docElementTypeDescription = "xml" | "text" | Array<any> | object;
|
|
158
|
+
declare type DocTypeDescription = {
|
|
159
|
+
[key: string]: docElementTypeDescription;
|
|
160
|
+
};
|
|
161
|
+
declare type MappedTypeDescription<T extends DocTypeDescription> = { readonly [P in keyof T]: T[P] extends "xml" ? Y.XmlFragment : T[P] extends "text" ? Y.Text : T[P] extends Array<any> ? T[P] : T[P] extends object ? Partial<T[P]> : never };
|
|
158
162
|
//#endregion
|
|
159
163
|
//#region src/base/node.d.ts
|
|
160
164
|
interface WeaveNodeBase {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inditextech/weave-store-websockets",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Jesus Manuel Piñeiro Cid <jesusmpc@inditex.com>",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@syncedstore/core": "0.6.0",
|
|
53
|
-
"@inditextech/weave-sdk": "0.2.
|
|
54
|
-
"@inditextech/weave-types": "0.2.
|
|
53
|
+
"@inditextech/weave-sdk": "0.2.1",
|
|
54
|
+
"@inditextech/weave-types": "0.2.1",
|
|
55
55
|
"konva": "9.3.20",
|
|
56
56
|
"ws": "8.18.1",
|
|
57
57
|
"y-websocket": "3.0.0",
|