@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.
- package/README.md +273 -73
- package/dist/analytics/react.cjs +4 -1
- package/dist/analytics/react.cjs.map +1 -1
- package/dist/analytics/react.js +4 -1
- package/dist/analytics/react.js.map +1 -1
- package/dist/analytics.cjs +4 -1
- package/dist/analytics.cjs.map +1 -1
- package/dist/analytics.js +4 -1
- package/dist/analytics.js.map +1 -1
- package/dist/client.cjs +1476 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.cts +28 -0
- package/dist/client.d.ts +28 -0
- package/dist/client.js +1453 -0
- package/dist/client.js.map +1 -0
- package/dist/collection-client-B9d9kr1d.d.ts +218 -0
- package/dist/collection-client-QPbwimkU.d.cts +218 -0
- package/dist/{const-mdQQtIOz.d.ts → const-B75IFDRi.d.ts} +2 -4
- package/dist/{const-Cz9Ki_I7.d.cts → const-VZuk2tWc.d.cts} +2 -4
- package/dist/index-B2WbhEgT.d.cts +106 -0
- package/dist/index-B2WbhEgT.d.ts +106 -0
- package/dist/index.cjs +1291 -1501
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -115
- package/dist/index.d.ts +11 -115
- package/dist/index.js +1292 -1520
- package/dist/index.js.map +1 -1
- package/dist/metadata.cjs +91 -0
- package/dist/metadata.cjs.map +1 -0
- package/dist/metadata.d.cts +58 -0
- package/dist/metadata.d.ts +58 -0
- package/dist/metadata.js +68 -0
- package/dist/metadata.js.map +1 -0
- package/dist/{payload-types-BrSYb-sh.d.cts → payload-types-DPjO_IbQ.d.cts} +17 -6
- package/dist/{payload-types-BrSYb-sh.d.ts → payload-types-DPjO_IbQ.d.ts} +17 -6
- package/dist/query.cjs +1791 -0
- package/dist/query.cjs.map +1 -0
- package/dist/query.d.cts +244 -0
- package/dist/query.d.ts +244 -0
- package/dist/query.js +1786 -0
- package/dist/query.js.map +1 -0
- package/dist/realtime.cjs +4 -1
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/realtime.js +4 -1
- package/dist/realtime.js.map +1 -1
- package/dist/{server-BINWywT8.d.cts → server-CrsPyqEc.d.cts} +14 -31
- package/dist/{server-BINWywT8.d.ts → server-CrsPyqEc.d.ts} +14 -31
- package/dist/server.cjs +300 -844
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +112 -7
- package/dist/server.d.ts +112 -7
- package/dist/server.js +300 -862
- package/dist/server.js.map +1 -1
- package/dist/{types-BLUb4cYq.d.ts → types-1fBLrYU7.d.ts} +1 -1
- package/dist/{types-CW4PaIL7.d.cts → types-BwT0eeaz.d.cts} +1 -1
- package/dist/types-Dlb2mwpX.d.cts +1249 -0
- package/dist/types-DuSKPiY5.d.ts +1249 -0
- package/dist/ui/canvas/server.cjs +7 -6
- package/dist/ui/canvas/server.cjs.map +1 -1
- package/dist/ui/canvas/server.d.cts +1 -3
- package/dist/ui/canvas/server.d.ts +1 -3
- package/dist/ui/canvas/server.js +7 -6
- package/dist/ui/canvas/server.js.map +1 -1
- package/dist/ui/canvas.cjs +11 -10
- package/dist/ui/canvas.cjs.map +1 -1
- package/dist/ui/canvas.d.cts +29 -6
- package/dist/ui/canvas.d.ts +29 -6
- package/dist/ui/canvas.js +11 -10
- package/dist/ui/canvas.js.map +1 -1
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.d.cts +3 -3
- package/dist/webhook.d.ts +3 -3
- package/package.json +82 -13
- package/dist/server-C2Q9R-Lu.d.ts +0 -1662
- package/dist/server-D369bCVJ.d.cts +0 -1662
package/dist/ui/form.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { F as Form } from '../payload-types-
|
|
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-
|
|
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';
|
package/dist/ui/video.d.cts
CHANGED
|
@@ -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-
|
|
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 {
|
package/dist/ui/video.d.ts
CHANGED
|
@@ -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-
|
|
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 {
|
package/dist/webhook.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as CollectionType } from './types-
|
|
3
|
-
import './payload-types-
|
|
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 {
|
|
2
|
-
import { C as CollectionType } from './types-
|
|
3
|
-
import './payload-types-
|
|
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.
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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",
|