@carlonicora/nextjs-jsonapi 3.3.1 → 3.3.2

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 (70) hide show
  1. package/dist/{BlockNoteEditor-G5A34EXN.mjs → BlockNoteEditor-SDVXTZRC.mjs} +5 -5
  2. package/dist/{BlockNoteEditor-JLMXCPGB.js → BlockNoteEditor-VV6DRWSA.js} +20 -20
  3. package/dist/{BlockNoteEditor-JLMXCPGB.js.map → BlockNoteEditor-VV6DRWSA.js.map} +1 -1
  4. package/dist/{JsonApiRequest-2OQCZAK6.mjs → JsonApiRequest-ADNIGXTP.mjs} +2 -2
  5. package/dist/JsonApiRequest-WWGSGV2I.js +26 -0
  6. package/dist/{JsonApiRequest-6TYNBVUL.js.map → JsonApiRequest-WWGSGV2I.js.map} +1 -1
  7. package/dist/billing/index.js +399 -399
  8. package/dist/billing/index.mjs +4 -4
  9. package/dist/{chunk-5AKDE5UW.js → chunk-4I3UORNT.js} +941 -938
  10. package/dist/chunk-4I3UORNT.js.map +1 -0
  11. package/dist/{chunk-PGARO3JT.mjs → chunk-KW6LYVFJ.mjs} +8 -7
  12. package/dist/chunk-KW6LYVFJ.mjs.map +1 -0
  13. package/dist/{chunk-UYENG3GT.js → chunk-OHG2YWNA.js} +22 -27
  14. package/dist/chunk-OHG2YWNA.js.map +1 -0
  15. package/dist/{chunk-LCMVARSP.mjs → chunk-RUEY6XSS.mjs} +8 -13
  16. package/dist/chunk-RUEY6XSS.mjs.map +1 -0
  17. package/dist/{chunk-CMGXH5SA.mjs → chunk-RVASYIQG.mjs} +47 -3
  18. package/dist/chunk-RVASYIQG.mjs.map +1 -0
  19. package/dist/{chunk-YKFXQOQA.js → chunk-S2C5V2XZ.js} +33 -32
  20. package/dist/chunk-S2C5V2XZ.js.map +1 -0
  21. package/dist/{chunk-PFAZPP54.js → chunk-W42MYR3Y.js} +59 -15
  22. package/dist/chunk-W42MYR3Y.js.map +1 -0
  23. package/dist/{chunk-O4LTJAAM.mjs → chunk-WPF4NFVV.mjs} +15 -12
  24. package/dist/{chunk-O4LTJAAM.mjs.map → chunk-WPF4NFVV.mjs.map} +1 -1
  25. package/dist/client/index.js +5 -5
  26. package/dist/client/index.mjs +4 -4
  27. package/dist/components/index.js +5 -5
  28. package/dist/components/index.mjs +4 -4
  29. package/dist/contexts/index.js +5 -5
  30. package/dist/contexts/index.mjs +4 -4
  31. package/dist/core/index.d.mts +59 -1
  32. package/dist/core/index.d.ts +59 -1
  33. package/dist/core/index.js +5 -3
  34. package/dist/core/index.js.map +1 -1
  35. package/dist/core/index.mjs +4 -2
  36. package/dist/features/help/index.js +38 -38
  37. package/dist/features/help/index.mjs +4 -4
  38. package/dist/features/tokenusage/index.js +102 -102
  39. package/dist/features/tokenusage/index.mjs +4 -4
  40. package/dist/index.d.mts +1 -1
  41. package/dist/index.d.ts +1 -1
  42. package/dist/index.js +6 -4
  43. package/dist/index.js.map +1 -1
  44. package/dist/index.mjs +5 -3
  45. package/dist/server/index.js +15 -14
  46. package/dist/server/index.js.map +1 -1
  47. package/dist/server/index.mjs +5 -4
  48. package/dist/server/index.mjs.map +1 -1
  49. package/package.json +1 -1
  50. package/src/client/JsonApiClient.ts +3 -2
  51. package/src/client/config.ts +5 -10
  52. package/src/components/forms/FormPlaceAutocomplete.tsx +2 -1
  53. package/src/core/env.ts +73 -0
  54. package/src/core/index.ts +1 -0
  55. package/src/features/auth/utils/AuthCookies.ts +2 -1
  56. package/src/features/company/components/forms/CompanyEditor.tsx +2 -1
  57. package/src/hooks/usePushNotifications.ts +2 -1
  58. package/src/hooks/useSocket.ts +4 -3
  59. package/src/server/JsonApiServer.ts +3 -2
  60. package/src/unified/JsonApiRequest.ts +3 -2
  61. package/dist/JsonApiRequest-6TYNBVUL.js +0 -26
  62. package/dist/chunk-5AKDE5UW.js.map +0 -1
  63. package/dist/chunk-CMGXH5SA.mjs.map +0 -1
  64. package/dist/chunk-LCMVARSP.mjs.map +0 -1
  65. package/dist/chunk-PFAZPP54.js.map +0 -1
  66. package/dist/chunk-PGARO3JT.mjs.map +0 -1
  67. package/dist/chunk-UYENG3GT.js.map +0 -1
  68. package/dist/chunk-YKFXQOQA.js.map +0 -1
  69. /package/dist/{BlockNoteEditor-G5A34EXN.mjs.map → BlockNoteEditor-SDVXTZRC.mjs.map} +0 -0
  70. /package/dist/{JsonApiRequest-2OQCZAK6.mjs.map → JsonApiRequest-ADNIGXTP.mjs.map} +0 -0
@@ -14,7 +14,8 @@ var _chunkIBS6NI7Djs = require('./chunk-IBS6NI7D.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkPFAZPP54js = require('./chunk-PFAZPP54.js');
17
+
18
+ var _chunkW42MYR3Yjs = require('./chunk-W42MYR3Y.js');
18
19
 
19
20
 
20
21
  var _chunk7QVYU63Ejs = require('./chunk-7QVYU63E.js');
@@ -25,12 +26,12 @@ var RehydrationFactory = class {
25
26
  _chunk7QVYU63Ejs.__name.call(void 0, this, "RehydrationFactory");
26
27
  }
27
28
  static rehydrate(classKey, data) {
28
- const factoryClass = _chunkPFAZPP54js.DataClassRegistry.get(classKey);
29
+ const factoryClass = _chunkW42MYR3Yjs.DataClassRegistry.get(classKey);
29
30
  const instance = new factoryClass();
30
31
  return instance.rehydrate(data);
31
32
  }
32
33
  static rehydrateList(classKey, data) {
33
- const factoryClass = _chunkPFAZPP54js.DataClassRegistry.get(classKey);
34
+ const factoryClass = _chunkW42MYR3Yjs.DataClassRegistry.get(classKey);
34
35
  const response = data.map((item) => {
35
36
  const instance = new factoryClass();
36
37
  return instance.rehydrate(item);
@@ -335,7 +336,7 @@ var AbstractService = class {
335
336
  * Make an API call with automatic environment detection and error handling.
336
337
  */
337
338
  static async callApi(params) {
338
- const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-6TYNBVUL.js")));
339
+ const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-WWGSGV2I.js")));
339
340
  let apiResponse;
340
341
  let language = "en";
341
342
  if (typeof window === "undefined") {
@@ -436,7 +437,7 @@ var AbstractService = class {
436
437
  * Make an API call and return both data and meta from the response.
437
438
  */
438
439
  static async callApiWithMeta(params) {
439
- const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-6TYNBVUL.js")));
440
+ const { JsonApiGet: JsonApiGet2, JsonApiPost: JsonApiPost2, JsonApiPut, JsonApiPatch, JsonApiDelete: JsonApiDelete2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-WWGSGV2I.js")));
440
441
  let apiResponse;
441
442
  let language = "en";
442
443
  if (typeof window === "undefined") {
@@ -522,7 +523,7 @@ var AbstractService = class {
522
523
  * Get raw JSON:API response data without deserialization.
523
524
  */
524
525
  static async getRawData(params) {
525
- const { JsonApiGet: JsonApiGet2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-6TYNBVUL.js")));
526
+ const { JsonApiGet: JsonApiGet2 } = await Promise.resolve().then(() => _interopRequireWildcard(require("./JsonApiRequest-WWGSGV2I.js")));
526
527
  let language = "en";
527
528
  if (typeof window === "undefined") {
528
529
  const { getLocale } = await Promise.resolve().then(() => _interopRequireWildcard(require("next-intl/server")));
@@ -558,7 +559,7 @@ var _clientConfig = null;
558
559
  function configureClientJsonApi(config) {
559
560
  _clientConfig = config;
560
561
  if (config.bootstrapper) {
561
- _chunkPFAZPP54js.setBootstrapper.call(void 0, config.bootstrapper);
562
+ _chunkW42MYR3Yjs.setBootstrapper.call(void 0, config.bootstrapper);
562
563
  config.bootstrapper();
563
564
  }
564
565
  }
@@ -567,7 +568,7 @@ function getClientApiUrl() {
567
568
  if (_optionalChain([_clientConfig, 'optionalAccess', _22 => _22.apiUrl])) {
568
569
  return _clientConfig.apiUrl;
569
570
  }
570
- const envUrl = process.env.NEXT_PUBLIC_API_URL;
571
+ const envUrl = _chunkW42MYR3Yjs.ENV.API_URL;
571
572
  if (!envUrl) {
572
573
  throw new Error(
573
574
  "API URL not configured. Use configureClientJsonApi() or set NEXT_PUBLIC_API_URL environment variable."
@@ -580,7 +581,7 @@ function getClientAppUrl() {
580
581
  if (_optionalChain([_clientConfig, 'optionalAccess', _23 => _23.appUrl])) {
581
582
  return _clientConfig.appUrl;
582
583
  }
583
- const envUrl = process.env.NEXT_PUBLIC_ADDRESS;
584
+ const envUrl = _chunkW42MYR3Yjs.ENV.APP_URL;
584
585
  if (!envUrl) {
585
586
  throw new Error(
586
587
  "App URL not configured. Use configureClientJsonApi({ appUrl }) or set NEXT_PUBLIC_ADDRESS environment variable."
@@ -616,7 +617,7 @@ async function ClientJsonApiGet(params) {
616
617
  language: params.language,
617
618
  additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _26 => _26.additionalHeaders])
618
619
  });
619
- return _chunkPFAZPP54js.translateResponse.call(void 0, {
620
+ return _chunkW42MYR3Yjs.translateResponse.call(void 0, {
620
621
  classKey: params.classKey,
621
622
  apiResponse,
622
623
  companyId: params.companyId,
@@ -638,7 +639,7 @@ async function ClientJsonApiPost(params) {
638
639
  if (!body) {
639
640
  body = {};
640
641
  } else if (params.overridesJsonApiCreation !== true) {
641
- body = _chunkPFAZPP54js.JsonApiDataFactory.create(params.classKey, body);
642
+ body = _chunkW42MYR3Yjs.JsonApiDataFactory.create(params.classKey, body);
642
643
  }
643
644
  const apiResponse = await _chunkIBS6NI7Djs.directFetch.call(void 0, {
644
645
  method: "POST",
@@ -650,7 +651,7 @@ async function ClientJsonApiPost(params) {
650
651
  language: params.language,
651
652
  additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _27 => _27.additionalHeaders])
652
653
  });
653
- return _chunkPFAZPP54js.translateResponse.call(void 0, {
654
+ return _chunkW42MYR3Yjs.translateResponse.call(void 0, {
654
655
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
655
656
  apiResponse,
656
657
  companyId: params.companyId,
@@ -665,7 +666,7 @@ async function ClientJsonApiPut(params) {
665
666
  if (!body) {
666
667
  body = {};
667
668
  } else {
668
- body = _chunkPFAZPP54js.JsonApiDataFactory.create(params.classKey, body);
669
+ body = _chunkW42MYR3Yjs.JsonApiDataFactory.create(params.classKey, body);
669
670
  }
670
671
  const apiResponse = await _chunkIBS6NI7Djs.directFetch.call(void 0, {
671
672
  method: "PUT",
@@ -677,7 +678,7 @@ async function ClientJsonApiPut(params) {
677
678
  language: params.language,
678
679
  additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _28 => _28.additionalHeaders])
679
680
  });
680
- return _chunkPFAZPP54js.translateResponse.call(void 0, {
681
+ return _chunkW42MYR3Yjs.translateResponse.call(void 0, {
681
682
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
682
683
  apiResponse,
683
684
  companyId: params.companyId,
@@ -692,7 +693,7 @@ async function ClientJsonApiPatch(params) {
692
693
  if (!body) {
693
694
  body = {};
694
695
  } else if (params.overridesJsonApiCreation !== true) {
695
- body = _chunkPFAZPP54js.JsonApiDataFactory.create(params.classKey, body);
696
+ body = _chunkW42MYR3Yjs.JsonApiDataFactory.create(params.classKey, body);
696
697
  }
697
698
  const apiResponse = await _chunkIBS6NI7Djs.directFetch.call(void 0, {
698
699
  method: "PATCH",
@@ -704,7 +705,7 @@ async function ClientJsonApiPatch(params) {
704
705
  language: params.language,
705
706
  additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _29 => _29.additionalHeaders])
706
707
  });
707
- return _chunkPFAZPP54js.translateResponse.call(void 0, {
708
+ return _chunkW42MYR3Yjs.translateResponse.call(void 0, {
708
709
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
709
710
  apiResponse,
710
711
  companyId: params.companyId,
@@ -723,7 +724,7 @@ async function ClientJsonApiDelete(params) {
723
724
  language: params.language,
724
725
  additionalHeaders: _optionalChain([_clientConfig, 'optionalAccess', _30 => _30.additionalHeaders])
725
726
  });
726
- return _chunkPFAZPP54js.translateResponse.call(void 0, {
727
+ return _chunkW42MYR3Yjs.translateResponse.call(void 0, {
727
728
  classKey: _nullishCoalesce(params.responseType, () => ( params.classKey)),
728
729
  apiResponse,
729
730
  companyId: params.companyId,
@@ -935,7 +936,7 @@ var ModuleRegistrar = (_class2 = class {
935
936
  }).map((key) => modulesClass[key]);
936
937
  data.forEach((item) => {
937
938
  if (item && item.model) {
938
- _chunkPFAZPP54js.DataClassRegistry.registerObjectClass(item, item.model);
939
+ _chunkW42MYR3Yjs.DataClassRegistry.registerObjectClass(item, item.model);
939
940
  }
940
941
  });
941
942
  this._isBootstrapped = true;
@@ -945,7 +946,7 @@ var ModuleRegistrar = (_class2 = class {
945
946
  */
946
947
  static reset() {
947
948
  this._isBootstrapped = false;
948
- _chunkPFAZPP54js.DataClassRegistry.clear();
949
+ _chunkW42MYR3Yjs.DataClassRegistry.clear();
949
950
  }
950
951
  }, _class2.__initStatic2(), _class2);
951
952
 
@@ -968,20 +969,20 @@ var ModuleRegistryClass = class {
968
969
  get(name) {
969
970
  let module = this._modules.get(name);
970
971
  if (!module) {
971
- const didBootstrap = _chunkPFAZPP54js.tryBootstrap.call(void 0, );
972
+ const didBootstrap = _chunkW42MYR3Yjs.tryBootstrap.call(void 0, );
972
973
  if (didBootstrap) {
973
974
  module = this._modules.get(name);
974
975
  }
975
976
  }
976
977
  if (!module) {
977
- const hint = _chunkPFAZPP54js.hasBootstrapper.call(void 0, ) ? "Bootstrap was called but module still not found. Check module registration." : "No bootstrapper registered. Ensure configureJsonApi({ bootstrapper }) is called before accessing modules.";
978
+ const hint = _chunkW42MYR3Yjs.hasBootstrapper.call(void 0, ) ? "Bootstrap was called but module still not found. Check module registration." : "No bootstrapper registered. Ensure configureJsonApi({ bootstrapper }) is called before accessing modules.";
978
979
  throw new Error(`Module "${String(name)}" not registered. ${hint}`);
979
980
  }
980
981
  return module;
981
982
  }
982
983
  findByName(moduleName) {
983
984
  if (this._modules.size === 0) {
984
- _chunkPFAZPP54js.tryBootstrap.call(void 0, );
985
+ _chunkW42MYR3Yjs.tryBootstrap.call(void 0, );
985
986
  }
986
987
  for (const module of this._modules.values()) {
987
988
  if (module.name === moduleName) {
@@ -992,7 +993,7 @@ var ModuleRegistryClass = class {
992
993
  }
993
994
  getAllPageUrls() {
994
995
  if (this._modules.size === 0) {
995
- _chunkPFAZPP54js.tryBootstrap.call(void 0, );
996
+ _chunkW42MYR3Yjs.tryBootstrap.call(void 0, );
996
997
  }
997
998
  const seen = /* @__PURE__ */ new Set();
998
999
  const result = [];
@@ -1009,7 +1010,7 @@ var ModuleRegistryClass = class {
1009
1010
  findByModelName(modelName) {
1010
1011
  let module = this._modules.get(modelName);
1011
1012
  if (!module) {
1012
- const didBootstrap = _chunkPFAZPP54js.tryBootstrap.call(void 0, );
1013
+ const didBootstrap = _chunkW42MYR3Yjs.tryBootstrap.call(void 0, );
1013
1014
  if (didBootstrap) {
1014
1015
  module = this._modules.get(modelName);
1015
1016
  }
@@ -1031,7 +1032,7 @@ var ModuleRegistryClass = class {
1031
1032
  }
1032
1033
  getAll() {
1033
1034
  if (this._modules.size === 0) {
1034
- _chunkPFAZPP54js.tryBootstrap.call(void 0, );
1035
+ _chunkW42MYR3Yjs.tryBootstrap.call(void 0, );
1035
1036
  }
1036
1037
  return Array.from(this._modules.values());
1037
1038
  }
@@ -2984,7 +2985,7 @@ var AuthService = class extends AbstractService {
2984
2985
  }
2985
2986
  static async login(params) {
2986
2987
  const language = params.language || "en-US";
2987
- const apiResponse = await _chunkPFAZPP54js.JsonApiPost.call(void 0, {
2988
+ const apiResponse = await _chunkW42MYR3Yjs.JsonApiPost.call(void 0, {
2988
2989
  classKey: Modules.Auth,
2989
2990
  endpoint: new EndpointCreator({ endpoint: Modules.Auth, id: "login" }).generate(),
2990
2991
  body: { email: params.email, password: params.password },
@@ -3018,7 +3019,7 @@ var AuthService = class extends AbstractService {
3018
3019
  }
3019
3020
  static async logout(params) {
3020
3021
  const language = _optionalChain([params, 'optionalAccess', _71 => _71.language]) || "en-US";
3021
- await _chunkPFAZPP54js.JsonApiDelete.call(void 0, {
3022
+ await _chunkW42MYR3Yjs.JsonApiDelete.call(void 0, {
3022
3023
  classKey: Modules.Auth,
3023
3024
  endpoint: new EndpointCreator({ endpoint: Modules.Auth }).generate(),
3024
3025
  language
@@ -3030,7 +3031,7 @@ var AuthService = class extends AbstractService {
3030
3031
  }
3031
3032
  static async initialiseForgotPassword(params) {
3032
3033
  const language = params.language || "en-US";
3033
- const response = await _chunkPFAZPP54js.JsonApiPost.call(void 0, {
3034
+ const response = await _chunkW42MYR3Yjs.JsonApiPost.call(void 0, {
3034
3035
  classKey: Modules.Auth,
3035
3036
  endpoint: new EndpointCreator({ endpoint: Modules.Auth, id: "forgot" }).generate(),
3036
3037
  body: { email: params.email },
@@ -3059,7 +3060,7 @@ var AuthService = class extends AbstractService {
3059
3060
  }
3060
3061
  static async validateCode(params) {
3061
3062
  const language = params.language || "en-US";
3062
- const apiResponse = await _chunkPFAZPP54js.JsonApiGet.call(void 0, {
3063
+ const apiResponse = await _chunkW42MYR3Yjs.JsonApiGet.call(void 0, {
3063
3064
  classKey: Modules.Auth,
3064
3065
  endpoint: new EndpointCreator({ endpoint: Modules.Auth, id: "validate", childEndpoint: params.code }).generate(),
3065
3066
  language
@@ -3103,7 +3104,7 @@ var AuthService = class extends AbstractService {
3103
3104
  }
3104
3105
  static async completeOAuthRegistration(params) {
3105
3106
  const endpoint = new EndpointCreator({ endpoint: Modules.Auth, id: "oauth", childEndpoint: "complete" });
3106
- const response = await _chunkPFAZPP54js.JsonApiPost.call(void 0, {
3107
+ const response = await _chunkW42MYR3Yjs.JsonApiPost.call(void 0, {
3107
3108
  classKey: Modules.Auth,
3108
3109
  endpoint: endpoint.generate(),
3109
3110
  body: params,
@@ -4894,7 +4895,7 @@ var StripePromotionCodeService = class {
4894
4895
  * @returns Validation result with discount details if valid
4895
4896
  */
4896
4897
  static async validatePromotionCode(params) {
4897
- const response = await _chunkPFAZPP54js.JsonApiPost.call(void 0, {
4898
+ const response = await _chunkW42MYR3Yjs.JsonApiPost.call(void 0, {
4898
4899
  classKey: Modules.StripePromotionCode,
4899
4900
  endpoint: `${STRIPE_PROMOTION_CODE_ENDPOINT}/validate`,
4900
4901
  body: {
@@ -8968,4 +8969,4 @@ var AuditLogModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (facto
8968
8969
 
8969
8970
 
8970
8971
  exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.HttpMethod = HttpMethod; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.getLastApiMeta = getLastApiMeta; exports.clearLastApiMeta = clearLastApiMeta; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; exports.buildClientUrl = buildClientUrl; exports.ClientJsonApiGet = ClientJsonApiGet; exports.ClientJsonApiPost = ClientJsonApiPost; exports.ClientJsonApiPut = ClientJsonApiPut; exports.ClientJsonApiPatch = ClientJsonApiPatch; exports.ClientJsonApiDelete = ClientJsonApiDelete; exports.ClientHttpMethod = ClientHttpMethod; exports.setClientGlobalErrorHandler = setClientGlobalErrorHandler; exports.getClientGlobalErrorHandler = getClientGlobalErrorHandler; exports.ClientAbstractService = ClientAbstractService; exports.ModuleRegistrar = ModuleRegistrar; exports.ModuleRegistry = ModuleRegistry; exports.Modules = Modules; exports.EndpointCreator = EndpointCreator; exports.createJsonApiInclusion = createJsonApiInclusion; exports.rehydrate = rehydrate; exports.rehydrateList = rehydrateList; exports.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.MOBILE_BREAKPOINT = MOBILE_BREAKPOINT; exports.VIEWPORT_COOKIE_NAME = VIEWPORT_COOKIE_NAME; exports.getViewportContext = getViewportContext; exports.measureViewport = measureViewport; exports.persistViewport = persistViewport; exports.subscribeViewport = subscribeViewport; exports.useIsMobile = useIsMobile; exports.formatLocalDate = formatLocalDate; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.getInitials = getInitials; exports.isRemoteImageSrc = isRemoteImageSrc; exports.validatePartitaIva = validatePartitaIva; exports.validateCodiceFiscale = validateCodiceFiscale; exports.validateItalianTaxCode = validateItalianTaxCode; exports.formatPartitaIva = formatPartitaIva; exports.formatCodiceFiscale = formatCodiceFiscale; exports.BlockNoteDiffUtil = BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = BlockNoteWordDiffRendererUtil; exports.getIconByModule = getIconByModule; exports.getIcon = getIcon; exports.getIconByModuleName = getIconByModuleName; exports.getLucideIcon = getLucideIcon; exports.getLucideIconByModule = getLucideIconByModule; exports.getLucideIconByModuleName = getLucideIconByModuleName; exports.showToast = showToast; exports.showError = showError; exports.dismissToast = dismissToast; exports.showCustomToast = showCustomToast; exports.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.TotpAuthenticator = TotpAuthenticator; exports.TotpAuthenticatorModule = TotpAuthenticatorModule; exports.TotpSetup = TotpSetup; exports.TotpSetupModule = TotpSetupModule; exports.TotpVerify = TotpVerify; exports.TotpVerifyModule = TotpVerifyModule; exports.TotpVerifyLogin = TotpVerifyLogin; exports.TotpVerifyLoginModule = TotpVerifyLoginModule; exports.Passkey = Passkey; exports.PasskeyModule = PasskeyModule; exports.PasskeyRegistrationOptions = PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = PasskeyRegistrationVerifyModule; exports.PasskeyRename = PasskeyRename; exports.PasskeyRenameModule = PasskeyRenameModule; exports.PasskeyVerifyLogin = PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = PasskeyVerifyLoginModule; exports.PasskeyAuthenticationOptions = PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = PasskeyAuthenticationOptionsModule; exports.TwoFactorEnable = TwoFactorEnable; exports.TwoFactorEnableModule = TwoFactorEnableModule; exports.TwoFactorChallenge = TwoFactorChallenge; exports.TwoFactorChallengeModule = TwoFactorChallengeModule; exports.BackupCodeVerify = BackupCodeVerify; exports.BackupCodeVerifyModule = BackupCodeVerifyModule; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.TwoFactorStatus = TwoFactorStatus; exports.TwoFactorService = TwoFactorService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; exports.TwoFactorStatusModule = TwoFactorStatusModule; exports.BillingService = BillingService; exports.Billing = Billing; exports.BillingModule = BillingModule; exports.PaymentMethod = PaymentMethod; exports.StripeCustomer = StripeCustomer; exports.StripeCustomerService = StripeCustomerService; exports.StripeCustomerModule = StripeCustomerModule; exports.StripePaymentMethodModule = StripePaymentMethodModule; exports.StripeInvoice = StripeInvoice; exports.InvoiceStatus = InvoiceStatus; exports.StripeInvoiceService = StripeInvoiceService; exports.StripeInvoiceModule = StripeInvoiceModule; exports.StripePrice = StripePrice; exports.StripePriceFields = StripePriceFields; exports.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; exports.StripeProductFields = StripeProductFields; exports.StripeProductService = StripeProductService; exports.StripeProductModule = StripeProductModule; exports.StripeSubscription = StripeSubscription; exports.SubscriptionStatus = SubscriptionStatus; exports.StripeSubscriptionService = StripeSubscriptionService; exports.StripeSubscriptionModule = StripeSubscriptionModule; exports.StripeUsage = StripeUsage; exports.StripeUsageService = StripeUsageService; exports.StripeUsageModule = StripeUsageModule; exports.StripePromotionCodeService = StripePromotionCodeService; exports.StripePromotionCode = StripePromotionCode; exports.StripePromotionCodeModule = StripePromotionCodeModule; exports.AiConnection = AiConnection; exports.AiConnectionFields = AiConnectionFields; exports.AiConnectionService = AiConnectionService; exports.AiConnectionModule = AiConnectionModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.EntityAiStatus = EntityAiStatus; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; exports.HowTo = HowTo; exports.HowToModule = HowToModule; exports.HowToFields = HowToFields; exports.HowToService = HowToService; exports.Assistant = Assistant; exports.AssistantModule = AssistantModule; exports.AssistantMessage = AssistantMessage; exports.AssistantService = AssistantService; exports.AssistantMessageModule = AssistantMessageModule; exports.AssistantMessageService = AssistantMessageService; exports.AssistantAction = AssistantAction; exports.AssistantActionModule = AssistantActionModule; exports.AssistantActionService = AssistantActionService; exports.Chunk = Chunk; exports.ChunkModule = ChunkModule; exports.Feature = Feature; exports.FeatureService = FeatureService; exports.FeatureModule = FeatureModule; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushService = PushService; exports.PushModule = PushModule; exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.AuthorModule = AuthorModule; exports.UserModule = UserModule; exports.OAuthClient = OAuthClient; exports.OAuthModule = OAuthModule; exports.OAuthService = OAuthService; exports.OAUTH_SCOPE_DISPLAY = OAUTH_SCOPE_DISPLAY; exports.AVAILABLE_OAUTH_SCOPES = AVAILABLE_OAUTH_SCOPES; exports.DEFAULT_GRANT_TYPES = DEFAULT_GRANT_TYPES; exports.Waitlist = Waitlist; exports.WaitlistService = WaitlistService; exports.WaitlistStats = WaitlistStats; exports.WaitlistModule = WaitlistModule; exports.WaitlistStatsModule = WaitlistStatsModule; exports.PermissionMapping = PermissionMapping; exports.ModulePaths = ModulePaths; exports.RbacMatrixModel = RbacMatrixModel; exports.PermissionMappingModule = PermissionMappingModule; exports.ModulePathsModule = ModulePathsModule; exports.RbacMatrixModule = RbacMatrixModule; exports.ReferralStats = ReferralStats; exports.ReferralService = ReferralService; exports.ReferralModule = ReferralModule; exports.ReferralStatsModule = ReferralStatsModule; exports.TokenUsageAdminBreakdown = TokenUsageAdminBreakdown; exports.TokenUsageAdminSummary = TokenUsageAdminSummary; exports.TokenUsageAdminTimeline = TokenUsageAdminTimeline; exports.TokenUsageAdminSummaryModule = TokenUsageAdminSummaryModule; exports.TokenUsageAdminTimelineModule = TokenUsageAdminTimelineModule; exports.TokenUsageAdminBreakdownModule = TokenUsageAdminBreakdownModule; exports.TokenUsageReportBreakdown = TokenUsageReportBreakdown; exports.TokenUsageReportSummary = TokenUsageReportSummary; exports.TokenUsageReportTimeline = TokenUsageReportTimeline; exports.tokenUsageModules = tokenUsageModules; exports.configureTokenUsage = configureTokenUsage; exports.getTokenUsageCurrency = getTokenUsageCurrency; exports.AuditLog = AuditLog; exports.AuditLogService = AuditLogService; exports.AuditLogModule = AuditLogModule;
8971
- //# sourceMappingURL=chunk-YKFXQOQA.js.map
8972
+ //# sourceMappingURL=chunk-S2C5V2XZ.js.map