autumn-js 0.0.107 → 0.0.108
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.mjs +2 -2
- package/dist/libraries/backend/convex.mjs +2 -2
- package/dist/libraries/backend/elysia.mjs +2 -2
- 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/react/AutumnContext.d.mts +5 -5
- package/dist/libraries/react/AutumnContext.d.ts +5 -5
- package/dist/libraries/react/AutumnContext.mjs +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.mts +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.ts +5 -5
- package/dist/libraries/react/BaseAutumnProvider.mjs +10 -10
- package/dist/libraries/react/{ReactAutumnClient-BpXo7k9S.d.mts → ReactAutumnClient-BjRiaYDN.d.mts} +7 -7
- package/dist/libraries/react/{ReactAutumnClient-Cr0JiREm.d.ts → ReactAutumnClient-O2XzkzGM.d.ts} +7 -7
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.mjs +11 -11
- package/dist/libraries/react/{attachTypes-DfACqtlD.d.ts → attachTypes-1Dbkyo_d.d.ts} +3 -3
- package/dist/libraries/react/{attachTypes-CRCMAcZg.d.mts → attachTypes-DoFoPh8g.d.mts} +3 -3
- package/dist/libraries/react/{chunk-VWVC5X2R.mjs → chunk-3XJ7NFT2.mjs} +15 -13
- package/dist/libraries/react/{chunk-2LCMYER5.mjs → chunk-4CHWEUKX.mjs} +2 -2
- package/dist/libraries/react/{chunk-FB6W5XQX.mjs → chunk-6RNG47NV.mjs} +1 -1
- package/dist/libraries/react/{chunk-HQTQYHKS.mjs → chunk-7DINVACK.mjs} +2 -2
- package/dist/libraries/react/{chunk-5YEDOCUG.mjs → chunk-DRAIZ3UZ.mjs} +3 -3
- package/dist/libraries/react/chunk-JGRLRPKG.mjs +56 -0
- package/dist/libraries/react/{chunk-WAFSQH6N.mjs → chunk-JPLUWGH4.mjs} +7 -1
- package/dist/libraries/react/{chunk-IZSSJHYG.mjs → chunk-KDD5RMQ3.mjs} +2 -2
- package/dist/libraries/react/{chunk-A4HGGTVT.mjs → chunk-KJLHVBV4.mjs} +2 -2
- package/dist/libraries/react/{chunk-4K7ZXCEU.mjs → chunk-LXD6AEZW.mjs} +1 -1
- package/dist/libraries/react/{chunk-NPEXC3I5.mjs → chunk-OEIUKLFH.mjs} +2 -2
- package/dist/libraries/react/{chunk-HRE3F4SD.mjs → chunk-OM3ROIZO.mjs} +2 -2
- package/dist/libraries/react/{chunk-X2ZMWBM7.mjs → chunk-OTYSAMRH.mjs} +2 -2
- package/dist/libraries/react/{chunk-4A53GN44.mjs → chunk-PC6V4RE7.mjs} +4 -4
- package/dist/libraries/react/{chunk-CUWUAQML.mjs → chunk-QJPZFEVW.mjs} +8 -49
- package/dist/libraries/react/{chunk-QKNW5ACT.mjs → chunk-XXGKLOAK.mjs} +3 -3
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +5 -5
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +5 -5
- package/dist/libraries/react/client/ReactAutumnClient.mjs +5 -5
- package/dist/libraries/react/client/clientCompMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientCompMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientCusMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientCusMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientEntityMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientEntityMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientGenMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientGenMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientProdMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientProdMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientReferralMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientReferralMethods.d.ts +5 -5
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +2 -2
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +2 -2
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +123 -112
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +25 -24
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +2 -2
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +2 -2
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.js +117 -3
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.mjs +4 -3
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +109 -98
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +25 -24
- package/dist/libraries/react/components/ui/accordion.mjs +2 -1
- package/dist/libraries/react/components/ui/dialog.js +115 -1
- package/dist/libraries/react/components/ui/dialog.mjs +2 -1
- package/dist/libraries/react/{cusTypes-B9PUlh3i.d.ts → cusTypes-COIU0NG3.d.mts} +5 -5
- package/dist/libraries/react/{cusTypes-B9PUlh3i.d.mts → cusTypes-COIU0NG3.d.ts} +5 -5
- package/dist/libraries/react/{entTypes-DgHZw9Eg.d.mts → entTypes-BVPtpycG.d.mts} +1 -1
- package/dist/libraries/react/{entTypes-GuU6bc8U.d.ts → entTypes-Ck3_WfOz.d.ts} +1 -1
- package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
- package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.mts +3 -3
- package/dist/libraries/react/hooks/useAutumn.d.ts +3 -3
- package/dist/libraries/react/hooks/useAutumn.mjs +9 -9
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +5 -5
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +5 -5
- package/dist/libraries/react/hooks/useAutumnBase.mjs +8 -8
- package/dist/libraries/react/hooks/useCustomer.d.mts +5 -5
- package/dist/libraries/react/hooks/useCustomer.d.ts +5 -5
- package/dist/libraries/react/hooks/useCustomer.mjs +10 -10
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +5 -5
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +5 -5
- package/dist/libraries/react/hooks/useCustomerBase.mjs +9 -9
- package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
- package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
- package/dist/libraries/react/hooks/useEntity.mjs +10 -10
- package/dist/libraries/react/hooks/useEntityBase.d.mts +5 -5
- package/dist/libraries/react/hooks/useEntityBase.d.ts +5 -5
- package/dist/libraries/react/hooks/useEntityBase.mjs +9 -9
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.mjs +8 -8
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +5 -5
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +5 -5
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +7 -7
- package/dist/libraries/react/hooks/useProductsBase.mjs +6 -6
- package/dist/libraries/react/index.js +109 -98
- package/dist/libraries/react/index.mjs +109 -98
- package/dist/libraries/react/{response-BCyzYfES.d.ts → response-C7P_oYqV.d.ts} +6 -6
- package/dist/libraries/react/{response-pYjgZr_V.d.mts → response-dnzFyX91.d.mts} +6 -6
- package/dist/next/client/NextAutumnClient.d.mts +13 -13
- package/dist/next/client/NextAutumnClient.d.ts +13 -13
- package/dist/next/client/hooks/useAutumn.d.mts +5 -5
- package/dist/next/client/hooks/useAutumn.d.ts +5 -5
- package/dist/next/client/hooks/useCustomer.d.mts +2 -2
- package/dist/next/client/hooks/useCustomer.d.ts +2 -2
- package/dist/next/client/hooks/useEntity.d.mts +6 -6
- package/dist/next/client/hooks/useEntity.d.ts +6 -6
- package/package.json +1 -1
- package/dist/libraries/backend/{chunk-ICPSX5WQ.mjs → chunk-2RZ2FZX2.mjs} +3 -3
- package/dist/libraries/react/{chunk-5ZJQVPJY.mjs → chunk-2PVRCDDK.mjs} +13 -13
- package/dist/next/client/{attachTypes-c0nmQ7FA.d.ts → attachTypes-CJ7OSUSn.d.ts} +4 -4
- package/dist/next/client/{attachTypes-BE_gD21A.d.mts → attachTypes-DZlF8AAj.d.mts} +4 -4
- package/dist/next/client/{clientAttachTypes-BBDJRxyt.d.ts → clientAttachTypes-D0_L-cnv.d.ts} +24 -24
- package/dist/next/client/{clientAttachTypes-C-bSiO35.d.mts → clientAttachTypes-D84PT2G0.d.mts} +24 -24
|
@@ -6442,6 +6442,110 @@ var Title = DialogTitle;
|
|
|
6442
6442
|
var Description = DialogDescription;
|
|
6443
6443
|
var Close = DialogClose;
|
|
6444
6444
|
|
|
6445
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6446
|
+
var import_react7 = require("react");
|
|
6447
|
+
|
|
6448
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
6449
|
+
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
6450
|
+
var toCamelCase = (string) => string.replace(
|
|
6451
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
6452
|
+
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
6453
|
+
);
|
|
6454
|
+
var toPascalCase = (string) => {
|
|
6455
|
+
const camelCase = toCamelCase(string);
|
|
6456
|
+
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
6457
|
+
};
|
|
6458
|
+
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
6459
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
6460
|
+
}).join(" ").trim();
|
|
6461
|
+
var hasA11yProp = (props) => {
|
|
6462
|
+
for (const prop in props) {
|
|
6463
|
+
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
6464
|
+
return true;
|
|
6465
|
+
}
|
|
6466
|
+
}
|
|
6467
|
+
};
|
|
6468
|
+
|
|
6469
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6470
|
+
var import_react6 = require("react");
|
|
6471
|
+
|
|
6472
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
6473
|
+
var defaultAttributes = {
|
|
6474
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6475
|
+
width: 24,
|
|
6476
|
+
height: 24,
|
|
6477
|
+
viewBox: "0 0 24 24",
|
|
6478
|
+
fill: "none",
|
|
6479
|
+
stroke: "currentColor",
|
|
6480
|
+
strokeWidth: 2,
|
|
6481
|
+
strokeLinecap: "round",
|
|
6482
|
+
strokeLinejoin: "round"
|
|
6483
|
+
};
|
|
6484
|
+
|
|
6485
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6486
|
+
var Icon = (0, import_react6.forwardRef)(
|
|
6487
|
+
({
|
|
6488
|
+
color = "currentColor",
|
|
6489
|
+
size = 24,
|
|
6490
|
+
strokeWidth = 2,
|
|
6491
|
+
absoluteStrokeWidth,
|
|
6492
|
+
className = "",
|
|
6493
|
+
children,
|
|
6494
|
+
iconNode,
|
|
6495
|
+
...rest
|
|
6496
|
+
}, ref) => (0, import_react6.createElement)(
|
|
6497
|
+
"svg",
|
|
6498
|
+
{
|
|
6499
|
+
ref,
|
|
6500
|
+
...defaultAttributes,
|
|
6501
|
+
width: size,
|
|
6502
|
+
height: size,
|
|
6503
|
+
stroke: color,
|
|
6504
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
6505
|
+
className: mergeClasses("lucide", className),
|
|
6506
|
+
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
6507
|
+
...rest
|
|
6508
|
+
},
|
|
6509
|
+
[
|
|
6510
|
+
...iconNode.map(([tag, attrs]) => (0, import_react6.createElement)(tag, attrs)),
|
|
6511
|
+
...Array.isArray(children) ? children : [children]
|
|
6512
|
+
]
|
|
6513
|
+
)
|
|
6514
|
+
);
|
|
6515
|
+
|
|
6516
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6517
|
+
var createLucideIcon = (iconName, iconNode) => {
|
|
6518
|
+
const Component = (0, import_react7.forwardRef)(
|
|
6519
|
+
({ className, ...props }, ref) => (0, import_react7.createElement)(Icon, {
|
|
6520
|
+
ref,
|
|
6521
|
+
iconNode,
|
|
6522
|
+
className: mergeClasses(
|
|
6523
|
+
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
6524
|
+
`lucide-${iconName}`,
|
|
6525
|
+
className
|
|
6526
|
+
),
|
|
6527
|
+
...props
|
|
6528
|
+
})
|
|
6529
|
+
);
|
|
6530
|
+
Component.displayName = toPascalCase(iconName);
|
|
6531
|
+
return Component;
|
|
6532
|
+
};
|
|
6533
|
+
|
|
6534
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
6535
|
+
var __iconNode = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
6536
|
+
var ChevronDown = createLucideIcon("chevron-down", __iconNode);
|
|
6537
|
+
|
|
6538
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js
|
|
6539
|
+
var __iconNode2 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
6540
|
+
var LoaderCircle = createLucideIcon("loader-circle", __iconNode2);
|
|
6541
|
+
|
|
6542
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/x.js
|
|
6543
|
+
var __iconNode3 = [
|
|
6544
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
6545
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
6546
|
+
];
|
|
6547
|
+
var X = createLucideIcon("x", __iconNode3);
|
|
6548
|
+
|
|
6445
6549
|
// src/libraries/react/components/ui/dialog.tsx
|
|
6446
6550
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
6447
6551
|
var Dialog2 = Root;
|
|
@@ -6476,7 +6580,10 @@ var DialogContent2 = React26.forwardRef(({ className, children, ...props }, ref)
|
|
|
6476
6580
|
...props,
|
|
6477
6581
|
children: [
|
|
6478
6582
|
children,
|
|
6479
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.
|
|
6583
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Close, { className: "au-absolute au-right-4 au-top-4 au-rounded-sm au-opacity-70 au-ring-offset-background au-transition-opacity hover:au-opacity-100 focus:au-outline-none focus:au-ring-2 focus:au-ring-ring focus:au-ring-offset-2 disabled:au-pointer-events-none data-[state=open]:au-bg-accent data-[state=open]:au-text-muted-foreground", children: [
|
|
6584
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(X, { className: "au-h-4 au-w-4" }),
|
|
6585
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "au-sr-only", children: "Close" })
|
|
6586
|
+
] })
|
|
6480
6587
|
]
|
|
6481
6588
|
}
|
|
6482
6589
|
)
|
|
@@ -6684,103 +6791,6 @@ var getAttachContent = (checkoutResult) => {
|
|
|
6684
6791
|
}
|
|
6685
6792
|
};
|
|
6686
6793
|
|
|
6687
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6688
|
-
var import_react7 = require("react");
|
|
6689
|
-
|
|
6690
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
6691
|
-
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
6692
|
-
var toCamelCase = (string) => string.replace(
|
|
6693
|
-
/^([A-Z])|[\s-_]+(\w)/g,
|
|
6694
|
-
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
6695
|
-
);
|
|
6696
|
-
var toPascalCase = (string) => {
|
|
6697
|
-
const camelCase = toCamelCase(string);
|
|
6698
|
-
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
6699
|
-
};
|
|
6700
|
-
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
6701
|
-
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
6702
|
-
}).join(" ").trim();
|
|
6703
|
-
var hasA11yProp = (props) => {
|
|
6704
|
-
for (const prop in props) {
|
|
6705
|
-
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
6706
|
-
return true;
|
|
6707
|
-
}
|
|
6708
|
-
}
|
|
6709
|
-
};
|
|
6710
|
-
|
|
6711
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6712
|
-
var import_react6 = require("react");
|
|
6713
|
-
|
|
6714
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
6715
|
-
var defaultAttributes = {
|
|
6716
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6717
|
-
width: 24,
|
|
6718
|
-
height: 24,
|
|
6719
|
-
viewBox: "0 0 24 24",
|
|
6720
|
-
fill: "none",
|
|
6721
|
-
stroke: "currentColor",
|
|
6722
|
-
strokeWidth: 2,
|
|
6723
|
-
strokeLinecap: "round",
|
|
6724
|
-
strokeLinejoin: "round"
|
|
6725
|
-
};
|
|
6726
|
-
|
|
6727
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6728
|
-
var Icon = (0, import_react6.forwardRef)(
|
|
6729
|
-
({
|
|
6730
|
-
color = "currentColor",
|
|
6731
|
-
size = 24,
|
|
6732
|
-
strokeWidth = 2,
|
|
6733
|
-
absoluteStrokeWidth,
|
|
6734
|
-
className = "",
|
|
6735
|
-
children,
|
|
6736
|
-
iconNode,
|
|
6737
|
-
...rest
|
|
6738
|
-
}, ref) => (0, import_react6.createElement)(
|
|
6739
|
-
"svg",
|
|
6740
|
-
{
|
|
6741
|
-
ref,
|
|
6742
|
-
...defaultAttributes,
|
|
6743
|
-
width: size,
|
|
6744
|
-
height: size,
|
|
6745
|
-
stroke: color,
|
|
6746
|
-
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
6747
|
-
className: mergeClasses("lucide", className),
|
|
6748
|
-
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
6749
|
-
...rest
|
|
6750
|
-
},
|
|
6751
|
-
[
|
|
6752
|
-
...iconNode.map(([tag, attrs]) => (0, import_react6.createElement)(tag, attrs)),
|
|
6753
|
-
...Array.isArray(children) ? children : [children]
|
|
6754
|
-
]
|
|
6755
|
-
)
|
|
6756
|
-
);
|
|
6757
|
-
|
|
6758
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6759
|
-
var createLucideIcon = (iconName, iconNode) => {
|
|
6760
|
-
const Component = (0, import_react7.forwardRef)(
|
|
6761
|
-
({ className, ...props }, ref) => (0, import_react7.createElement)(Icon, {
|
|
6762
|
-
ref,
|
|
6763
|
-
iconNode,
|
|
6764
|
-
className: mergeClasses(
|
|
6765
|
-
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
6766
|
-
`lucide-${iconName}`,
|
|
6767
|
-
className
|
|
6768
|
-
),
|
|
6769
|
-
...props
|
|
6770
|
-
})
|
|
6771
|
-
);
|
|
6772
|
-
Component.displayName = toPascalCase(iconName);
|
|
6773
|
-
return Component;
|
|
6774
|
-
};
|
|
6775
|
-
|
|
6776
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
6777
|
-
var __iconNode = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
6778
|
-
var ChevronDown = createLucideIcon("chevron-down", __iconNode);
|
|
6779
|
-
|
|
6780
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js
|
|
6781
|
-
var __iconNode2 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
6782
|
-
var LoaderCircle = createLucideIcon("loader-circle", __iconNode2);
|
|
6783
|
-
|
|
6784
6794
|
// src/libraries/react/components/ui/accordion.tsx
|
|
6785
6795
|
var React27 = __toESM(require("react"));
|
|
6786
6796
|
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
|
@@ -7866,6 +7876,7 @@ lucide-react/dist/esm/Icon.js:
|
|
|
7866
7876
|
lucide-react/dist/esm/createLucideIcon.js:
|
|
7867
7877
|
lucide-react/dist/esm/icons/chevron-down.js:
|
|
7868
7878
|
lucide-react/dist/esm/icons/loader-circle.js:
|
|
7879
|
+
lucide-react/dist/esm/icons/x.js:
|
|
7869
7880
|
lucide-react/dist/esm/lucide-react.js:
|
|
7870
7881
|
(**
|
|
7871
7882
|
* @license lucide-react v0.523.0 - ISC
|
|
@@ -6400,6 +6400,110 @@ var Title = DialogTitle;
|
|
|
6400
6400
|
var Description = DialogDescription;
|
|
6401
6401
|
var Close = DialogClose;
|
|
6402
6402
|
|
|
6403
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6404
|
+
import { forwardRef as forwardRef11, createElement as createElement7 } from "react";
|
|
6405
|
+
|
|
6406
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
6407
|
+
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
6408
|
+
var toCamelCase = (string) => string.replace(
|
|
6409
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
6410
|
+
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
6411
|
+
);
|
|
6412
|
+
var toPascalCase = (string) => {
|
|
6413
|
+
const camelCase = toCamelCase(string);
|
|
6414
|
+
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
6415
|
+
};
|
|
6416
|
+
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
6417
|
+
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
6418
|
+
}).join(" ").trim();
|
|
6419
|
+
var hasA11yProp = (props) => {
|
|
6420
|
+
for (const prop in props) {
|
|
6421
|
+
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
6422
|
+
return true;
|
|
6423
|
+
}
|
|
6424
|
+
}
|
|
6425
|
+
};
|
|
6426
|
+
|
|
6427
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6428
|
+
import { forwardRef as forwardRef10, createElement as createElement6 } from "react";
|
|
6429
|
+
|
|
6430
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
6431
|
+
var defaultAttributes = {
|
|
6432
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6433
|
+
width: 24,
|
|
6434
|
+
height: 24,
|
|
6435
|
+
viewBox: "0 0 24 24",
|
|
6436
|
+
fill: "none",
|
|
6437
|
+
stroke: "currentColor",
|
|
6438
|
+
strokeWidth: 2,
|
|
6439
|
+
strokeLinecap: "round",
|
|
6440
|
+
strokeLinejoin: "round"
|
|
6441
|
+
};
|
|
6442
|
+
|
|
6443
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6444
|
+
var Icon = forwardRef10(
|
|
6445
|
+
({
|
|
6446
|
+
color = "currentColor",
|
|
6447
|
+
size = 24,
|
|
6448
|
+
strokeWidth = 2,
|
|
6449
|
+
absoluteStrokeWidth,
|
|
6450
|
+
className = "",
|
|
6451
|
+
children,
|
|
6452
|
+
iconNode,
|
|
6453
|
+
...rest
|
|
6454
|
+
}, ref) => createElement6(
|
|
6455
|
+
"svg",
|
|
6456
|
+
{
|
|
6457
|
+
ref,
|
|
6458
|
+
...defaultAttributes,
|
|
6459
|
+
width: size,
|
|
6460
|
+
height: size,
|
|
6461
|
+
stroke: color,
|
|
6462
|
+
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
6463
|
+
className: mergeClasses("lucide", className),
|
|
6464
|
+
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
6465
|
+
...rest
|
|
6466
|
+
},
|
|
6467
|
+
[
|
|
6468
|
+
...iconNode.map(([tag, attrs]) => createElement6(tag, attrs)),
|
|
6469
|
+
...Array.isArray(children) ? children : [children]
|
|
6470
|
+
]
|
|
6471
|
+
)
|
|
6472
|
+
);
|
|
6473
|
+
|
|
6474
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6475
|
+
var createLucideIcon = (iconName, iconNode) => {
|
|
6476
|
+
const Component = forwardRef11(
|
|
6477
|
+
({ className, ...props }, ref) => createElement7(Icon, {
|
|
6478
|
+
ref,
|
|
6479
|
+
iconNode,
|
|
6480
|
+
className: mergeClasses(
|
|
6481
|
+
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
6482
|
+
`lucide-${iconName}`,
|
|
6483
|
+
className
|
|
6484
|
+
),
|
|
6485
|
+
...props
|
|
6486
|
+
})
|
|
6487
|
+
);
|
|
6488
|
+
Component.displayName = toPascalCase(iconName);
|
|
6489
|
+
return Component;
|
|
6490
|
+
};
|
|
6491
|
+
|
|
6492
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
6493
|
+
var __iconNode = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
6494
|
+
var ChevronDown = createLucideIcon("chevron-down", __iconNode);
|
|
6495
|
+
|
|
6496
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js
|
|
6497
|
+
var __iconNode2 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
6498
|
+
var LoaderCircle = createLucideIcon("loader-circle", __iconNode2);
|
|
6499
|
+
|
|
6500
|
+
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/x.js
|
|
6501
|
+
var __iconNode3 = [
|
|
6502
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
6503
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
6504
|
+
];
|
|
6505
|
+
var X = createLucideIcon("x", __iconNode3);
|
|
6506
|
+
|
|
6403
6507
|
// src/libraries/react/components/ui/dialog.tsx
|
|
6404
6508
|
import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
6405
6509
|
var Dialog2 = Root;
|
|
@@ -6434,7 +6538,10 @@ var DialogContent2 = React26.forwardRef(({ className, children, ...props }, ref)
|
|
|
6434
6538
|
...props,
|
|
6435
6539
|
children: [
|
|
6436
6540
|
children,
|
|
6437
|
-
/* @__PURE__ */
|
|
6541
|
+
/* @__PURE__ */ jsxs3(Close, { className: "au-absolute au-right-4 au-top-4 au-rounded-sm au-opacity-70 au-ring-offset-background au-transition-opacity hover:au-opacity-100 focus:au-outline-none focus:au-ring-2 focus:au-ring-ring focus:au-ring-offset-2 disabled:au-pointer-events-none data-[state=open]:au-bg-accent data-[state=open]:au-text-muted-foreground", children: [
|
|
6542
|
+
/* @__PURE__ */ jsx11(X, { className: "au-h-4 au-w-4" }),
|
|
6543
|
+
/* @__PURE__ */ jsx11("span", { className: "au-sr-only", children: "Close" })
|
|
6544
|
+
] })
|
|
6438
6545
|
]
|
|
6439
6546
|
}
|
|
6440
6547
|
)
|
|
@@ -6642,103 +6749,6 @@ var getAttachContent = (checkoutResult) => {
|
|
|
6642
6749
|
}
|
|
6643
6750
|
};
|
|
6644
6751
|
|
|
6645
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6646
|
-
import { forwardRef as forwardRef12, createElement as createElement7 } from "react";
|
|
6647
|
-
|
|
6648
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
6649
|
-
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
6650
|
-
var toCamelCase = (string) => string.replace(
|
|
6651
|
-
/^([A-Z])|[\s-_]+(\w)/g,
|
|
6652
|
-
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
6653
|
-
);
|
|
6654
|
-
var toPascalCase = (string) => {
|
|
6655
|
-
const camelCase = toCamelCase(string);
|
|
6656
|
-
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
6657
|
-
};
|
|
6658
|
-
var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
6659
|
-
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
6660
|
-
}).join(" ").trim();
|
|
6661
|
-
var hasA11yProp = (props) => {
|
|
6662
|
-
for (const prop in props) {
|
|
6663
|
-
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
6664
|
-
return true;
|
|
6665
|
-
}
|
|
6666
|
-
}
|
|
6667
|
-
};
|
|
6668
|
-
|
|
6669
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6670
|
-
import { forwardRef as forwardRef11, createElement as createElement6 } from "react";
|
|
6671
|
-
|
|
6672
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
6673
|
-
var defaultAttributes = {
|
|
6674
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6675
|
-
width: 24,
|
|
6676
|
-
height: 24,
|
|
6677
|
-
viewBox: "0 0 24 24",
|
|
6678
|
-
fill: "none",
|
|
6679
|
-
stroke: "currentColor",
|
|
6680
|
-
strokeWidth: 2,
|
|
6681
|
-
strokeLinecap: "round",
|
|
6682
|
-
strokeLinejoin: "round"
|
|
6683
|
-
};
|
|
6684
|
-
|
|
6685
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/Icon.js
|
|
6686
|
-
var Icon = forwardRef11(
|
|
6687
|
-
({
|
|
6688
|
-
color = "currentColor",
|
|
6689
|
-
size = 24,
|
|
6690
|
-
strokeWidth = 2,
|
|
6691
|
-
absoluteStrokeWidth,
|
|
6692
|
-
className = "",
|
|
6693
|
-
children,
|
|
6694
|
-
iconNode,
|
|
6695
|
-
...rest
|
|
6696
|
-
}, ref) => createElement6(
|
|
6697
|
-
"svg",
|
|
6698
|
-
{
|
|
6699
|
-
ref,
|
|
6700
|
-
...defaultAttributes,
|
|
6701
|
-
width: size,
|
|
6702
|
-
height: size,
|
|
6703
|
-
stroke: color,
|
|
6704
|
-
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
6705
|
-
className: mergeClasses("lucide", className),
|
|
6706
|
-
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
6707
|
-
...rest
|
|
6708
|
-
},
|
|
6709
|
-
[
|
|
6710
|
-
...iconNode.map(([tag, attrs]) => createElement6(tag, attrs)),
|
|
6711
|
-
...Array.isArray(children) ? children : [children]
|
|
6712
|
-
]
|
|
6713
|
-
)
|
|
6714
|
-
);
|
|
6715
|
-
|
|
6716
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
6717
|
-
var createLucideIcon = (iconName, iconNode) => {
|
|
6718
|
-
const Component = forwardRef12(
|
|
6719
|
-
({ className, ...props }, ref) => createElement7(Icon, {
|
|
6720
|
-
ref,
|
|
6721
|
-
iconNode,
|
|
6722
|
-
className: mergeClasses(
|
|
6723
|
-
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
6724
|
-
`lucide-${iconName}`,
|
|
6725
|
-
className
|
|
6726
|
-
),
|
|
6727
|
-
...props
|
|
6728
|
-
})
|
|
6729
|
-
);
|
|
6730
|
-
Component.displayName = toPascalCase(iconName);
|
|
6731
|
-
return Component;
|
|
6732
|
-
};
|
|
6733
|
-
|
|
6734
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
6735
|
-
var __iconNode = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
6736
|
-
var ChevronDown = createLucideIcon("chevron-down", __iconNode);
|
|
6737
|
-
|
|
6738
|
-
// ../node_modules/.pnpm/lucide-react@0.523.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js
|
|
6739
|
-
var __iconNode2 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
6740
|
-
var LoaderCircle = createLucideIcon("loader-circle", __iconNode2);
|
|
6741
|
-
|
|
6742
6752
|
// src/libraries/react/components/ui/accordion.tsx
|
|
6743
6753
|
import * as React27 from "react";
|
|
6744
6754
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
@@ -7823,6 +7833,7 @@ lucide-react/dist/esm/Icon.js:
|
|
|
7823
7833
|
lucide-react/dist/esm/createLucideIcon.js:
|
|
7824
7834
|
lucide-react/dist/esm/icons/chevron-down.js:
|
|
7825
7835
|
lucide-react/dist/esm/icons/loader-circle.js:
|
|
7836
|
+
lucide-react/dist/esm/icons/x.js:
|
|
7826
7837
|
lucide-react/dist/esm/lucide-react.js:
|
|
7827
7838
|
(**
|
|
7828
7839
|
* @license lucide-react v0.523.0 - ISC
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-
|
|
1
|
+
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-COIU0NG3.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
|
-
customer_id: string;
|
|
27
|
-
code: string;
|
|
28
26
|
id: string;
|
|
27
|
+
code: string;
|
|
28
|
+
customer_id: string;
|
|
29
29
|
feature_id?: string | undefined;
|
|
30
30
|
event_name?: string | undefined;
|
|
31
31
|
}, {
|
|
32
|
-
customer_id: string;
|
|
33
|
-
code: string;
|
|
34
32
|
id: string;
|
|
33
|
+
code: string;
|
|
34
|
+
customer_id: string;
|
|
35
35
|
feature_id?: string | undefined;
|
|
36
36
|
event_name?: string | undefined;
|
|
37
37
|
}>;
|
|
@@ -55,4 +55,4 @@ type Failure<E> = {
|
|
|
55
55
|
type Result<T, E> = Success<T> | Failure<E>;
|
|
56
56
|
type AutumnPromise<T> = Promise<Result<T, AutumnError>>;
|
|
57
57
|
|
|
58
|
-
export type { AutumnPromise as A,
|
|
58
|
+
export type { AutumnPromise as A, CancelResult as C, Result as R, SetupPaymentResult as S, TrackResult as T, CheckResult as a };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-
|
|
1
|
+
import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-COIU0NG3.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
|
-
customer_id: string;
|
|
27
|
-
code: string;
|
|
28
26
|
id: string;
|
|
27
|
+
code: string;
|
|
28
|
+
customer_id: string;
|
|
29
29
|
feature_id?: string | undefined;
|
|
30
30
|
event_name?: string | undefined;
|
|
31
31
|
}, {
|
|
32
|
-
customer_id: string;
|
|
33
|
-
code: string;
|
|
34
32
|
id: string;
|
|
33
|
+
code: string;
|
|
34
|
+
customer_id: string;
|
|
35
35
|
feature_id?: string | undefined;
|
|
36
36
|
event_name?: string | undefined;
|
|
37
37
|
}>;
|
|
@@ -55,4 +55,4 @@ type Failure<E> = {
|
|
|
55
55
|
type Result<T, E> = Success<T> | Failure<E>;
|
|
56
56
|
type AutumnPromise<T> = Promise<Result<T, AutumnError>>;
|
|
57
57
|
|
|
58
|
-
export type { AutumnPromise as A,
|
|
58
|
+
export type { AutumnPromise as A, CancelResult as C, Result as R, SetupPaymentResult as S, TrackResult as T, CheckResult as a };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as Result, b as AutumnPromise, C as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, d as CancelParams, e as CancelResult, a as CheckParams, T as TrackParams, c as TrackResult } from './clientAttachTypes-
|
|
2
|
-
import { C as CheckoutResult, A as AttachResult } from './attachTypes-
|
|
1
|
+
import { R as Result, b as AutumnPromise, C as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, d as CancelParams, e as CancelResult, a as CheckParams, T as TrackParams, c as TrackResult } from './clientAttachTypes-D84PT2G0.mjs';
|
|
2
|
+
import { C as CheckoutResult, A as AttachResult } from './attachTypes-DZlF8AAj.mjs';
|
|
3
3
|
import { P as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, b as Product } from './cusTypes-DT2ujoSl.mjs';
|
|
4
4
|
import { E as Entity, D as DeleteEntityResult } from './entTypes-CXGgMuHO.mjs';
|
|
5
5
|
import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.mjs';
|
|
@@ -63,38 +63,38 @@ declare class AutumnClient {
|
|
|
63
63
|
}, AutumnError>>;
|
|
64
64
|
attach: (params: {
|
|
65
65
|
options?: {
|
|
66
|
-
quantity: number;
|
|
67
66
|
featureId: string;
|
|
67
|
+
quantity: number;
|
|
68
68
|
}[] | undefined;
|
|
69
69
|
metadata?: Record<string, string> | undefined;
|
|
70
|
-
reward?: string | undefined;
|
|
71
70
|
productId?: string | undefined;
|
|
72
71
|
entityId?: string | undefined;
|
|
73
|
-
dialog?: any;
|
|
74
|
-
entityData?: any;
|
|
75
72
|
productIds?: string[] | undefined;
|
|
76
73
|
freeTrial?: boolean | undefined;
|
|
77
74
|
successUrl?: string | undefined;
|
|
78
75
|
forceCheckout?: boolean | undefined;
|
|
76
|
+
dialog?: any;
|
|
77
|
+
entityData?: any;
|
|
79
78
|
openInNewTab?: boolean | undefined;
|
|
79
|
+
reward?: string | undefined;
|
|
80
80
|
checkoutSessionParams?: Record<string, any> | undefined;
|
|
81
81
|
}) => AutumnPromise<{
|
|
82
82
|
code: string;
|
|
83
83
|
message: string;
|
|
84
84
|
customer_id: string;
|
|
85
85
|
product_ids: string[];
|
|
86
|
-
customer_data?: any;
|
|
87
86
|
checkout_url?: string | undefined;
|
|
87
|
+
customer_data?: any;
|
|
88
88
|
}>;
|
|
89
89
|
checkout: (params: {
|
|
90
90
|
productId: string;
|
|
91
91
|
options?: {
|
|
92
|
-
quantity: number;
|
|
93
92
|
featureId: string;
|
|
93
|
+
quantity: number;
|
|
94
94
|
}[] | undefined;
|
|
95
95
|
entityId?: string | undefined;
|
|
96
|
-
dialog?: any;
|
|
97
96
|
successUrl?: string | undefined;
|
|
97
|
+
dialog?: any;
|
|
98
98
|
openInNewTab?: boolean | undefined;
|
|
99
99
|
}) => AutumnPromise<CheckoutResult>;
|
|
100
100
|
cancel: (params: {
|
|
@@ -103,18 +103,18 @@ declare class AutumnClient {
|
|
|
103
103
|
cancelImmediately?: boolean | undefined;
|
|
104
104
|
}) => AutumnPromise<{
|
|
105
105
|
customer_id: string;
|
|
106
|
-
product_id: string;
|
|
107
106
|
success: boolean;
|
|
107
|
+
product_id: string;
|
|
108
108
|
}>;
|
|
109
109
|
check: (params: {
|
|
110
110
|
productId?: string | undefined;
|
|
111
111
|
entityId?: string | undefined;
|
|
112
112
|
featureId?: string | undefined;
|
|
113
|
+
dialog?: any;
|
|
114
|
+
entityData?: any;
|
|
113
115
|
requiredBalance?: number | undefined;
|
|
114
116
|
sendEvent?: boolean | undefined;
|
|
115
117
|
withPreview?: boolean | undefined;
|
|
116
|
-
dialog?: any;
|
|
117
|
-
entityData?: any;
|
|
118
118
|
}) => AutumnPromise<CheckResult>;
|
|
119
119
|
track: (params: {
|
|
120
120
|
value?: number | undefined;
|
|
@@ -125,8 +125,8 @@ declare class AutumnClient {
|
|
|
125
125
|
idempotencyKey?: string | undefined;
|
|
126
126
|
}) => AutumnPromise<{
|
|
127
127
|
code: string;
|
|
128
|
-
customer_id: string;
|
|
129
128
|
id: string;
|
|
129
|
+
customer_id: string;
|
|
130
130
|
feature_id?: string | undefined;
|
|
131
131
|
event_name?: string | undefined;
|
|
132
132
|
}>;
|