@corsair-dev/figma 0.1.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.
Files changed (65) hide show
  1. package/LICENSE +191 -0
  2. package/dist/client.d.ts +13 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/endpoints/activityLogs.d.ts +3 -0
  5. package/dist/endpoints/activityLogs.d.ts.map +1 -0
  6. package/dist/endpoints/comments.d.ts +8 -0
  7. package/dist/endpoints/comments.d.ts.map +1 -0
  8. package/dist/endpoints/components.d.ts +8 -0
  9. package/dist/endpoints/components.d.ts.map +1 -0
  10. package/dist/endpoints/designTools.d.ts +7 -0
  11. package/dist/endpoints/designTools.d.ts.map +1 -0
  12. package/dist/endpoints/devResources.d.ts +6 -0
  13. package/dist/endpoints/devResources.d.ts.map +1 -0
  14. package/dist/endpoints/example.d.ts +3 -0
  15. package/dist/endpoints/example.d.ts.map +1 -0
  16. package/dist/endpoints/files.d.ts +10 -0
  17. package/dist/endpoints/files.d.ts.map +1 -0
  18. package/dist/endpoints/index.d.ts +717 -0
  19. package/dist/endpoints/index.d.ts.map +1 -0
  20. package/dist/endpoints/libraryAnalytics.d.ts +8 -0
  21. package/dist/endpoints/libraryAnalytics.d.ts.map +1 -0
  22. package/dist/endpoints/payments.d.ts +3 -0
  23. package/dist/endpoints/payments.d.ts.map +1 -0
  24. package/dist/endpoints/projects.d.ts +3 -0
  25. package/dist/endpoints/projects.d.ts.map +1 -0
  26. package/dist/endpoints/styles.d.ts +4 -0
  27. package/dist/endpoints/styles.d.ts.map +1 -0
  28. package/dist/endpoints/types.d.ts +5643 -0
  29. package/dist/endpoints/types.d.ts.map +1 -0
  30. package/dist/endpoints/users.d.ts +3 -0
  31. package/dist/endpoints/users.d.ts.map +1 -0
  32. package/dist/endpoints/variables.d.ts +5 -0
  33. package/dist/endpoints/variables.d.ts.map +1 -0
  34. package/dist/endpoints/webhooks.d.ts +8 -0
  35. package/dist/endpoints/webhooks.d.ts.map +1 -0
  36. package/dist/error-handlers.d.ts +40 -0
  37. package/dist/error-handlers.d.ts.map +1 -0
  38. package/dist/index.d.ts +3035 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +13 -0
  41. package/dist/schema/database.d.ts +168 -0
  42. package/dist/schema/database.d.ts.map +1 -0
  43. package/dist/schema/index.d.ts +167 -0
  44. package/dist/schema/index.d.ts.map +1 -0
  45. package/dist/tsup.config.d.ts +3 -0
  46. package/dist/tsup.config.d.ts.map +1 -0
  47. package/dist/webhooks/example.d.ts +3 -0
  48. package/dist/webhooks/example.d.ts.map +1 -0
  49. package/dist/webhooks/fileComment.d.ts +3 -0
  50. package/dist/webhooks/fileComment.d.ts.map +1 -0
  51. package/dist/webhooks/fileDelete.d.ts +3 -0
  52. package/dist/webhooks/fileDelete.d.ts.map +1 -0
  53. package/dist/webhooks/fileUpdate.d.ts +3 -0
  54. package/dist/webhooks/fileUpdate.d.ts.map +1 -0
  55. package/dist/webhooks/fileVersionUpdate.d.ts +3 -0
  56. package/dist/webhooks/fileVersionUpdate.d.ts.map +1 -0
  57. package/dist/webhooks/index.d.ts +38 -0
  58. package/dist/webhooks/index.d.ts.map +1 -0
  59. package/dist/webhooks/libraryPublish.d.ts +3 -0
  60. package/dist/webhooks/libraryPublish.d.ts.map +1 -0
  61. package/dist/webhooks/ping.d.ts +3 -0
  62. package/dist/webhooks/ping.d.ts.map +1 -0
  63. package/dist/webhooks/types.d.ts +488 -0
  64. package/dist/webhooks/types.d.ts.map +1 -0
  65. package/package.json +40 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ping.d.ts","sourceRoot":"","sources":["../../webhooks/ping.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAGxC,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,MAAM,CAmCtC,CAAC"}
@@ -0,0 +1,488 @@
1
+ import { z } from 'zod';
2
+ import type { CorsairWebhookMatcher, WebhookRequest } from 'corsair/core';
3
+ export interface FigmaWebhookPayload {
4
+ event_type: string;
5
+ timestamp: string;
6
+ webhook_id: string;
7
+ passcode?: string;
8
+ }
9
+ export interface FigmaFileCommentEvent extends FigmaWebhookPayload {
10
+ event_type: 'FILE_COMMENT';
11
+ file_key: string;
12
+ file_name: string;
13
+ comment: {
14
+ id: string;
15
+ message?: string;
16
+ created_at?: string;
17
+ user?: {
18
+ id: string;
19
+ handle?: string;
20
+ img_url?: string;
21
+ };
22
+ };
23
+ }
24
+ export interface FigmaFileUpdateEvent extends FigmaWebhookPayload {
25
+ event_type: 'FILE_UPDATE';
26
+ file_key: string;
27
+ file_name: string;
28
+ passedAt?: string;
29
+ }
30
+ export interface FigmaFileDeleteEvent extends FigmaWebhookPayload {
31
+ event_type: 'FILE_DELETE';
32
+ file_key: string;
33
+ file_name: string;
34
+ }
35
+ export interface FigmaFileVersionUpdateEvent extends FigmaWebhookPayload {
36
+ event_type: 'FILE_VERSION_UPDATE';
37
+ file_key: string;
38
+ file_name: string;
39
+ version_id: string;
40
+ label?: string;
41
+ description?: string;
42
+ created_components?: string[];
43
+ modified_components?: string[];
44
+ created_styles?: string[];
45
+ modified_styles?: string[];
46
+ }
47
+ export interface FigmaLibraryPublishEvent extends FigmaWebhookPayload {
48
+ event_type: 'LIBRARY_PUBLISH';
49
+ file_key: string;
50
+ file_name: string;
51
+ description?: string;
52
+ }
53
+ export interface FigmaPingEvent extends FigmaWebhookPayload {
54
+ event_type: 'PING';
55
+ file_key?: string;
56
+ }
57
+ export type FigmaWebhookOutputs = {
58
+ fileComment: FigmaFileCommentEvent;
59
+ fileUpdate: FigmaFileUpdateEvent;
60
+ fileDelete: FigmaFileDeleteEvent;
61
+ fileVersionUpdate: FigmaFileVersionUpdateEvent;
62
+ libraryPublish: FigmaLibraryPublishEvent;
63
+ ping: FigmaPingEvent;
64
+ };
65
+ export declare function createFigmaEventMatch(eventType: string): CorsairWebhookMatcher;
66
+ export declare function verifyFigmaWebhookPasscode(request: WebhookRequest<unknown>, passcode: string): {
67
+ valid: boolean;
68
+ error?: string;
69
+ };
70
+ export declare const FigmaFileCommentPayloadSchema: z.ZodObject<{
71
+ event_type: z.ZodLiteral<"FILE_COMMENT">;
72
+ timestamp: z.ZodString;
73
+ webhook_id: z.ZodString;
74
+ passcode: z.ZodOptional<z.ZodString>;
75
+ file_key: z.ZodString;
76
+ file_name: z.ZodString;
77
+ comment: z.ZodObject<{
78
+ id: z.ZodString;
79
+ message: z.ZodOptional<z.ZodString>;
80
+ created_at: z.ZodOptional<z.ZodString>;
81
+ user: z.ZodOptional<z.ZodObject<{
82
+ id: z.ZodString;
83
+ handle: z.ZodOptional<z.ZodString>;
84
+ img_url: z.ZodOptional<z.ZodString>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ id: string;
87
+ handle?: string | undefined;
88
+ img_url?: string | undefined;
89
+ }, {
90
+ id: string;
91
+ handle?: string | undefined;
92
+ img_url?: string | undefined;
93
+ }>>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ id: string;
96
+ created_at?: string | undefined;
97
+ message?: string | undefined;
98
+ user?: {
99
+ id: string;
100
+ handle?: string | undefined;
101
+ img_url?: string | undefined;
102
+ } | undefined;
103
+ }, {
104
+ id: string;
105
+ created_at?: string | undefined;
106
+ message?: string | undefined;
107
+ user?: {
108
+ id: string;
109
+ handle?: string | undefined;
110
+ img_url?: string | undefined;
111
+ } | undefined;
112
+ }>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ event_type: "FILE_COMMENT";
115
+ file_key: string;
116
+ webhook_id: string;
117
+ timestamp: string;
118
+ file_name: string;
119
+ comment: {
120
+ id: string;
121
+ created_at?: string | undefined;
122
+ message?: string | undefined;
123
+ user?: {
124
+ id: string;
125
+ handle?: string | undefined;
126
+ img_url?: string | undefined;
127
+ } | undefined;
128
+ };
129
+ passcode?: string | undefined;
130
+ }, {
131
+ event_type: "FILE_COMMENT";
132
+ file_key: string;
133
+ webhook_id: string;
134
+ timestamp: string;
135
+ file_name: string;
136
+ comment: {
137
+ id: string;
138
+ created_at?: string | undefined;
139
+ message?: string | undefined;
140
+ user?: {
141
+ id: string;
142
+ handle?: string | undefined;
143
+ img_url?: string | undefined;
144
+ } | undefined;
145
+ };
146
+ passcode?: string | undefined;
147
+ }>;
148
+ export declare const FigmaFileUpdatePayloadSchema: z.ZodObject<{
149
+ event_type: z.ZodLiteral<"FILE_UPDATE">;
150
+ timestamp: z.ZodString;
151
+ webhook_id: z.ZodString;
152
+ passcode: z.ZodOptional<z.ZodString>;
153
+ file_key: z.ZodString;
154
+ file_name: z.ZodString;
155
+ }, "strip", z.ZodTypeAny, {
156
+ event_type: "FILE_UPDATE";
157
+ file_key: string;
158
+ webhook_id: string;
159
+ timestamp: string;
160
+ file_name: string;
161
+ passcode?: string | undefined;
162
+ }, {
163
+ event_type: "FILE_UPDATE";
164
+ file_key: string;
165
+ webhook_id: string;
166
+ timestamp: string;
167
+ file_name: string;
168
+ passcode?: string | undefined;
169
+ }>;
170
+ export declare const FigmaFileDeletePayloadSchema: z.ZodObject<{
171
+ event_type: z.ZodLiteral<"FILE_DELETE">;
172
+ timestamp: z.ZodString;
173
+ webhook_id: z.ZodString;
174
+ passcode: z.ZodOptional<z.ZodString>;
175
+ file_key: z.ZodString;
176
+ file_name: z.ZodString;
177
+ }, "strip", z.ZodTypeAny, {
178
+ event_type: "FILE_DELETE";
179
+ file_key: string;
180
+ webhook_id: string;
181
+ timestamp: string;
182
+ file_name: string;
183
+ passcode?: string | undefined;
184
+ }, {
185
+ event_type: "FILE_DELETE";
186
+ file_key: string;
187
+ webhook_id: string;
188
+ timestamp: string;
189
+ file_name: string;
190
+ passcode?: string | undefined;
191
+ }>;
192
+ export declare const FigmaFileVersionUpdatePayloadSchema: z.ZodObject<{
193
+ event_type: z.ZodLiteral<"FILE_VERSION_UPDATE">;
194
+ timestamp: z.ZodString;
195
+ webhook_id: z.ZodString;
196
+ passcode: z.ZodOptional<z.ZodString>;
197
+ file_key: z.ZodString;
198
+ file_name: z.ZodString;
199
+ version_id: z.ZodString;
200
+ label: z.ZodOptional<z.ZodString>;
201
+ description: z.ZodOptional<z.ZodString>;
202
+ created_components: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
203
+ modified_components: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
204
+ created_styles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
205
+ modified_styles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
206
+ }, "strip", z.ZodTypeAny, {
207
+ event_type: "FILE_VERSION_UPDATE";
208
+ file_key: string;
209
+ webhook_id: string;
210
+ timestamp: string;
211
+ file_name: string;
212
+ version_id: string;
213
+ description?: string | undefined;
214
+ passcode?: string | undefined;
215
+ label?: string | undefined;
216
+ created_components?: string[] | undefined;
217
+ modified_components?: string[] | undefined;
218
+ created_styles?: string[] | undefined;
219
+ modified_styles?: string[] | undefined;
220
+ }, {
221
+ event_type: "FILE_VERSION_UPDATE";
222
+ file_key: string;
223
+ webhook_id: string;
224
+ timestamp: string;
225
+ file_name: string;
226
+ version_id: string;
227
+ description?: string | undefined;
228
+ passcode?: string | undefined;
229
+ label?: string | undefined;
230
+ created_components?: string[] | undefined;
231
+ modified_components?: string[] | undefined;
232
+ created_styles?: string[] | undefined;
233
+ modified_styles?: string[] | undefined;
234
+ }>;
235
+ export declare const FigmaLibraryPublishPayloadSchema: z.ZodObject<{
236
+ event_type: z.ZodLiteral<"LIBRARY_PUBLISH">;
237
+ timestamp: z.ZodString;
238
+ webhook_id: z.ZodString;
239
+ passcode: z.ZodOptional<z.ZodString>;
240
+ file_key: z.ZodString;
241
+ file_name: z.ZodString;
242
+ description: z.ZodOptional<z.ZodString>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ event_type: "LIBRARY_PUBLISH";
245
+ file_key: string;
246
+ webhook_id: string;
247
+ timestamp: string;
248
+ file_name: string;
249
+ description?: string | undefined;
250
+ passcode?: string | undefined;
251
+ }, {
252
+ event_type: "LIBRARY_PUBLISH";
253
+ file_key: string;
254
+ webhook_id: string;
255
+ timestamp: string;
256
+ file_name: string;
257
+ description?: string | undefined;
258
+ passcode?: string | undefined;
259
+ }>;
260
+ export declare const FigmaPingPayloadSchema: z.ZodObject<{
261
+ event_type: z.ZodLiteral<"PING">;
262
+ timestamp: z.ZodString;
263
+ webhook_id: z.ZodString;
264
+ passcode: z.ZodOptional<z.ZodString>;
265
+ file_key: z.ZodOptional<z.ZodString>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ event_type: "PING";
268
+ webhook_id: string;
269
+ timestamp: string;
270
+ file_key?: string | undefined;
271
+ passcode?: string | undefined;
272
+ }, {
273
+ event_type: "PING";
274
+ webhook_id: string;
275
+ timestamp: string;
276
+ file_key?: string | undefined;
277
+ passcode?: string | undefined;
278
+ }>;
279
+ export declare const FigmaFileCommentEventSchema: z.ZodObject<{
280
+ event_type: z.ZodLiteral<"FILE_COMMENT">;
281
+ timestamp: z.ZodString;
282
+ webhook_id: z.ZodString;
283
+ passcode: z.ZodOptional<z.ZodString>;
284
+ file_key: z.ZodString;
285
+ file_name: z.ZodString;
286
+ comment: z.ZodObject<{
287
+ id: z.ZodString;
288
+ message: z.ZodOptional<z.ZodString>;
289
+ created_at: z.ZodOptional<z.ZodString>;
290
+ user: z.ZodOptional<z.ZodObject<{
291
+ id: z.ZodString;
292
+ handle: z.ZodOptional<z.ZodString>;
293
+ img_url: z.ZodOptional<z.ZodString>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ id: string;
296
+ handle?: string | undefined;
297
+ img_url?: string | undefined;
298
+ }, {
299
+ id: string;
300
+ handle?: string | undefined;
301
+ img_url?: string | undefined;
302
+ }>>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ id: string;
305
+ created_at?: string | undefined;
306
+ message?: string | undefined;
307
+ user?: {
308
+ id: string;
309
+ handle?: string | undefined;
310
+ img_url?: string | undefined;
311
+ } | undefined;
312
+ }, {
313
+ id: string;
314
+ created_at?: string | undefined;
315
+ message?: string | undefined;
316
+ user?: {
317
+ id: string;
318
+ handle?: string | undefined;
319
+ img_url?: string | undefined;
320
+ } | undefined;
321
+ }>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ event_type: "FILE_COMMENT";
324
+ file_key: string;
325
+ webhook_id: string;
326
+ timestamp: string;
327
+ file_name: string;
328
+ comment: {
329
+ id: string;
330
+ created_at?: string | undefined;
331
+ message?: string | undefined;
332
+ user?: {
333
+ id: string;
334
+ handle?: string | undefined;
335
+ img_url?: string | undefined;
336
+ } | undefined;
337
+ };
338
+ passcode?: string | undefined;
339
+ }, {
340
+ event_type: "FILE_COMMENT";
341
+ file_key: string;
342
+ webhook_id: string;
343
+ timestamp: string;
344
+ file_name: string;
345
+ comment: {
346
+ id: string;
347
+ created_at?: string | undefined;
348
+ message?: string | undefined;
349
+ user?: {
350
+ id: string;
351
+ handle?: string | undefined;
352
+ img_url?: string | undefined;
353
+ } | undefined;
354
+ };
355
+ passcode?: string | undefined;
356
+ }>;
357
+ export declare const FigmaFileUpdateEventSchema: z.ZodObject<{
358
+ event_type: z.ZodLiteral<"FILE_UPDATE">;
359
+ timestamp: z.ZodString;
360
+ webhook_id: z.ZodString;
361
+ passcode: z.ZodOptional<z.ZodString>;
362
+ file_key: z.ZodString;
363
+ file_name: z.ZodString;
364
+ }, "strip", z.ZodTypeAny, {
365
+ event_type: "FILE_UPDATE";
366
+ file_key: string;
367
+ webhook_id: string;
368
+ timestamp: string;
369
+ file_name: string;
370
+ passcode?: string | undefined;
371
+ }, {
372
+ event_type: "FILE_UPDATE";
373
+ file_key: string;
374
+ webhook_id: string;
375
+ timestamp: string;
376
+ file_name: string;
377
+ passcode?: string | undefined;
378
+ }>;
379
+ export declare const FigmaFileDeleteEventSchema: z.ZodObject<{
380
+ event_type: z.ZodLiteral<"FILE_DELETE">;
381
+ timestamp: z.ZodString;
382
+ webhook_id: z.ZodString;
383
+ passcode: z.ZodOptional<z.ZodString>;
384
+ file_key: z.ZodString;
385
+ file_name: z.ZodString;
386
+ }, "strip", z.ZodTypeAny, {
387
+ event_type: "FILE_DELETE";
388
+ file_key: string;
389
+ webhook_id: string;
390
+ timestamp: string;
391
+ file_name: string;
392
+ passcode?: string | undefined;
393
+ }, {
394
+ event_type: "FILE_DELETE";
395
+ file_key: string;
396
+ webhook_id: string;
397
+ timestamp: string;
398
+ file_name: string;
399
+ passcode?: string | undefined;
400
+ }>;
401
+ export declare const FigmaFileVersionUpdateEventSchema: z.ZodObject<{
402
+ event_type: z.ZodLiteral<"FILE_VERSION_UPDATE">;
403
+ timestamp: z.ZodString;
404
+ webhook_id: z.ZodString;
405
+ passcode: z.ZodOptional<z.ZodString>;
406
+ file_key: z.ZodString;
407
+ file_name: z.ZodString;
408
+ version_id: z.ZodString;
409
+ label: z.ZodOptional<z.ZodString>;
410
+ description: z.ZodOptional<z.ZodString>;
411
+ created_components: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
412
+ modified_components: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
413
+ created_styles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
414
+ modified_styles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
415
+ }, "strip", z.ZodTypeAny, {
416
+ event_type: "FILE_VERSION_UPDATE";
417
+ file_key: string;
418
+ webhook_id: string;
419
+ timestamp: string;
420
+ file_name: string;
421
+ version_id: string;
422
+ description?: string | undefined;
423
+ passcode?: string | undefined;
424
+ label?: string | undefined;
425
+ created_components?: string[] | undefined;
426
+ modified_components?: string[] | undefined;
427
+ created_styles?: string[] | undefined;
428
+ modified_styles?: string[] | undefined;
429
+ }, {
430
+ event_type: "FILE_VERSION_UPDATE";
431
+ file_key: string;
432
+ webhook_id: string;
433
+ timestamp: string;
434
+ file_name: string;
435
+ version_id: string;
436
+ description?: string | undefined;
437
+ passcode?: string | undefined;
438
+ label?: string | undefined;
439
+ created_components?: string[] | undefined;
440
+ modified_components?: string[] | undefined;
441
+ created_styles?: string[] | undefined;
442
+ modified_styles?: string[] | undefined;
443
+ }>;
444
+ export declare const FigmaLibraryPublishEventSchema: z.ZodObject<{
445
+ event_type: z.ZodLiteral<"LIBRARY_PUBLISH">;
446
+ timestamp: z.ZodString;
447
+ webhook_id: z.ZodString;
448
+ passcode: z.ZodOptional<z.ZodString>;
449
+ file_key: z.ZodString;
450
+ file_name: z.ZodString;
451
+ description: z.ZodOptional<z.ZodString>;
452
+ }, "strip", z.ZodTypeAny, {
453
+ event_type: "LIBRARY_PUBLISH";
454
+ file_key: string;
455
+ webhook_id: string;
456
+ timestamp: string;
457
+ file_name: string;
458
+ description?: string | undefined;
459
+ passcode?: string | undefined;
460
+ }, {
461
+ event_type: "LIBRARY_PUBLISH";
462
+ file_key: string;
463
+ webhook_id: string;
464
+ timestamp: string;
465
+ file_name: string;
466
+ description?: string | undefined;
467
+ passcode?: string | undefined;
468
+ }>;
469
+ export declare const FigmaPingEventSchema: z.ZodObject<{
470
+ event_type: z.ZodLiteral<"PING">;
471
+ timestamp: z.ZodString;
472
+ webhook_id: z.ZodString;
473
+ passcode: z.ZodOptional<z.ZodString>;
474
+ file_key: z.ZodOptional<z.ZodString>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ event_type: "PING";
477
+ webhook_id: string;
478
+ timestamp: string;
479
+ file_key?: string | undefined;
480
+ passcode?: string | undefined;
481
+ }, {
482
+ event_type: "PING";
483
+ webhook_id: string;
484
+ timestamp: string;
485
+ file_key?: string | undefined;
486
+ passcode?: string | undefined;
487
+ }>;
488
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../webhooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EACX,qBAAqB,EAErB,cAAc,EACd,MAAM,cAAc,CAAC;AAOtB,MAAM,WAAW,mBAAmB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,C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jC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAC;AACzE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAA+B,CAAC;AACvE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAA+B,CAAC;AACvE,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsC,CAAC;AACrF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;EAAmC,CAAC;AAC/E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAAyB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@corsair-dev/figma",
3
+ "version": "0.1.0",
4
+ "description": "Figma plugin for Corsair",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "dev-source": "./index.ts",
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ }
15
+ },
16
+ "peerDependencies": {
17
+ "corsair": ">=0.1.0",
18
+ "zod": "^3.0.0"
19
+ },
20
+ "devDependencies": {
21
+ "tsup": "^8.0.1",
22
+ "typescript": "^5.9.3",
23
+ "zod": "^3.25.76",
24
+ "corsair": "0.1.48"
25
+ },
26
+ "keywords": [
27
+ "corsair",
28
+ "figma",
29
+ "plugin"
30
+ ],
31
+ "author": "",
32
+ "license": "Apache-2.0",
33
+ "files": [
34
+ "dist"
35
+ ],
36
+ "scripts": {
37
+ "build": "rm -rf dist && tsc --build --force && tsup",
38
+ "typecheck": "tsc --noEmit"
39
+ }
40
+ }