@liveblocks/client 1.2.0-internal4 → 1.2.0-internal6

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.
@@ -0,0 +1,15 @@
1
+ export { BaseUserMeta, BroadcastOptions, Client, History, Immutable, Json, JsonArray, JsonObject, JsonScalar, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, Others, Room, Status, StorageStatus, StorageUpdate, User, createClient, shallow, toPlainLson } from '@liveblocks/core';
2
+
3
+ /**
4
+ * Helper type to help users adopt to Lson types from interface definitions.
5
+ * You should only use this to wrap interfaces you don't control. For more
6
+ * information, see
7
+ * https://liveblocks.io/docs/guides/limits#lson-constraint-and-interfaces
8
+ */
9
+ declare type EnsureJson<T> = [
10
+ unknown
11
+ ] extends [T] ? T : T extends (...args: unknown[]) => unknown ? T : {
12
+ [K in keyof T]: EnsureJson<T[K]>;
13
+ };
14
+
15
+ export { EnsureJson };
package/dist/index.js CHANGED
@@ -15,3 +15,4 @@ var _core = require('@liveblocks/core');
15
15
 
16
16
 
17
17
  exports.LiveList = _core.LiveList; exports.LiveMap = _core.LiveMap; exports.LiveObject = _core.LiveObject; exports.createClient = _core.createClient; exports.shallow = _core.shallow; exports.toPlainLson = _core.toPlainLson;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";AAwBA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK","sourcesContent":["export type {\n BaseUserMeta,\n BroadcastOptions,\n Client,\n History,\n Immutable,\n Json,\n JsonArray,\n JsonObject,\n JsonScalar,\n LiveListUpdate,\n LiveMapUpdate,\n LiveObjectUpdate,\n LiveStructure,\n LostConnectionEvent,\n Lson,\n LsonObject,\n Others,\n Room,\n Status,\n StorageStatus,\n StorageUpdate,\n User,\n} from \"@liveblocks/core\";\nexport {\n createClient,\n LiveList,\n LiveMap,\n LiveObject,\n shallow,\n toPlainLson,\n} from \"@liveblocks/core\";\n\n/**\n * Helper type to help users adopt to Lson types from interface definitions.\n * You should only use this to wrap interfaces you don't control. For more\n * information, see\n * https://liveblocks.io/docs/guides/limits#lson-constraint-and-interfaces\n */\n// prettier-ignore\nexport type EnsureJson<T> =\n // Retain `unknown` fields\n [unknown] extends [T] ? T :\n // Retain functions\n T extends (...args: unknown[]) => unknown ? T :\n // Resolve all other values explicitly\n { [K in keyof T]: EnsureJson<T[K]> };\n"]}
package/dist/index.mjs ADDED
@@ -0,0 +1,18 @@
1
+ // src/index.ts
2
+ import {
3
+ createClient,
4
+ LiveList,
5
+ LiveMap,
6
+ LiveObject,
7
+ shallow,
8
+ toPlainLson
9
+ } from "@liveblocks/core";
10
+ export {
11
+ LiveList,
12
+ LiveMap,
13
+ LiveObject,
14
+ createClient,
15
+ shallow,
16
+ toPlainLson
17
+ };
18
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export type {\n BaseUserMeta,\n BroadcastOptions,\n Client,\n History,\n Immutable,\n Json,\n JsonArray,\n JsonObject,\n JsonScalar,\n LiveListUpdate,\n LiveMapUpdate,\n LiveObjectUpdate,\n LiveStructure,\n LostConnectionEvent,\n Lson,\n LsonObject,\n Others,\n Room,\n Status,\n StorageStatus,\n StorageUpdate,\n User,\n} from \"@liveblocks/core\";\nexport {\n createClient,\n LiveList,\n LiveMap,\n LiveObject,\n shallow,\n toPlainLson,\n} from \"@liveblocks/core\";\n\n/**\n * Helper type to help users adopt to Lson types from interface definitions.\n * You should only use this to wrap interfaces you don't control. For more\n * information, see\n * https://liveblocks.io/docs/guides/limits#lson-constraint-and-interfaces\n */\n// prettier-ignore\nexport type EnsureJson<T> =\n // Retain `unknown` fields\n [unknown] extends [T] ? T :\n // Retain functions\n T extends (...args: unknown[]) => unknown ? T :\n // Resolve all other values explicitly\n { [K in keyof T]: EnsureJson<T[K]> };\n"],"mappings":";AAwBA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
package/package.json CHANGED
@@ -1,10 +1,23 @@
1
1
  {
2
2
  "name": "@liveblocks/client",
3
- "version": "1.2.0-internal4",
3
+ "version": "1.2.0-internal6",
4
4
  "description": "A client that lets you interact with Liveblocks servers. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.mts",
12
+ "default": "./dist/index.mjs"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.ts",
16
+ "module": "./dist/index.mjs",
17
+ "default": "./dist/index.js"
18
+ }
19
+ }
20
+ },
8
21
  "files": [
9
22
  "dist/**",
10
23
  "README.md"
@@ -19,7 +32,7 @@
19
32
  "test:watch": "jest --silent --verbose --color=always --passWithNoTests --watch"
20
33
  },
21
34
  "dependencies": {
22
- "@liveblocks/core": "1.2.0-internal4"
35
+ "@liveblocks/core": "1.2.0-internal6"
23
36
  },
24
37
  "devDependencies": {
25
38
  "@liveblocks/eslint-config": "*",