@openlv/react-native 0.0.7 → 0.1.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/index.d.ts +4 -2
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
export { ensureWebCryptoSubtle, type EnsureWebCryptoSubtleOptions, installOpenLVReactNativePolyfills, OpenLVCryptoPolyfill, } from "./polyfills.js";
|
|
2
2
|
export { OpenLVGlobals, type OpenLVGlobalsProps } from "./provider.js";
|
|
3
3
|
export { installWebRTCPolyfills, type InstallWebRTCPolyfillsOptions, } from "./webrtc.js";
|
|
4
|
-
export type { Session
|
|
5
|
-
export declare const
|
|
4
|
+
export type { Session } from "@openlv/session";
|
|
5
|
+
export declare const SessionStatus: {
|
|
6
6
|
readonly CREATED: "created";
|
|
7
7
|
readonly SIGNALING: "signaling";
|
|
8
8
|
readonly READY: "ready";
|
|
9
|
+
readonly LINKING: "linking";
|
|
9
10
|
readonly CONNECTED: "connected";
|
|
10
11
|
readonly DISCONNECTED: "disconnected";
|
|
11
12
|
};
|
|
13
|
+
export type SessionStatus = (typeof SessionStatus)[keyof typeof SessionStatus];
|
|
12
14
|
type SessionModule = typeof import("@openlv/session");
|
|
13
15
|
export declare const createSession: (...arguments_: Parameters<SessionModule["createSession"]>) => ReturnType<SessionModule["createSession"]>;
|
|
14
16
|
export declare const connectSession: (...arguments_: Parameters<SessionModule["connectSession"]>) => ReturnType<SessionModule["connectSession"]>;
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,15 @@ import { assertOpenLVReady } from "./assert.js";
|
|
|
2
2
|
export { ensureWebCryptoSubtle, installOpenLVReactNativePolyfills, OpenLVCryptoPolyfill, } from "./polyfills.js";
|
|
3
3
|
export { OpenLVGlobals } from "./provider.js";
|
|
4
4
|
export { installWebRTCPolyfills, } from "./webrtc.js";
|
|
5
|
-
|
|
5
|
+
// Mirrored rather than re-exported: a value re-export would pull
|
|
6
|
+
// @openlv/session into the entry statically, before the polyfills that
|
|
7
|
+
// createSession/connectSession deliberately wait for. The copy is pinned to
|
|
8
|
+
// the original in type-tests/session-signatures.ts.
|
|
9
|
+
export const SessionStatus = {
|
|
6
10
|
CREATED: "created",
|
|
7
11
|
SIGNALING: "signaling",
|
|
8
12
|
READY: "ready",
|
|
13
|
+
LINKING: "linking",
|
|
9
14
|
CONNECTED: "connected",
|
|
10
15
|
DISCONNECTED: "disconnected",
|
|
11
16
|
};
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EACL,qBAAqB,EAErB,iCAAiC,EACjC,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAA2B,MAAM,eAAe,CAAC;AACvE,OAAO,EACL,sBAAsB,GAEvB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EACL,qBAAqB,EAErB,iCAAiC,EACjC,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAA2B,MAAM,eAAe,CAAC;AACvE,OAAO,EACL,sBAAsB,GAEvB,MAAM,aAAa,CAAC;AAGrB,iEAAiE;AACjE,uEAAuE;AACvE,4EAA4E;AAC5E,oDAAoD;AACpD,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;CACpB,CAAC;AAKX,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,GAAG,UAAsD,EACb,EAAE;IAC9C,iBAAiB,CAAC,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC;IAChD,MAAM,OAAO,GAAG,CAAC,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAkB,CAAC;IAEnE,OAAO,OAAO,CAAC,aAAa,CAAC,GAAG,UAAU,CAAC,CAAC;AAC9C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EACjC,GAAG,UAAuD,EACb,EAAE;IAC/C,iBAAiB,CAAC,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC;IAChD,MAAM,OAAO,GAAG,CAAC,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAkB,CAAC;IAEnE,OAAO,OAAO,CAAC,cAAc,CAAC,GAAG,UAAU,CAAC,CAAC;AAC/C,CAAC,CAAC","sourcesContent":["import { assertOpenLVReady } from \"./assert.js\";\n\nexport {\n ensureWebCryptoSubtle,\n type EnsureWebCryptoSubtleOptions,\n installOpenLVReactNativePolyfills,\n OpenLVCryptoPolyfill,\n} from \"./polyfills.js\";\nexport { OpenLVGlobals, type OpenLVGlobalsProps } from \"./provider.js\";\nexport {\n installWebRTCPolyfills,\n type InstallWebRTCPolyfillsOptions,\n} from \"./webrtc.js\";\nexport type { Session } from \"@openlv/session\";\n\n// Mirrored rather than re-exported: a value re-export would pull\n// @openlv/session into the entry statically, before the polyfills that\n// createSession/connectSession deliberately wait for. The copy is pinned to\n// the original in type-tests/session-signatures.ts.\nexport const SessionStatus = {\n CREATED: \"created\",\n SIGNALING: \"signaling\",\n READY: \"ready\",\n LINKING: \"linking\",\n CONNECTED: \"connected\",\n DISCONNECTED: \"disconnected\",\n} as const;\nexport type SessionStatus = (typeof SessionStatus)[keyof typeof SessionStatus];\n\ntype SessionModule = typeof import(\"@openlv/session\");\n\nexport const createSession = async (\n ...arguments_: Parameters<SessionModule[\"createSession\"]>\n): ReturnType<SessionModule[\"createSession\"]> => {\n assertOpenLVReady({ requireCryptoReady: true });\n const module_ = (await import(\"@openlv/session\")) as SessionModule;\n\n return module_.createSession(...arguments_);\n};\n\nexport const connectSession = async (\n ...arguments_: Parameters<SessionModule[\"connectSession\"]>\n): ReturnType<SessionModule[\"connectSession\"]> => {\n assertOpenLVReady({ requireCryptoReady: true });\n const module_ = (await import(\"@openlv/session\")) as SessionModule;\n\n return module_.connectSession(...arguments_);\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openlv/react-native",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"open-lavatory",
|
|
6
6
|
"react-native"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"react-native-webrtc": "^124.0.6",
|
|
55
55
|
"react-native-webview": "^13.15.0",
|
|
56
56
|
"react-native-webview-crypto": "^0.0.28",
|
|
57
|
-
"@openlv/session": "0.
|
|
57
|
+
"@openlv/session": "0.2.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"react": ">=18",
|