autumn-js 0.0.105 → 0.0.106
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/libraries/backend/better-auth.d.mts +18 -18
- package/dist/libraries/backend/better-auth.d.ts +18 -18
- package/dist/libraries/backend/better-auth.mjs +2 -2
- package/dist/libraries/backend/convex.mjs +2 -2
- package/dist/libraries/backend/elysia.mjs +2 -2
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.mjs +2 -2
- package/dist/libraries/backend/fastify.mjs +2 -2
- package/dist/libraries/backend/hono.mjs +2 -2
- package/dist/libraries/backend/next.mjs +2 -2
- package/dist/libraries/backend/react-router.mjs +2 -2
- package/dist/libraries/backend/remix_dep.mjs +2 -2
- package/dist/libraries/backend/routes/backendRouter.mjs +2 -2
- package/dist/libraries/backend/supabase.mjs +2 -2
- package/dist/libraries/backend/tanstack.mjs +2 -2
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/react/{chunk-N7LPH3DU.mjs → chunk-677B44JM.mjs} +16 -7
- package/dist/libraries/react/chunk-GUM4HIGI.mjs +30 -0
- package/dist/libraries/react/{chunk-DJIRJJNG.mjs → chunk-UM3ZQPMU.mjs} +3 -3
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.css +59 -0
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +16 -7
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +4 -4
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.css +59 -0
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +16 -7
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +4 -4
- package/dist/libraries/react/components/ui/button.d.mts +1 -1
- package/dist/libraries/react/components/ui/button.d.ts +1 -1
- package/dist/libraries/react/components/ui/input.js +2 -2
- package/dist/libraries/react/components/ui/input.mjs +1 -1
- package/dist/libraries/react/components/ui/popover.js +3 -3
- package/dist/libraries/react/components/ui/popover.mjs +1 -1
- package/dist/libraries/react/hooks/useAutumn.d.mts +1 -1
- package/dist/libraries/react/hooks/useAutumn.d.ts +1 -1
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +1 -1
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +1 -1
- package/dist/libraries/react/hooks/useEntity.d.mts +1 -1
- package/dist/libraries/react/hooks/useEntity.d.ts +1 -1
- package/dist/libraries/react/hooks/useEntityBase.d.mts +1 -1
- package/dist/libraries/react/hooks/useEntityBase.d.ts +1 -1
- package/dist/libraries/react/index.js +17 -8
- package/dist/libraries/react/index.mjs +17 -8
- package/dist/next/client/NextAutumnClient.d.mts +6 -6
- package/dist/next/client/NextAutumnClient.d.ts +6 -6
- package/dist/next/client/NextAutumnProvider.d.mts +1 -1
- package/dist/next/client/NextAutumnProvider.d.ts +1 -1
- package/dist/next/client/{attachTypes-BmvzLAdZ.d.ts → attachTypes-BL6x9Zbx.d.ts} +3 -3
- package/dist/next/client/{attachTypes-BbjEGh-Q.d.mts → attachTypes-BPYeJ6E4.d.mts} +3 -3
- package/dist/next/client/{clientAttachTypes-DWV50ToQ.d.ts → clientAttachTypes-Dj6U8D7o.d.ts} +3 -3
- package/dist/next/client/{clientAttachTypes-xaEzXIt3.d.mts → clientAttachTypes-fN66J754.d.mts} +3 -3
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{entTypes-DtUiQ3Ms.d.ts → entTypes-BrHkjvC9.d.ts} +1 -1
- package/dist/next/client/{entTypes-BRNi52gE.d.mts → entTypes-Li6ZrG0C.d.mts} +1 -1
- package/dist/next/client/hooks/useAutumn.d.mts +6 -6
- package/dist/next/client/hooks/useAutumn.d.ts +6 -6
- package/dist/next/client/hooks/useCustomer.d.mts +4 -4
- package/dist/next/client/hooks/useCustomer.d.ts +4 -4
- package/dist/next/client/hooks/useEntity.d.mts +8 -8
- package/dist/next/client/hooks/useEntity.d.ts +8 -8
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- package/dist/next/client/types.d.mts +2 -2
- package/dist/next/client/types.d.ts +2 -2
- package/dist/styles/global.css +59 -0
- package/package.json +1 -1
- package/dist/libraries/react/chunk-QUO2CYKM.mjs +0 -30
- package/dist/libraries/backend/{chunk-ICPSX5WQ.mjs → chunk-2RZ2FZX2.mjs} +3 -3
- package/dist/libraries/backend/{referralTypes-DKd7XOdW.d.ts → referralTypes-CnYanpMd.d.ts} +27 -27
- package/dist/libraries/backend/{referralTypes-CILDqqIc.d.mts → referralTypes-jA7MQ1y5.d.mts} +27 -27
- package/dist/next/client/{cusTypes-mflRCYE_.d.mts → cusTypes-BoVZ2omf.d.mts} +2 -2
- package/dist/next/client/{cusTypes-mflRCYE_.d.ts → cusTypes-BoVZ2omf.d.ts} +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as CustomerData } from './cusTypes-
|
|
2
|
+
import { C as CustomerData } from './cusTypes-BoVZ2omf.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
declare const NextAutumnProvider: ({ encryptedCustomerId, customerData, children, }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as ProductItem, b as Product } from './cusTypes-
|
|
1
|
+
import { P as ProductItem, b as Product } from './cusTypes-BoVZ2omf.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare const AttachFeatureOptionsSchema: z.ZodObject<{
|
|
@@ -20,16 +20,16 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
20
20
|
message: z.ZodString;
|
|
21
21
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
customer_id: string;
|
|
24
23
|
code: string;
|
|
25
24
|
message: string;
|
|
25
|
+
customer_id: string;
|
|
26
26
|
product_ids: string[];
|
|
27
27
|
checkout_url?: string | undefined;
|
|
28
28
|
customer_data?: any;
|
|
29
29
|
}, {
|
|
30
|
-
customer_id: string;
|
|
31
30
|
code: string;
|
|
32
31
|
message: string;
|
|
32
|
+
customer_id: string;
|
|
33
33
|
product_ids: string[];
|
|
34
34
|
checkout_url?: string | undefined;
|
|
35
35
|
customer_data?: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as ProductItem, b as Product } from './cusTypes-
|
|
1
|
+
import { P as ProductItem, b as Product } from './cusTypes-BoVZ2omf.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare const AttachFeatureOptionsSchema: z.ZodObject<{
|
|
@@ -20,16 +20,16 @@ declare const AttachResultSchema: z.ZodObject<{
|
|
|
20
20
|
message: z.ZodString;
|
|
21
21
|
customer_data: z.ZodOptional<z.ZodAny>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
customer_id: string;
|
|
24
23
|
code: string;
|
|
25
24
|
message: string;
|
|
25
|
+
customer_id: string;
|
|
26
26
|
product_ids: string[];
|
|
27
27
|
checkout_url?: string | undefined;
|
|
28
28
|
customer_data?: any;
|
|
29
29
|
}, {
|
|
30
|
-
customer_id: string;
|
|
31
30
|
code: string;
|
|
32
31
|
message: string;
|
|
32
|
+
customer_id: string;
|
|
33
33
|
product_ids: string[];
|
|
34
34
|
checkout_url?: string | undefined;
|
|
35
35
|
customer_data?: any;
|
package/dist/next/client/{clientAttachTypes-DWV50ToQ.d.ts → clientAttachTypes-Dj6U8D7o.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-
|
|
1
|
+
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-BoVZ2omf.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
4
4
|
|
|
@@ -23,15 +23,15 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
23
23
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
24
24
|
event_name: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
code: string;
|
|
26
27
|
id: string;
|
|
27
28
|
customer_id: string;
|
|
28
|
-
code: string;
|
|
29
29
|
feature_id?: string | undefined;
|
|
30
30
|
event_name?: string | undefined;
|
|
31
31
|
}, {
|
|
32
|
+
code: string;
|
|
32
33
|
id: string;
|
|
33
34
|
customer_id: string;
|
|
34
|
-
code: string;
|
|
35
35
|
feature_id?: string | undefined;
|
|
36
36
|
event_name?: string | undefined;
|
|
37
37
|
}>;
|
package/dist/next/client/{clientAttachTypes-xaEzXIt3.d.mts → clientAttachTypes-fN66J754.d.mts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-
|
|
1
|
+
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-BoVZ2omf.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
4
4
|
|
|
@@ -23,15 +23,15 @@ declare const TrackResultSchema: z.ZodObject<{
|
|
|
23
23
|
feature_id: z.ZodOptional<z.ZodString>;
|
|
24
24
|
event_name: z.ZodOptional<z.ZodString>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
code: string;
|
|
26
27
|
id: string;
|
|
27
28
|
customer_id: string;
|
|
28
|
-
code: string;
|
|
29
29
|
feature_id?: string | undefined;
|
|
30
30
|
event_name?: string | undefined;
|
|
31
31
|
}, {
|
|
32
|
+
code: string;
|
|
32
33
|
id: string;
|
|
33
34
|
customer_id: string;
|
|
34
|
-
code: string;
|
|
35
35
|
feature_id?: string | undefined;
|
|
36
36
|
event_name?: string | undefined;
|
|
37
37
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AutumnClientError, PricingTableProduct } from './types.mjs';
|
|
2
|
-
import './cusTypes-
|
|
2
|
+
import './cusTypes-BoVZ2omf.mjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import './entTypes-
|
|
4
|
+
import './entTypes-Li6ZrG0C.mjs';
|
|
5
5
|
|
|
6
6
|
declare const toClientErrorResponse: (error: any) => {
|
|
7
7
|
data: null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AutumnClientError, PricingTableProduct } from './types.js';
|
|
2
|
-
import './cusTypes-
|
|
2
|
+
import './cusTypes-BoVZ2omf.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import './entTypes-
|
|
4
|
+
import './entTypes-BrHkjvC9.js';
|
|
5
5
|
|
|
6
6
|
declare const toClientErrorResponse: (error: any) => {
|
|
7
7
|
data: null;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { A as AttachParams, R as Result, C as CheckResult, a as CheckParams, b as AutumnPromise, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, g as CheckoutParams } from '../clientAttachTypes-
|
|
1
|
+
import { A as AttachParams, R as Result, C as CheckResult, a as CheckParams, b as AutumnPromise, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, g as CheckoutParams } from '../clientAttachTypes-fN66J754.mjs';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
3
|
-
import { C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
3
|
+
import { C as CheckoutResult } from '../attachTypes-BPYeJ6E4.mjs';
|
|
4
|
+
import { B as BillingPortalResult } from '../cusTypes-BoVZ2omf.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
declare const useAutumn: () => {
|
|
8
|
-
attach: (params: AttachParams) => Promise<Result<
|
|
8
|
+
attach: (params: AttachParams) => Promise<Result<{
|
|
9
|
+
customer_id: string;
|
|
9
10
|
code: string;
|
|
10
11
|
message: string;
|
|
11
|
-
customer_id: string;
|
|
12
12
|
product_ids: string[];
|
|
13
13
|
customer_data?: any;
|
|
14
14
|
checkout_url?: string | undefined;
|
|
15
|
-
}, AutumnError>>;
|
|
15
|
+
} | CheckResult, AutumnError>>;
|
|
16
16
|
check: (params: CheckParams) => AutumnPromise<CheckResult>;
|
|
17
17
|
track: (params: TrackParams) => AutumnPromise<TrackResult>;
|
|
18
18
|
cancel: (params: CancelParams) => AutumnPromise<CancelResult>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { A as AttachParams, R as Result, C as CheckResult, a as CheckParams, b as AutumnPromise, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, g as CheckoutParams } from '../clientAttachTypes-
|
|
1
|
+
import { A as AttachParams, R as Result, C as CheckResult, a as CheckParams, b as AutumnPromise, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, g as CheckoutParams } from '../clientAttachTypes-Dj6U8D7o.js';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
3
|
-
import { C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { B as BillingPortalResult } from '../cusTypes-
|
|
3
|
+
import { C as CheckoutResult } from '../attachTypes-BL6x9Zbx.js';
|
|
4
|
+
import { B as BillingPortalResult } from '../cusTypes-BoVZ2omf.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
declare const useAutumn: () => {
|
|
8
|
-
attach: (params: AttachParams) => Promise<Result<
|
|
8
|
+
attach: (params: AttachParams) => Promise<Result<{
|
|
9
|
+
customer_id: string;
|
|
9
10
|
code: string;
|
|
10
11
|
message: string;
|
|
11
|
-
customer_id: string;
|
|
12
12
|
product_ids: string[];
|
|
13
13
|
customer_data?: any;
|
|
14
14
|
checkout_url?: string | undefined;
|
|
15
|
-
}, AutumnError>>;
|
|
15
|
+
} | CheckResult, AutumnError>>;
|
|
16
16
|
check: (params: CheckParams) => AutumnPromise<CheckResult>;
|
|
17
17
|
track: (params: TrackParams) => AutumnPromise<TrackResult>;
|
|
18
18
|
cancel: (params: CancelParams) => AutumnPromise<CancelResult>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
2
|
-
import { A as AttachParams, b as AutumnPromise, a as CheckParams, C as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams, g as CheckoutParams } from '../clientAttachTypes-
|
|
3
|
-
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-
|
|
5
|
-
import { E as Entity } from '../entTypes-
|
|
2
|
+
import { A as AttachParams, b as AutumnPromise, a as CheckParams, C as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams, g as CheckoutParams } from '../clientAttachTypes-fN66J754.mjs';
|
|
3
|
+
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-BPYeJ6E4.mjs';
|
|
4
|
+
import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-BoVZ2omf.mjs';
|
|
5
|
+
import { E as Entity } from '../entTypes-Li6ZrG0C.mjs';
|
|
6
6
|
import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.mjs';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { SWRConfiguration } from 'swr';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
2
|
-
import { A as AttachParams, b as AutumnPromise, a as CheckParams, C as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams, g as CheckoutParams } from '../clientAttachTypes-
|
|
3
|
-
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-
|
|
4
|
-
import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-
|
|
5
|
-
import { E as Entity } from '../entTypes-
|
|
2
|
+
import { A as AttachParams, b as AutumnPromise, a as CheckParams, C as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams, g as CheckoutParams } from '../clientAttachTypes-Dj6U8D7o.js';
|
|
3
|
+
import { A as AttachResult, C as CheckoutResult } from '../attachTypes-BL6x9Zbx.js';
|
|
4
|
+
import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-BoVZ2omf.js';
|
|
5
|
+
import { E as Entity } from '../entTypes-BrHkjvC9.js';
|
|
6
6
|
import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { SWRConfiguration } from 'swr';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as CheckParams, b as AutumnPromise, C as CheckResult, A as AttachParams, R as Result, d as CancelParams, T as TrackParams } from '../clientAttachTypes-
|
|
1
|
+
import { a as CheckParams, b as AutumnPromise, C as CheckResult, A as AttachParams, R as Result, d as CancelParams, T as TrackParams } from '../clientAttachTypes-fN66J754.mjs';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.mjs';
|
|
3
|
-
import { G as GetEntityParams, E as Entity } from '../entTypes-
|
|
3
|
+
import { G as GetEntityParams, E as Entity } from '../entTypes-Li6ZrG0C.mjs';
|
|
4
4
|
import { A as AllowedParams } from '../handleAllowed-B8TBAzfI.mjs';
|
|
5
5
|
import * as swr from 'swr';
|
|
6
|
-
import '../cusTypes-
|
|
6
|
+
import '../cusTypes-BoVZ2omf.mjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
|
|
9
9
|
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
|
|
@@ -13,23 +13,23 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
|
|
|
13
13
|
refetch: swr.KeyedMutator<Entity | null>;
|
|
14
14
|
allowed: (params: AllowedParams) => boolean;
|
|
15
15
|
check: (params: CheckParams) => AutumnPromise<CheckResult>;
|
|
16
|
-
attach: (params: AttachParams) => Promise<Result<
|
|
16
|
+
attach: (params: AttachParams) => Promise<Result<{
|
|
17
|
+
customer_id: string;
|
|
17
18
|
code: string;
|
|
18
19
|
message: string;
|
|
19
|
-
customer_id: string;
|
|
20
20
|
product_ids: string[];
|
|
21
21
|
customer_data?: any;
|
|
22
22
|
checkout_url?: string | undefined;
|
|
23
|
-
}, AutumnError>>;
|
|
23
|
+
} | CheckResult, AutumnError>>;
|
|
24
24
|
cancel: (params: CancelParams) => AutumnPromise<{
|
|
25
25
|
customer_id: string;
|
|
26
|
-
success: boolean;
|
|
27
26
|
product_id: string;
|
|
27
|
+
success: boolean;
|
|
28
28
|
}>;
|
|
29
29
|
track: (params: TrackParams) => AutumnPromise<{
|
|
30
|
+
customer_id: string;
|
|
30
31
|
code: string;
|
|
31
32
|
id: string;
|
|
32
|
-
customer_id: string;
|
|
33
33
|
feature_id?: string | undefined;
|
|
34
34
|
event_name?: string | undefined;
|
|
35
35
|
}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as CheckParams, b as AutumnPromise, C as CheckResult, A as AttachParams, R as Result, d as CancelParams, T as TrackParams } from '../clientAttachTypes-
|
|
1
|
+
import { a as CheckParams, b as AutumnPromise, C as CheckResult, A as AttachParams, R as Result, d as CancelParams, T as TrackParams } from '../clientAttachTypes-Dj6U8D7o.js';
|
|
2
2
|
import { A as AutumnError } from '../error-DHbclCVh.js';
|
|
3
|
-
import { G as GetEntityParams, E as Entity } from '../entTypes-
|
|
3
|
+
import { G as GetEntityParams, E as Entity } from '../entTypes-BrHkjvC9.js';
|
|
4
4
|
import { A as AllowedParams } from '../handleAllowed-B8TBAzfI.js';
|
|
5
5
|
import * as swr from 'swr';
|
|
6
|
-
import '../cusTypes-
|
|
6
|
+
import '../cusTypes-BoVZ2omf.js';
|
|
7
7
|
import 'zod';
|
|
8
8
|
|
|
9
9
|
declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
|
|
@@ -13,23 +13,23 @@ declare const useEntity: (entityId: string | null, params?: GetEntityParams) =>
|
|
|
13
13
|
refetch: swr.KeyedMutator<Entity | null>;
|
|
14
14
|
allowed: (params: AllowedParams) => boolean;
|
|
15
15
|
check: (params: CheckParams) => AutumnPromise<CheckResult>;
|
|
16
|
-
attach: (params: AttachParams) => Promise<Result<
|
|
16
|
+
attach: (params: AttachParams) => Promise<Result<{
|
|
17
|
+
customer_id: string;
|
|
17
18
|
code: string;
|
|
18
19
|
message: string;
|
|
19
|
-
customer_id: string;
|
|
20
20
|
product_ids: string[];
|
|
21
21
|
customer_data?: any;
|
|
22
22
|
checkout_url?: string | undefined;
|
|
23
|
-
}, AutumnError>>;
|
|
23
|
+
} | CheckResult, AutumnError>>;
|
|
24
24
|
cancel: (params: CancelParams) => AutumnPromise<{
|
|
25
25
|
customer_id: string;
|
|
26
|
-
success: boolean;
|
|
27
26
|
product_id: string;
|
|
27
|
+
success: boolean;
|
|
28
28
|
}>;
|
|
29
29
|
track: (params: TrackParams) => AutumnPromise<{
|
|
30
|
+
customer_id: string;
|
|
30
31
|
code: string;
|
|
31
32
|
id: string;
|
|
32
|
-
customer_id: string;
|
|
33
33
|
feature_id?: string | undefined;
|
|
34
34
|
event_name?: string | undefined;
|
|
35
35
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CustomerData, a as Customer } from './cusTypes-
|
|
2
|
-
import { E as Entity } from './entTypes-
|
|
1
|
+
import { C as CustomerData, a as Customer } from './cusTypes-BoVZ2omf.mjs';
|
|
2
|
+
import { E as Entity } from './entTypes-Li6ZrG0C.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
interface ProductDetails {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CustomerData, a as Customer } from './cusTypes-
|
|
2
|
-
import { E as Entity } from './entTypes-
|
|
1
|
+
import { C as CustomerData, a as Customer } from './cusTypes-BoVZ2omf.js';
|
|
2
|
+
import { E as Entity } from './entTypes-BrHkjvC9.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
interface ProductDetails {
|
package/dist/styles/global.css
CHANGED
|
@@ -376,6 +376,9 @@ video:where(.au-root, .au-root *) {
|
|
|
376
376
|
.au-z-50 {
|
|
377
377
|
z-index: 50;
|
|
378
378
|
}
|
|
379
|
+
.au-z-\[9999\] {
|
|
380
|
+
z-index: 9999;
|
|
381
|
+
}
|
|
379
382
|
.au-my-0 {
|
|
380
383
|
margin-top: 0px;
|
|
381
384
|
margin-bottom: 0px;
|
|
@@ -448,6 +451,9 @@ video:where(.au-root, .au-root *) {
|
|
|
448
451
|
.\!au-h-4 {
|
|
449
452
|
height: 1rem !important;
|
|
450
453
|
}
|
|
454
|
+
.\!au-h-7 {
|
|
455
|
+
height: 1.75rem !important;
|
|
456
|
+
}
|
|
451
457
|
.au-h-10 {
|
|
452
458
|
height: 2.5rem;
|
|
453
459
|
}
|
|
@@ -505,6 +511,9 @@ video:where(.au-root, .au-root *) {
|
|
|
505
511
|
.au-w-full {
|
|
506
512
|
width: 100%;
|
|
507
513
|
}
|
|
514
|
+
.au-min-w-0 {
|
|
515
|
+
min-width: 0px;
|
|
516
|
+
}
|
|
508
517
|
.au-min-w-16 {
|
|
509
518
|
min-width: 4rem;
|
|
510
519
|
}
|
|
@@ -698,6 +707,10 @@ video:where(.au-root, .au-root *) {
|
|
|
698
707
|
.au-border-transparent {
|
|
699
708
|
border-color: transparent;
|
|
700
709
|
}
|
|
710
|
+
.au-border-zinc-200 {
|
|
711
|
+
--tw-border-opacity: 1;
|
|
712
|
+
border-color: rgb(228 228 231 / var(--tw-border-opacity));
|
|
713
|
+
}
|
|
701
714
|
.au-bg-accent\/80 {
|
|
702
715
|
background-color: hsl(var(--au-accent) / 0.8);
|
|
703
716
|
}
|
|
@@ -729,6 +742,10 @@ video:where(.au-root, .au-root *) {
|
|
|
729
742
|
.au-bg-transparent {
|
|
730
743
|
background-color: transparent;
|
|
731
744
|
}
|
|
745
|
+
.au-bg-white {
|
|
746
|
+
--tw-bg-opacity: 1;
|
|
747
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
748
|
+
}
|
|
732
749
|
.au-p-0 {
|
|
733
750
|
padding: 0px;
|
|
734
751
|
}
|
|
@@ -1005,6 +1022,11 @@ video:where(.au-root, .au-root *) {
|
|
|
1005
1022
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1006
1023
|
transition-duration: 150ms;
|
|
1007
1024
|
}
|
|
1025
|
+
.au-transition-\[color\,box-shadow\] {
|
|
1026
|
+
transition-property: color, box-shadow;
|
|
1027
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1028
|
+
transition-duration: 150ms;
|
|
1029
|
+
}
|
|
1008
1030
|
.au-transition-all {
|
|
1009
1031
|
transition-property: all;
|
|
1010
1032
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -1174,6 +1196,36 @@ video:where(.au-root, .au-root *) {
|
|
|
1174
1196
|
--au-sidebar-ring: 217.2 91.2% 59.8%;
|
|
1175
1197
|
}
|
|
1176
1198
|
}
|
|
1199
|
+
.selection\:au-bg-primary *::-moz-selection {
|
|
1200
|
+
background-color: hsl(var(--au-primary));
|
|
1201
|
+
}
|
|
1202
|
+
.selection\:au-bg-primary *::selection {
|
|
1203
|
+
background-color: hsl(var(--au-primary));
|
|
1204
|
+
}
|
|
1205
|
+
.selection\:au-text-primary-foreground *::-moz-selection {
|
|
1206
|
+
color: hsl(var(--au-primary-foreground));
|
|
1207
|
+
}
|
|
1208
|
+
.selection\:au-text-primary-foreground *::selection {
|
|
1209
|
+
color: hsl(var(--au-primary-foreground));
|
|
1210
|
+
}
|
|
1211
|
+
.selection\:au-bg-primary::-moz-selection {
|
|
1212
|
+
background-color: hsl(var(--au-primary));
|
|
1213
|
+
}
|
|
1214
|
+
.selection\:au-bg-primary::selection {
|
|
1215
|
+
background-color: hsl(var(--au-primary));
|
|
1216
|
+
}
|
|
1217
|
+
.selection\:au-text-primary-foreground::-moz-selection {
|
|
1218
|
+
color: hsl(var(--au-primary-foreground));
|
|
1219
|
+
}
|
|
1220
|
+
.selection\:au-text-primary-foreground::selection {
|
|
1221
|
+
color: hsl(var(--au-primary-foreground));
|
|
1222
|
+
}
|
|
1223
|
+
.file\:au-inline-flex::file-selector-button {
|
|
1224
|
+
display: inline-flex;
|
|
1225
|
+
}
|
|
1226
|
+
.file\:au-h-7::file-selector-button {
|
|
1227
|
+
height: 1.75rem;
|
|
1228
|
+
}
|
|
1177
1229
|
.file\:au-border-0::file-selector-button {
|
|
1178
1230
|
border-width: 0px;
|
|
1179
1231
|
}
|
|
@@ -1208,6 +1260,10 @@ video:where(.au-root, .au-root *) {
|
|
|
1208
1260
|
.hover\:au-bg-secondary\/80:hover {
|
|
1209
1261
|
background-color: hsl(var(--au-secondary) / 0.8);
|
|
1210
1262
|
}
|
|
1263
|
+
.hover\:au-bg-zinc-100:hover {
|
|
1264
|
+
--tw-bg-opacity: 1;
|
|
1265
|
+
background-color: rgb(244 244 245 / var(--tw-bg-opacity));
|
|
1266
|
+
}
|
|
1211
1267
|
.hover\:au-text-accent-foreground:hover {
|
|
1212
1268
|
color: hsl(var(--au-accent-foreground));
|
|
1213
1269
|
}
|
|
@@ -1409,6 +1465,9 @@ video:where(.au-root, .au-root *) {
|
|
|
1409
1465
|
.data-\[state\=open\]\:au-slide-in-from-top-\[48\%\][data-state=open] {
|
|
1410
1466
|
--tw-enter-translate-y: -48%;
|
|
1411
1467
|
}
|
|
1468
|
+
:is(.au-dark .dark\:au-bg-input\/30) {
|
|
1469
|
+
background-color: hsl(var(--au-input) / 0.3);
|
|
1470
|
+
}
|
|
1412
1471
|
:is(.au-dark .dark\:au-shadow-zinc-800\/80) {
|
|
1413
1472
|
--tw-shadow-color: rgb(39 39 42 / 0.8);
|
|
1414
1473
|
--tw-shadow: var(--tw-shadow-colored);
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
cn
|
|
5
|
-
} from "./chunk-4J6OC4ZQ.mjs";
|
|
6
|
-
|
|
7
|
-
// src/libraries/react/components/ui/input.tsx
|
|
8
|
-
import * as React from "react";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
var Input = React.forwardRef(
|
|
11
|
-
({ className, type, ...props }, ref) => {
|
|
12
|
-
return /* @__PURE__ */ jsx(
|
|
13
|
-
"input",
|
|
14
|
-
{
|
|
15
|
-
type,
|
|
16
|
-
className: cn(
|
|
17
|
-
"au-flex au-h-9 au-w-full au-rounded-md au-border au-border-input au-bg-transparent au-px-3 au-py-1 au-text-base au-shadow-sm au-transition-colors file:au-border-0 file:au-bg-transparent file:au-text-sm file:au-font-medium file:au-text-foreground placeholder:au-text-muted-foreground focus-visible:au-outline-none focus-visible:au-ring-1 focus-visible:au-ring-ring disabled:au-cursor-not-allowed disabled:au-opacity-50 md:au-text-sm",
|
|
18
|
-
className
|
|
19
|
-
),
|
|
20
|
-
ref,
|
|
21
|
-
...props
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
Input.displayName = "Input";
|
|
27
|
-
|
|
28
|
-
export {
|
|
29
|
-
Input
|
|
30
|
-
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
addGenRoutes
|
|
3
|
-
} from "./chunk-HHMIVOXX.mjs";
|
|
4
1
|
import {
|
|
5
2
|
addProductRoutes
|
|
6
3
|
} from "./chunk-5EKNB4IJ.mjs";
|
|
@@ -10,6 +7,9 @@ import {
|
|
|
10
7
|
import {
|
|
11
8
|
addEntityRoutes
|
|
12
9
|
} from "./chunk-K7JGEYUX.mjs";
|
|
10
|
+
import {
|
|
11
|
+
addGenRoutes
|
|
12
|
+
} from "./chunk-HHMIVOXX.mjs";
|
|
13
13
|
import {
|
|
14
14
|
withAuth
|
|
15
15
|
} from "./chunk-5H6HVCOP.mjs";
|