@01.software/sdk 0.26.0 → 0.27.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/README.md +28 -3
- package/dist/analytics/react.cjs +249 -0
- package/dist/analytics/react.cjs.map +1 -0
- package/dist/analytics/react.d.cts +8 -0
- package/dist/analytics/react.d.ts +8 -0
- package/dist/analytics/react.js +228 -0
- package/dist/analytics/react.js.map +1 -0
- package/dist/{const-CEiFBZMW.d.cts → const-C0GlmeJ_.d.cts} +5 -5
- package/dist/{const-R3AyqOHY.d.ts → const-D-xucnw4.d.ts} +5 -5
- package/dist/{image-TT8lTsk5.d.cts → image-BDz2-AaO.d.cts} +1 -1
- package/dist/{image-TT8lTsk5.d.ts → image-BDz2-AaO.d.ts} +1 -1
- package/dist/index.cjs +13 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-BF8VVFt6.d.cts → payload-types-BPvUmPAq.d.cts} +221 -53
- package/dist/{payload-types-BF8VVFt6.d.ts → payload-types-BPvUmPAq.d.ts} +221 -53
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/{server-DLdbWJVv.d.cts → server-BINWywT8.d.cts} +1 -1
- package/dist/{server-DLdbWJVv.d.ts → server-BINWywT8.d.ts} +1 -1
- package/dist/{server-CZrUwqDs.d.cts → server-_zvihptw.d.ts} +27 -4
- package/dist/{server-DULueNYi.d.ts → server-n3xK4Nks.d.cts} +27 -4
- package/dist/server.cjs +8 -0
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +8 -0
- package/dist/server.js.map +1 -1
- package/dist/{types-CZ1laT6s.d.ts → types-BLdthWiW.d.ts} +1 -1
- package/dist/{types-lPRgx_rC.d.cts → types-DzWNu9pw.d.cts} +1 -1
- package/dist/ui/canvas/server.d.cts +1 -1
- package/dist/ui/canvas/server.d.ts +1 -1
- package/dist/ui/canvas.d.cts +3 -3
- package/dist/ui/canvas.d.ts +3 -3
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/image.d.cts +1 -1
- package/dist/ui/image.d.ts +1 -1
- package/dist/ui/video.d.cts +2 -2
- package/dist/ui/video.d.ts +2 -2
- package/dist/{video-DbLL8yuc.d.cts → video-WR_TFO9a.d.cts} +1 -1
- package/dist/{video-DbLL8yuc.d.ts → video-WR_TFO9a.d.ts} +1 -1
- package/dist/webhook.d.cts +3 -3
- package/dist/webhook.d.ts +3 -3
- package/package.json +42 -26
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CustomerProfile, a as CustomerProfileList, P as Post, b as Comment, R as Reaction, c as Config } from './payload-types-
|
|
1
|
+
import { C as CustomerProfile, a as CustomerProfileList, P as Post, b as Comment, R as Reaction, c as Config } from './payload-types-BPvUmPAq.js';
|
|
2
2
|
|
|
3
3
|
type PublicCustomerProfile = Omit<CustomerProfile, 'tenant' | 'customer' | 'isPublic' | 'anonymizedAt' | 'metadata'>;
|
|
4
4
|
type PublicProfileRelation = string | PublicCustomerProfile;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CustomerProfile, a as CustomerProfileList, P as Post, b as Comment, R as Reaction, c as Config } from './payload-types-
|
|
1
|
+
import { C as CustomerProfile, a as CustomerProfileList, P as Post, b as Comment, R as Reaction, c as Config } from './payload-types-BPvUmPAq.cjs';
|
|
2
2
|
|
|
3
3
|
type PublicCustomerProfile = Omit<CustomerProfile, 'tenant' | 'customer' | 'isPublic' | 'anonymizedAt' | 'metadata'>;
|
|
4
4
|
type PublicProfileRelation = string | PublicCustomerProfile;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { B as BUILT_IN_EDGE_TYPES, i as BUILT_IN_NODE_TYPES, g as CanvasBounds, C as CanvasData, c as CanvasEdge, a as CanvasNode, j as CanvasNodeData, k as CanvasNodePosition, f as CanvasViewport, l as DynamicNodeData, E as EdgeTypeDef, h as FrameData, m as FrameNodeData, N as NodeTypeDef, b as NodeTypeFieldDef, P as PrefetchCanvasOptions, o as getFrameData, p as getFrames, q as getNodeBounds, r as isDynamicNode, s as isFrameNode, t as prefetchCanvas } from '../../server-BINWywT8.cjs';
|
|
2
2
|
import '@tanstack/react-query';
|
|
3
3
|
import 'react';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { B as BUILT_IN_EDGE_TYPES, i as BUILT_IN_NODE_TYPES, g as CanvasBounds, C as CanvasData, c as CanvasEdge, a as CanvasNode, j as CanvasNodeData, k as CanvasNodePosition, f as CanvasViewport, l as DynamicNodeData, E as EdgeTypeDef, h as FrameData, m as FrameNodeData, N as NodeTypeDef, b as NodeTypeFieldDef, P as PrefetchCanvasOptions, o as getFrameData, p as getFrames, q as getNodeBounds, r as isDynamicNode, s as isFrameNode, t as prefetchCanvas } from '../../server-BINWywT8.js';
|
|
2
2
|
import '@tanstack/react-query';
|
|
3
3
|
import 'react';
|
package/dist/ui/canvas.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as CanvasData, N as NodeTypeDef, E as EdgeTypeDef, a as CanvasNode, b as NodeTypeFieldDef, D as DynamicNodeSlotProps, c as CanvasEdge, F as FrameNodeSlotProps, d as EdgeSlotProps, e as NodeWrapperSlotProps, f as CanvasViewport, g as CanvasBounds, S as SDKClient, h as FrameData } from '../server-
|
|
2
|
-
export {
|
|
1
|
+
import { C as CanvasData, N as NodeTypeDef, E as EdgeTypeDef, a as CanvasNode, b as NodeTypeFieldDef, D as DynamicNodeSlotProps, c as CanvasEdge, F as FrameNodeSlotProps, d as EdgeSlotProps, e as NodeWrapperSlotProps, f as CanvasViewport, g as CanvasBounds, S as SDKClient, h as FrameData } from '../server-BINWywT8.cjs';
|
|
2
|
+
export { B as BUILT_IN_EDGE_TYPES, i as BUILT_IN_NODE_TYPES, j as CanvasNodeData, k as CanvasNodePosition, l as DynamicNodeData, m as FrameNodeData, P as PrefetchCanvasOptions, U as UseCanvasOptions, n as UseCanvasResult, o as getFrameData, p as getFrames, q as getNodeBounds, r as isDynamicNode, s as isFrameNode, t as prefetchCanvas, u as useCanvas } from '../server-BINWywT8.cjs';
|
|
3
3
|
import { Edge } from '@xyflow/react';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { I as ImageData } from '../image-
|
|
5
|
+
import { I as ImageData } from '../image-BDz2-AaO.cjs';
|
|
6
6
|
import '@tanstack/react-query';
|
|
7
7
|
|
|
8
8
|
interface UseCanvasDataOptions {
|
package/dist/ui/canvas.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as CanvasData, N as NodeTypeDef, E as EdgeTypeDef, a as CanvasNode, b as NodeTypeFieldDef, D as DynamicNodeSlotProps, c as CanvasEdge, F as FrameNodeSlotProps, d as EdgeSlotProps, e as NodeWrapperSlotProps, f as CanvasViewport, g as CanvasBounds, S as SDKClient, h as FrameData } from '../server-
|
|
2
|
-
export {
|
|
1
|
+
import { C as CanvasData, N as NodeTypeDef, E as EdgeTypeDef, a as CanvasNode, b as NodeTypeFieldDef, D as DynamicNodeSlotProps, c as CanvasEdge, F as FrameNodeSlotProps, d as EdgeSlotProps, e as NodeWrapperSlotProps, f as CanvasViewport, g as CanvasBounds, S as SDKClient, h as FrameData } from '../server-BINWywT8.js';
|
|
2
|
+
export { B as BUILT_IN_EDGE_TYPES, i as BUILT_IN_NODE_TYPES, j as CanvasNodeData, k as CanvasNodePosition, l as DynamicNodeData, m as FrameNodeData, P as PrefetchCanvasOptions, U as UseCanvasOptions, n as UseCanvasResult, o as getFrameData, p as getFrames, q as getNodeBounds, r as isDynamicNode, s as isFrameNode, t as prefetchCanvas, u as useCanvas } from '../server-BINWywT8.js';
|
|
3
3
|
import { Edge } from '@xyflow/react';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { I as ImageData } from '../image-
|
|
5
|
+
import { I as ImageData } from '../image-BDz2-AaO.js';
|
|
6
6
|
import '@tanstack/react-query';
|
|
7
7
|
|
|
8
8
|
interface UseCanvasDataOptions {
|
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-BPvUmPAq.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-BPvUmPAq.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/image.d.cts
CHANGED
package/dist/ui/image.d.ts
CHANGED
package/dist/ui/video.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
5
|
-
export {
|
|
4
|
+
import { V as Video } from '../payload-types-BPvUmPAq.cjs';
|
|
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 {
|
|
8
8
|
[key: `--${string}`]: string | undefined;
|
package/dist/ui/video.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
5
|
-
export {
|
|
4
|
+
import { V as Video } from '../payload-types-BPvUmPAq.js';
|
|
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 {
|
|
8
8
|
[key: `--${string}`]: string | undefined;
|
|
@@ -82,4 +82,4 @@ declare function getVideoStreamUrl(playbackId: string): string;
|
|
|
82
82
|
*/
|
|
83
83
|
declare function getVideoMp4Url(playbackId: string, resolution?: 'high' | 'medium' | 'low'): string;
|
|
84
84
|
|
|
85
|
-
export { type
|
|
85
|
+
export { type VideoGifOptions as V, type VideoThumbnailOptions as a, getVideoMp4Url as b, getVideoStoryboard as c, getVideoStreamUrl as d, getVideoThumbnail as e, getVideoGif as g };
|
|
@@ -82,4 +82,4 @@ declare function getVideoStreamUrl(playbackId: string): string;
|
|
|
82
82
|
*/
|
|
83
83
|
declare function getVideoMp4Url(playbackId: string, resolution?: 'high' | 'medium' | 'low'): string;
|
|
84
84
|
|
|
85
|
-
export { type
|
|
85
|
+
export { type VideoGifOptions as V, type VideoThumbnailOptions as a, getVideoMp4Url as b, getVideoStoryboard as c, getVideoStreamUrl as d, getVideoThumbnail as e, getVideoGif as g };
|
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 { a as Collection } from './const-C0GlmeJ_.cjs';
|
|
2
|
+
import { C as CollectionType } from './types-DzWNu9pw.cjs';
|
|
3
|
+
import './payload-types-BPvUmPAq.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 { a as Collection } from './const-D-xucnw4.js';
|
|
2
|
+
import { C as CollectionType } from './types-BLdthWiW.js';
|
|
3
|
+
import './payload-types-BPvUmPAq.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,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@01.software/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "01.software SDK",
|
|
5
5
|
"author": "<office@01.works>",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/01-office/01-software.git",
|
|
9
|
+
"directory": "packages/sdk"
|
|
10
|
+
},
|
|
6
11
|
"keywords": [],
|
|
7
12
|
"type": "module",
|
|
8
13
|
"main": "./dist/index.cjs",
|
|
@@ -39,6 +44,16 @@
|
|
|
39
44
|
"default": "./dist/analytics.cjs"
|
|
40
45
|
}
|
|
41
46
|
},
|
|
47
|
+
"./analytics/react": {
|
|
48
|
+
"import": {
|
|
49
|
+
"types": "./dist/analytics/react.d.ts",
|
|
50
|
+
"default": "./dist/analytics/react.js"
|
|
51
|
+
},
|
|
52
|
+
"require": {
|
|
53
|
+
"types": "./dist/analytics/react.d.cts",
|
|
54
|
+
"default": "./dist/analytics/react.cjs"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
42
57
|
"./webhook": {
|
|
43
58
|
"import": {
|
|
44
59
|
"types": "./dist/webhook.d.ts",
|
|
@@ -139,39 +154,39 @@
|
|
|
139
154
|
"dist"
|
|
140
155
|
],
|
|
141
156
|
"devDependencies": {
|
|
142
|
-
"@arethetypeswrong/cli": "^0.
|
|
143
|
-
"@mux/mux-player-react": "^3.
|
|
144
|
-
"@tanstack/react-query": "5.
|
|
157
|
+
"@arethetypeswrong/cli": "^0.18.2",
|
|
158
|
+
"@mux/mux-player-react": "^3.13.0",
|
|
159
|
+
"@tanstack/react-query": "5.100.9",
|
|
145
160
|
"@testing-library/jest-dom": "^6.9.1",
|
|
146
|
-
"@testing-library/react": "16.3.
|
|
147
|
-
"@types/node": "^22.
|
|
148
|
-
"@types/react": "19.2.14",
|
|
149
|
-
"@types/react-dom": "19.2.3",
|
|
150
|
-
"@xyflow/react": "^12.10.
|
|
151
|
-
"eslint": "^9.39.
|
|
161
|
+
"@testing-library/react": "16.3.2",
|
|
162
|
+
"@types/node": "^22.19.18",
|
|
163
|
+
"@types/react": "^19.2.14",
|
|
164
|
+
"@types/react-dom": "^19.2.3",
|
|
165
|
+
"@xyflow/react": "^12.10.2",
|
|
166
|
+
"eslint": "^9.39.4",
|
|
152
167
|
"jsdom": "26.1.0",
|
|
153
168
|
"monaco-editor": "0.55.1",
|
|
154
169
|
"next": "16.2.6",
|
|
155
|
-
"publint": "^0.3.
|
|
156
|
-
"react": "
|
|
157
|
-
"react-dom": "
|
|
158
|
-
"rimraf": "^6.
|
|
159
|
-
"shadcn": "^
|
|
160
|
-
"tsup": "^8.
|
|
161
|
-
"typescript": "
|
|
162
|
-
"vitest": "
|
|
163
|
-
"@repo/
|
|
164
|
-
"@repo/
|
|
170
|
+
"publint": "^0.3.20",
|
|
171
|
+
"react": "19.2.6",
|
|
172
|
+
"react-dom": "19.2.6",
|
|
173
|
+
"rimraf": "^6.1.3",
|
|
174
|
+
"shadcn": "^4.7.0",
|
|
175
|
+
"tsup": "^8.5.1",
|
|
176
|
+
"typescript": "5.7.3",
|
|
177
|
+
"vitest": "3.2.3",
|
|
178
|
+
"@repo/typescript-config": "0.0.0",
|
|
179
|
+
"@repo/eslint-config": "0.0.0"
|
|
165
180
|
},
|
|
166
181
|
"dependencies": {
|
|
167
182
|
"@payloadcms/richtext-lexical": ">=3.84.1",
|
|
168
183
|
"hast-util-to-jsx-runtime": "^2.3.6",
|
|
169
|
-
"jose": "^6.
|
|
184
|
+
"jose": "^6.2.3",
|
|
170
185
|
"payload": ">=3.84.1",
|
|
171
|
-
"postcss": "^8.
|
|
172
|
-
"qs-esm": "^
|
|
173
|
-
"quickjs-emscripten": "0.
|
|
174
|
-
"shiki": "^4.0.
|
|
186
|
+
"postcss": "^8.5.14",
|
|
187
|
+
"qs-esm": "^8.0.1",
|
|
188
|
+
"quickjs-emscripten": "0.32.0",
|
|
189
|
+
"shiki": "^4.0.2",
|
|
175
190
|
"sucrase": "^3.35.1"
|
|
176
191
|
},
|
|
177
192
|
"peerDependencies": {
|
|
@@ -205,6 +220,7 @@
|
|
|
205
220
|
"test:publish": "publint --strict && attw --pack --ignore-rules no-resolution",
|
|
206
221
|
"check-types": "tsc --noEmit",
|
|
207
222
|
"build": "tsup",
|
|
208
|
-
"release": "node ../../scripts/publish.js"
|
|
223
|
+
"release:dev": "node ../../scripts/publish.js dev sdk",
|
|
224
|
+
"release:local": "node ../../scripts/publish.js local sdk"
|
|
209
225
|
}
|
|
210
226
|
}
|