@01.software/sdk 0.28.0 → 0.30.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.
Files changed (80) hide show
  1. package/README.md +273 -73
  2. package/dist/analytics/react.cjs +4 -1
  3. package/dist/analytics/react.cjs.map +1 -1
  4. package/dist/analytics/react.js +4 -1
  5. package/dist/analytics/react.js.map +1 -1
  6. package/dist/analytics.cjs +4 -1
  7. package/dist/analytics.cjs.map +1 -1
  8. package/dist/analytics.js +4 -1
  9. package/dist/analytics.js.map +1 -1
  10. package/dist/client.cjs +1476 -0
  11. package/dist/client.cjs.map +1 -0
  12. package/dist/client.d.cts +28 -0
  13. package/dist/client.d.ts +28 -0
  14. package/dist/client.js +1453 -0
  15. package/dist/client.js.map +1 -0
  16. package/dist/collection-client-B9d9kr1d.d.ts +218 -0
  17. package/dist/collection-client-QPbwimkU.d.cts +218 -0
  18. package/dist/{const-mdQQtIOz.d.ts → const-B75IFDRi.d.ts} +2 -4
  19. package/dist/{const-Cz9Ki_I7.d.cts → const-VZuk2tWc.d.cts} +2 -4
  20. package/dist/index-B2WbhEgT.d.cts +106 -0
  21. package/dist/index-B2WbhEgT.d.ts +106 -0
  22. package/dist/index.cjs +1291 -1501
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +11 -115
  25. package/dist/index.d.ts +11 -115
  26. package/dist/index.js +1292 -1520
  27. package/dist/index.js.map +1 -1
  28. package/dist/metadata.cjs +91 -0
  29. package/dist/metadata.cjs.map +1 -0
  30. package/dist/metadata.d.cts +58 -0
  31. package/dist/metadata.d.ts +58 -0
  32. package/dist/metadata.js +68 -0
  33. package/dist/metadata.js.map +1 -0
  34. package/dist/{payload-types-BrSYb-sh.d.cts → payload-types-DPjO_IbQ.d.cts} +17 -6
  35. package/dist/{payload-types-BrSYb-sh.d.ts → payload-types-DPjO_IbQ.d.ts} +17 -6
  36. package/dist/query.cjs +1791 -0
  37. package/dist/query.cjs.map +1 -0
  38. package/dist/query.d.cts +244 -0
  39. package/dist/query.d.ts +244 -0
  40. package/dist/query.js +1786 -0
  41. package/dist/query.js.map +1 -0
  42. package/dist/realtime.cjs +4 -1
  43. package/dist/realtime.cjs.map +1 -1
  44. package/dist/realtime.d.cts +2 -2
  45. package/dist/realtime.d.ts +2 -2
  46. package/dist/realtime.js +4 -1
  47. package/dist/realtime.js.map +1 -1
  48. package/dist/{server-BINWywT8.d.cts → server-CrsPyqEc.d.cts} +14 -31
  49. package/dist/{server-BINWywT8.d.ts → server-CrsPyqEc.d.ts} +14 -31
  50. package/dist/server.cjs +300 -844
  51. package/dist/server.cjs.map +1 -1
  52. package/dist/server.d.cts +112 -7
  53. package/dist/server.d.ts +112 -7
  54. package/dist/server.js +300 -862
  55. package/dist/server.js.map +1 -1
  56. package/dist/{types-BLUb4cYq.d.ts → types-1fBLrYU7.d.ts} +1 -1
  57. package/dist/{types-CW4PaIL7.d.cts → types-BwT0eeaz.d.cts} +1 -1
  58. package/dist/types-Dlb2mwpX.d.cts +1249 -0
  59. package/dist/types-DuSKPiY5.d.ts +1249 -0
  60. package/dist/ui/canvas/server.cjs +7 -6
  61. package/dist/ui/canvas/server.cjs.map +1 -1
  62. package/dist/ui/canvas/server.d.cts +1 -3
  63. package/dist/ui/canvas/server.d.ts +1 -3
  64. package/dist/ui/canvas/server.js +7 -6
  65. package/dist/ui/canvas/server.js.map +1 -1
  66. package/dist/ui/canvas.cjs +11 -10
  67. package/dist/ui/canvas.cjs.map +1 -1
  68. package/dist/ui/canvas.d.cts +29 -6
  69. package/dist/ui/canvas.d.ts +29 -6
  70. package/dist/ui/canvas.js +11 -10
  71. package/dist/ui/canvas.js.map +1 -1
  72. package/dist/ui/form.d.cts +1 -1
  73. package/dist/ui/form.d.ts +1 -1
  74. package/dist/ui/video.d.cts +1 -1
  75. package/dist/ui/video.d.ts +1 -1
  76. package/dist/webhook.d.cts +3 -3
  77. package/dist/webhook.d.ts +3 -3
  78. package/package.json +82 -13
  79. package/dist/server-C2Q9R-Lu.d.ts +0 -1662
  80. package/dist/server-D369bCVJ.d.cts +0 -1662
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { F as Form } from '../payload-types-BrSYb-sh.cjs';
2
+ import { F as Form } from '../payload-types-DPjO_IbQ.cjs';
3
3
  import { RichTextData } from './rich-text.cjs';
4
4
  import '@payloadcms/richtext-lexical';
5
5
  import '@payloadcms/richtext-lexical/lexical';
package/dist/ui/form.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { F as Form } from '../payload-types-BrSYb-sh.js';
2
+ import { F as Form } from '../payload-types-DPjO_IbQ.js';
3
3
  import { RichTextData } from './rich-text.js';
4
4
  import '@payloadcms/richtext-lexical';
5
5
  import '@payloadcms/richtext-lexical/lexical';
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { MuxPlayerProps, MuxPlayerRefAttributes } from '@mux/mux-player-react';
3
3
  export { MuxPlayerRefAttributes as VideoPlayerRef } from '@mux/mux-player-react';
4
- import { V as Video } from '../payload-types-BrSYb-sh.cjs';
4
+ import { V as Video } from '../payload-types-DPjO_IbQ.cjs';
5
5
  export { V as VideoGifOptions, a as VideoThumbnailOptions, g as getVideoGif, b as getVideoMp4Url, c as getVideoStoryboard, d as getVideoStreamUrl, e as getVideoThumbnail } from '../video-WR_TFO9a.cjs';
6
6
 
7
7
  interface VideoPlayerCSSProperties extends CSSProperties {
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { MuxPlayerProps, MuxPlayerRefAttributes } from '@mux/mux-player-react';
3
3
  export { MuxPlayerRefAttributes as VideoPlayerRef } from '@mux/mux-player-react';
4
- import { V as Video } from '../payload-types-BrSYb-sh.js';
4
+ import { V as Video } from '../payload-types-DPjO_IbQ.js';
5
5
  export { V as VideoGifOptions, a as VideoThumbnailOptions, g as getVideoGif, b as getVideoMp4Url, c as getVideoStoryboard, d as getVideoStreamUrl, e as getVideoThumbnail } from '../video-WR_TFO9a.js';
6
6
 
7
7
  interface VideoPlayerCSSProperties extends CSSProperties {
@@ -1,6 +1,6 @@
1
- import { a as Collection } from './const-Cz9Ki_I7.cjs';
2
- import { C as CollectionType } from './types-CW4PaIL7.cjs';
3
- import './payload-types-BrSYb-sh.cjs';
1
+ import { C as Collection } from './const-VZuk2tWc.cjs';
2
+ import { C as CollectionType } from './types-BwT0eeaz.cjs';
3
+ import './payload-types-DPjO_IbQ.cjs';
4
4
 
5
5
  type WebhookOperation = string;
6
6
  interface WebhookEvent<T extends Collection | string = Collection, TData = T extends Collection ? CollectionType<T> : Record<string, unknown>> {
package/dist/webhook.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { a as Collection } from './const-mdQQtIOz.js';
2
- import { C as CollectionType } from './types-BLUb4cYq.js';
3
- import './payload-types-BrSYb-sh.js';
1
+ import { C as Collection } from './const-B75IFDRi.js';
2
+ import { C as CollectionType } from './types-1fBLrYU7.js';
3
+ import './payload-types-DPjO_IbQ.js';
4
4
 
5
5
  type WebhookOperation = string;
6
6
  interface WebhookEvent<T extends Collection | string = Collection, TData = T extends Collection ? CollectionType<T> : Record<string, unknown>> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@01.software/sdk",
3
- "version": "0.28.0",
3
+ "version": "0.30.1",
4
4
  "description": "01.software SDK",
5
5
  "author": "<office@01.works>",
6
6
  "repository": {
@@ -34,6 +34,16 @@
34
34
  "default": "./dist/server.cjs"
35
35
  }
36
36
  },
37
+ "./client": {
38
+ "import": {
39
+ "types": "./dist/client.d.ts",
40
+ "default": "./dist/client.js"
41
+ },
42
+ "require": {
43
+ "types": "./dist/client.d.cts",
44
+ "default": "./dist/client.cjs"
45
+ }
46
+ },
37
47
  "./analytics": {
38
48
  "import": {
39
49
  "types": "./dist/analytics.d.ts",
@@ -54,6 +64,26 @@
54
64
  "default": "./dist/analytics/react.cjs"
55
65
  }
56
66
  },
67
+ "./query": {
68
+ "import": {
69
+ "types": "./dist/query.d.ts",
70
+ "default": "./dist/query.js"
71
+ },
72
+ "require": {
73
+ "types": "./dist/query.d.cts",
74
+ "default": "./dist/query.cjs"
75
+ }
76
+ },
77
+ "./metadata": {
78
+ "import": {
79
+ "types": "./dist/metadata.d.ts",
80
+ "default": "./dist/metadata.js"
81
+ },
82
+ "require": {
83
+ "types": "./dist/metadata.d.cts",
84
+ "default": "./dist/metadata.cjs"
85
+ }
86
+ },
57
87
  "./webhook": {
58
88
  "import": {
59
89
  "types": "./dist/webhook.d.ts",
@@ -156,6 +186,7 @@
156
186
  "devDependencies": {
157
187
  "@arethetypeswrong/cli": "^0.18.2",
158
188
  "@mux/mux-player-react": "^3.13.0",
189
+ "@payloadcms/richtext-lexical": ">=3.84.1",
159
190
  "@tanstack/react-query": "5.100.9",
160
191
  "@testing-library/jest-dom": "^6.9.1",
161
192
  "@testing-library/react": "16.3.2",
@@ -164,14 +195,19 @@
164
195
  "@types/react-dom": "^19.2.3",
165
196
  "@xyflow/react": "^12.10.2",
166
197
  "eslint": "^9.39.4",
198
+ "hast-util-to-jsx-runtime": "^2.3.6",
167
199
  "jsdom": "26.1.0",
168
200
  "monaco-editor": "0.55.1",
169
- "next": "16.2.6",
201
+ "payload": ">=3.84.1",
202
+ "postcss": "^8.5.14",
170
203
  "publint": "^0.3.20",
204
+ "quickjs-emscripten": "0.32.0",
171
205
  "react": "19.2.6",
172
206
  "react-dom": "19.2.6",
173
207
  "rimraf": "^6.1.3",
174
208
  "shadcn": "^4.7.0",
209
+ "shiki": "^4.0.2",
210
+ "sucrase": "^3.35.1",
175
211
  "tsup": "^8.5.1",
176
212
  "typescript": "5.7.3",
177
213
  "vitest": "3.2.3",
@@ -179,30 +215,62 @@
179
215
  "@repo/typescript-config": "0.0.0"
180
216
  },
181
217
  "dependencies": {
182
- "@payloadcms/richtext-lexical": ">=3.84.1",
183
- "hast-util-to-jsx-runtime": "^2.3.6",
184
- "jose": "^6.2.3",
185
- "payload": ">=3.84.1",
186
- "postcss": "^8.5.14",
187
- "qs-esm": "^8.0.1",
188
- "quickjs-emscripten": "0.32.0",
189
- "shiki": "^4.0.2",
190
- "sucrase": "^3.35.1"
218
+ "qs-esm": "^8.0.1"
191
219
  },
192
220
  "peerDependencies": {
193
221
  "@mux/mux-player-react": ">=3",
222
+ "@payloadcms/richtext-lexical": ">=3.84.1",
194
223
  "@tanstack/react-query": ">=5",
195
224
  "@xyflow/react": ">=12",
225
+ "hast-util-to-jsx-runtime": ">=2.3.6",
196
226
  "next": ">=14",
227
+ "payload": ">=3.84.1",
228
+ "postcss": ">=8",
229
+ "quickjs-emscripten": ">=0.32.0",
197
230
  "react": ">=18",
198
- "react-dom": ">=18"
231
+ "react-dom": ">=18",
232
+ "shiki": ">=4",
233
+ "sucrase": ">=3.35.1"
199
234
  },
200
235
  "peerDependenciesMeta": {
236
+ "@tanstack/react-query": {
237
+ "optional": true
238
+ },
239
+ "@payloadcms/richtext-lexical": {
240
+ "optional": true
241
+ },
242
+ "next": {
243
+ "optional": true
244
+ },
245
+ "react": {
246
+ "optional": true
247
+ },
248
+ "react-dom": {
249
+ "optional": true
250
+ },
201
251
  "@xyflow/react": {
202
252
  "optional": true
203
253
  },
204
254
  "@mux/mux-player-react": {
205
255
  "optional": true
256
+ },
257
+ "hast-util-to-jsx-runtime": {
258
+ "optional": true
259
+ },
260
+ "payload": {
261
+ "optional": true
262
+ },
263
+ "postcss": {
264
+ "optional": true
265
+ },
266
+ "quickjs-emscripten": {
267
+ "optional": true
268
+ },
269
+ "shiki": {
270
+ "optional": true
271
+ },
272
+ "sucrase": {
273
+ "optional": true
206
274
  }
207
275
  },
208
276
  "publishConfig": {
@@ -215,9 +283,10 @@
215
283
  "test": "vitest run",
216
284
  "test:react": "vitest run --config vitest.config.react.ts",
217
285
  "test:types": "tsc --noEmit -p tsconfig.type-tests.json",
286
+ "test:root-import-devex": "node ./scripts/verify-root-import-devex.mjs",
218
287
  "test:all": "vitest run && vitest run --config vitest.config.react.ts && pnpm run test:types",
219
288
  "test:watch": "vitest --watch",
220
- "test:publish": "publint --strict && attw --pack --ignore-rules no-resolution",
289
+ "test:publish": "publint --strict && attw --pack --ignore-rules no-resolution && pnpm run test:root-import-devex",
221
290
  "check-types": "tsc --noEmit",
222
291
  "build": "tsup",
223
292
  "release:dev": "node ../../scripts/publish.js dev sdk",