@carlonicora/nextjs-jsonapi 1.65.0 → 1.66.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 (80) hide show
  1. package/dist/{AuthComponent-B4rNZRYE.d.ts → AuthComponent-DL1D3y7f.d.ts} +1 -1
  2. package/dist/{AuthComponent-nzabiz68.d.mts → AuthComponent-NwQ_ZXsv.d.mts} +1 -1
  3. package/dist/{BlockNoteEditor-Y5XAD6NR.js → BlockNoteEditor-GQM2TZG2.js} +14 -14
  4. package/dist/{BlockNoteEditor-Y5XAD6NR.js.map → BlockNoteEditor-GQM2TZG2.js.map} +1 -1
  5. package/dist/{BlockNoteEditor-SCQGD6F2.mjs → BlockNoteEditor-KCJMA6LW.mjs} +4 -4
  6. package/dist/{auth.interface-C1WjZ0fM.d.ts → auth.interface-BX_1qZZJ.d.ts} +1 -1
  7. package/dist/{auth.interface-fBFqIrw4.d.mts → auth.interface-yeLelxdI.d.mts} +1 -1
  8. package/dist/billing/index.js +346 -346
  9. package/dist/billing/index.mjs +3 -3
  10. package/dist/{chunk-G7PGWMFO.mjs → chunk-35GWVOYZ.mjs} +61 -1
  11. package/dist/{chunk-G7PGWMFO.mjs.map → chunk-35GWVOYZ.mjs.map} +1 -1
  12. package/dist/{chunk-OLNMWVOV.mjs → chunk-4E74ZTRT.mjs} +2115 -1834
  13. package/dist/chunk-4E74ZTRT.mjs.map +1 -0
  14. package/dist/{chunk-LRXJT656.js → chunk-NVXYOQFW.js} +61 -1
  15. package/dist/chunk-NVXYOQFW.js.map +1 -0
  16. package/dist/{chunk-RA4RYKYB.js → chunk-OQRBY22T.js} +11 -11
  17. package/dist/{chunk-RA4RYKYB.js.map → chunk-OQRBY22T.js.map} +1 -1
  18. package/dist/{chunk-5ODPC3YX.js → chunk-QIFM4G7T.js} +1174 -893
  19. package/dist/chunk-QIFM4G7T.js.map +1 -0
  20. package/dist/{chunk-5KMKI23S.mjs → chunk-UXGPZZ6V.mjs} +2 -2
  21. package/dist/client/index.d.mts +6 -6
  22. package/dist/client/index.d.ts +6 -6
  23. package/dist/client/index.js +4 -4
  24. package/dist/client/index.mjs +3 -3
  25. package/dist/components/index.d.mts +42 -7
  26. package/dist/components/index.d.ts +42 -7
  27. package/dist/components/index.js +14 -4
  28. package/dist/components/index.js.map +1 -1
  29. package/dist/components/index.mjs +13 -3
  30. package/dist/{config-DZWAFB7H.d.ts → config-CyCAWW-d.d.ts} +1 -1
  31. package/dist/{config-ndRJIQsP.d.mts → config-D-mqttuF.d.mts} +1 -1
  32. package/dist/{content.interface-B5ySfiOE.d.mts → content.interface-8T5-G84c.d.mts} +1 -1
  33. package/dist/{content.interface-mmz0uMwm.d.ts → content.interface-D-xdYxjt.d.ts} +1 -1
  34. package/dist/contexts/index.d.mts +2 -2
  35. package/dist/contexts/index.d.ts +2 -2
  36. package/dist/contexts/index.js +4 -4
  37. package/dist/contexts/index.mjs +3 -3
  38. package/dist/core/index.d.mts +29 -9
  39. package/dist/core/index.d.ts +29 -9
  40. package/dist/core/index.js +2 -2
  41. package/dist/core/index.mjs +1 -1
  42. package/dist/index.d.mts +8 -8
  43. package/dist/index.d.ts +8 -8
  44. package/dist/index.js +3 -3
  45. package/dist/index.mjs +2 -2
  46. package/dist/{notification.interface-DG7cq9oG.d.mts → notification.interface-C6UcmJqu.d.mts} +20 -0
  47. package/dist/{notification.interface-COKHDQeE.d.ts → notification.interface-ItBxq2au.d.ts} +20 -0
  48. package/dist/{s3.service-ppn9iGJU.d.ts → s3.service-DIR6Su9B.d.ts} +3 -3
  49. package/dist/{s3.service-BoRPFx82.d.mts → s3.service-XchHd3ii.d.mts} +3 -3
  50. package/dist/server/index.d.mts +4 -4
  51. package/dist/server/index.d.ts +4 -4
  52. package/dist/server/index.js +3 -3
  53. package/dist/server/index.mjs +1 -1
  54. package/dist/{useRbacState-DhuYYr0S.d.mts → useRbacState-Btk1gkQg.d.mts} +1 -1
  55. package/dist/{useRbacState-NnzNL2ED.d.ts → useRbacState-CUj0hp8t.d.ts} +1 -1
  56. package/dist/{useSocket-bsV-K4qR.d.ts → useSocket-BSUN9s3p.d.ts} +1 -1
  57. package/dist/{useSocket-CtfuR5wD.d.mts → useSocket-DKI92Fbg.d.mts} +1 -1
  58. package/package.json +2 -1
  59. package/src/components/containers/RoundPageContainer.tsx +1 -1
  60. package/src/components/fiscal/FiscalDataDisplay.tsx +26 -0
  61. package/src/components/fiscal/ItalianFiscalData.tsx +120 -0
  62. package/src/components/fiscal/ItalianFiscalDataDisplay.tsx +24 -0
  63. package/src/components/fiscal/index.ts +4 -0
  64. package/src/components/index.ts +2 -0
  65. package/src/components/navigations/Breadcrumb.tsx +4 -4
  66. package/src/components/navigations/RecentPagesNavigator.tsx +3 -3
  67. package/src/features/company/components/details/CompanyContent.tsx +105 -0
  68. package/src/features/company/components/details/CompanyDetails.tsx +2 -19
  69. package/src/features/company/components/details/index.ts +1 -0
  70. package/src/features/company/components/forms/CompanyConfigurationEditor.tsx +38 -70
  71. package/src/features/company/components/forms/CompanyEditor.tsx +214 -172
  72. package/src/features/company/data/company.interface.ts +20 -0
  73. package/src/features/company/data/company.ts +73 -0
  74. package/src/utils/fiscal-utils.ts +7 -0
  75. package/src/utils/italian-validators.ts +79 -0
  76. package/dist/chunk-5ODPC3YX.js.map +0 -1
  77. package/dist/chunk-LRXJT656.js.map +0 -1
  78. package/dist/chunk-OLNMWVOV.mjs.map +0 -1
  79. /package/dist/{BlockNoteEditor-SCQGD6F2.mjs.map → BlockNoteEditor-KCJMA6LW.mjs.map} +0 -0
  80. /package/dist/{chunk-5KMKI23S.mjs.map → chunk-UXGPZZ6V.mjs.map} +0 -0
@@ -47,11 +47,11 @@ import {
47
47
  TabsList,
48
48
  TabsTrigger,
49
49
  useCurrentUserContext
50
- } from "../chunk-OLNMWVOV.mjs";
50
+ } from "../chunk-4E74ZTRT.mjs";
51
51
  import {
52
52
  getRoleId,
53
53
  getStripePublishableKey
54
- } from "../chunk-5KMKI23S.mjs";
54
+ } from "../chunk-UXGPZZ6V.mjs";
55
55
  import {
56
56
  FeatureService,
57
57
  StripeCustomerService,
@@ -62,7 +62,7 @@ import {
62
62
  StripeSubscriptionService,
63
63
  StripeUsageService,
64
64
  cn
65
- } from "../chunk-G7PGWMFO.mjs";
65
+ } from "../chunk-35GWVOYZ.mjs";
66
66
  import "../chunk-AUXK7QSA.mjs";
67
67
  import "../chunk-C7C7VY4F.mjs";
68
68
  import "../chunk-BTKJFMFL.mjs";
@@ -4808,6 +4808,16 @@ var Company = class extends AbstractApiData {
4808
4808
  _availableExtraTokens = 0;
4809
4809
  _features;
4810
4810
  _modules;
4811
+ _legal_address;
4812
+ _street_number;
4813
+ _street;
4814
+ _city;
4815
+ _province;
4816
+ _region;
4817
+ _postcode;
4818
+ _country;
4819
+ _country_code;
4820
+ _fiscal_data;
4811
4821
  get name() {
4812
4822
  if (this._name === void 0) throw new Error("Name is not defined");
4813
4823
  return this._name;
@@ -4839,6 +4849,36 @@ var Company = class extends AbstractApiData {
4839
4849
  get configurations() {
4840
4850
  return this._configurations;
4841
4851
  }
4852
+ get legal_address() {
4853
+ return this._legal_address;
4854
+ }
4855
+ get street_number() {
4856
+ return this._street_number;
4857
+ }
4858
+ get street() {
4859
+ return this._street;
4860
+ }
4861
+ get city() {
4862
+ return this._city;
4863
+ }
4864
+ get province() {
4865
+ return this._province;
4866
+ }
4867
+ get region() {
4868
+ return this._region;
4869
+ }
4870
+ get postcode() {
4871
+ return this._postcode;
4872
+ }
4873
+ get country() {
4874
+ return this._country;
4875
+ }
4876
+ get country_code() {
4877
+ return this._country_code;
4878
+ }
4879
+ get fiscal_data() {
4880
+ return this._fiscal_data;
4881
+ }
4842
4882
  rehydrate(data) {
4843
4883
  super.rehydrate(data);
4844
4884
  this._name = data.jsonApi.attributes.name;
@@ -4849,6 +4889,16 @@ var Company = class extends AbstractApiData {
4849
4889
  this._monthlyTokens = data.jsonApi.attributes.monthlyTokens ?? 0;
4850
4890
  this._availableMonthlyTokens = data.jsonApi.attributes.availableMonthlyTokens ?? 0;
4851
4891
  this._availableExtraTokens = data.jsonApi.attributes.availableExtraTokens ?? 0;
4892
+ this._legal_address = data.jsonApi.attributes.legal_address;
4893
+ this._street_number = data.jsonApi.attributes.street_number;
4894
+ this._street = data.jsonApi.attributes.street;
4895
+ this._city = data.jsonApi.attributes.city;
4896
+ this._province = data.jsonApi.attributes.province;
4897
+ this._region = data.jsonApi.attributes.region;
4898
+ this._postcode = data.jsonApi.attributes.postcode;
4899
+ this._country = data.jsonApi.attributes.country;
4900
+ this._country_code = data.jsonApi.attributes.country_code;
4901
+ this._fiscal_data = data.jsonApi.attributes.fiscal_data;
4852
4902
  this._features = this._readIncluded(data, "features", Modules.Feature);
4853
4903
  this._modules = this._readIncluded(data, "modules", Modules.Module);
4854
4904
  return this;
@@ -4872,6 +4922,16 @@ var Company = class extends AbstractApiData {
4872
4922
  response.data.attributes.availableMonthlyTokens = data.availableMonthlyTokens;
4873
4923
  if (data.availableExtraTokens !== void 0)
4874
4924
  response.data.attributes.availableExtraTokens = data.availableExtraTokens;
4925
+ if (data.legal_address !== void 0) response.data.attributes.legal_address = data.legal_address;
4926
+ if (data.street_number !== void 0) response.data.attributes.street_number = data.street_number;
4927
+ if (data.street !== void 0) response.data.attributes.street = data.street;
4928
+ if (data.city !== void 0) response.data.attributes.city = data.city;
4929
+ if (data.province !== void 0) response.data.attributes.province = data.province;
4930
+ if (data.region !== void 0) response.data.attributes.region = data.region;
4931
+ if (data.postcode !== void 0) response.data.attributes.postcode = data.postcode;
4932
+ if (data.country !== void 0) response.data.attributes.country = data.country;
4933
+ if (data.country_code !== void 0) response.data.attributes.country_code = data.country_code;
4934
+ if (data.fiscal_data !== void 0) response.data.attributes.fiscal_data = data.fiscal_data;
4875
4935
  if (data.featureIds && data.featureIds.length > 0) {
4876
4936
  response.data.relationships.features = {
4877
4937
  data: data.featureIds.map((featureId) => ({
@@ -6913,4 +6973,4 @@ export {
6913
6973
  AuditLogService,
6914
6974
  AuditLogModule
6915
6975
  };
6916
- //# sourceMappingURL=chunk-G7PGWMFO.mjs.map
6976
+ //# sourceMappingURL=chunk-35GWVOYZ.mjs.map