@carlonicora/nextjs-jsonapi 1.15.0 → 1.17.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.
- package/dist/ApiData-DPKNfY-9.d.mts +10 -0
- package/dist/ApiData-DPKNfY-9.d.ts +10 -0
- package/dist/ApiRequestDataTypeInterface-DIEOFn9s.d.mts +40 -0
- package/dist/ApiRequestDataTypeInterface-DIEOFn9s.d.ts +40 -0
- package/dist/{ApiResponseInterface-QLDnxLA9.d.ts → ApiResponseInterface-BKyod24U.d.ts} +3 -11
- package/dist/{ApiResponseInterface-B4QdWh-y.d.mts → ApiResponseInterface-Dqvu09tz.d.mts} +3 -11
- package/dist/{BlockNoteEditor-FGXYUAWI.js → BlockNoteEditor-34T5CY27.js} +17 -16
- package/dist/BlockNoteEditor-34T5CY27.js.map +1 -0
- package/dist/{BlockNoteEditor-ITJLAOXC.mjs → BlockNoteEditor-4Z6TZBJE.mjs} +7 -6
- package/dist/{BlockNoteEditor-ITJLAOXC.mjs.map → BlockNoteEditor-4Z6TZBJE.mjs.map} +1 -1
- package/dist/JsonApiContext-Bsm_Q2oe.d.mts +41 -0
- package/dist/JsonApiContext-Bsm_Q2oe.d.ts +41 -0
- package/dist/JsonApiRequest-54ZBO7WQ.js +24 -0
- package/dist/{JsonApiRequest-FXZCYIER.js.map → JsonApiRequest-54ZBO7WQ.js.map} +1 -1
- package/dist/{JsonApiRequest-HFWXMKMA.mjs → JsonApiRequest-XWQWTFEQ.mjs} +2 -2
- package/dist/chunk-3EPNHTMH.js +26 -0
- package/dist/chunk-3EPNHTMH.js.map +1 -0
- package/dist/{chunk-TGBXBUWM.mjs → chunk-3VM3WAOV.mjs} +8 -1
- package/dist/chunk-3VM3WAOV.mjs.map +1 -0
- package/dist/{chunk-6YD42BP6.js → chunk-7DTKRMYW.js} +31 -19
- package/dist/chunk-7DTKRMYW.js.map +1 -0
- package/dist/{chunk-PK5DRSUD.js → chunk-D7H7SRWB.js} +4104 -793
- package/dist/chunk-D7H7SRWB.js.map +1 -0
- package/dist/{chunk-JGVXZS7M.mjs → chunk-KUFWHMMY.mjs} +1592 -133
- package/dist/chunk-KUFWHMMY.mjs.map +1 -0
- package/dist/{chunk-SJIVGCNM.mjs → chunk-KX7YG6LY.mjs} +27 -15
- package/dist/chunk-KX7YG6LY.mjs.map +1 -0
- package/dist/{chunk-FPZPD4JI.js → chunk-LI6CPNJI.js} +17 -10
- package/dist/chunk-LI6CPNJI.js.map +1 -0
- package/dist/{chunk-WAFOKMKT.mjs → chunk-SXPXC2TY.mjs} +3729 -418
- package/dist/chunk-SXPXC2TY.mjs.map +1 -0
- package/dist/{chunk-C6QXZGL7.js → chunk-UYY34W7R.js} +1622 -163
- package/dist/chunk-UYY34W7R.js.map +1 -0
- package/dist/chunk-VOXD3ZLY.mjs +26 -0
- package/dist/chunk-VOXD3ZLY.mjs.map +1 -0
- package/dist/client/index.d.mts +11 -45
- package/dist/client/index.d.ts +11 -45
- package/dist/client/index.js +10 -6
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +13 -9
- package/dist/components/index.d.mts +254 -9
- package/dist/components/index.d.ts +254 -9
- package/dist/components/index.js +85 -6
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +84 -5
- package/dist/{config-C5tGGrYf.d.mts → config--nwiW74Z.d.ts} +7 -2
- package/dist/{config-eceYM5kN.d.ts → config-BKSQmUWU.d.mts} +7 -2
- package/dist/{content.interface-CxBBC7ec.d.mts → content.interface-4VICFRA0.d.ts} +2 -1
- package/dist/{content.interface-TB2MfJGs.d.ts → content.interface-CFc97-Cj.d.mts} +2 -1
- package/dist/contexts/index.d.mts +3 -2
- package/dist/contexts/index.d.ts +3 -2
- package/dist/contexts/index.js +7 -6
- package/dist/contexts/index.js.map +1 -1
- package/dist/contexts/index.mjs +6 -5
- package/dist/core/index.d.mts +524 -18
- package/dist/core/index.d.ts +524 -18
- package/dist/core/index.js +54 -4
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +53 -3
- package/dist/index.d.mts +16 -12
- package/dist/index.d.ts +16 -12
- package/dist/index.js +57 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +58 -6
- package/dist/{notification.interface-lG6UpTpt.d.mts → notification.interface-BGaPiCUM.d.mts} +3 -42
- package/dist/{notification.interface-lG6UpTpt.d.ts → notification.interface-CqwaOIgM.d.ts} +3 -42
- package/dist/{s3.service-DP_hsssD.d.mts → s3.service-BYs88XEE.d.ts} +21 -2
- package/dist/{s3.service-Dq-PTUNa.d.ts → s3.service-C0BjOdvn.d.mts} +21 -2
- package/dist/scripts/generate-web-module/generator.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/generator.js +66 -0
- package/dist/scripts/generate-web-module/generator.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/index.d.ts +8 -0
- package/dist/scripts/generate-web-module/templates/index.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/templates/index.js +18 -1
- package/dist/scripts/generate-web-module/templates/index.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/project/bootstrapper.template.d.ts +7 -0
- package/dist/scripts/generate-web-module/templates/project/bootstrapper.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/bootstrapper.template.js +141 -0
- package/dist/scripts/generate-web-module/templates/project/bootstrapper.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/env.template.d.ts +7 -0
- package/dist/scripts/generate-web-module/templates/project/env.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/env.template.js +110 -0
- package/dist/scripts/generate-web-module/templates/project/env.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/main-layout.template.d.ts +7 -0
- package/dist/scripts/generate-web-module/templates/project/main-layout.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/main-layout.template.js +101 -0
- package/dist/scripts/generate-web-module/templates/project/main-layout.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/middleware-env.template.d.ts +7 -0
- package/dist/scripts/generate-web-module/templates/project/middleware-env.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/middleware-env.template.js +66 -0
- package/dist/scripts/generate-web-module/templates/project/middleware-env.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/settings-container.template.d.ts +7 -0
- package/dist/scripts/generate-web-module/templates/project/settings-container.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/settings-container.template.js +257 -0
- package/dist/scripts/generate-web-module/templates/project/settings-container.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/settings-context.template.d.ts +7 -0
- package/dist/scripts/generate-web-module/templates/project/settings-context.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/settings-context.template.js +124 -0
- package/dist/scripts/generate-web-module/templates/project/settings-context.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/settings-module-page.template.d.ts +7 -0
- package/dist/scripts/generate-web-module/templates/project/settings-module-page.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/settings-module-page.template.js +78 -0
- package/dist/scripts/generate-web-module/templates/project/settings-module-page.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/settings-page.template.d.ts +7 -0
- package/dist/scripts/generate-web-module/templates/project/settings-page.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/project/settings-page.template.js +75 -0
- package/dist/scripts/generate-web-module/templates/project/settings-page.template.js.map +1 -0
- package/dist/scripts/generate-web-module/types/template-data.interface.d.ts +1 -1
- package/dist/scripts/generate-web-module/types/template-data.interface.d.ts.map +1 -1
- package/dist/server/index.d.mts +6 -4
- package/dist/server/index.d.ts +6 -4
- package/dist/server/index.js +13 -13
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/stripe-subscription.interface-B-TM40Io.d.ts +226 -0
- package/dist/stripe-subscription.interface-DDxnpj0F.d.mts +226 -0
- package/dist/testing/index.d.mts +338 -0
- package/dist/testing/index.d.ts +338 -0
- package/dist/testing/index.js +323 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/index.mjs +323 -0
- package/dist/testing/index.mjs.map +1 -0
- package/dist/{useSocket-Bua6MwLi.d.mts → useSocket-BNj9PrRw.d.mts} +1 -1
- package/dist/{useSocket-D5dhUp4m.d.ts → useSocket-Dwt8cz1x.d.ts} +1 -1
- package/package.json +29 -3
- package/scripts/generate-web-module/generator.ts +83 -0
- package/scripts/generate-web-module/templates/index.ts +10 -0
- package/scripts/generate-web-module/templates/project/bootstrapper.template.ts +108 -0
- package/scripts/generate-web-module/templates/project/env.template.ts +77 -0
- package/scripts/generate-web-module/templates/project/main-layout.template.tsx +68 -0
- package/scripts/generate-web-module/templates/project/middleware-env.template.ts +33 -0
- package/scripts/generate-web-module/templates/project/settings-container.template.tsx +224 -0
- package/scripts/generate-web-module/templates/project/settings-context.template.tsx +91 -0
- package/scripts/generate-web-module/templates/project/settings-module-page.template.tsx +45 -0
- package/scripts/generate-web-module/templates/project/settings-page.template.tsx +42 -0
- package/scripts/generate-web-module/types/template-data.interface.ts +1 -1
- package/src/client/config.ts +9 -0
- package/src/client/hooks/__tests__/useJsonApiGet.test.tsx +229 -0
- package/src/client/hooks/__tests__/useJsonApiMutation.test.tsx +348 -0
- package/src/client/hooks/__tests__/useRehydration.test.ts +188 -0
- package/src/components/forms/__tests__/FormCheckbox.test.tsx +238 -0
- package/src/components/forms/__tests__/FormDate.test.tsx +212 -0
- package/src/components/forms/__tests__/FormInput.test.tsx +292 -0
- package/src/components/forms/__tests__/FormSelect.test.tsx +173 -0
- package/src/components/index.ts +7 -0
- package/src/components/tables/__tests__/ContentListTable.test.tsx +411 -0
- package/src/core/abstracts/AbstractService.ts +104 -0
- package/src/core/endpoint/EndpointCreator.ts +7 -4
- package/src/core/endpoint/__tests__/EndpointCreator.test.ts +168 -0
- package/src/core/factories/__tests__/JsonApiDataFactory.test.ts +109 -0
- package/src/core/factories/__tests__/RehydrationFactory.test.ts +151 -0
- package/src/core/index.ts +12 -4
- package/src/core/interfaces/ApiResponseInterface.ts +1 -0
- package/src/core/registry/ModuleRegistry.ts +11 -2
- package/src/core/registry/__tests__/DataClassRegistry.test.ts +136 -0
- package/src/core/registry/__tests__/ModuleRegistrar.test.ts +159 -0
- package/src/core/utils/translateResponse.ts +17 -0
- package/src/features/auth/components/details/LandingComponent.tsx +14 -12
- package/src/features/billing/components/cards/BillingUsageSummaryCard.tsx +97 -0
- package/src/features/billing/components/cards/CustomerInfoCard.tsx +112 -0
- package/src/features/billing/components/cards/InvoicesSummaryCard.tsx +114 -0
- package/src/features/billing/components/cards/PaymentMethodSummaryCard.tsx +119 -0
- package/src/features/billing/components/cards/SubscriptionSummaryCard.tsx +146 -0
- package/src/features/billing/components/cards/index.ts +5 -0
- package/src/features/billing/components/containers/BillingDashboardContainer.tsx +427 -0
- package/src/features/billing/components/containers/index.ts +1 -0
- package/src/features/billing/components/index.ts +6 -0
- package/src/features/billing/components/modals/BillingDetailModal.tsx +36 -0
- package/src/features/billing/components/modals/index.ts +1 -0
- package/src/features/billing/components/providers/StripeProvider.tsx +48 -0
- package/src/features/billing/components/providers/index.ts +1 -0
- package/src/features/billing/components/utils/currency.ts +49 -0
- package/src/features/billing/components/utils/date.ts +21 -0
- package/src/features/billing/components/utils/index.ts +2 -0
- package/src/features/billing/components/widgets/BillingAlertBanner.tsx +63 -0
- package/src/features/billing/components/widgets/index.ts +1 -0
- package/src/features/billing/data/Billing.ts +17 -0
- package/src/features/billing/data/billing.service.ts +58 -0
- package/src/features/billing/data/index.ts +5 -0
- package/src/features/billing/index.ts +3 -0
- package/src/features/billing/modules/billing.module.ts +9 -0
- package/src/features/billing/modules/index.ts +1 -0
- package/src/features/billing/stripe-customer/components/containers/PaymentMethodsContainer.tsx +79 -0
- package/src/features/billing/stripe-customer/components/containers/index.ts +1 -0
- package/src/features/billing/stripe-customer/components/details/PaymentMethodCard.tsx +151 -0
- package/src/features/billing/stripe-customer/components/details/index.ts +1 -0
- package/src/features/billing/stripe-customer/components/forms/PaymentMethodEditor.tsx +186 -0
- package/src/features/billing/stripe-customer/components/forms/index.ts +1 -0
- package/src/features/billing/stripe-customer/components/index.ts +4 -0
- package/src/features/billing/stripe-customer/components/lists/PaymentMethodsList.tsx +19 -0
- package/src/features/billing/stripe-customer/components/lists/index.ts +1 -0
- package/src/features/billing/stripe-customer/data/index.ts +5 -0
- package/src/features/billing/stripe-customer/data/payment-method.interface.ts +27 -0
- package/src/features/billing/stripe-customer/data/payment-method.ts +119 -0
- package/src/features/billing/stripe-customer/data/stripe-customer.interface.ts +16 -0
- package/src/features/billing/stripe-customer/data/stripe-customer.service.ts +128 -0
- package/src/features/billing/stripe-customer/data/stripe-customer.ts +71 -0
- package/src/features/billing/stripe-customer/index.ts +3 -0
- package/src/features/billing/stripe-customer/stripe-customer.module.ts +9 -0
- package/src/features/billing/stripe-customer/stripe-payment-method.module.ts +9 -0
- package/src/features/billing/stripe-invoice/components/containers/InvoicesContainer.tsx +66 -0
- package/src/features/billing/stripe-invoice/components/containers/index.ts +1 -0
- package/src/features/billing/stripe-invoice/components/details/InvoiceDetails.tsx +172 -0
- package/src/features/billing/stripe-invoice/components/details/index.ts +1 -0
- package/src/features/billing/stripe-invoice/components/index.ts +4 -0
- package/src/features/billing/stripe-invoice/components/lists/InvoicesList.tsx +84 -0
- package/src/features/billing/stripe-invoice/components/lists/index.ts +1 -0
- package/src/features/billing/stripe-invoice/components/widgets/InvoiceStatusBadge.tsx +41 -0
- package/src/features/billing/stripe-invoice/components/widgets/index.ts +1 -0
- package/src/features/billing/stripe-invoice/data/index.ts +3 -0
- package/src/features/billing/stripe-invoice/data/stripe-invoice.interface.ts +65 -0
- package/src/features/billing/stripe-invoice/data/stripe-invoice.service.ts +64 -0
- package/src/features/billing/stripe-invoice/data/stripe-invoice.ts +177 -0
- package/src/features/billing/stripe-invoice/index.ts +2 -0
- package/src/features/billing/stripe-invoice/stripe-invoice.module.ts +9 -0
- package/src/features/billing/stripe-price/components/forms/PriceEditor.tsx +304 -0
- package/src/features/billing/stripe-price/components/forms/index.ts +1 -0
- package/src/features/billing/stripe-price/components/index.ts +2 -0
- package/src/features/billing/stripe-price/components/lists/PricesList.tsx +283 -0
- package/src/features/billing/stripe-price/components/lists/index.ts +1 -0
- package/src/features/billing/stripe-price/data/index.ts +3 -0
- package/src/features/billing/stripe-price/data/stripe-price.interface.ts +48 -0
- package/src/features/billing/stripe-price/data/stripe-price.service.ts +123 -0
- package/src/features/billing/stripe-price/data/stripe-price.ts +156 -0
- package/src/features/billing/stripe-price/index.ts +2 -0
- package/src/features/billing/stripe-price/stripe-price.module.ts +9 -0
- package/src/features/billing/stripe-product/components/containers/ProductsAdminContainer.tsx +86 -0
- package/src/features/billing/stripe-product/components/containers/index.ts +1 -0
- package/src/features/billing/stripe-product/components/forms/ProductEditor.tsx +100 -0
- package/src/features/billing/stripe-product/components/forms/index.ts +1 -0
- package/src/features/billing/stripe-product/components/index.ts +3 -0
- package/src/features/billing/stripe-product/components/lists/ProductsList.tsx +206 -0
- package/src/features/billing/stripe-product/components/lists/index.ts +1 -0
- package/src/features/billing/stripe-product/data/index.ts +3 -0
- package/src/features/billing/stripe-product/data/stripe-product.interface.ts +18 -0
- package/src/features/billing/stripe-product/data/stripe-product.service.ts +112 -0
- package/src/features/billing/stripe-product/data/stripe-product.ts +74 -0
- package/src/features/billing/stripe-product/index.ts +2 -0
- package/src/features/billing/stripe-product/stripe-product.module.ts +9 -0
- package/src/features/billing/stripe-subscription/components/containers/SubscriptionsContainer.tsx +304 -0
- package/src/features/billing/stripe-subscription/components/containers/index.ts +1 -0
- package/src/features/billing/stripe-subscription/components/details/SubscriptionDetails.tsx +223 -0
- package/src/features/billing/stripe-subscription/components/details/index.ts +1 -0
- package/src/features/billing/stripe-subscription/components/forms/CancelSubscriptionDialog.tsx +116 -0
- package/src/features/billing/stripe-subscription/components/forms/SubscriptionEditor.tsx +331 -0
- package/src/features/billing/stripe-subscription/components/forms/index.ts +2 -0
- package/src/features/billing/stripe-subscription/components/index.ts +5 -0
- package/src/features/billing/stripe-subscription/components/lists/SubscriptionsList.tsx +104 -0
- package/src/features/billing/stripe-subscription/components/lists/index.ts +1 -0
- package/src/features/billing/stripe-subscription/components/widgets/PricingCard.tsx +95 -0
- package/src/features/billing/stripe-subscription/components/widgets/PricingCardsGrid.tsx +110 -0
- package/src/features/billing/stripe-subscription/components/widgets/ProrationPreview.tsx +41 -0
- package/src/features/billing/stripe-subscription/components/widgets/SubscriptionStatusBadge.tsx +60 -0
- package/src/features/billing/stripe-subscription/components/widgets/index.ts +4 -0
- package/src/features/billing/stripe-subscription/data/index.ts +3 -0
- package/src/features/billing/stripe-subscription/data/stripe-subscription.interface.ts +66 -0
- package/src/features/billing/stripe-subscription/data/stripe-subscription.service.ts +193 -0
- package/src/features/billing/stripe-subscription/data/stripe-subscription.ts +135 -0
- package/src/features/billing/stripe-subscription/hooks/index.ts +1 -0
- package/src/features/billing/stripe-subscription/hooks/useConfirmSubscriptionPayment.ts +111 -0
- package/src/features/billing/stripe-subscription/index.ts +5 -0
- package/src/features/billing/stripe-subscription/stripe-subscription.module.ts +9 -0
- package/src/features/billing/stripe-usage/components/containers/UsageContainer.tsx +109 -0
- package/src/features/billing/stripe-usage/components/containers/index.ts +1 -0
- package/src/features/billing/stripe-usage/components/details/UsageSummaryCard.tsx +90 -0
- package/src/features/billing/stripe-usage/components/details/index.ts +1 -0
- package/src/features/billing/stripe-usage/components/index.ts +4 -0
- package/src/features/billing/stripe-usage/components/lists/UsageHistoryTable.tsx +72 -0
- package/src/features/billing/stripe-usage/components/lists/index.ts +1 -0
- package/src/features/billing/stripe-usage/components/widgets/UsageSummaryCards.tsx +19 -0
- package/src/features/billing/stripe-usage/components/widgets/index.ts +1 -0
- package/src/features/billing/stripe-usage/data/index.ts +3 -0
- package/src/features/billing/stripe-usage/data/stripe-usage.interface.ts +55 -0
- package/src/features/billing/stripe-usage/data/stripe-usage.service.ts +129 -0
- package/src/features/billing/stripe-usage/data/stripe-usage.ts +70 -0
- package/src/features/billing/stripe-usage/index.ts +2 -0
- package/src/features/billing/stripe-usage/stripe-usage.module.ts +9 -0
- package/src/features/company/components/forms/CompanyEditor.tsx +2 -2
- package/src/features/company/contexts/CompanyContext.tsx +2 -2
- package/src/features/feature/components/forms/FormFeatures.tsx +13 -106
- package/src/features/feature/data/feature.interface.ts +1 -1
- package/src/features/feature/data/feature.ts +4 -4
- package/src/features/index.ts +7 -0
- package/src/features/module/data/module.interface.ts +0 -1
- package/src/features/module/data/module.ts +0 -6
- package/src/features/user/components/lists/ContributorsList.tsx +2 -2
- package/src/features/user/components/widgets/UserAvatar.tsx +1 -1
- package/src/hooks/__tests__/useDataListRetriever.test.ts +321 -0
- package/src/hooks/__tests__/useDebounce.test.ts +170 -0
- package/src/index.ts +5 -2
- package/src/login/config.ts +27 -0
- package/src/login/index.ts +2 -0
- package/src/shadcnui/custom/link.tsx +16 -6
- package/src/testing/factories/createMockApiData.ts +143 -0
- package/src/testing/factories/createMockModule.ts +32 -0
- package/src/testing/factories/createMockResponse.ts +93 -0
- package/src/testing/factories/createMockService.ts +79 -0
- package/src/testing/index.ts +70 -0
- package/src/testing/matchers/jsonApiMatchers.ts +174 -0
- package/src/testing/providers/MockJsonApiProvider.tsx +58 -0
- package/src/testing/utils/renderWithProviders.tsx +76 -0
- package/src/utils/__tests__/date-formatter.test.ts +161 -0
- package/src/utils/__tests__/exists.test.ts +100 -0
- package/src/utils/blocknote-diff.util.ts +2 -1
- package/src/utils/blocknote-word-diff-renderer.util.ts +8 -7
- package/src/utils/cn.test.ts +44 -0
- package/dist/AuthComponent-hxOPs9o8.d.mts +0 -11
- package/dist/AuthComponent-hxOPs9o8.d.ts +0 -11
- package/dist/BlockNoteEditor-FGXYUAWI.js.map +0 -1
- package/dist/JsonApiRequest-FXZCYIER.js +0 -24
- package/dist/chunk-6YD42BP6.js.map +0 -1
- package/dist/chunk-C6QXZGL7.js.map +0 -1
- package/dist/chunk-FPZPD4JI.js.map +0 -1
- package/dist/chunk-JGVXZS7M.mjs.map +0 -1
- package/dist/chunk-PK5DRSUD.js.map +0 -1
- package/dist/chunk-SJIVGCNM.mjs.map +0 -1
- package/dist/chunk-TGBXBUWM.mjs.map +0 -1
- package/dist/chunk-WAFOKMKT.mjs.map +0 -1
- package/src/discord/config.ts +0 -15
- package/src/discord/index.ts +0 -1
- /package/dist/{JsonApiRequest-HFWXMKMA.mjs.map → JsonApiRequest-XWQWTFEQ.mjs.map} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name
|
|
3
|
+
} from "./chunk-PAWJFY3S.mjs";
|
|
4
|
+
|
|
5
|
+
// src/client/context/JsonApiContext.ts
|
|
6
|
+
import { createContext, useContext } from "react";
|
|
7
|
+
var JsonApiContext = createContext(null);
|
|
8
|
+
function useJsonApiConfig() {
|
|
9
|
+
const config = useContext(JsonApiContext);
|
|
10
|
+
if (!config) {
|
|
11
|
+
throw new Error("useJsonApiConfig must be used within a JsonApiProvider");
|
|
12
|
+
}
|
|
13
|
+
return config;
|
|
14
|
+
}
|
|
15
|
+
__name(useJsonApiConfig, "useJsonApiConfig");
|
|
16
|
+
function useJsonApiConfigOptional() {
|
|
17
|
+
return useContext(JsonApiContext);
|
|
18
|
+
}
|
|
19
|
+
__name(useJsonApiConfigOptional, "useJsonApiConfigOptional");
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
JsonApiContext,
|
|
23
|
+
useJsonApiConfig,
|
|
24
|
+
useJsonApiConfigOptional
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=chunk-VOXD3ZLY.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/client/context/JsonApiContext.ts"],"sourcesContent":["\"use client\";\n\nimport { createContext, useContext } from \"react\";\n\nexport type CacheProfile = \"seconds\" | \"minutes\" | \"hours\" | \"days\" | \"weeks\" | \"max\" | \"default\";\n\nexport interface JsonApiConfig {\n /**\n * The base URL for API requests (e.g., https://api.example.com)\n */\n apiUrl: string;\n\n /**\n * Custom token getter function. If not provided, will use default cookie-based token retrieval.\n */\n tokenGetter?: () => Promise<string | undefined>;\n\n /**\n * Custom language getter function. If not provided, will use browser locale or next-intl.\n */\n languageGetter?: () => Promise<string>;\n\n /**\n * Default headers to include in all requests\n */\n defaultHeaders?: Record<string, string>;\n\n /**\n * Global error handler for failed requests (client-side only)\n */\n onError?: (status: number, message: string) => void;\n\n /**\n * Cache configuration\n */\n cacheConfig?: {\n defaultProfile: CacheProfile;\n };\n\n /**\n * Function to bootstrap the data class registry.\n * Will be called automatically when needed.\n */\n bootstrapper?: () => void;\n}\n\nconst JsonApiContext = createContext<JsonApiConfig | null>(null);\n\nexport function useJsonApiConfig(): JsonApiConfig {\n const config = useContext(JsonApiContext);\n if (!config) {\n throw new Error(\"useJsonApiConfig must be used within a JsonApiProvider\");\n }\n return config;\n}\n\nexport function useJsonApiConfigOptional(): JsonApiConfig | null {\n return useContext(JsonApiContext);\n}\n\nexport { JsonApiContext };\n"],"mappings":";;;;;AAEA,SAAS,eAAe,kBAAkB;AA4C1C,IAAM,iBAAiB,cAAoC,IAAI;AAExD,SAAS,mBAAkC;AAChD,QAAM,SAAS,WAAW,cAAc;AACxC,MAAI,CAAC,QAAQ;AACX,UAAM,IAAI,MAAM,wDAAwD;AAAA,EAC1E;AACA,SAAO;AACT;AANgB;AAQT,SAAS,2BAAiD;AAC/D,SAAO,WAAW,cAAc;AAClC;AAFgB;","names":[]}
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,56 +1,22 @@
|
|
|
1
|
+
import { J as JsonApiConfig } from '../JsonApiContext-Bsm_Q2oe.mjs';
|
|
2
|
+
export { C as CacheProfile, a as JsonApiContext, u as useJsonApiConfig, b as useJsonApiConfigOptional } from '../JsonApiContext-Bsm_Q2oe.mjs';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import React__default from 'react';
|
|
3
|
-
import
|
|
4
|
-
import { A as
|
|
5
|
-
import {
|
|
6
|
-
|
|
6
|
+
import { A as ApiDataInterface, a as ApiRequestDataTypeInterface, J as JsonApiHydratedDataInterface } from '../ApiRequestDataTypeInterface-DIEOFn9s.mjs';
|
|
7
|
+
import { A as ApiResponseInterface } from '../ApiResponseInterface-Dqvu09tz.mjs';
|
|
8
|
+
import { A as ApiData } from '../ApiData-DPKNfY-9.mjs';
|
|
9
|
+
import { M as ModuleWithPermissions, a as PageUrl, k as RoleInterface, U as UserInterface } from '../notification.interface-BGaPiCUM.mjs';
|
|
10
|
+
export { I as I18nConfig, l as I18nRouter, L as LinkComponent, U as UseDateFnsLocaleHook, m as UseLocaleHook, n as UseRouterHook, o as UseTranslationsHook, f as configureClientConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, h as getI18nLink, d as getStripePublishableKey, b as getTrackablePages, u as useI18nDateFnsLocale, i as useI18nLocale, j as useI18nRouter, k as useI18nTranslations } from '../config-BKSQmUWU.mjs';
|
|
7
11
|
import { ColumnDef } from '@tanstack/react-table';
|
|
8
12
|
import { D as DataListRetriever } from '../useDataListRetriever-futhx3OP.mjs';
|
|
9
13
|
export { u as useDataListRetriever } from '../useDataListRetriever-futhx3OP.mjs';
|
|
10
14
|
import { a as D3Node, D as D3Link, C as ContentFields, R as RoleFields, U as UserFields } from '../content.fields-Ck5lkQ5d.mjs';
|
|
11
|
-
export { u as useSocket } from '../useSocket-
|
|
12
|
-
import { a as ContentInterface } from '../content.interface-
|
|
15
|
+
export { u as useSocket } from '../useSocket-BNj9PrRw.mjs';
|
|
16
|
+
import { a as ContentInterface } from '../content.interface-CFc97-Cj.mjs';
|
|
13
17
|
import 'lucide-react';
|
|
14
18
|
import 'd3';
|
|
15
19
|
|
|
16
|
-
type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
|
|
17
|
-
interface JsonApiConfig {
|
|
18
|
-
/**
|
|
19
|
-
* The base URL for API requests (e.g., https://api.example.com)
|
|
20
|
-
*/
|
|
21
|
-
apiUrl: string;
|
|
22
|
-
/**
|
|
23
|
-
* Custom token getter function. If not provided, will use default cookie-based token retrieval.
|
|
24
|
-
*/
|
|
25
|
-
tokenGetter?: () => Promise<string | undefined>;
|
|
26
|
-
/**
|
|
27
|
-
* Custom language getter function. If not provided, will use browser locale or next-intl.
|
|
28
|
-
*/
|
|
29
|
-
languageGetter?: () => Promise<string>;
|
|
30
|
-
/**
|
|
31
|
-
* Default headers to include in all requests
|
|
32
|
-
*/
|
|
33
|
-
defaultHeaders?: Record<string, string>;
|
|
34
|
-
/**
|
|
35
|
-
* Global error handler for failed requests (client-side only)
|
|
36
|
-
*/
|
|
37
|
-
onError?: (status: number, message: string) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Cache configuration
|
|
40
|
-
*/
|
|
41
|
-
cacheConfig?: {
|
|
42
|
-
defaultProfile: CacheProfile;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Function to bootstrap the data class registry.
|
|
46
|
-
* Will be called automatically when needed.
|
|
47
|
-
*/
|
|
48
|
-
bootstrapper?: () => void;
|
|
49
|
-
}
|
|
50
|
-
declare const JsonApiContext: React.Context<JsonApiConfig | null>;
|
|
51
|
-
declare function useJsonApiConfig(): JsonApiConfig;
|
|
52
|
-
declare function useJsonApiConfigOptional(): JsonApiConfig | null;
|
|
53
|
-
|
|
54
20
|
interface JsonApiProviderProps {
|
|
55
21
|
config: JsonApiConfig;
|
|
56
22
|
children: React__default.ReactNode;
|
|
@@ -423,4 +389,4 @@ declare const useUserSearch: () => {
|
|
|
423
389
|
|
|
424
390
|
declare const useUserTableStructure: UseTableStructureHook<UserInterface, UserFields>;
|
|
425
391
|
|
|
426
|
-
export {
|
|
392
|
+
export { ClientJsonApiDelete, ClientJsonApiGet, ClientJsonApiPatch, ClientJsonApiPost, ClientJsonApiPut, DataListRetriever, type DirectFetchParams, JsonApiConfig, JsonApiProvider, type JsonApiProviderProps, type MutationMethod, type MutationParams, type TableContent, TableGeneratorRegistry, type TableStructureGeneratorInterface, type UseJsonApiGetOptions, type UseJsonApiGetResult, type UseJsonApiMutationResult, type UseTableStructureHook, type UseTableStructureHookParams, type UseTableStructureHookReturn, configureClientJsonApi, directFetch, getClientApiUrl, getClientAppUrl, getClientToken, getClientTrackablePages, registerTableGenerator, tableGeneratorRegistry, useContentTableStructure, useCustomD3Graph, useDebounce, useJsonApiGet, useJsonApiMutation, useNotificationSync, usePageTracker, usePageUrlGenerator, useRehydration, useRehydrationList, useRoleTableStructure, useTableGenerator, useUrlRewriter, useUserSearch, useUserTableStructure };
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,56 +1,22 @@
|
|
|
1
|
+
import { J as JsonApiConfig } from '../JsonApiContext-Bsm_Q2oe.js';
|
|
2
|
+
export { C as CacheProfile, a as JsonApiContext, u as useJsonApiConfig, b as useJsonApiConfigOptional } from '../JsonApiContext-Bsm_Q2oe.js';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
4
|
import * as React from 'react';
|
|
2
5
|
import React__default from 'react';
|
|
3
|
-
import
|
|
4
|
-
import { A as
|
|
5
|
-
import {
|
|
6
|
-
|
|
6
|
+
import { A as ApiDataInterface, a as ApiRequestDataTypeInterface, J as JsonApiHydratedDataInterface } from '../ApiRequestDataTypeInterface-DIEOFn9s.js';
|
|
7
|
+
import { A as ApiResponseInterface } from '../ApiResponseInterface-BKyod24U.js';
|
|
8
|
+
import { A as ApiData } from '../ApiData-DPKNfY-9.js';
|
|
9
|
+
import { M as ModuleWithPermissions, a as PageUrl, k as RoleInterface, U as UserInterface } from '../notification.interface-CqwaOIgM.js';
|
|
10
|
+
export { I as I18nConfig, l as I18nRouter, L as LinkComponent, U as UseDateFnsLocaleHook, m as UseLocaleHook, n as UseRouterHook, o as UseTranslationsHook, f as configureClientConfig, e as configureI18n, c as configureJsonApi, g as getApiUrl, a as getAppUrl, h as getI18nLink, d as getStripePublishableKey, b as getTrackablePages, u as useI18nDateFnsLocale, i as useI18nLocale, j as useI18nRouter, k as useI18nTranslations } from '../config--nwiW74Z.js';
|
|
7
11
|
import { ColumnDef } from '@tanstack/react-table';
|
|
8
12
|
import { D as DataListRetriever } from '../useDataListRetriever-futhx3OP.js';
|
|
9
13
|
export { u as useDataListRetriever } from '../useDataListRetriever-futhx3OP.js';
|
|
10
14
|
import { a as D3Node, D as D3Link, C as ContentFields, R as RoleFields, U as UserFields } from '../content.fields-Ck5lkQ5d.js';
|
|
11
|
-
export { u as useSocket } from '../useSocket-
|
|
12
|
-
import { a as ContentInterface } from '../content.interface-
|
|
15
|
+
export { u as useSocket } from '../useSocket-Dwt8cz1x.js';
|
|
16
|
+
import { a as ContentInterface } from '../content.interface-4VICFRA0.js';
|
|
13
17
|
import 'lucide-react';
|
|
14
18
|
import 'd3';
|
|
15
19
|
|
|
16
|
-
type CacheProfile = "seconds" | "minutes" | "hours" | "days" | "weeks" | "max" | "default";
|
|
17
|
-
interface JsonApiConfig {
|
|
18
|
-
/**
|
|
19
|
-
* The base URL for API requests (e.g., https://api.example.com)
|
|
20
|
-
*/
|
|
21
|
-
apiUrl: string;
|
|
22
|
-
/**
|
|
23
|
-
* Custom token getter function. If not provided, will use default cookie-based token retrieval.
|
|
24
|
-
*/
|
|
25
|
-
tokenGetter?: () => Promise<string | undefined>;
|
|
26
|
-
/**
|
|
27
|
-
* Custom language getter function. If not provided, will use browser locale or next-intl.
|
|
28
|
-
*/
|
|
29
|
-
languageGetter?: () => Promise<string>;
|
|
30
|
-
/**
|
|
31
|
-
* Default headers to include in all requests
|
|
32
|
-
*/
|
|
33
|
-
defaultHeaders?: Record<string, string>;
|
|
34
|
-
/**
|
|
35
|
-
* Global error handler for failed requests (client-side only)
|
|
36
|
-
*/
|
|
37
|
-
onError?: (status: number, message: string) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Cache configuration
|
|
40
|
-
*/
|
|
41
|
-
cacheConfig?: {
|
|
42
|
-
defaultProfile: CacheProfile;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Function to bootstrap the data class registry.
|
|
46
|
-
* Will be called automatically when needed.
|
|
47
|
-
*/
|
|
48
|
-
bootstrapper?: () => void;
|
|
49
|
-
}
|
|
50
|
-
declare const JsonApiContext: React.Context<JsonApiConfig | null>;
|
|
51
|
-
declare function useJsonApiConfig(): JsonApiConfig;
|
|
52
|
-
declare function useJsonApiConfigOptional(): JsonApiConfig | null;
|
|
53
|
-
|
|
54
20
|
interface JsonApiProviderProps {
|
|
55
21
|
config: JsonApiConfig;
|
|
56
22
|
children: React__default.ReactNode;
|
|
@@ -423,4 +389,4 @@ declare const useUserSearch: () => {
|
|
|
423
389
|
|
|
424
390
|
declare const useUserTableStructure: UseTableStructureHook<UserInterface, UserFields>;
|
|
425
391
|
|
|
426
|
-
export {
|
|
392
|
+
export { ClientJsonApiDelete, ClientJsonApiGet, ClientJsonApiPatch, ClientJsonApiPost, ClientJsonApiPut, DataListRetriever, type DirectFetchParams, JsonApiConfig, JsonApiProvider, type JsonApiProviderProps, type MutationMethod, type MutationParams, type TableContent, TableGeneratorRegistry, type TableStructureGeneratorInterface, type UseJsonApiGetOptions, type UseJsonApiGetResult, type UseJsonApiMutationResult, type UseTableStructureHook, type UseTableStructureHookParams, type UseTableStructureHookReturn, configureClientJsonApi, directFetch, getClientApiUrl, getClientAppUrl, getClientToken, getClientTrackablePages, registerTableGenerator, tableGeneratorRegistry, useContentTableStructure, useCustomD3Graph, useDebounce, useJsonApiGet, useJsonApiMutation, useNotificationSync, usePageTracker, usePageUrlGenerator, useRehydration, useRehydrationList, useRoleTableStructure, useTableGenerator, useUrlRewriter, useUserSearch, useUserTableStructure };
|
package/dist/client/index.js
CHANGED
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
+
var _chunkD7H7SRWBjs = require('../chunk-D7H7SRWB.js');
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
|
|
28
|
-
var _chunkPK5DRSUDjs = require('../chunk-PK5DRSUD.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
@@ -36,9 +36,9 @@ var _chunkPK5DRSUDjs = require('../chunk-PK5DRSUD.js');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
+
var _chunk7DTKRMYWjs = require('../chunk-7DTKRMYW.js');
|
|
39
40
|
|
|
40
41
|
|
|
41
|
-
var _chunk6YD42BP6js = require('../chunk-6YD42BP6.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -47,16 +47,19 @@ var _chunk6YD42BP6js = require('../chunk-6YD42BP6.js');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
var _chunkUYY34W7Rjs = require('../chunk-UYY34W7R.js');
|
|
50
51
|
|
|
51
52
|
|
|
52
|
-
var
|
|
53
|
+
var _chunkLXKSUWAVjs = require('../chunk-LXKSUWAV.js');
|
|
53
54
|
|
|
54
55
|
|
|
55
56
|
var _chunkIBS6NI7Djs = require('../chunk-IBS6NI7D.js');
|
|
56
|
-
require('../chunk-
|
|
57
|
+
require('../chunk-LI6CPNJI.js');
|
|
57
58
|
|
|
58
59
|
|
|
59
|
-
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
var _chunk3EPNHTMHjs = require('../chunk-3EPNHTMH.js');
|
|
60
63
|
require('../chunk-7QVYU63E.js');
|
|
61
64
|
|
|
62
65
|
|
|
@@ -105,5 +108,6 @@ require('../chunk-7QVYU63E.js');
|
|
|
105
108
|
|
|
106
109
|
|
|
107
110
|
|
|
108
|
-
|
|
111
|
+
|
|
112
|
+
exports.ClientJsonApiDelete = _chunkUYY34W7Rjs.ClientJsonApiDelete; exports.ClientJsonApiGet = _chunkUYY34W7Rjs.ClientJsonApiGet; exports.ClientJsonApiPatch = _chunkUYY34W7Rjs.ClientJsonApiPatch; exports.ClientJsonApiPost = _chunkUYY34W7Rjs.ClientJsonApiPost; exports.ClientJsonApiPut = _chunkUYY34W7Rjs.ClientJsonApiPut; exports.JsonApiContext = _chunk3EPNHTMHjs.JsonApiContext; exports.JsonApiProvider = _chunkD7H7SRWBjs.JsonApiProvider; exports.TableGeneratorRegistry = _chunkD7H7SRWBjs.TableGeneratorRegistry; exports.configureClientConfig = _chunk7DTKRMYWjs.configureClientConfig; exports.configureClientJsonApi = _chunkUYY34W7Rjs.configureClientJsonApi; exports.configureI18n = _chunk7DTKRMYWjs.configureI18n; exports.configureJsonApi = _chunk7DTKRMYWjs.configureJsonApi; exports.directFetch = _chunkIBS6NI7Djs.directFetch; exports.getApiUrl = _chunk7DTKRMYWjs.getApiUrl; exports.getAppUrl = _chunk7DTKRMYWjs.getAppUrl; exports.getClientApiUrl = _chunkUYY34W7Rjs.getClientApiUrl; exports.getClientAppUrl = _chunkUYY34W7Rjs.getClientAppUrl; exports.getClientToken = _chunkLXKSUWAVjs.getClientToken; exports.getClientTrackablePages = _chunkUYY34W7Rjs.getClientTrackablePages; exports.getI18nLink = _chunk7DTKRMYWjs.getI18nLink; exports.getStripePublishableKey = _chunk7DTKRMYWjs.getStripePublishableKey; exports.getTrackablePages = _chunk7DTKRMYWjs.getTrackablePages; exports.registerTableGenerator = _chunkD7H7SRWBjs.registerTableGenerator; exports.tableGeneratorRegistry = _chunkD7H7SRWBjs.tableGeneratorRegistry; exports.useContentTableStructure = _chunkD7H7SRWBjs.useContentTableStructure; exports.useCustomD3Graph = _chunkD7H7SRWBjs.useCustomD3Graph; exports.useDataListRetriever = _chunkD7H7SRWBjs.useDataListRetriever; exports.useDebounce = _chunkD7H7SRWBjs.useDebounce; exports.useI18nDateFnsLocale = _chunk7DTKRMYWjs.useI18nDateFnsLocale; exports.useI18nLocale = _chunk7DTKRMYWjs.useI18nLocale; exports.useI18nRouter = _chunk7DTKRMYWjs.useI18nRouter; exports.useI18nTranslations = _chunk7DTKRMYWjs.useI18nTranslations; exports.useJsonApiConfig = _chunk3EPNHTMHjs.useJsonApiConfig; exports.useJsonApiConfigOptional = _chunk3EPNHTMHjs.useJsonApiConfigOptional; exports.useJsonApiGet = _chunkD7H7SRWBjs.useJsonApiGet; exports.useJsonApiMutation = _chunkD7H7SRWBjs.useJsonApiMutation; exports.useNotificationSync = _chunkD7H7SRWBjs.useNotificationSync; exports.usePageTracker = _chunkD7H7SRWBjs.usePageTracker; exports.usePageUrlGenerator = _chunkD7H7SRWBjs.usePageUrlGenerator; exports.useRehydration = _chunkD7H7SRWBjs.useRehydration; exports.useRehydrationList = _chunkD7H7SRWBjs.useRehydrationList; exports.useRoleTableStructure = _chunkD7H7SRWBjs.useRoleTableStructure; exports.useSocket = _chunkD7H7SRWBjs.useSocket; exports.useTableGenerator = _chunkD7H7SRWBjs.useTableGenerator; exports.useUrlRewriter = _chunkD7H7SRWBjs.useUrlRewriter; exports.useUserSearch = _chunkD7H7SRWBjs.useUserSearch; exports.useUserTableStructure = _chunkD7H7SRWBjs.useUserTableStructure;
|
|
109
113
|
//# sourceMappingURL=index.js.map
|
package/dist/client/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/client/index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/client/index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACF,uDAA6B;AAC7B;AACE;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,q6FAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/client/index.js"}
|
package/dist/client/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
JsonApiContext,
|
|
4
3
|
JsonApiProvider,
|
|
5
4
|
TableGeneratorRegistry,
|
|
6
5
|
registerTableGenerator,
|
|
@@ -9,8 +8,6 @@ import {
|
|
|
9
8
|
useCustomD3Graph,
|
|
10
9
|
useDataListRetriever,
|
|
11
10
|
useDebounce,
|
|
12
|
-
useJsonApiConfig,
|
|
13
|
-
useJsonApiConfigOptional,
|
|
14
11
|
useJsonApiGet,
|
|
15
12
|
useJsonApiMutation,
|
|
16
13
|
useNotificationSync,
|
|
@@ -24,7 +21,7 @@ import {
|
|
|
24
21
|
useUrlRewriter,
|
|
25
22
|
useUserSearch,
|
|
26
23
|
useUserTableStructure
|
|
27
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-SXPXC2TY.mjs";
|
|
28
25
|
import {
|
|
29
26
|
configureClientConfig,
|
|
30
27
|
configureI18n,
|
|
@@ -32,12 +29,13 @@ import {
|
|
|
32
29
|
getApiUrl,
|
|
33
30
|
getAppUrl,
|
|
34
31
|
getI18nLink,
|
|
32
|
+
getStripePublishableKey,
|
|
35
33
|
getTrackablePages,
|
|
36
34
|
useI18nDateFnsLocale,
|
|
37
35
|
useI18nLocale,
|
|
38
36
|
useI18nRouter,
|
|
39
37
|
useI18nTranslations
|
|
40
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-KX7YG6LY.mjs";
|
|
41
39
|
import {
|
|
42
40
|
ClientJsonApiDelete,
|
|
43
41
|
ClientJsonApiGet,
|
|
@@ -48,14 +46,19 @@ import {
|
|
|
48
46
|
getClientApiUrl,
|
|
49
47
|
getClientAppUrl,
|
|
50
48
|
getClientTrackablePages
|
|
51
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-KUFWHMMY.mjs";
|
|
50
|
+
import {
|
|
51
|
+
getClientToken
|
|
52
|
+
} from "../chunk-AUXK7QSA.mjs";
|
|
52
53
|
import {
|
|
53
54
|
directFetch
|
|
54
55
|
} from "../chunk-C7C7VY4F.mjs";
|
|
55
|
-
import "../chunk-
|
|
56
|
+
import "../chunk-3VM3WAOV.mjs";
|
|
56
57
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
JsonApiContext,
|
|
59
|
+
useJsonApiConfig,
|
|
60
|
+
useJsonApiConfigOptional
|
|
61
|
+
} from "../chunk-VOXD3ZLY.mjs";
|
|
59
62
|
import "../chunk-PAWJFY3S.mjs";
|
|
60
63
|
export {
|
|
61
64
|
ClientJsonApiDelete,
|
|
@@ -78,6 +81,7 @@ export {
|
|
|
78
81
|
getClientToken,
|
|
79
82
|
getClientTrackablePages,
|
|
80
83
|
getI18nLink,
|
|
84
|
+
getStripePublishableKey,
|
|
81
85
|
getTrackablePages,
|
|
82
86
|
registerTableGenerator,
|
|
83
87
|
tableGeneratorRegistry,
|