@carlonicora/nextjs-jsonapi 1.28.0 → 1.29.1
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/dist/{BlockNoteEditor-CAUNVZUF.js → BlockNoteEditor-7BDLLHRA.js} +13 -13
- package/dist/{BlockNoteEditor-CAUNVZUF.js.map → BlockNoteEditor-7BDLLHRA.js.map} +1 -1
- package/dist/{BlockNoteEditor-EOA4OEVX.mjs → BlockNoteEditor-F5KCNLVF.mjs} +3 -3
- package/dist/billing/index.d.mts +47 -17
- package/dist/billing/index.d.ts +47 -17
- package/dist/billing/index.js +1241 -1073
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +1375 -1207
- package/dist/billing/index.mjs.map +1 -1
- package/dist/{chunk-IXI4GAKB.js → chunk-7M7NPKOF.js} +490 -433
- package/dist/chunk-7M7NPKOF.js.map +1 -0
- package/dist/{chunk-ORFXBO7F.mjs → chunk-DU64WMZD.mjs} +6 -3
- package/dist/chunk-DU64WMZD.mjs.map +1 -0
- package/dist/{chunk-TSEU4KZ2.js → chunk-J22NEVSK.js} +21 -18
- package/dist/chunk-J22NEVSK.js.map +1 -0
- package/dist/{chunk-PYASRX75.mjs → chunk-YLSLXQ3O.mjs} +83 -26
- package/dist/chunk-YLSLXQ3O.mjs.map +1 -0
- package/dist/client/index.d.mts +14 -5
- package/dist/client/index.d.ts +14 -5
- package/dist/client/index.js +5 -3
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +4 -2
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +3 -3
- package/dist/components/index.mjs +2 -2
- package/dist/{config-B4pZpLT9.d.ts → config-CHwoRDOp.d.ts} +1 -1
- package/dist/{config-DT1K-t6I.d.mts → config-DiWyJzk9.d.mts} +1 -1
- package/dist/{content.interface-B2Ldg0vg.d.mts → content.interface-BSpowEiW.d.mts} +1 -1
- package/dist/{content.interface-D8NHv3DX.d.ts → content.interface-DFQ7mkpL.d.ts} +1 -1
- package/dist/contexts/index.d.mts +2 -2
- package/dist/contexts/index.d.ts +2 -2
- package/dist/contexts/index.js +3 -3
- package/dist/contexts/index.mjs +2 -2
- package/dist/core/index.d.mts +39 -37
- package/dist/core/index.d.ts +39 -37
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{notification.interface-H0L9WBge.d.ts → notification.interface-CmKmObIU.d.ts} +1 -0
- package/dist/{notification.interface-DEn-Yp_b.d.mts → notification.interface-D5MbtfZK.d.mts} +1 -0
- package/dist/{s3.service-BNytYanU.d.mts → s3.service-BMT7W6KS.d.mts} +19 -19
- package/dist/{s3.service-C7f_Ygz5.d.ts → s3.service-DsXo9nop.d.ts} +19 -19
- package/dist/server/index.d.mts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/dist/{useSocket-BcnThTD0.d.mts → useSocket-DUqGoPya.d.mts} +1 -1
- package/dist/{useSocket-QZTOCzRF.d.ts → useSocket-QuHa0ZmO.d.ts} +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +1 -0
- package/src/components/forms/FormSelect.tsx +2 -1
- package/src/components/pages/PageContentContainer.tsx +2 -2
- package/src/features/auth/data/auth.ts +0 -2
- package/src/features/billing/components/containers/BillingDashboardContainer.tsx +60 -3
- package/src/features/billing/stripe-customer/components/forms/PaymentMethodEditor.tsx +12 -152
- package/src/features/billing/stripe-customer/components/forms/PaymentMethodForm.tsx +168 -0
- package/src/features/billing/stripe-customer/components/forms/index.ts +1 -0
- package/src/features/billing/stripe-price/components/forms/PriceEditor.tsx +19 -1
- package/src/features/billing/stripe-product/components/forms/ProductEditor.tsx +2 -2
- package/src/features/billing/stripe-subscription/components/containers/SubscriptionsContainer.tsx +24 -235
- package/src/features/billing/stripe-subscription/components/details/SubscriptionDetails.tsx +7 -18
- package/src/features/billing/stripe-subscription/components/forms/index.ts +0 -1
- package/src/features/billing/stripe-subscription/components/lists/SubscriptionsList.tsx +10 -1
- package/src/features/billing/stripe-subscription/components/widgets/IntervalToggle.tsx +28 -0
- package/src/features/billing/stripe-subscription/components/widgets/ProductPricingList.tsx +128 -0
- package/src/features/billing/stripe-subscription/components/widgets/ProductPricingRow.tsx +54 -0
- package/src/features/billing/stripe-subscription/components/widgets/SubscriptionConfirmation.tsx +68 -0
- package/src/features/billing/stripe-subscription/components/widgets/index.ts +4 -1
- package/src/features/billing/stripe-subscription/components/wizards/SubscriptionWizard.tsx +114 -0
- package/src/features/billing/stripe-subscription/components/wizards/WizardProgressIndicator.tsx +66 -0
- package/src/features/billing/stripe-subscription/components/wizards/WizardStepPaymentMethod.tsx +32 -0
- package/src/features/billing/stripe-subscription/components/wizards/WizardStepPlanSelection.tsx +103 -0
- package/src/features/billing/stripe-subscription/components/wizards/WizardStepReview.tsx +133 -0
- package/src/features/billing/stripe-subscription/components/wizards/index.ts +6 -0
- package/src/features/billing/stripe-subscription/hooks/useSubscriptionWizard.ts +217 -0
- package/src/features/billing/stripe-subscription/index.ts +3 -2
- package/src/features/company/components/details/TokenStatusIndicator.tsx +19 -9
- package/src/features/company/data/company.interface.ts +2 -0
- package/src/features/company/data/company.ts +7 -0
- package/src/features/company/hooks/index.ts +1 -0
- package/src/features/company/hooks/useSubscriptionStatus.ts +71 -0
- package/src/features/user/components/forms/UserEditor.tsx +1 -1
- package/src/features/user/components/lists/AdminUsersList.tsx +1 -1
- package/src/features/user/contexts/CurrentUserContext.tsx +1 -1
- package/src/features/user/data/user.ts +1 -1
- package/dist/chunk-IXI4GAKB.js.map +0 -1
- package/dist/chunk-ORFXBO7F.mjs.map +0 -1
- package/dist/chunk-PYASRX75.mjs.map +0 -1
- package/dist/chunk-TSEU4KZ2.js.map +0 -1
- package/src/features/billing/stripe-subscription/components/forms/SubscriptionEditor.tsx +0 -331
- package/src/features/billing/stripe-subscription/components/widgets/PricingCardsGrid.tsx +0 -110
- /package/dist/{BlockNoteEditor-EOA4OEVX.mjs.map → BlockNoteEditor-F5KCNLVF.mjs.map} +0 -0
|
@@ -2249,8 +2249,6 @@ var Auth = class extends AbstractApiData {
|
|
|
2249
2249
|
if (data.name !== void 0) response.data.attributes.name = data.name;
|
|
2250
2250
|
if (data.companyName !== void 0) response.data.attributes.companyName = data.companyName;
|
|
2251
2251
|
if (data.password !== void 0) response.data.attributes.password = data.password;
|
|
2252
|
-
if (data.partitaIva !== void 0) response.data.attributes.partitaIva = data.partitaIva;
|
|
2253
|
-
if (data.codiceFiscale !== void 0) response.data.attributes.codiceFiscale = data.codiceFiscale;
|
|
2254
2252
|
return response;
|
|
2255
2253
|
}
|
|
2256
2254
|
};
|
|
@@ -3753,7 +3751,7 @@ var StripeUsageModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (fa
|
|
|
3753
3751
|
}), "StripeUsageModule");
|
|
3754
3752
|
|
|
3755
3753
|
// src/features/company/data/company.ts
|
|
3756
|
-
var Company = (_class8 = class extends AbstractApiData {constructor(...args6) { super(...args6); _class8.prototype.__init9.call(this);_class8.prototype.__init10.call(this);_class8.prototype.__init11.call(this); }
|
|
3754
|
+
var Company = (_class8 = class extends AbstractApiData {constructor(...args6) { super(...args6); _class8.prototype.__init9.call(this);_class8.prototype.__init10.call(this);_class8.prototype.__init11.call(this);_class8.prototype.__init12.call(this); }
|
|
3757
3755
|
static {
|
|
3758
3756
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "Company");
|
|
3759
3757
|
}
|
|
@@ -3761,9 +3759,10 @@ var Company = (_class8 = class extends AbstractApiData {constructor(...args6) {
|
|
|
3761
3759
|
|
|
3762
3760
|
|
|
3763
3761
|
|
|
3764
|
-
__init9() {this.
|
|
3765
|
-
__init10() {this.
|
|
3766
|
-
__init11() {this.
|
|
3762
|
+
__init9() {this._isActiveSubscription = false}
|
|
3763
|
+
__init10() {this._monthlyTokens = 0}
|
|
3764
|
+
__init11() {this._availableMonthlyTokens = 0}
|
|
3765
|
+
__init12() {this._availableExtraTokens = 0}
|
|
3767
3766
|
|
|
3768
3767
|
|
|
3769
3768
|
get name() {
|
|
@@ -3776,6 +3775,9 @@ var Company = (_class8 = class extends AbstractApiData {constructor(...args6) {
|
|
|
3776
3775
|
get logoUrl() {
|
|
3777
3776
|
return this._logoUrl;
|
|
3778
3777
|
}
|
|
3778
|
+
get isActiveSubscription() {
|
|
3779
|
+
return _nullishCoalesce(this._isActiveSubscription, () => ( false));
|
|
3780
|
+
}
|
|
3779
3781
|
get monthlyTokens() {
|
|
3780
3782
|
return _nullishCoalesce(this._monthlyTokens, () => ( 0));
|
|
3781
3783
|
}
|
|
@@ -3800,6 +3802,7 @@ var Company = (_class8 = class extends AbstractApiData {constructor(...args6) {
|
|
|
3800
3802
|
this._configurations = data.jsonApi.attributes.configurations ? JSON.parse(data.jsonApi.attributes.configurations) : void 0;
|
|
3801
3803
|
this._logo = data.jsonApi.attributes.logo;
|
|
3802
3804
|
this._logoUrl = data.jsonApi.attributes.logoUrl;
|
|
3805
|
+
this._isActiveSubscription = _nullishCoalesce(data.jsonApi.attributes.isActiveSubscription, () => ( false));
|
|
3803
3806
|
this._monthlyTokens = _nullishCoalesce(data.jsonApi.attributes.monthlyTokens, () => ( 0));
|
|
3804
3807
|
this._availableMonthlyTokens = _nullishCoalesce(data.jsonApi.attributes.availableMonthlyTokens, () => ( 0));
|
|
3805
3808
|
this._availableExtraTokens = _nullishCoalesce(data.jsonApi.attributes.availableExtraTokens, () => ( 0));
|
|
@@ -4083,13 +4086,13 @@ var ContentModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factor
|
|
|
4083
4086
|
}), "ContentModule");
|
|
4084
4087
|
|
|
4085
4088
|
// src/features/feature/data/feature.ts
|
|
4086
|
-
var Feature = (_class9 = class extends AbstractApiData {constructor(...args7) { super(...args7); _class9.prototype.
|
|
4089
|
+
var Feature = (_class9 = class extends AbstractApiData {constructor(...args7) { super(...args7); _class9.prototype.__init13.call(this); }
|
|
4087
4090
|
static {
|
|
4088
4091
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "Feature");
|
|
4089
4092
|
}
|
|
4090
4093
|
|
|
4091
4094
|
|
|
4092
|
-
|
|
4095
|
+
__init13() {this._modules = []}
|
|
4093
4096
|
get name() {
|
|
4094
4097
|
return _nullishCoalesce(this._name, () => ( ""));
|
|
4095
4098
|
}
|
|
@@ -4557,7 +4560,7 @@ var S3Service = class extends AbstractService {
|
|
|
4557
4560
|
};
|
|
4558
4561
|
|
|
4559
4562
|
// src/features/user/data/user.ts
|
|
4560
|
-
var User = (_class10 = class extends AbstractApiData {constructor(...args8) { super(...args8); _class10.prototype.
|
|
4563
|
+
var User = (_class10 = class extends AbstractApiData {constructor(...args8) { super(...args8); _class10.prototype.__init14.call(this);_class10.prototype.__init15.call(this); }
|
|
4561
4564
|
static {
|
|
4562
4565
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "User");
|
|
4563
4566
|
}
|
|
@@ -4573,9 +4576,9 @@ var User = (_class10 = class extends AbstractApiData {constructor(...args8) { su
|
|
|
4573
4576
|
|
|
4574
4577
|
|
|
4575
4578
|
|
|
4576
|
-
|
|
4579
|
+
__init14() {this._roles = []}
|
|
4577
4580
|
|
|
4578
|
-
|
|
4581
|
+
__init15() {this._modules = []}
|
|
4579
4582
|
get searchResult() {
|
|
4580
4583
|
return _nullishCoalesce(this._name, () => ( ""));
|
|
4581
4584
|
}
|
|
@@ -4902,18 +4905,18 @@ var UserModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (factory)
|
|
|
4902
4905
|
}), "UserModule");
|
|
4903
4906
|
|
|
4904
4907
|
// src/features/oauth/data/oauth.ts
|
|
4905
|
-
var OAuthClient = (_class11 = class extends AbstractApiData {constructor(...args9) { super(...args9); _class11.prototype.
|
|
4908
|
+
var OAuthClient = (_class11 = class extends AbstractApiData {constructor(...args9) { super(...args9); _class11.prototype.__init16.call(this);_class11.prototype.__init17.call(this);_class11.prototype.__init18.call(this);_class11.prototype.__init19.call(this);_class11.prototype.__init20.call(this); }
|
|
4906
4909
|
static {
|
|
4907
4910
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "OAuthClient");
|
|
4908
4911
|
}
|
|
4909
4912
|
|
|
4910
4913
|
|
|
4911
4914
|
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4915
|
+
__init16() {this._redirectUris = []}
|
|
4916
|
+
__init17() {this._allowedScopes = []}
|
|
4917
|
+
__init18() {this._allowedGrantTypes = []}
|
|
4918
|
+
__init19() {this._isConfidential = true}
|
|
4919
|
+
__init20() {this._isActive = true}
|
|
4917
4920
|
get clientId() {
|
|
4918
4921
|
return _nullishCoalesce(this._clientId, () => ( this.id));
|
|
4919
4922
|
}
|
|
@@ -5302,4 +5305,4 @@ var DEFAULT_GRANT_TYPES = ["authorization_code", "refresh_token"];
|
|
|
5302
5305
|
|
|
5303
5306
|
|
|
5304
5307
|
exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.HttpMethod = HttpMethod; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; 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.useIsMobile = useIsMobile; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; 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.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; 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.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; 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.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; 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;
|
|
5305
|
-
//# sourceMappingURL=chunk-
|
|
5308
|
+
//# sourceMappingURL=chunk-J22NEVSK.js.map
|