@intlayer/design-system 4.0.5 → 4.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.
@@ -0,0 +1,701 @@
1
+ "use strict";
2
+ const client = require("@intlayer/config/client");
3
+ const fetcherOptions = {
4
+ method: "GET",
5
+ // Default HTTP method
6
+ headers: {
7
+ "Content-Type": "application/json"
8
+ // Default content type
9
+ },
10
+ credentials: "include"
11
+ // Include cookies in the request
12
+ };
13
+ const removeUndefined = (obj) => {
14
+ Object.keys(obj).forEach((key) => {
15
+ if (obj[key] === void 0) {
16
+ delete obj[key];
17
+ }
18
+ });
19
+ return obj;
20
+ };
21
+ const deepMerge = (objects) => objects.reduce((acc, obj) => {
22
+ const acc1 = acc ?? {};
23
+ const obj1 = removeUndefined(obj ?? {});
24
+ if (typeof acc1 === "object" && typeof obj1 === "object") {
25
+ return { ...acc1, ...obj1 };
26
+ }
27
+ return obj1 ?? acc1;
28
+ }, {});
29
+ const fetcher = async (url, ...options) => {
30
+ const { signal } = new AbortController();
31
+ let paramsString = "";
32
+ let bodyString = void 0;
33
+ const otherOptions = options.map(
34
+ ({ body, params: params2, headers, ...otherOptions2 }) => otherOptions2
35
+ );
36
+ const mergedOptions = deepMerge([fetcherOptions, ...otherOptions]);
37
+ const mergedHeaders = deepMerge([
38
+ fetcherOptions.headers,
39
+ ...options.map((option) => option.headers)
40
+ ]);
41
+ const params = deepMerge(options.map((option) => option.params));
42
+ const method = mergedOptions.method;
43
+ if (method !== "GET" && method !== "HEAD") {
44
+ const body = deepMerge(options.map((option) => option.body));
45
+ if (mergedHeaders?.["Content-Type"] === "application/x-www-form-urlencoded") {
46
+ bodyString = new URLSearchParams(
47
+ body
48
+ ).toString();
49
+ } else {
50
+ bodyString = JSON.stringify(body);
51
+ }
52
+ }
53
+ if (Object.entries(params).length > 0) {
54
+ paramsString = `?${new URLSearchParams(
55
+ params
56
+ ).toString()}`;
57
+ }
58
+ const formattedOptions = {
59
+ ...mergedOptions,
60
+ headers: mergedHeaders,
61
+ body: bodyString,
62
+ signal
63
+ };
64
+ const urlResult = `${url}${paramsString}`;
65
+ const response = await fetch(urlResult, formattedOptions);
66
+ if (!response.ok) {
67
+ const result = await response.json();
68
+ console.error(result);
69
+ throw new Error(JSON.stringify(result.error) ?? "An error occurred");
70
+ }
71
+ return await response.json();
72
+ };
73
+ const getAiAPI = (authAPIOptions = {}, intlayerConfig) => {
74
+ const { backendURL } = client.getConfiguration().editor;
75
+ const AI_API_ROUTE = `${backendURL}/api/ai`;
76
+ const auditContentDeclaration = async (body, otherOptions = {}) => await fetcher(
77
+ `${AI_API_ROUTE}/audit/content-declaration`,
78
+ authAPIOptions,
79
+ otherOptions,
80
+ {
81
+ method: "POST",
82
+ body
83
+ }
84
+ );
85
+ const auditContentDeclarationField = async (body, otherOptions = {}) => await fetcher(
86
+ `${AI_API_ROUTE}/audit/content-declaration/field`,
87
+ authAPIOptions,
88
+ otherOptions,
89
+ {
90
+ method: "POST",
91
+ body
92
+ }
93
+ );
94
+ const auditContentDeclarationMetadata = async (body, otherOptions = {}) => await fetcher(
95
+ `${AI_API_ROUTE}/audit/content-declaration/metadata`,
96
+ authAPIOptions,
97
+ otherOptions,
98
+ {
99
+ method: "POST",
100
+ body
101
+ }
102
+ );
103
+ const auditTag = async (body, otherOptions = {}) => await fetcher(
104
+ `${AI_API_ROUTE}/audit/tag`,
105
+ authAPIOptions,
106
+ otherOptions,
107
+ {
108
+ method: "POST",
109
+ body
110
+ }
111
+ );
112
+ const askDocQuestion = async (body, otherOptions = {}) => await fetcher(
113
+ `${AI_API_ROUTE}/ask`,
114
+ authAPIOptions,
115
+ otherOptions,
116
+ {
117
+ method: "POST",
118
+ body
119
+ }
120
+ );
121
+ return {
122
+ auditContentDeclaration,
123
+ auditContentDeclarationField,
124
+ auditContentDeclarationMetadata,
125
+ auditTag,
126
+ askDocQuestion
127
+ };
128
+ };
129
+ getAiAPI();
130
+ const getAuthAPI = (authAPIOptions = {}, intlayerConfig) => {
131
+ const { backendURL, clientId, clientSecret } = client.getConfiguration().editor;
132
+ const AUTH_API_ROUTE = `${backendURL}/api/auth`;
133
+ const login = async (user, otherOptions = {}) => await fetcher(
134
+ `${AUTH_API_ROUTE}/login`,
135
+ authAPIOptions,
136
+ otherOptions,
137
+ {
138
+ method: "POST",
139
+ body: user
140
+ }
141
+ );
142
+ const getLoginWithGitHubURL = (params) => {
143
+ const searchParams = new URLSearchParams(params);
144
+ return `${AUTH_API_ROUTE}/login/github?${searchParams.toString()}`;
145
+ };
146
+ const getLoginWithGoogleURL = (params) => {
147
+ const searchParams = new URLSearchParams(params);
148
+ return `${AUTH_API_ROUTE}/login/google?${searchParams.toString()}`;
149
+ };
150
+ const register = async (user, query = {}, otherOptions = {}) => await fetcher(
151
+ `${AUTH_API_ROUTE}/register`,
152
+ authAPIOptions,
153
+ otherOptions,
154
+ {
155
+ method: "POST",
156
+ body: user,
157
+ params: query
158
+ }
159
+ );
160
+ const logout = async (otherOptions = {}) => await fetcher(
161
+ `${AUTH_API_ROUTE}/logout`,
162
+ authAPIOptions,
163
+ otherOptions,
164
+ {
165
+ method: "POST"
166
+ }
167
+ );
168
+ const askResetPassword = async (email, otherOptions = {}) => await fetcher(
169
+ `${AUTH_API_ROUTE}/password/reset`,
170
+ authAPIOptions,
171
+ otherOptions,
172
+ {
173
+ method: "POST",
174
+ body: { email }
175
+ }
176
+ );
177
+ const resetPassword = async (params, otherOptions = {}) => await fetcher(
178
+ `${AUTH_API_ROUTE}/password/reset`,
179
+ authAPIOptions,
180
+ otherOptions,
181
+ { params, method: "POST" }
182
+ );
183
+ const changePassword = async (data, otherOptions = {}) => await fetcher(
184
+ `${AUTH_API_ROUTE}/password`,
185
+ authAPIOptions,
186
+ otherOptions,
187
+ {
188
+ method: "PUT",
189
+ body: data
190
+ }
191
+ );
192
+ const checkIfUserHasPassword = async (otherOptions = {}) => await fetcher(
193
+ `${AUTH_API_ROUTE}/password/has`,
194
+ authAPIOptions,
195
+ otherOptions,
196
+ {
197
+ method: "GET"
198
+ }
199
+ );
200
+ const verifyEmail = async ({ userId, secret }, otherOptions = {}) => await fetcher(
201
+ `${AUTH_API_ROUTE}/active/${userId}/${secret}`,
202
+ authAPIOptions,
203
+ otherOptions,
204
+ {
205
+ method: "PUT"
206
+ }
207
+ );
208
+ const getVerifyEmailStatusURL = (userId) => `${AUTH_API_ROUTE}/verify-email-status/${String(userId)}`;
209
+ const createSession = async (data, otherOptions = {}) => await fetcher(
210
+ `${AUTH_API_ROUTE}/session`,
211
+ authAPIOptions,
212
+ otherOptions,
213
+ {
214
+ method: "POST",
215
+ body: data
216
+ }
217
+ );
218
+ const getSession = async (sessionToken, otherOptions = {}) => await fetcher(
219
+ `${backendURL}/session`,
220
+ authAPIOptions,
221
+ otherOptions,
222
+ { params: { session_token: sessionToken } }
223
+ );
224
+ const getCSRFToken = async (otherOptions = {}) => await fetcher(
225
+ `${backendURL}/csrf-token`,
226
+ authAPIOptions,
227
+ otherOptions
228
+ );
229
+ const getOAuth2AccessToken = async (otherOptions = {}) => await fetcher(
230
+ `${backendURL}/oauth2/token`,
231
+ authAPIOptions,
232
+ otherOptions,
233
+ {
234
+ method: "POST",
235
+ headers: {
236
+ "Content-Type": "application/x-www-form-urlencoded"
237
+ },
238
+ body: {
239
+ grant_type: "client_credentials",
240
+ client_id: clientId,
241
+ client_secret: clientSecret
242
+ }
243
+ }
244
+ );
245
+ return {
246
+ login,
247
+ getLoginWithGitHubURL,
248
+ getLoginWithGoogleURL,
249
+ register,
250
+ logout,
251
+ resetPassword,
252
+ askResetPassword,
253
+ checkIfUserHasPassword,
254
+ verifyEmail,
255
+ getVerifyEmailStatusURL,
256
+ changePassword,
257
+ createSession,
258
+ getSession,
259
+ getCSRFToken,
260
+ getOAuth2AccessToken
261
+ };
262
+ };
263
+ getAuthAPI();
264
+ const getDictionaryAPI = (authAPIOptions = {}, intlayerConfig) => {
265
+ const { backendURL } = client.getConfiguration().editor;
266
+ const PROJECT_API_ROUTE = `${backendURL}/api/dictionary`;
267
+ const getDictionaries = async (filters, otherOptions = {}) => await fetcher(
268
+ PROJECT_API_ROUTE,
269
+ authAPIOptions,
270
+ otherOptions,
271
+ {
272
+ params: filters
273
+ }
274
+ );
275
+ const getDictionariesKeys = async (otherOptions = {}) => await fetcher(
276
+ `${PROJECT_API_ROUTE}/keys`,
277
+ authAPIOptions,
278
+ otherOptions
279
+ );
280
+ const getDictionary = async (dictionaryKey, version, otherOptions = {}) => await fetcher(
281
+ `${PROJECT_API_ROUTE}/${dictionaryKey}`,
282
+ authAPIOptions,
283
+ otherOptions,
284
+ {
285
+ params: version ? { version: version.toString() } : void 0
286
+ }
287
+ );
288
+ const addDictionary = async (dictionary, otherOptions = {}) => await fetcher(
289
+ `${PROJECT_API_ROUTE}`,
290
+ authAPIOptions,
291
+ otherOptions,
292
+ {
293
+ method: "POST",
294
+ body: dictionary
295
+ }
296
+ );
297
+ const pushDictionaries = async (dictionaries, otherOptions = {}) => await fetcher(
298
+ `${PROJECT_API_ROUTE}`,
299
+ authAPIOptions,
300
+ otherOptions,
301
+ {
302
+ method: "PATCH",
303
+ body: { dictionaries }
304
+ }
305
+ );
306
+ const updateDictionary = async (dictionaryId, dictionary, otherOptions = {}) => await fetcher(
307
+ `${PROJECT_API_ROUTE}/${dictionaryId}`,
308
+ authAPIOptions,
309
+ otherOptions,
310
+ {
311
+ method: "PUT",
312
+ body: dictionary
313
+ }
314
+ );
315
+ const deleteDictionary = async (id, otherOptions = {}) => await fetcher(
316
+ `${PROJECT_API_ROUTE}`,
317
+ authAPIOptions,
318
+ otherOptions,
319
+ {
320
+ method: "DELETE",
321
+ body: { id }
322
+ }
323
+ );
324
+ return {
325
+ getDictionaries,
326
+ getDictionariesKeys,
327
+ getDictionary,
328
+ pushDictionaries,
329
+ addDictionary,
330
+ updateDictionary,
331
+ deleteDictionary
332
+ };
333
+ };
334
+ getDictionaryAPI();
335
+ const getEditorAPI = (authAPIOptions = {}, intlayerConfig) => {
336
+ const { editorURL } = client.getConfiguration().editor;
337
+ const EDITOR_API_ROUTE = `${editorURL}/api`;
338
+ const getConfiguration = async (otherOptions = {}) => {
339
+ const response = await fetcher(
340
+ `${EDITOR_API_ROUTE}/config`,
341
+ authAPIOptions,
342
+ otherOptions
343
+ );
344
+ return response.data;
345
+ };
346
+ const writeDictionary = async (dictionary, otherOptions = {}) => {
347
+ await fetcher(
348
+ `${EDITOR_API_ROUTE}/dictionary`,
349
+ authAPIOptions,
350
+ otherOptions,
351
+ {
352
+ method: "POST",
353
+ body: dictionary
354
+ }
355
+ );
356
+ };
357
+ return {
358
+ getConfiguration,
359
+ writeDictionary
360
+ };
361
+ };
362
+ getEditorAPI();
363
+ const getOrganizationAPI = (authAPIOptions = {}, intlayerConfig) => {
364
+ const { backendURL } = client.getConfiguration().editor;
365
+ const ORGANIZATION_API_ROUTE = `${backendURL}/api/organization`;
366
+ const getOrganizations = async (filters, otherOptions = {}) => await fetcher(
367
+ ORGANIZATION_API_ROUTE,
368
+ authAPIOptions,
369
+ otherOptions,
370
+ {
371
+ params: filters
372
+ }
373
+ );
374
+ const getOrganization = async (organizationId, otherOptions = {}) => await fetcher(
375
+ `${ORGANIZATION_API_ROUTE}/${String(organizationId)}`,
376
+ authAPIOptions,
377
+ otherOptions
378
+ );
379
+ const addOrganization = async (organization, otherOptions = {}) => await fetcher(
380
+ ORGANIZATION_API_ROUTE,
381
+ authAPIOptions,
382
+ otherOptions,
383
+ {
384
+ method: "POST",
385
+ body: organization
386
+ }
387
+ );
388
+ const updateOrganization = async (organization, otherOptions = {}) => fetcher(
389
+ ORGANIZATION_API_ROUTE,
390
+ authAPIOptions,
391
+ otherOptions,
392
+ {
393
+ method: "PUT",
394
+ body: organization
395
+ }
396
+ );
397
+ const updateOrganizationMembers = async (body, otherOptions = {}) => fetcher(
398
+ `${ORGANIZATION_API_ROUTE}/members`,
399
+ authAPIOptions,
400
+ otherOptions,
401
+ {
402
+ method: "PUT",
403
+ body
404
+ }
405
+ );
406
+ const addOrganizationMember = async (body, otherOptions = {}) => fetcher(
407
+ `${ORGANIZATION_API_ROUTE}/member`,
408
+ authAPIOptions,
409
+ otherOptions,
410
+ {
411
+ method: "POST",
412
+ body
413
+ }
414
+ );
415
+ const deleteOrganization = async (otherOptions = {}) => await fetcher(
416
+ ORGANIZATION_API_ROUTE,
417
+ authAPIOptions,
418
+ otherOptions,
419
+ {
420
+ method: "DELETE"
421
+ }
422
+ );
423
+ const selectOrganization = async (organizationId, otherOptions = {}) => await fetcher(
424
+ `${ORGANIZATION_API_ROUTE}/${String(organizationId)}`,
425
+ authAPIOptions,
426
+ otherOptions,
427
+ {
428
+ method: "PUT"
429
+ }
430
+ );
431
+ const unselectOrganization = async (otherOptions = {}) => await fetcher(
432
+ `${ORGANIZATION_API_ROUTE}/logout`,
433
+ authAPIOptions,
434
+ otherOptions,
435
+ {
436
+ method: "POST"
437
+ }
438
+ );
439
+ return {
440
+ getOrganizations,
441
+ getOrganization,
442
+ addOrganization,
443
+ addOrganizationMember,
444
+ updateOrganization,
445
+ updateOrganizationMembers,
446
+ deleteOrganization,
447
+ selectOrganization,
448
+ unselectOrganization
449
+ };
450
+ };
451
+ getOrganizationAPI();
452
+ const getProjectAPI = (authAPIOptions = {}, intlayerConfig) => {
453
+ const { backendURL } = client.getConfiguration().editor;
454
+ const PROJECT_API_ROUTE = `${backendURL}/api/project`;
455
+ const getProjects = async (filters, otherOptions = {}) => await fetcher(
456
+ PROJECT_API_ROUTE,
457
+ authAPIOptions,
458
+ otherOptions,
459
+ {
460
+ params: filters
461
+ }
462
+ );
463
+ const addProject = async (project, otherOptions = {}) => await fetcher(
464
+ `${PROJECT_API_ROUTE}`,
465
+ authAPIOptions,
466
+ otherOptions,
467
+ {
468
+ method: "POST",
469
+ body: project
470
+ }
471
+ );
472
+ const updateProject = async (project, otherOptions = {}) => await fetcher(
473
+ `${PROJECT_API_ROUTE}`,
474
+ authAPIOptions,
475
+ otherOptions,
476
+ {
477
+ method: "PUT",
478
+ body: project
479
+ }
480
+ );
481
+ const updateProjectMembers = async (body, otherOptions = {}) => await fetcher(
482
+ `${PROJECT_API_ROUTE}/members`,
483
+ authAPIOptions,
484
+ otherOptions,
485
+ {
486
+ method: "PUT",
487
+ body
488
+ }
489
+ );
490
+ const deleteProject = async (otherOptions = {}) => await fetcher(
491
+ `${PROJECT_API_ROUTE}`,
492
+ authAPIOptions,
493
+ otherOptions,
494
+ {
495
+ method: "DELETE"
496
+ }
497
+ );
498
+ const selectProject = async (projectId, otherOptions = {}) => await fetcher(
499
+ `${PROJECT_API_ROUTE}/${String(projectId)}`,
500
+ authAPIOptions,
501
+ otherOptions,
502
+ {
503
+ method: "PUT"
504
+ }
505
+ );
506
+ const unselectProject = async (otherOptions = {}) => await fetcher(
507
+ `${PROJECT_API_ROUTE}/logout`,
508
+ authAPIOptions,
509
+ otherOptions,
510
+ {
511
+ method: "POST"
512
+ }
513
+ );
514
+ const addNewAccessKey = async (accessKey, otherOptions = {}) => await fetcher(
515
+ `${PROJECT_API_ROUTE}/access_key`,
516
+ authAPIOptions,
517
+ otherOptions,
518
+ {
519
+ method: "POST",
520
+ body: accessKey
521
+ }
522
+ );
523
+ const deleteAccessKey = async (clientId, otherOptions = {}) => await fetcher(
524
+ `${PROJECT_API_ROUTE}/access_key`,
525
+ authAPIOptions,
526
+ otherOptions,
527
+ {
528
+ method: "DELETE",
529
+ body: { clientId }
530
+ }
531
+ );
532
+ const refreshAccessKey = async (clientId, otherOptions = {}) => await fetcher(
533
+ `${PROJECT_API_ROUTE}/access_key`,
534
+ authAPIOptions,
535
+ otherOptions,
536
+ {
537
+ method: "PATCH",
538
+ body: { clientId }
539
+ }
540
+ );
541
+ return {
542
+ getProjects,
543
+ addProject,
544
+ updateProject,
545
+ updateProjectMembers,
546
+ deleteProject,
547
+ selectProject,
548
+ unselectProject,
549
+ addNewAccessKey,
550
+ deleteAccessKey,
551
+ refreshAccessKey
552
+ };
553
+ };
554
+ getProjectAPI();
555
+ const getStripeAPI = (authAPIOptions = {}, intlayerConfig) => {
556
+ const backendURL = client.getConfiguration().editor.backendURL;
557
+ const STRIPE_API_ROUTE = `${backendURL}/api/stripe`;
558
+ const getSubscription = async (body, otherOptions = {}) => await fetcher(
559
+ `${STRIPE_API_ROUTE}/create-subscription`,
560
+ authAPIOptions,
561
+ otherOptions,
562
+ {
563
+ method: "POST",
564
+ body
565
+ }
566
+ );
567
+ const cancelSubscription = async (otherOptions = {}) => await fetcher(
568
+ `${STRIPE_API_ROUTE}/cancel-subscription`,
569
+ authAPIOptions,
570
+ otherOptions,
571
+ {
572
+ method: "POST"
573
+ }
574
+ );
575
+ return {
576
+ getSubscription,
577
+ cancelSubscription
578
+ };
579
+ };
580
+ const getTagAPI = (authAPIOptions = {}, intlayerConfig) => {
581
+ const { backendURL } = client.getConfiguration().editor;
582
+ const PROJECT_API_ROUTE = `${backendURL}/api/tag`;
583
+ const getTags = async (filters, otherOptions = {}) => await fetcher(
584
+ PROJECT_API_ROUTE,
585
+ authAPIOptions,
586
+ otherOptions,
587
+ {
588
+ params: filters
589
+ }
590
+ );
591
+ const addTag = async (tag, otherOptions = {}) => await fetcher(
592
+ `${PROJECT_API_ROUTE}`,
593
+ authAPIOptions,
594
+ otherOptions,
595
+ {
596
+ method: "POST",
597
+ body: tag
598
+ }
599
+ );
600
+ const updateTag = async (tagId, tag, otherOptions = {}) => await fetcher(
601
+ `${PROJECT_API_ROUTE}/${tagId}`,
602
+ authAPIOptions,
603
+ otherOptions,
604
+ {
605
+ method: "PUT",
606
+ body: tag
607
+ }
608
+ );
609
+ const deleteTag = async (tagId, otherOptions = {}) => await fetcher(
610
+ `${PROJECT_API_ROUTE}/${tagId}`,
611
+ authAPIOptions,
612
+ otherOptions,
613
+ {
614
+ method: "DELETE"
615
+ }
616
+ );
617
+ return {
618
+ getTags,
619
+ addTag,
620
+ updateTag,
621
+ deleteTag
622
+ };
623
+ };
624
+ getTagAPI();
625
+ const getUserAPI = (authAPIOptions = {}, intlayerConfig) => {
626
+ const { backendURL } = client.getConfiguration().editor;
627
+ const USER_API_ROUTE = `${backendURL}/api/user`;
628
+ const getUsers = async (filters, otherOptions = {}) => await fetcher(
629
+ USER_API_ROUTE,
630
+ authAPIOptions,
631
+ otherOptions,
632
+ {
633
+ params: filters
634
+ }
635
+ );
636
+ const getUserById = async (userId, otherOptions = {}) => await fetcher(
637
+ `${USER_API_ROUTE}/${userId}`,
638
+ authAPIOptions,
639
+ otherOptions
640
+ );
641
+ const getUserByEmail = async (email, otherOptions = {}) => await fetcher(
642
+ `${USER_API_ROUTE}/email/${email}`,
643
+ authAPIOptions,
644
+ otherOptions
645
+ );
646
+ const getUserByAccount = async (providerAccountId, provider, otherOptions = {}) => await fetcher(
647
+ `${USER_API_ROUTE}/account/${provider}/${providerAccountId}`,
648
+ authAPIOptions,
649
+ otherOptions
650
+ );
651
+ const createUser = async (user, otherOptions = {}) => await fetcher(
652
+ `${USER_API_ROUTE}/`,
653
+ authAPIOptions,
654
+ otherOptions,
655
+ {
656
+ method: "POST",
657
+ body: user
658
+ }
659
+ );
660
+ const updateUser = async (user, otherOptions = {}) => await fetcher(
661
+ `${USER_API_ROUTE}`,
662
+ authAPIOptions,
663
+ otherOptions,
664
+ {
665
+ method: "PUT",
666
+ body: user
667
+ }
668
+ );
669
+ const deleteUser = async (userId, otherOptions = {}) => await fetcher(
670
+ `${USER_API_ROUTE}/${userId}`,
671
+ authAPIOptions,
672
+ otherOptions,
673
+ {
674
+ method: "DELETE"
675
+ }
676
+ );
677
+ return {
678
+ createUser,
679
+ getUsers,
680
+ getUserById,
681
+ getUserByAccount,
682
+ getUserByEmail,
683
+ updateUser,
684
+ deleteUser
685
+ };
686
+ };
687
+ getUserAPI();
688
+ const getIntlayerAPI = (authAPIOptions = {}, intlayerConfig) => ({
689
+ organization: getOrganizationAPI(authAPIOptions),
690
+ project: getProjectAPI(authAPIOptions),
691
+ user: getUserAPI(authAPIOptions),
692
+ auth: getAuthAPI(authAPIOptions),
693
+ dictionary: getDictionaryAPI(authAPIOptions),
694
+ stripe: getStripeAPI(authAPIOptions),
695
+ ai: getAiAPI(authAPIOptions),
696
+ tag: getTagAPI(authAPIOptions),
697
+ editor: getEditorAPI(authAPIOptions)
698
+ });
699
+ const intlayerAPI = getIntlayerAPI();
700
+ exports.intlayerAPI = intlayerAPI;
701
+ //# sourceMappingURL=index-BbqOa6BU.cjs.map