@noya-app/noya-api-client-react 0.1.44 → 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 +15 -0
- package/dist/index.d.mts +16 -54
- package/dist/index.d.ts +16 -54
- package/dist/index.js +968 -495
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +911 -431
- 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
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
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
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @noya-app/noya-api-client-react
|
|
2
2
|
|
|
3
|
+
## 0.1.46
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3128375: Update packages
|
|
8
|
+
- Updated dependencies [3128375]
|
|
9
|
+
- @noya-app/noya-api@0.1.46
|
|
10
|
+
|
|
11
|
+
## 0.1.45
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [6224f36]
|
|
16
|
+
- @noya-app/noya-api@0.1.45
|
|
17
|
+
|
|
3
18
|
## 0.1.44
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -17,6 +17,7 @@ declare function useNoyaClientOrFallback(): NoyaAPIContextValue;
|
|
|
17
17
|
|
|
18
18
|
declare function useNoyaTools(initial?: NoyaAPI.Tool[]): {
|
|
19
19
|
tools: {
|
|
20
|
+
pinned?: boolean | undefined;
|
|
20
21
|
addedById?: string | undefined;
|
|
21
22
|
id: string;
|
|
22
23
|
name: string;
|
|
@@ -49,6 +50,7 @@ declare function useNoyaTools(initial?: NoyaAPI.Tool[]): {
|
|
|
49
50
|
};
|
|
50
51
|
declare function useOptionalNoyaTools(initial?: NoyaAPI.Tool[]): {
|
|
51
52
|
tools: {
|
|
53
|
+
pinned?: boolean | undefined;
|
|
52
54
|
addedById?: string | undefined;
|
|
53
55
|
id: string;
|
|
54
56
|
name: string;
|
|
@@ -117,29 +119,33 @@ declare function useOptionalNoyaCreators(): {
|
|
|
117
119
|
};
|
|
118
120
|
declare function useNoyaAssets(fileId?: string): {
|
|
119
121
|
assets: {
|
|
120
|
-
width: number | null;
|
|
121
|
-
height: number | null;
|
|
122
122
|
id: string;
|
|
123
123
|
createdAt: string;
|
|
124
124
|
stableId: string;
|
|
125
|
+
width: number | null;
|
|
126
|
+
height: number | null;
|
|
125
127
|
userId: string | null;
|
|
126
128
|
url?: string | undefined;
|
|
127
129
|
size?: number | undefined;
|
|
128
130
|
contentType?: string | undefined;
|
|
131
|
+
mode?: "immutable" | "mutable" | undefined;
|
|
132
|
+
version?: number | undefined;
|
|
129
133
|
}[];
|
|
130
134
|
loading: boolean;
|
|
131
135
|
};
|
|
132
136
|
declare function useNoyaAssetsByFileVersionId(fileVersionId: string): {
|
|
133
137
|
assets: {
|
|
134
|
-
width: number | null;
|
|
135
|
-
height: number | null;
|
|
136
138
|
id: string;
|
|
137
139
|
createdAt: string;
|
|
138
140
|
stableId: string;
|
|
141
|
+
width: number | null;
|
|
142
|
+
height: number | null;
|
|
139
143
|
userId: string | null;
|
|
140
144
|
url?: string | undefined;
|
|
141
145
|
size?: number | undefined;
|
|
142
146
|
contentType?: string | undefined;
|
|
147
|
+
mode?: "immutable" | "mutable" | undefined;
|
|
148
|
+
version?: number | undefined;
|
|
143
149
|
}[];
|
|
144
150
|
loading: boolean;
|
|
145
151
|
};
|
|
@@ -177,8 +183,8 @@ declare function useNoyaBilling(): {
|
|
|
177
183
|
id: string;
|
|
178
184
|
created: string;
|
|
179
185
|
price: {
|
|
180
|
-
type: string;
|
|
181
186
|
id: string;
|
|
187
|
+
type: string;
|
|
182
188
|
active: boolean;
|
|
183
189
|
currency: string;
|
|
184
190
|
nickname: string | null;
|
|
@@ -210,8 +216,8 @@ declare function useNoyaBilling(): {
|
|
|
210
216
|
active: boolean;
|
|
211
217
|
created: string;
|
|
212
218
|
prices: {
|
|
213
|
-
type: string;
|
|
214
219
|
id: string;
|
|
220
|
+
type: string;
|
|
215
221
|
active: boolean;
|
|
216
222
|
currency: string;
|
|
217
223
|
nickname: string | null;
|
|
@@ -244,8 +250,8 @@ declare function useNoyaEmailLists(): {
|
|
|
244
250
|
declare function useNoyaUserData(): {
|
|
245
251
|
userData: {
|
|
246
252
|
metadata: {
|
|
247
|
-
key: string;
|
|
248
253
|
url: string;
|
|
254
|
+
key: string;
|
|
249
255
|
value?: unknown;
|
|
250
256
|
}[];
|
|
251
257
|
emailLists: {
|
|
@@ -263,8 +269,8 @@ declare function useNoyaUserData(): {
|
|
|
263
269
|
declare function useOptionalNoyaUserData(): {
|
|
264
270
|
userData: {
|
|
265
271
|
metadata: {
|
|
266
|
-
key: string;
|
|
267
272
|
url: string;
|
|
273
|
+
key: string;
|
|
268
274
|
value?: unknown;
|
|
269
275
|
}[];
|
|
270
276
|
emailLists: {
|
|
@@ -281,44 +287,6 @@ declare function useOptionalNoyaUserData(): {
|
|
|
281
287
|
};
|
|
282
288
|
declare function useIsBeta(): boolean;
|
|
283
289
|
declare function useMetadata<T extends NoyaAPI.Json>(key: string): T | undefined;
|
|
284
|
-
declare function useGeneratedComponentNames(name: string): {
|
|
285
|
-
names: {
|
|
286
|
-
name: string;
|
|
287
|
-
}[];
|
|
288
|
-
loading: boolean;
|
|
289
|
-
};
|
|
290
|
-
declare function useGeneratedComponentDescriptions(): {
|
|
291
|
-
descriptions: Record<string, string>;
|
|
292
|
-
loading: Record<string, boolean>;
|
|
293
|
-
};
|
|
294
|
-
declare function useGeneratedComponentDescription(name: string): {
|
|
295
|
-
description: string | undefined;
|
|
296
|
-
loading: boolean;
|
|
297
|
-
};
|
|
298
|
-
declare function useRandomImages(): {
|
|
299
|
-
images: Record<string, {
|
|
300
|
-
metadata: {
|
|
301
|
-
color: string;
|
|
302
|
-
};
|
|
303
|
-
url: string;
|
|
304
|
-
user: {
|
|
305
|
-
name: string;
|
|
306
|
-
url: string;
|
|
307
|
-
};
|
|
308
|
-
source: {
|
|
309
|
-
name: string;
|
|
310
|
-
url: string;
|
|
311
|
-
};
|
|
312
|
-
}>;
|
|
313
|
-
loading: Record<string, boolean>;
|
|
314
|
-
};
|
|
315
|
-
declare function useRandomIcons(): {
|
|
316
|
-
icons: Record<string, {
|
|
317
|
-
url: string;
|
|
318
|
-
data: string;
|
|
319
|
-
}>;
|
|
320
|
-
loading: Record<string, boolean>;
|
|
321
|
-
};
|
|
322
290
|
declare function useNetworkRequests(): {
|
|
323
291
|
id: number;
|
|
324
292
|
method: string;
|
|
@@ -331,12 +299,6 @@ declare function useNetworkRequests(): {
|
|
|
331
299
|
attempt: number;
|
|
332
300
|
abortStream: () => void;
|
|
333
301
|
}[];
|
|
334
|
-
type EnhancedGeneratedPageName = NoyaAPI.GeneratedName & {
|
|
335
|
-
index: number;
|
|
336
|
-
type: "suggestion";
|
|
337
|
-
};
|
|
338
|
-
declare function useGeneratedPageNames(): EnhancedGeneratedPageName[];
|
|
339
|
-
declare function useGeneratedPageComponentNames(): EnhancedGeneratedPageName[];
|
|
340
302
|
declare function useNoyaSites(): {
|
|
341
303
|
sites: {
|
|
342
304
|
url?: string | null | undefined;
|
|
@@ -471,10 +433,10 @@ declare function useNoyaTemplates(): {
|
|
|
471
433
|
createdAt: string;
|
|
472
434
|
fileId: string | null;
|
|
473
435
|
userId: string;
|
|
436
|
+
version: number;
|
|
474
437
|
toolId: string;
|
|
475
438
|
description: string | null;
|
|
476
439
|
updatedAt: string;
|
|
477
|
-
version: number;
|
|
478
440
|
icon: string | null;
|
|
479
441
|
access: "private" | "read" | "write";
|
|
480
442
|
dataCid: string;
|
|
@@ -556,4 +518,4 @@ declare function useActivityEventsList<Config extends SelectConfig<ActivityEvent
|
|
|
556
518
|
}, config?: Config) => void;
|
|
557
519
|
};
|
|
558
520
|
|
|
559
|
-
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
|
@@ -17,6 +17,7 @@ declare function useNoyaClientOrFallback(): NoyaAPIContextValue;
|
|
|
17
17
|
|
|
18
18
|
declare function useNoyaTools(initial?: NoyaAPI.Tool[]): {
|
|
19
19
|
tools: {
|
|
20
|
+
pinned?: boolean | undefined;
|
|
20
21
|
addedById?: string | undefined;
|
|
21
22
|
id: string;
|
|
22
23
|
name: string;
|
|
@@ -49,6 +50,7 @@ declare function useNoyaTools(initial?: NoyaAPI.Tool[]): {
|
|
|
49
50
|
};
|
|
50
51
|
declare function useOptionalNoyaTools(initial?: NoyaAPI.Tool[]): {
|
|
51
52
|
tools: {
|
|
53
|
+
pinned?: boolean | undefined;
|
|
52
54
|
addedById?: string | undefined;
|
|
53
55
|
id: string;
|
|
54
56
|
name: string;
|
|
@@ -117,29 +119,33 @@ declare function useOptionalNoyaCreators(): {
|
|
|
117
119
|
};
|
|
118
120
|
declare function useNoyaAssets(fileId?: string): {
|
|
119
121
|
assets: {
|
|
120
|
-
width: number | null;
|
|
121
|
-
height: number | null;
|
|
122
122
|
id: string;
|
|
123
123
|
createdAt: string;
|
|
124
124
|
stableId: string;
|
|
125
|
+
width: number | null;
|
|
126
|
+
height: number | null;
|
|
125
127
|
userId: string | null;
|
|
126
128
|
url?: string | undefined;
|
|
127
129
|
size?: number | undefined;
|
|
128
130
|
contentType?: string | undefined;
|
|
131
|
+
mode?: "immutable" | "mutable" | undefined;
|
|
132
|
+
version?: number | undefined;
|
|
129
133
|
}[];
|
|
130
134
|
loading: boolean;
|
|
131
135
|
};
|
|
132
136
|
declare function useNoyaAssetsByFileVersionId(fileVersionId: string): {
|
|
133
137
|
assets: {
|
|
134
|
-
width: number | null;
|
|
135
|
-
height: number | null;
|
|
136
138
|
id: string;
|
|
137
139
|
createdAt: string;
|
|
138
140
|
stableId: string;
|
|
141
|
+
width: number | null;
|
|
142
|
+
height: number | null;
|
|
139
143
|
userId: string | null;
|
|
140
144
|
url?: string | undefined;
|
|
141
145
|
size?: number | undefined;
|
|
142
146
|
contentType?: string | undefined;
|
|
147
|
+
mode?: "immutable" | "mutable" | undefined;
|
|
148
|
+
version?: number | undefined;
|
|
143
149
|
}[];
|
|
144
150
|
loading: boolean;
|
|
145
151
|
};
|
|
@@ -177,8 +183,8 @@ declare function useNoyaBilling(): {
|
|
|
177
183
|
id: string;
|
|
178
184
|
created: string;
|
|
179
185
|
price: {
|
|
180
|
-
type: string;
|
|
181
186
|
id: string;
|
|
187
|
+
type: string;
|
|
182
188
|
active: boolean;
|
|
183
189
|
currency: string;
|
|
184
190
|
nickname: string | null;
|
|
@@ -210,8 +216,8 @@ declare function useNoyaBilling(): {
|
|
|
210
216
|
active: boolean;
|
|
211
217
|
created: string;
|
|
212
218
|
prices: {
|
|
213
|
-
type: string;
|
|
214
219
|
id: string;
|
|
220
|
+
type: string;
|
|
215
221
|
active: boolean;
|
|
216
222
|
currency: string;
|
|
217
223
|
nickname: string | null;
|
|
@@ -244,8 +250,8 @@ declare function useNoyaEmailLists(): {
|
|
|
244
250
|
declare function useNoyaUserData(): {
|
|
245
251
|
userData: {
|
|
246
252
|
metadata: {
|
|
247
|
-
key: string;
|
|
248
253
|
url: string;
|
|
254
|
+
key: string;
|
|
249
255
|
value?: unknown;
|
|
250
256
|
}[];
|
|
251
257
|
emailLists: {
|
|
@@ -263,8 +269,8 @@ declare function useNoyaUserData(): {
|
|
|
263
269
|
declare function useOptionalNoyaUserData(): {
|
|
264
270
|
userData: {
|
|
265
271
|
metadata: {
|
|
266
|
-
key: string;
|
|
267
272
|
url: string;
|
|
273
|
+
key: string;
|
|
268
274
|
value?: unknown;
|
|
269
275
|
}[];
|
|
270
276
|
emailLists: {
|
|
@@ -281,44 +287,6 @@ declare function useOptionalNoyaUserData(): {
|
|
|
281
287
|
};
|
|
282
288
|
declare function useIsBeta(): boolean;
|
|
283
289
|
declare function useMetadata<T extends NoyaAPI.Json>(key: string): T | undefined;
|
|
284
|
-
declare function useGeneratedComponentNames(name: string): {
|
|
285
|
-
names: {
|
|
286
|
-
name: string;
|
|
287
|
-
}[];
|
|
288
|
-
loading: boolean;
|
|
289
|
-
};
|
|
290
|
-
declare function useGeneratedComponentDescriptions(): {
|
|
291
|
-
descriptions: Record<string, string>;
|
|
292
|
-
loading: Record<string, boolean>;
|
|
293
|
-
};
|
|
294
|
-
declare function useGeneratedComponentDescription(name: string): {
|
|
295
|
-
description: string | undefined;
|
|
296
|
-
loading: boolean;
|
|
297
|
-
};
|
|
298
|
-
declare function useRandomImages(): {
|
|
299
|
-
images: Record<string, {
|
|
300
|
-
metadata: {
|
|
301
|
-
color: string;
|
|
302
|
-
};
|
|
303
|
-
url: string;
|
|
304
|
-
user: {
|
|
305
|
-
name: string;
|
|
306
|
-
url: string;
|
|
307
|
-
};
|
|
308
|
-
source: {
|
|
309
|
-
name: string;
|
|
310
|
-
url: string;
|
|
311
|
-
};
|
|
312
|
-
}>;
|
|
313
|
-
loading: Record<string, boolean>;
|
|
314
|
-
};
|
|
315
|
-
declare function useRandomIcons(): {
|
|
316
|
-
icons: Record<string, {
|
|
317
|
-
url: string;
|
|
318
|
-
data: string;
|
|
319
|
-
}>;
|
|
320
|
-
loading: Record<string, boolean>;
|
|
321
|
-
};
|
|
322
290
|
declare function useNetworkRequests(): {
|
|
323
291
|
id: number;
|
|
324
292
|
method: string;
|
|
@@ -331,12 +299,6 @@ declare function useNetworkRequests(): {
|
|
|
331
299
|
attempt: number;
|
|
332
300
|
abortStream: () => void;
|
|
333
301
|
}[];
|
|
334
|
-
type EnhancedGeneratedPageName = NoyaAPI.GeneratedName & {
|
|
335
|
-
index: number;
|
|
336
|
-
type: "suggestion";
|
|
337
|
-
};
|
|
338
|
-
declare function useGeneratedPageNames(): EnhancedGeneratedPageName[];
|
|
339
|
-
declare function useGeneratedPageComponentNames(): EnhancedGeneratedPageName[];
|
|
340
302
|
declare function useNoyaSites(): {
|
|
341
303
|
sites: {
|
|
342
304
|
url?: string | null | undefined;
|
|
@@ -471,10 +433,10 @@ declare function useNoyaTemplates(): {
|
|
|
471
433
|
createdAt: string;
|
|
472
434
|
fileId: string | null;
|
|
473
435
|
userId: string;
|
|
436
|
+
version: number;
|
|
474
437
|
toolId: string;
|
|
475
438
|
description: string | null;
|
|
476
439
|
updatedAt: string;
|
|
477
|
-
version: number;
|
|
478
440
|
icon: string | null;
|
|
479
441
|
access: "private" | "read" | "write";
|
|
480
442
|
dataCid: string;
|
|
@@ -556,4 +518,4 @@ declare function useActivityEventsList<Config extends SelectConfig<ActivityEvent
|
|
|
556
518
|
}, config?: Config) => void;
|
|
557
519
|
};
|
|
558
520
|
|
|
559
|
-
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 };
|