@noya-app/noya-api-client-react 0.1.45 → 0.1.46
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/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +8 -0
- package/dist/index.d.mts +14 -54
- package/dist/index.d.ts +14 -54
- package/dist/index.js +835 -484
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +766 -408
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/react/hooks.ts +1 -105
package/.turbo/turbo-build.log
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
[34mCJS[39m Build start
|
|
8
8
|
[34mESM[39m Build start
|
|
9
9
|
DTS Build start
|
|
10
|
-
[32mESM[39m [1mdist/index.mjs [22m[
|
|
11
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[32m1.
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
|
14
|
-
[32mCJS[39m [1mdist/index.js.map [22m[32m1.
|
|
15
|
-
[32mCJS[39m ⚡️ Build success in
|
|
16
|
-
DTS ⚡️ Build success in
|
|
17
|
-
DTS dist/index.d.ts
|
|
18
|
-
DTS dist/index.d.mts
|
|
10
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m528.09 KB[39m
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m1.42 MB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 858ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m536.51 KB[39m
|
|
14
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m1.42 MB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 878ms
|
|
16
|
+
DTS ⚡️ Build success in 7142ms
|
|
17
|
+
DTS dist/index.d.ts 15.78 KB
|
|
18
|
+
DTS dist/index.d.mts 15.78 KB
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -119,29 +119,33 @@ declare function useOptionalNoyaCreators(): {
|
|
|
119
119
|
};
|
|
120
120
|
declare function useNoyaAssets(fileId?: string): {
|
|
121
121
|
assets: {
|
|
122
|
-
width: number | null;
|
|
123
|
-
height: number | null;
|
|
124
122
|
id: string;
|
|
125
123
|
createdAt: string;
|
|
126
124
|
stableId: string;
|
|
125
|
+
width: number | null;
|
|
126
|
+
height: number | null;
|
|
127
127
|
userId: string | null;
|
|
128
128
|
url?: string | undefined;
|
|
129
129
|
size?: number | undefined;
|
|
130
130
|
contentType?: string | undefined;
|
|
131
|
+
mode?: "immutable" | "mutable" | undefined;
|
|
132
|
+
version?: number | undefined;
|
|
131
133
|
}[];
|
|
132
134
|
loading: boolean;
|
|
133
135
|
};
|
|
134
136
|
declare function useNoyaAssetsByFileVersionId(fileVersionId: string): {
|
|
135
137
|
assets: {
|
|
136
|
-
width: number | null;
|
|
137
|
-
height: number | null;
|
|
138
138
|
id: string;
|
|
139
139
|
createdAt: string;
|
|
140
140
|
stableId: string;
|
|
141
|
+
width: number | null;
|
|
142
|
+
height: number | null;
|
|
141
143
|
userId: string | null;
|
|
142
144
|
url?: string | undefined;
|
|
143
145
|
size?: number | undefined;
|
|
144
146
|
contentType?: string | undefined;
|
|
147
|
+
mode?: "immutable" | "mutable" | undefined;
|
|
148
|
+
version?: number | undefined;
|
|
145
149
|
}[];
|
|
146
150
|
loading: boolean;
|
|
147
151
|
};
|
|
@@ -179,8 +183,8 @@ declare function useNoyaBilling(): {
|
|
|
179
183
|
id: string;
|
|
180
184
|
created: string;
|
|
181
185
|
price: {
|
|
182
|
-
type: string;
|
|
183
186
|
id: string;
|
|
187
|
+
type: string;
|
|
184
188
|
active: boolean;
|
|
185
189
|
currency: string;
|
|
186
190
|
nickname: string | null;
|
|
@@ -212,8 +216,8 @@ declare function useNoyaBilling(): {
|
|
|
212
216
|
active: boolean;
|
|
213
217
|
created: string;
|
|
214
218
|
prices: {
|
|
215
|
-
type: string;
|
|
216
219
|
id: string;
|
|
220
|
+
type: string;
|
|
217
221
|
active: boolean;
|
|
218
222
|
currency: string;
|
|
219
223
|
nickname: string | null;
|
|
@@ -246,8 +250,8 @@ declare function useNoyaEmailLists(): {
|
|
|
246
250
|
declare function useNoyaUserData(): {
|
|
247
251
|
userData: {
|
|
248
252
|
metadata: {
|
|
249
|
-
key: string;
|
|
250
253
|
url: string;
|
|
254
|
+
key: string;
|
|
251
255
|
value?: unknown;
|
|
252
256
|
}[];
|
|
253
257
|
emailLists: {
|
|
@@ -265,8 +269,8 @@ declare function useNoyaUserData(): {
|
|
|
265
269
|
declare function useOptionalNoyaUserData(): {
|
|
266
270
|
userData: {
|
|
267
271
|
metadata: {
|
|
268
|
-
key: string;
|
|
269
272
|
url: string;
|
|
273
|
+
key: string;
|
|
270
274
|
value?: unknown;
|
|
271
275
|
}[];
|
|
272
276
|
emailLists: {
|
|
@@ -283,44 +287,6 @@ declare function useOptionalNoyaUserData(): {
|
|
|
283
287
|
};
|
|
284
288
|
declare function useIsBeta(): boolean;
|
|
285
289
|
declare function useMetadata<T extends NoyaAPI.Json>(key: string): T | undefined;
|
|
286
|
-
declare function useGeneratedComponentNames(name: string): {
|
|
287
|
-
names: {
|
|
288
|
-
name: string;
|
|
289
|
-
}[];
|
|
290
|
-
loading: boolean;
|
|
291
|
-
};
|
|
292
|
-
declare function useGeneratedComponentDescriptions(): {
|
|
293
|
-
descriptions: Record<string, string>;
|
|
294
|
-
loading: Record<string, boolean>;
|
|
295
|
-
};
|
|
296
|
-
declare function useGeneratedComponentDescription(name: string): {
|
|
297
|
-
description: string | undefined;
|
|
298
|
-
loading: boolean;
|
|
299
|
-
};
|
|
300
|
-
declare function useRandomImages(): {
|
|
301
|
-
images: Record<string, {
|
|
302
|
-
metadata: {
|
|
303
|
-
color: string;
|
|
304
|
-
};
|
|
305
|
-
url: string;
|
|
306
|
-
user: {
|
|
307
|
-
name: string;
|
|
308
|
-
url: string;
|
|
309
|
-
};
|
|
310
|
-
source: {
|
|
311
|
-
name: string;
|
|
312
|
-
url: string;
|
|
313
|
-
};
|
|
314
|
-
}>;
|
|
315
|
-
loading: Record<string, boolean>;
|
|
316
|
-
};
|
|
317
|
-
declare function useRandomIcons(): {
|
|
318
|
-
icons: Record<string, {
|
|
319
|
-
url: string;
|
|
320
|
-
data: string;
|
|
321
|
-
}>;
|
|
322
|
-
loading: Record<string, boolean>;
|
|
323
|
-
};
|
|
324
290
|
declare function useNetworkRequests(): {
|
|
325
291
|
id: number;
|
|
326
292
|
method: string;
|
|
@@ -333,12 +299,6 @@ declare function useNetworkRequests(): {
|
|
|
333
299
|
attempt: number;
|
|
334
300
|
abortStream: () => void;
|
|
335
301
|
}[];
|
|
336
|
-
type EnhancedGeneratedPageName = NoyaAPI.GeneratedName & {
|
|
337
|
-
index: number;
|
|
338
|
-
type: "suggestion";
|
|
339
|
-
};
|
|
340
|
-
declare function useGeneratedPageNames(): EnhancedGeneratedPageName[];
|
|
341
|
-
declare function useGeneratedPageComponentNames(): EnhancedGeneratedPageName[];
|
|
342
302
|
declare function useNoyaSites(): {
|
|
343
303
|
sites: {
|
|
344
304
|
url?: string | null | undefined;
|
|
@@ -473,10 +433,10 @@ declare function useNoyaTemplates(): {
|
|
|
473
433
|
createdAt: string;
|
|
474
434
|
fileId: string | null;
|
|
475
435
|
userId: string;
|
|
436
|
+
version: number;
|
|
476
437
|
toolId: string;
|
|
477
438
|
description: string | null;
|
|
478
439
|
updatedAt: string;
|
|
479
|
-
version: number;
|
|
480
440
|
icon: string | null;
|
|
481
441
|
access: "private" | "read" | "write";
|
|
482
442
|
dataCid: string;
|
|
@@ -558,4 +518,4 @@ declare function useActivityEventsList<Config extends SelectConfig<ActivityEvent
|
|
|
558
518
|
}, config?: Config) => void;
|
|
559
519
|
};
|
|
560
520
|
|
|
561
|
-
export {
|
|
521
|
+
export { NoyaAPIProvider, useActivityEventsList, useFileList, useFileListItem, useIsBeta, useMetadata, useNetworkRequests, useNoyaAssets, useNoyaAssetsByFileVersionId, useNoyaBilling, useNoyaClient, useNoyaClientOrFallback, useNoyaCreators, useNoyaDeployments, useNoyaEmailLists, useNoyaMultiplayerRoomToken, useNoyaOwnedFileVersions, useNoyaPersonalAccessTokens, useNoyaSecrets, useNoyaSession, useNoyaSite, useNoyaSites, useNoyaTags, useNoyaTemplates, useNoyaTools, useNoyaUserData, useNoyaWorkspaceBilling, useNoyaWorkspaceInvitations, useNoyaWorkspaces, useOptionalNoyaClient, useOptionalNoyaCreators, useOptionalNoyaSession, useOptionalNoyaTags, useOptionalNoyaTools, useOptionalNoyaUserData, useResourcesList, useTable, useUser };
|
package/dist/index.d.ts
CHANGED
|
@@ -119,29 +119,33 @@ declare function useOptionalNoyaCreators(): {
|
|
|
119
119
|
};
|
|
120
120
|
declare function useNoyaAssets(fileId?: string): {
|
|
121
121
|
assets: {
|
|
122
|
-
width: number | null;
|
|
123
|
-
height: number | null;
|
|
124
122
|
id: string;
|
|
125
123
|
createdAt: string;
|
|
126
124
|
stableId: string;
|
|
125
|
+
width: number | null;
|
|
126
|
+
height: number | null;
|
|
127
127
|
userId: string | null;
|
|
128
128
|
url?: string | undefined;
|
|
129
129
|
size?: number | undefined;
|
|
130
130
|
contentType?: string | undefined;
|
|
131
|
+
mode?: "immutable" | "mutable" | undefined;
|
|
132
|
+
version?: number | undefined;
|
|
131
133
|
}[];
|
|
132
134
|
loading: boolean;
|
|
133
135
|
};
|
|
134
136
|
declare function useNoyaAssetsByFileVersionId(fileVersionId: string): {
|
|
135
137
|
assets: {
|
|
136
|
-
width: number | null;
|
|
137
|
-
height: number | null;
|
|
138
138
|
id: string;
|
|
139
139
|
createdAt: string;
|
|
140
140
|
stableId: string;
|
|
141
|
+
width: number | null;
|
|
142
|
+
height: number | null;
|
|
141
143
|
userId: string | null;
|
|
142
144
|
url?: string | undefined;
|
|
143
145
|
size?: number | undefined;
|
|
144
146
|
contentType?: string | undefined;
|
|
147
|
+
mode?: "immutable" | "mutable" | undefined;
|
|
148
|
+
version?: number | undefined;
|
|
145
149
|
}[];
|
|
146
150
|
loading: boolean;
|
|
147
151
|
};
|
|
@@ -179,8 +183,8 @@ declare function useNoyaBilling(): {
|
|
|
179
183
|
id: string;
|
|
180
184
|
created: string;
|
|
181
185
|
price: {
|
|
182
|
-
type: string;
|
|
183
186
|
id: string;
|
|
187
|
+
type: string;
|
|
184
188
|
active: boolean;
|
|
185
189
|
currency: string;
|
|
186
190
|
nickname: string | null;
|
|
@@ -212,8 +216,8 @@ declare function useNoyaBilling(): {
|
|
|
212
216
|
active: boolean;
|
|
213
217
|
created: string;
|
|
214
218
|
prices: {
|
|
215
|
-
type: string;
|
|
216
219
|
id: string;
|
|
220
|
+
type: string;
|
|
217
221
|
active: boolean;
|
|
218
222
|
currency: string;
|
|
219
223
|
nickname: string | null;
|
|
@@ -246,8 +250,8 @@ declare function useNoyaEmailLists(): {
|
|
|
246
250
|
declare function useNoyaUserData(): {
|
|
247
251
|
userData: {
|
|
248
252
|
metadata: {
|
|
249
|
-
key: string;
|
|
250
253
|
url: string;
|
|
254
|
+
key: string;
|
|
251
255
|
value?: unknown;
|
|
252
256
|
}[];
|
|
253
257
|
emailLists: {
|
|
@@ -265,8 +269,8 @@ declare function useNoyaUserData(): {
|
|
|
265
269
|
declare function useOptionalNoyaUserData(): {
|
|
266
270
|
userData: {
|
|
267
271
|
metadata: {
|
|
268
|
-
key: string;
|
|
269
272
|
url: string;
|
|
273
|
+
key: string;
|
|
270
274
|
value?: unknown;
|
|
271
275
|
}[];
|
|
272
276
|
emailLists: {
|
|
@@ -283,44 +287,6 @@ declare function useOptionalNoyaUserData(): {
|
|
|
283
287
|
};
|
|
284
288
|
declare function useIsBeta(): boolean;
|
|
285
289
|
declare function useMetadata<T extends NoyaAPI.Json>(key: string): T | undefined;
|
|
286
|
-
declare function useGeneratedComponentNames(name: string): {
|
|
287
|
-
names: {
|
|
288
|
-
name: string;
|
|
289
|
-
}[];
|
|
290
|
-
loading: boolean;
|
|
291
|
-
};
|
|
292
|
-
declare function useGeneratedComponentDescriptions(): {
|
|
293
|
-
descriptions: Record<string, string>;
|
|
294
|
-
loading: Record<string, boolean>;
|
|
295
|
-
};
|
|
296
|
-
declare function useGeneratedComponentDescription(name: string): {
|
|
297
|
-
description: string | undefined;
|
|
298
|
-
loading: boolean;
|
|
299
|
-
};
|
|
300
|
-
declare function useRandomImages(): {
|
|
301
|
-
images: Record<string, {
|
|
302
|
-
metadata: {
|
|
303
|
-
color: string;
|
|
304
|
-
};
|
|
305
|
-
url: string;
|
|
306
|
-
user: {
|
|
307
|
-
name: string;
|
|
308
|
-
url: string;
|
|
309
|
-
};
|
|
310
|
-
source: {
|
|
311
|
-
name: string;
|
|
312
|
-
url: string;
|
|
313
|
-
};
|
|
314
|
-
}>;
|
|
315
|
-
loading: Record<string, boolean>;
|
|
316
|
-
};
|
|
317
|
-
declare function useRandomIcons(): {
|
|
318
|
-
icons: Record<string, {
|
|
319
|
-
url: string;
|
|
320
|
-
data: string;
|
|
321
|
-
}>;
|
|
322
|
-
loading: Record<string, boolean>;
|
|
323
|
-
};
|
|
324
290
|
declare function useNetworkRequests(): {
|
|
325
291
|
id: number;
|
|
326
292
|
method: string;
|
|
@@ -333,12 +299,6 @@ declare function useNetworkRequests(): {
|
|
|
333
299
|
attempt: number;
|
|
334
300
|
abortStream: () => void;
|
|
335
301
|
}[];
|
|
336
|
-
type EnhancedGeneratedPageName = NoyaAPI.GeneratedName & {
|
|
337
|
-
index: number;
|
|
338
|
-
type: "suggestion";
|
|
339
|
-
};
|
|
340
|
-
declare function useGeneratedPageNames(): EnhancedGeneratedPageName[];
|
|
341
|
-
declare function useGeneratedPageComponentNames(): EnhancedGeneratedPageName[];
|
|
342
302
|
declare function useNoyaSites(): {
|
|
343
303
|
sites: {
|
|
344
304
|
url?: string | null | undefined;
|
|
@@ -473,10 +433,10 @@ declare function useNoyaTemplates(): {
|
|
|
473
433
|
createdAt: string;
|
|
474
434
|
fileId: string | null;
|
|
475
435
|
userId: string;
|
|
436
|
+
version: number;
|
|
476
437
|
toolId: string;
|
|
477
438
|
description: string | null;
|
|
478
439
|
updatedAt: string;
|
|
479
|
-
version: number;
|
|
480
440
|
icon: string | null;
|
|
481
441
|
access: "private" | "read" | "write";
|
|
482
442
|
dataCid: string;
|
|
@@ -558,4 +518,4 @@ declare function useActivityEventsList<Config extends SelectConfig<ActivityEvent
|
|
|
558
518
|
}, config?: Config) => void;
|
|
559
519
|
};
|
|
560
520
|
|
|
561
|
-
export {
|
|
521
|
+
export { NoyaAPIProvider, useActivityEventsList, useFileList, useFileListItem, useIsBeta, useMetadata, useNetworkRequests, useNoyaAssets, useNoyaAssetsByFileVersionId, useNoyaBilling, useNoyaClient, useNoyaClientOrFallback, useNoyaCreators, useNoyaDeployments, useNoyaEmailLists, useNoyaMultiplayerRoomToken, useNoyaOwnedFileVersions, useNoyaPersonalAccessTokens, useNoyaSecrets, useNoyaSession, useNoyaSite, useNoyaSites, useNoyaTags, useNoyaTemplates, useNoyaTools, useNoyaUserData, useNoyaWorkspaceBilling, useNoyaWorkspaceInvitations, useNoyaWorkspaces, useOptionalNoyaClient, useOptionalNoyaCreators, useOptionalNoyaSession, useOptionalNoyaTags, useOptionalNoyaTools, useOptionalNoyaUserData, useResourcesList, useTable, useUser };
|