@dittolive/ditto-chat-core 0.1.0 → 0.1.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/index.es.js CHANGED
@@ -49,7 +49,7 @@ const ze = {
49
49
  }));
50
50
  }
51
51
  });
52
- var Ae = Symbol.for("immer-nothing"), ye = Symbol.for("immer-draftable"), O = Symbol.for("immer-state"), Le = process.env.NODE_ENV !== "production" ? [
52
+ var Ae = /* @__PURE__ */ Symbol.for("immer-nothing"), ye = /* @__PURE__ */ Symbol.for("immer-draftable"), O = /* @__PURE__ */ Symbol.for("immer-state"), Le = process.env.NODE_ENV !== "production" ? [
53
53
  // All error codes, starting by 0:
54
54
  function(e) {
55
55
  return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
package/package.json CHANGED
@@ -1,18 +1,16 @@
1
1
  {
2
2
  "name": "@dittolive/ditto-chat-core",
3
- "version": "0.1.0",
4
- "main": "src/index.ts",
5
- "module": "src/index.ts",
6
- "types": "src/index.ts",
3
+ "version": "0.1.1",
4
+ "main": "./dist/index.es.js",
5
+ "module": "./dist/index.es.js",
6
+ "types": "./dist/src/index.d.ts",
7
7
  "type": "module",
8
8
  "exports": {
9
9
  ".": {
10
- "development": "./src/index.ts",
11
10
  "types": "./dist/src/index.d.ts",
12
11
  "default": "./dist/index.es.js"
13
12
  },
14
13
  "./dist/types/*": {
15
- "development": "./src/types/*.ts",
16
14
  "types": "./dist/src/types/*.d.ts",
17
15
  "default": "./dist/types/*.js"
18
16
  }
@@ -28,6 +26,7 @@
28
26
  },
29
27
  "scripts": {
30
28
  "build": "vite build && tsc --emitDeclarationOnly",
29
+ "prepublishOnly": "yarn build",
31
30
  "clean": "rm -rf dist",
32
31
  "lint": "eslint .",
33
32
  "lint:fix": "eslint . --fix",
@@ -37,7 +36,7 @@
37
36
  "typecheck": "tsc --noEmit --skipLibCheck"
38
37
  },
39
38
  "peerDependencies": {
40
- "@dittolive/ditto": "^4.12.3",
39
+ "@dittolive/ditto": "^4.14.0",
41
40
  "react": "^18 || ^19",
42
41
  "zustand": "^5.0.8"
43
42
  },
@@ -46,6 +45,7 @@
46
45
  "@testing-library/jest-dom": "^6.9.1",
47
46
  "@testing-library/react": "^16.3.0",
48
47
  "@types/react": "^19.2.2",
48
+ "@types/uuid": "^10.0.0",
49
49
  "@vitejs/plugin-react": "^5.0.4",
50
50
  "@vitest/coverage-v8": "^3.2.4",
51
51
  "@vitest/ui": "^3.2.4",
@@ -70,11 +70,11 @@
70
70
  "ditto-chat"
71
71
  ],
72
72
  "dependencies": {
73
- "@dittolive/ditto": "^4.12.3",
73
+ "@dittolive/ditto": "^4.14.0",
74
74
  "immer": "^10.2.0",
75
75
  "uuid": "^13.0.0"
76
76
  },
77
77
  "overrides": {
78
78
  "glob": "^10.5.0"
79
79
  }
80
- }
80
+ }
package/src/index.ts DELETED
@@ -1,9 +0,0 @@
1
- export * from './slices/useRBAC'
2
- export * from './slices/useRooms'
3
- export * from './types/ChatUser'
4
- export * from './types/Message'
5
- export * from './types/MessageWithUser'
6
- export * from './types/RBAC'
7
- export * from './types/Room'
8
- export * from './useChat'
9
- export { getChatStore, resetChatStore } from './useChat'