{"_id":"@billingos/sdk","_rev":"11-4d7955ed10f115848c532d319db96e5e","name":"@billingos/sdk","dist-tags":{"latest":"0.1.12"},"versions":{"0.1.0":{"name":"@billingos/sdk","version":"0.1.0","keywords":["billing","payments","stripe","subscriptions","saas","react","sdk","checkout","customer-portal"],"author":{"name":"BillingOS"},"license":"MIT","_id":"@billingos/sdk@0.1.0","maintainers":[{"name":"billingos","email":"ankushk2518@gmail.com"}],"dist":{"shasum":"b4b96c499bb8d6afcaf0c51a013fe3599cd9ba02","tarball":"https://registry.npmjs.org/@billingos/sdk/-/sdk-0.1.0.tgz","fileCount":7,"integrity":"sha512-HLruMEYEgO/8ip8QNYqTQvEDDyBT15Crpo9uzN0iY2F33q+P/tsh20IlG/m3ft0zjP6+AB+Jv1CwvoU6SAttEA==","signatures":[{"sig":"MEUCIQDAxCDJy/qj8WjotYm1MsZYr856ivL6FkRcMWo3lqKDXgIgH7Fhp0hSmWZQGzYvgwlvRpsnxlrEwfIuxoXgBhHn3dU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1591722},"main":"./dist/index.js","type":"module","_from":"file:billingos-sdk-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"dev":"vite","lint":"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0","build":"tsc && vite build","preview":"vite preview","release":"pnpm prepare && changeset publish","version":"changeset version","changeset":"changeset","type-check":"tsc --noEmit"},"_npmUser":{"name":"billingos","email":"ankushk2518@gmail.com"},"_resolved":"/private/var/folders/wh/nb97p49n4zlfmwddy4g8myfr0000gn/T/30d828b63b734f425edaf367c834ea13/billingos-sdk-0.1.0.tgz","_integrity":"sha512-HLruMEYEgO/8ip8QNYqTQvEDDyBT15Crpo9uzN0iY2F33q+P/tsh20IlG/m3ft0zjP6+AB+Jv1CwvoU6SAttEA==","_npmVersion":"11.11.0","description":"React SDK for BillingOS - billing, subscriptions, and payments (with iframe checkout)","directories":{},"_nodeVersion":"22.19.0","dependencies":{"zod":"^3.22.0","clsx":"^2.1.1","date-fns":"^4.1.0","tailwind-merge":"^2.6.0","react-shadow-scope":"^2.0.3","class-variance-authority":"^0.7.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.11","react":"^19.0.0","eslint":"^9.18.0","postcss":"^8.4.49","react-dom":"^19.0.0","typescript":"^5.7.3","@types/node":"^22.10.5","tailwindcss":"^4.0.0","@types/react":"^19.0.6","autoprefixer":"^10.4.20","react-hook-form":"^7.68.0","vite-plugin-dts":"^4.4.0","@types/react-dom":"^19.0.3","@stripe/stripe-js":"^7.1.0","@tailwindcss/postcss":"^4.1.18","@vitejs/plugin-react":"^4.3.4","@tanstack/react-query":"^5.90.0","@stripe/react-stripe-js":"^4.0.2","@typescript-eslint/parser":"^8.19.1","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-react-refresh":"^0.4.16","vite-plugin-css-injected-by-js":"^3.5.2","@typescript-eslint/eslint-plugin":"^8.19.1","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0","react-hook-form":"^7.68.0","@stripe/stripe-js":"^7.1.0","@tanstack/react-query":"^5.90.0","@stripe/react-stripe-js":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.0_1772243287246_0.602885944331282","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@billingos/sdk","version":"0.1.1","keywords":["billing","payments","stripe","subscriptions","saas","react","sdk","checkout","customer-portal"],"author":{"name":"BillingOS"},"license":"MIT","_id":"@billingos/sdk@0.1.1","maintainers":[{"name":"billingos","email":"ankushk2518@gmail.com"}],"dist":{"shasum":"49f35515f4fec83409c2623dea96e6d1cfe368ad","tarball":"https://registry.npmjs.org/@billingos/sdk/-/sdk-0.1.1.tgz","fileCount":7,"integrity":"sha512-ZMNpnD25AT6/ODfAzm5HEqgIubVmOWqFczi2pVRu6JDdPs7MKXRuGeVz0TLxj4bp2jSaP5+O+Os56NKVHIKDVw==","signatures":[{"sig":"MEYCIQC8aZOpf0mGJlW5HACMndRs+i2Q3U+VCTaXy8uL7hW95QIhAO3wGF9Cs9SVxKdf5nZnnsH/j+2gWZi/3E6HrrxObiRN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1592501},"main":"./dist/index.js","type":"module","_from":"file:billingos-sdk-0.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"dev":"vite","lint":"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0","build":"tsc && vite build","preview":"vite preview","release":"pnpm prepare && changeset publish","version":"changeset version","changeset":"changeset","type-check":"tsc --noEmit"},"_npmUser":{"name":"billingos","email":"ankushk2518@gmail.com"},"_resolved":"/private/var/folders/wh/nb97p49n4zlfmwddy4g8myfr0000gn/T/97991a3b3b0949af909cbcdff8b6afa6/billingos-sdk-0.1.1.tgz","_integrity":"sha512-ZMNpnD25AT6/ODfAzm5HEqgIubVmOWqFczi2pVRu6JDdPs7MKXRuGeVz0TLxj4bp2jSaP5+O+Os56NKVHIKDVw==","_npmVersion":"11.11.0","description":"React SDK for BillingOS - billing, subscriptions, and payments (with iframe checkout)","directories":{},"_nodeVersion":"22.19.0","dependencies":{"zod":"^3.22.0","clsx":"^2.1.1","date-fns":"^4.1.0","tailwind-merge":"^2.6.0","react-shadow-scope":"^2.0.3","class-variance-authority":"^0.7.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.11","react":"^19.0.0","eslint":"^9.18.0","postcss":"^8.4.49","react-dom":"^19.0.0","typescript":"^5.7.3","@types/node":"^22.10.5","tailwindcss":"^4.0.0","@types/react":"^19.0.6","autoprefixer":"^10.4.20","react-hook-form":"^7.68.0","vite-plugin-dts":"^4.4.0","@types/react-dom":"^19.0.3","@stripe/stripe-js":"^7.1.0","@tailwindcss/postcss":"^4.1.18","@vitejs/plugin-react":"^4.3.4","@tanstack/react-query":"^5.90.0","@stripe/react-stripe-js":"^4.0.2","@typescript-eslint/parser":"^8.19.1","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-react-refresh":"^0.4.16","vite-plugin-css-injected-by-js":"^3.5.2","@typescript-eslint/eslint-plugin":"^8.19.1","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0","react-hook-form":"^7.68.0","@stripe/stripe-js":"^7.1.0","@tanstack/react-query":"^5.90.0","@stripe/react-stripe-js":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.1_1772248781823_0.2983696381940417","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@billingos/sdk","version":"0.1.2","keywords":["billing","payments","stripe","subscriptions","saas","react","sdk","checkout","customer-portal"],"author":{"name":"BillingOS"},"license":"MIT","_id":"@billingos/sdk@0.1.2","maintainers":[{"name":"billingos","email":"ankushk2518@gmail.com"}],"dist":{"shasum":"88def48d95e08953ea090158d2ee1bc1046b922d","tarball":"https://registry.npmjs.org/@billingos/sdk/-/sdk-0.1.2.tgz","fileCount":7,"integrity":"sha512-N1abWy1yTx8SR+hvLFtkr6DlLl8sUBmsTuyTZvldmETNURXaBmPD13V18HytZ4OQdgli5071ErVVXun3nT7edg==","signatures":[{"sig":"MEUCIQDo5/ShHVGaUAr8rUiRIPte7xBN6vlyavTGxWvgrY2v+AIgCbFUv9/BEY4QJlCX9X/hzfyAkEC2h5+46T95QaKJWGU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1592441},"main":"./dist/index.js","type":"module","_from":"file:billingos-sdk-0.1.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"dev":"vite","lint":"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0","build":"tsc && vite build","preview":"vite preview","release":"pnpm prepare && changeset publish","version":"changeset version","changeset":"changeset","type-check":"tsc --noEmit"},"_npmUser":{"name":"billingos","email":"ankushk2518@gmail.com"},"_resolved":"/private/var/folders/wh/nb97p49n4zlfmwddy4g8myfr0000gn/T/a365fef2f9dbb242846ee9c5b87d9fbc/billingos-sdk-0.1.2.tgz","_integrity":"sha512-N1abWy1yTx8SR+hvLFtkr6DlLl8sUBmsTuyTZvldmETNURXaBmPD13V18HytZ4OQdgli5071ErVVXun3nT7edg==","_npmVersion":"11.11.0","description":"React SDK for BillingOS - billing, subscriptions, and payments (with iframe checkout)","directories":{},"_nodeVersion":"22.19.0","dependencies":{"zod":"^3.22.0","clsx":"^2.1.1","date-fns":"^4.1.0","tailwind-merge":"^2.6.0","react-shadow-scope":"^2.0.3","class-variance-authority":"^0.7.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.0.11","react":"^19.0.0","eslint":"^9.18.0","postcss":"^8.4.49","react-dom":"^19.0.0","typescript":"^5.7.3","@types/node":"^22.10.5","tailwindcss":"^4.0.0","@types/react":"^19.0.6","autoprefixer":"^10.4.20","react-hook-form":"^7.68.0","vite-plugin-dts":"^4.4.0","@types/react-dom":"^19.0.3","@stripe/stripe-js":"^7.1.0","@tailwindcss/postcss":"^4.1.18","@vitejs/plugin-react":"^4.3.4","@tanstack/react-query":"^5.90.0","@stripe/react-stripe-js":"^4.0.2","@typescript-eslint/parser":"^8.19.1","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-react-refresh":"^0.4.16","vite-plugin-css-injected-by-js":"^3.5.2","@typescript-eslint/eslint-plugin":"^8.19.1","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0","react-hook-form":"^7.68.0","@stripe/stripe-js":"^7.1.0","@tanstack/react-query":"^5.90.0","@stripe/react-stripe-js":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.2_1772393813158_0.9703912656231177","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@billingos/sdk","version":"0.1.4","keywords":["billing","payments","stripe","subscriptions","saas","react","sdk","checkout","customer-portal"],"author":{"name":"BillingOS"},"license":"MIT","_id":"@billingos/sdk@0.1.4","maintainers":[{"name":"billingos","email":"ankushk2518@gmail.com"}],"dist":{"shasum":"eaa051e62af34663e8aa2bab3cecdc00afe24797","tarball":"https://registry.npmjs.org/@billingos/sdk/-/sdk-0.1.4.tgz","fileCount":8,"integrity":"sha512-v9Cv2pYbjJrxEvA8os6zpJhgTI9fdean+jORLrna4eQ5BWkf4kuGWcHKUaTLpxSH23bni71Keo60jBGn/rcqFw==","signatures":[{"sig":"MEQCIFYI5HZoSIQgauOHkxbDx+zbKVW7dUIJN02hlj5PvsxWAiBm4/lc13GRJFSYI9cvdS+bjBUVM8Evq61dmzWPotrULw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1935414},"main":"./dist/index.js","type":"module","_from":"file:billingos-sdk-0.1.4.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"lint":"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0","build":"tsup","release":"pnpm prepare && changeset publish","version":"changeset version","changeset":"changeset","type-check":"tsc --noEmit","dev:playground":"pnpm --filter @billingos/playground dev"},"_npmUser":{"name":"billingos","email":"ankushk2518@gmail.com"},"_resolved":"/private/var/folders/wh/nb97p49n4zlfmwddy4g8myfr0000gn/T/3f8212d4cc8e4d6f03b76d5f3d67f842/billingos-sdk-0.1.4.tgz","_integrity":"sha512-v9Cv2pYbjJrxEvA8os6zpJhgTI9fdean+jORLrna4eQ5BWkf4kuGWcHKUaTLpxSH23bni71Keo60jBGn/rcqFw==","_npmVersion":"11.11.0","description":"React SDK for BillingOS - billing, subscriptions, and payments (with iframe checkout)","directories":{},"sideEffects":["./src/styles/inject.ts","./dist/index.mjs","./dist/index.js"],"_nodeVersion":"22.19.0","dependencies":{"zod":"^3.22.0","clsx":"^2.1.1","date-fns":"^4.1.0","tailwind-merge":"^2.6.0","react-shadow-scope":"^2.0.3","class-variance-authority":"^0.7.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","react":"^19.0.0","eslint":"^9.18.0","postcss":"^8.4.49","react-dom":"^19.0.0","typescript":"^5.7.3","@types/node":"^22.10.5","tailwindcss":"^4.0.0","@types/react":"^19.0.6","@changesets/cli":"^2.30.0","react-hook-form":"^7.68.0","@types/react-dom":"^19.0.3","@stripe/stripe-js":"^7.1.0","@tailwindcss/postcss":"^4.1.18","@tanstack/react-query":"^5.90.0","@stripe/react-stripe-js":"^4.0.2","@typescript-eslint/parser":"^8.19.1","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-react-refresh":"^0.4.16","@typescript-eslint/eslint-plugin":"^8.19.1"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0","@stripe/stripe-js":"^7.1.0","@tanstack/react-query":"^5.90.0","@stripe/react-stripe-js":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.4_1773277706421_0.4204036235766848","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@billingos/sdk","version":"0.1.5","keywords":["billing","payments","stripe","subscriptions","saas","react","sdk","checkout","customer-portal"],"author":{"name":"BillingOS"},"license":"MIT","_id":"@billingos/sdk@0.1.5","maintainers":[{"name":"billingos","email":"ankushk2518@gmail.com"}],"dist":{"shasum":"6cf2b936b8621a738095affe4f3bf5f5e9d73821","tarball":"https://registry.npmjs.org/@billingos/sdk/-/sdk-0.1.5.tgz","fileCount":8,"integrity":"sha512-m3nyzfnILA9M5N0Nzz5U4ndtKoW+Kbn2jiy3KDGABXOVt0tFACGRiHLB6SkBEA1Dnd4o5rXALWiLBfGF9/MTFA==","signatures":[{"sig":"MEQCIDKw+Tf4OzNZQrPTRUqO4X5cHCHwzY0tUbHBxoWvBY/4AiBF425OKc8H+26LCTgoJSKjXBvIoQRJASKwoGPtu8g2Hg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1886662},"main":"./dist/index.js","type":"module","_from":"file:billingos-sdk-0.1.5.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","lint":"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0","build":"tsup","dev:all":"pnpm dev & pnpm --filter @billingos/node dev","release":"pnpm prepare && changeset publish","version":"changeset version","changeset":"changeset","type-check":"tsc --noEmit","dev:playground":"pnpm --filter @billingos/playground dev"},"_npmUser":{"name":"billingos","email":"ankushk2518@gmail.com"},"_resolved":"/private/var/folders/wh/nb97p49n4zlfmwddy4g8myfr0000gn/T/07c7c20bbe131922d759e573247d0442/billingos-sdk-0.1.5.tgz","_integrity":"sha512-m3nyzfnILA9M5N0Nzz5U4ndtKoW+Kbn2jiy3KDGABXOVt0tFACGRiHLB6SkBEA1Dnd4o5rXALWiLBfGF9/MTFA==","_npmVersion":"11.11.0","description":"React SDK for BillingOS - billing, subscriptions, and payments (with iframe checkout)","directories":{},"sideEffects":["./src/styles/inject.ts","./dist/index.mjs","./dist/index.js"],"_nodeVersion":"22.19.0","dependencies":{"zod":"^3.22.0","clsx":"^2.1.1","date-fns":"^4.1.0","lucide-react":"^0.577.0","tailwind-merge":"^2.6.0","react-shadow-scope":"^2.0.3","class-variance-authority":"^0.7.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","react":"^19.0.0","eslint":"^9.18.0","postcss":"^8.4.49","react-dom":"^19.0.0","typescript":"^5.7.3","@types/node":"^22.10.5","tailwindcss":"^4.0.0","@types/react":"^19.0.6","@changesets/cli":"^2.30.0","react-hook-form":"^7.68.0","@types/react-dom":"^19.0.3","@stripe/stripe-js":"^7.1.0","@tailwindcss/postcss":"^4.1.18","@tanstack/react-query":"^5.90.0","@stripe/react-stripe-js":"^4.0.2","@typescript-eslint/parser":"^8.19.1","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-react-refresh":"^0.4.16","@typescript-eslint/eslint-plugin":"^8.19.1"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0","@stripe/stripe-js":"^7.1.0","@tanstack/react-query":"^5.90.0","@stripe/react-stripe-js":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.5_1773459187547_0.033322591104175014","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@billingos/sdk","version":"0.1.6","keywords":["billing","payments","stripe","subscriptions","saas","react","sdk","checkout","customer-portal"],"author":{"name":"BillingOS"},"license":"MIT","_id":"@billingos/sdk@0.1.6","maintainers":[{"name":"billingos","email":"ankushk2518@gmail.com"}],"dist":{"shasum":"406871c52020a0a00d4543ace00ba075874c7d2e","tarball":"https://registry.npmjs.org/@billingos/sdk/-/sdk-0.1.6.tgz","fileCount":8,"integrity":"sha512-ppJRgKQKAmr9Ku8oB3N4SSRd+P+UHpoIt4GiIJFMYHRaFIypGBUlz0unc/eqivXdgx2z3ICJReoKCw4mFQJU6A==","signatures":[{"sig":"MEYCIQCBy5rELXkc/GZTvCIAzc4ehRYS3QXc8VepREnZjpyFkgIhAMq9RKFQDbGabPJwjJha1Tahtv7c0iJ75yCMAVvQQE8k","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1887610},"main":"./dist/index.js","type":"module","_from":"file:billingos-sdk-0.1.6.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","lint":"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0","build":"tsup","dev:all":"pnpm dev & pnpm --filter @billingos/node dev","release":"pnpm prepare && changeset publish","version":"changeset version","changeset":"changeset","type-check":"tsc --noEmit","dev:playground":"pnpm --filter @billingos/playground dev"},"_npmUser":{"name":"billingos","email":"ankushk2518@gmail.com"},"_resolved":"/private/var/folders/wh/nb97p49n4zlfmwddy4g8myfr0000gn/T/2be26b0ced5c98963d39376583f687aa/billingos-sdk-0.1.6.tgz","_integrity":"sha512-ppJRgKQKAmr9Ku8oB3N4SSRd+P+UHpoIt4GiIJFMYHRaFIypGBUlz0unc/eqivXdgx2z3ICJReoKCw4mFQJU6A==","_npmVersion":"10.5.0","description":"React SDK for BillingOS - billing, subscriptions, and payments (with iframe checkout)","directories":{},"sideEffects":["./src/styles/inject.ts","./dist/index.mjs","./dist/index.js"],"_nodeVersion":"20.12.2","dependencies":{"zod":"^3.22.0","clsx":"^2.1.1","date-fns":"^4.1.0","lucide-react":"^0.577.0","tailwind-merge":"^2.6.0","react-shadow-scope":"^2.0.3","class-variance-authority":"^0.7.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","react":"^19.0.0","eslint":"^9.18.0","postcss":"^8.4.49","react-dom":"^19.0.0","typescript":"^5.7.3","@types/node":"^22.10.5","tailwindcss":"^4.0.0","@types/react":"^19.0.6","@changesets/cli":"^2.30.0","react-hook-form":"^7.68.0","@types/react-dom":"^19.0.3","@stripe/stripe-js":"^7.1.0","@tailwindcss/postcss":"^4.1.18","@tanstack/react-query":"^5.90.0","@stripe/react-stripe-js":"^4.0.2","@typescript-eslint/parser":"^8.19.1","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-react-refresh":"^0.4.16","@typescript-eslint/eslint-plugin":"^8.19.1"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0","@stripe/stripe-js":"^7.1.0","@tanstack/react-query":"^5.90.0","@stripe/react-stripe-js":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.6_1773461877879_0.9859650603098271","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@billingos/sdk","version":"0.1.7","keywords":["billing","payments","stripe","subscriptions","saas","react","sdk","checkout","customer-portal"],"author":{"name":"BillingOS"},"license":"MIT","_id":"@billingos/sdk@0.1.7","maintainers":[{"name":"billingos","email":"ankushk2518@gmail.com"}],"dist":{"shasum":"8b1d2af22acbcc10cc130063d1d5438c4d1fcaee","tarball":"https://registry.npmjs.org/@billingos/sdk/-/sdk-0.1.7.tgz","fileCount":8,"integrity":"sha512-M965aH2sIHQ8lMroMitYu9aVj+njEPsRCVsPATlhX75llrQHdrwW7sC+aoU7QtcxmH6YuLrVY+iOz4NhqRU7lw==","signatures":[{"sig":"MEQCICZ+6RhPpL2kMIn2jke0kAqMxkeGSRkDct6sX2YWPxEdAiAKHZ7/cZ65uegtGJ1HqnQ/XLGUJVH8enLX/6vHPpwH9w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1713477},"main":"./dist/index.js","type":"module","_from":"file:billingos-sdk-0.1.7.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","lint":"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0","build":"tsup","dev:all":"pnpm dev & pnpm --filter @billingos/node dev","release":"pnpm prepare && changeset publish","version":"changeset version","changeset":"changeset","type-check":"tsc --noEmit","dev:playground":"pnpm --filter @billingos/playground dev"},"_npmUser":{"name":"billingos","email":"ankushk2518@gmail.com"},"_resolved":"/private/var/folders/wh/nb97p49n4zlfmwddy4g8myfr0000gn/T/2090ea98991732394c3d95fea53441b8/billingos-sdk-0.1.7.tgz","_integrity":"sha512-M965aH2sIHQ8lMroMitYu9aVj+njEPsRCVsPATlhX75llrQHdrwW7sC+aoU7QtcxmH6YuLrVY+iOz4NhqRU7lw==","_npmVersion":"11.11.0","description":"React SDK for BillingOS - billing, subscriptions, and payments (with iframe checkout)","directories":{},"sideEffects":false,"_nodeVersion":"22.19.0","dependencies":{"zod":"^3.22.0","clsx":"^2.1.1","date-fns":"^4.1.0","tailwind-merge":"^2.6.0","class-variance-authority":"^0.7.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","react":"^19.0.0","eslint":"^9.18.0","postcss":"^8.4.49","react-dom":"^19.0.0","typescript":"^5.7.3","@types/node":"^22.10.5","tailwindcss":"^4.0.0","@types/react":"^19.0.6","lucide-react":"^0.577.0","@changesets/cli":"^2.30.0","@types/react-dom":"^19.0.3","@tailwindcss/postcss":"^4.1.18","@tanstack/react-query":"^5.90.0","@typescript-eslint/parser":"^8.19.1","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-react-refresh":"^0.4.16","@typescript-eslint/eslint-plugin":"^8.19.1"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0","@tanstack/react-query":"^5.90.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.7_1773812354781_0.9367936246476742","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@billingos/sdk","version":"0.1.8","keywords":["billing","payments","stripe","subscriptions","saas","react","sdk","checkout","customer-portal"],"author":{"name":"BillingOS"},"license":"MIT","_id":"@billingos/sdk@0.1.8","maintainers":[{"name":"billingos","email":"ankushk2518@gmail.com"}],"dist":{"shasum":"298bd75b058547d2d22ca913c7af93e0876c1fa2","tarball":"https://registry.npmjs.org/@billingos/sdk/-/sdk-0.1.8.tgz","fileCount":8,"integrity":"sha512-8qMKsO5lgK7HdIkVh6YkH30Rr74iycFcm5qIEsSM9HLK0HunIUZL1JNdkgy+i4wePCzUpZMWGVRpYw0o3x9ZJg==","signatures":[{"sig":"MEUCIBXGnmCgRIc5+1RZsuz6YZRstmwnHg0dEOrCtY9mDmLbAiEA7RzD6SWPbqPcjF92FIaqITANW/ZSGlXBPNUUBp7ypRc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1805498},"main":"./dist/index.js","type":"module","_from":"file:billingos-sdk-0.1.8.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","lint":"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0","build":"tsup","dev:all":"pnpm dev & pnpm --filter @billingos/node dev","release":"pnpm prepare && changeset publish","version":"changeset version","changeset":"changeset","type-check":"tsc --noEmit","dev:playground":"pnpm --filter @billingos/playground dev"},"_npmUser":{"name":"billingos","email":"ankushk2518@gmail.com"},"_resolved":"/private/var/folders/wh/nb97p49n4zlfmwddy4g8myfr0000gn/T/43a7c17bf23feaf2e3b281e4d51c6b74/billingos-sdk-0.1.8.tgz","_integrity":"sha512-8qMKsO5lgK7HdIkVh6YkH30Rr74iycFcm5qIEsSM9HLK0HunIUZL1JNdkgy+i4wePCzUpZMWGVRpYw0o3x9ZJg==","_npmVersion":"10.5.0","description":"React SDK for BillingOS - billing, subscriptions, and payments (with iframe checkout)","directories":{},"sideEffects":false,"_nodeVersion":"20.12.2","dependencies":{"zod":"^3.22.0","clsx":"^2.1.1","date-fns":"^4.1.0","tailwind-merge":"^2.6.0","class-variance-authority":"^0.7.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","react":"^19.0.0","eslint":"^9.18.0","postcss":"^8.4.49","react-dom":"^19.0.0","typescript":"^5.7.3","@types/node":"^22.10.5","tailwindcss":"^4.0.0","@types/react":"^19.0.6","lucide-react":"^0.577.0","@changesets/cli":"^2.30.0","@types/react-dom":"^19.0.3","@tailwindcss/postcss":"^4.1.18","@tanstack/react-query":"^5.90.0","@typescript-eslint/parser":"^8.19.1","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-react-refresh":"^0.4.16","@typescript-eslint/eslint-plugin":"^8.19.1"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0","@tanstack/react-query":"^5.90.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.8_1777162698120_0.8150776342247215","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@billingos/sdk","version":"0.1.9","keywords":["billing","payments","stripe","subscriptions","saas","react","sdk","checkout","customer-portal"],"author":{"name":"BillingOS"},"license":"MIT","_id":"@billingos/sdk@0.1.9","maintainers":[{"name":"billingos","email":"ankushk2518@gmail.com"}],"dist":{"shasum":"d87aecd7e49ca69e620e8d02e8d6e3368c349c79","tarball":"https://registry.npmjs.org/@billingos/sdk/-/sdk-0.1.9.tgz","fileCount":8,"integrity":"sha512-9RvCeg6cT7efE/UAbwTNRERxwR5rgOAlUXu6KQx9zutz0sIT4RU9oNACY40e/7Ee2BkxN1kVROAA8ZQrX3222g==","signatures":[{"sig":"MEUCIQDHU0LPgpASkvCgogecpaWaz0owC9RC8OwXMJUKyjgRjgIgGqfkMdG7DAvNQNXG70uS5XBzZnCngMwDT69+5p4Uvf4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1797141},"main":"./dist/index.js","type":"module","_from":"file:billingos-sdk-0.1.9.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","lint":"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0","build":"tsup","dev:all":"pnpm dev & pnpm --filter @billingos/node dev","release":"pnpm prepare && changeset publish","version":"changeset version","changeset":"changeset","type-check":"tsc --noEmit","dev:playground":"pnpm --filter @billingos/playground dev"},"_npmUser":{"name":"billingos","email":"ankushk2518@gmail.com"},"_resolved":"/private/var/folders/wh/nb97p49n4zlfmwddy4g8myfr0000gn/T/f9946cb6bdc761135eeaa30c5d3073ad/billingos-sdk-0.1.9.tgz","_integrity":"sha512-9RvCeg6cT7efE/UAbwTNRERxwR5rgOAlUXu6KQx9zutz0sIT4RU9oNACY40e/7Ee2BkxN1kVROAA8ZQrX3222g==","_npmVersion":"11.12.1","description":"React SDK for BillingOS - billing, subscriptions, and payments (with iframe checkout)","directories":{},"sideEffects":false,"_nodeVersion":"24.15.0","dependencies":{"zod":"^3.22.0","clsx":"^2.1.1","date-fns":"^4.1.0","tailwind-merge":"^2.6.0","class-variance-authority":"^0.7.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","react":"^19.0.0","eslint":"^9.18.0","postcss":"^8.4.49","react-dom":"^19.0.0","typescript":"^5.7.3","@types/node":"^22.10.5","tailwindcss":"^4.0.0","@types/react":"^19.0.6","lucide-react":"^0.577.0","@changesets/cli":"^2.30.0","@types/react-dom":"^19.0.3","@tailwindcss/postcss":"^4.1.18","@tanstack/react-query":"^5.90.0","@typescript-eslint/parser":"^8.19.1","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-react-refresh":"^0.4.16","@typescript-eslint/eslint-plugin":"^8.19.1"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0","@tanstack/react-query":"^5.90.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.9_1778519942303_0.06101032827456021","host":"s3://npm-registry-packages-npm-production"}},"0.1.11":{"name":"@billingos/sdk","version":"0.1.11","keywords":["billing","payments","stripe","subscriptions","saas","react","sdk","checkout","customer-portal"],"author":{"name":"BillingOS"},"license":"MIT","_id":"@billingos/sdk@0.1.11","maintainers":[{"name":"billingos","email":"ankushk2518@gmail.com"}],"dist":{"shasum":"78a020028fe42b48c0a14c7fa27660edf3c60a41","tarball":"https://registry.npmjs.org/@billingos/sdk/-/sdk-0.1.11.tgz","fileCount":8,"integrity":"sha512-749Ni9ky0Qx1bunfL5ivsO2/OmsA4LFv4SE91CQ2rU2yUphkhiSJruvEr9zTllR4XVDsErGl1LQU9WHQZqTO2A==","signatures":[{"sig":"MEQCIHNuneRXyiVW60OZlFaDhvtqzTvbE06GFrQd9hdKU58+AiBAhGWilqYMU9kdVCsLvxXEOjsqV7m9NiFdP8CRy6qJmA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1800054},"main":"./dist/index.js","type":"module","_from":"file:billingos-sdk-0.1.11.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","lint":"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0","build":"tsup","dev:all":"pnpm dev & pnpm --filter @billingos/node dev","release":"pnpm prepare && changeset publish","version":"changeset version","changeset":"changeset","type-check":"tsc --noEmit","dev:playground":"pnpm --filter @billingos/playground dev"},"_npmUser":{"name":"billingos","email":"ankushk2518@gmail.com"},"_resolved":"/private/var/folders/wh/nb97p49n4zlfmwddy4g8myfr0000gn/T/c9ad8ac2503a52874cb0a09583c3d94c/billingos-sdk-0.1.11.tgz","_integrity":"sha512-749Ni9ky0Qx1bunfL5ivsO2/OmsA4LFv4SE91CQ2rU2yUphkhiSJruvEr9zTllR4XVDsErGl1LQU9WHQZqTO2A==","_npmVersion":"11.12.1","description":"React SDK for BillingOS - billing, subscriptions, and payments (with iframe checkout)","directories":{},"sideEffects":false,"_nodeVersion":"24.15.0","dependencies":{"zod":"^3.22.0","clsx":"^2.1.1","date-fns":"^4.1.0","tailwind-merge":"^2.6.0","class-variance-authority":"^0.7.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","react":"^19.0.0","eslint":"^9.18.0","postcss":"^8.4.49","react-dom":"^19.0.0","typescript":"^5.7.3","@types/node":"^22.10.5","tailwindcss":"^4.0.0","@types/react":"^19.0.6","lucide-react":"^0.577.0","@changesets/cli":"^2.30.0","@types/react-dom":"^19.0.3","@tailwindcss/postcss":"^4.1.18","@tanstack/react-query":"^5.90.0","@typescript-eslint/parser":"^8.19.1","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-react-refresh":"^0.4.16","@typescript-eslint/eslint-plugin":"^8.19.1"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0","@tanstack/react-query":"^5.90.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.11_1780172458678_0.7760230077636856","host":"s3://npm-registry-packages-npm-production"}},"0.1.12":{"name":"@billingos/sdk","version":"0.1.12","description":"React SDK for BillingOS - billing, subscriptions, and payments (with iframe checkout)","type":"module","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"sideEffects":false,"keywords":["billing","payments","stripe","subscriptions","saas","react","sdk","checkout","customer-portal"],"author":{"name":"BillingOS"},"license":"MIT","publishConfig":{"access":"public"},"peerDependencies":{"@tanstack/react-query":"^5.90.0","react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0"},"dependencies":{"class-variance-authority":"^0.7.1","clsx":"^2.1.1","date-fns":"^4.1.0","tailwind-merge":"^2.6.0","zod":"^3.22.0"},"devDependencies":{"@changesets/cli":"^2.30.0","@tailwindcss/postcss":"^4.1.18","@tanstack/react-query":"^5.90.0","@types/node":"^22.10.5","@types/react":"^19.0.6","@types/react-dom":"^19.0.3","@typescript-eslint/eslint-plugin":"^8.19.1","@typescript-eslint/parser":"^8.19.1","eslint":"^9.18.0","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-react-refresh":"^0.4.16","lucide-react":"^0.577.0","postcss":"^8.4.49","react":"^19.0.0","react-dom":"^19.0.0","tailwindcss":"^4.0.0","tsup":"^8.5.1","typescript":"^5.7.3"},"scripts":{"build":"tsup","type-check":"tsc --noEmit","lint":"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0","changeset":"changeset","version":"changeset version","release":"pnpm prepare && changeset publish","dev":"tsup --watch","dev:all":"pnpm dev & pnpm --filter @billingos/node dev","dev:playground":"pnpm --filter @billingos/playground dev"},"_id":"@billingos/sdk@0.1.12","_integrity":"sha512-xd7xfZaNn8mVdv1fhUv8RtsoHqBVO4HmjXSgZ0lIFRTnvhhlysmjp1ADBJ/0Rf59iD/q+UVioOdWeRCi3tM8EA==","_resolved":"/private/var/folders/wh/nb97p49n4zlfmwddy4g8myfr0000gn/T/e38753feb44f0cc2af77beac6900020a/billingos-sdk-0.1.12.tgz","_from":"file:billingos-sdk-0.1.12.tgz","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-xd7xfZaNn8mVdv1fhUv8RtsoHqBVO4HmjXSgZ0lIFRTnvhhlysmjp1ADBJ/0Rf59iD/q+UVioOdWeRCi3tM8EA==","shasum":"34ba88defbd415b85940cc2a725b4c26106410ce","tarball":"https://registry.npmjs.org/@billingos/sdk/-/sdk-0.1.12.tgz","fileCount":8,"unpackedSize":1802716,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCCgJ3UDOwmk+VwunZCghc7khDmWyZ5yu5WpAVdqlslBQIgIkE+yG9FngbuT4rpmIJ75JSsNLvPtLxs2NpxY1CHdNg="}]},"_npmUser":{"name":"billingos","email":"ankushk2518@gmail.com"},"directories":{},"maintainers":[{"name":"billingos","email":"ankushk2518@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.1.12_1780342357486_0.4778993736887691"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-28T01:48:07.159Z","modified":"2026-06-01T19:32:37.785Z","0.1.0":"2026-02-28T01:48:07.509Z","0.1.1":"2026-02-28T03:19:42.000Z","0.1.2":"2026-03-01T19:36:53.351Z","0.1.4":"2026-03-12T01:08:26.592Z","0.1.5":"2026-03-14T03:33:07.803Z","0.1.6":"2026-03-14T04:17:58.113Z","0.1.7":"2026-03-18T05:39:14.983Z","0.1.8":"2026-04-26T00:18:18.317Z","0.1.9":"2026-05-11T17:19:02.467Z","0.1.11":"2026-05-30T20:20:59.007Z","0.1.12":"2026-06-01T19:32:37.674Z"},"author":{"name":"BillingOS"},"license":"MIT","keywords":["billing","payments","stripe","subscriptions","saas","react","sdk","checkout","customer-portal"],"description":"React SDK for BillingOS - billing, subscriptions, and payments (with iframe checkout)","maintainers":[{"name":"billingos","email":"ankushk2518@gmail.com"}],"readme":"# @billingos/sdk\n\nReact SDK for [BillingOS](https://billingos.dev) — drop-in billing UI components for SaaS apps. Pricing tables, customer portals, checkout, feature gating, and usage metering — all powered by your BillingOS dashboard.\n\n## Installation\n\n```bash\nnpm install @billingos/sdk @tanstack/react-query\n# or\npnpm add @billingos/sdk @tanstack/react-query\n```\n\n## Quick Start\n\n### 1. Create a product\n\nHead to your [BillingOS Dashboard](https://app.billingos.dev) and create a product with pricing and features.\n\n### 2. Create an API key\n\nGo to **Settings > API Keys** and generate a secret key (`sk_live_...` or `sk_test_...`).\n\n### 3. Add a backend endpoint\n\nUse [`@billingos/node`](./packages/node) to create a session token endpoint:\n\n```typescript\n// app/api/billingos-session/route.ts (Next.js example)\nimport { BillingOS } from '@billingos/node'\n\nconst billing = new BillingOS({\n  secretKey: process.env.BILLINGOS_SECRET_KEY!,\n})\n\nexport async function POST(req: Request) {\n  const { userId } = await req.json()\n\n  const { sessionToken, expiresAt } = await billing.createSessionToken({\n    externalUserId: userId,\n  })\n\n  return Response.json({ sessionToken, expiresAt })\n}\n```\n\n### 4. Wrap your app with the provider\n\n```tsx\nimport { BillingOSProvider } from '@billingos/sdk'\n\nexport default function App({ children }) {\n  return (\n    <BillingOSProvider sessionTokenUrl=\"/api/billingos-session\">\n      {children}\n    </BillingOSProvider>\n  )\n}\n```\n\nThat's it. Now use any component or hook in your app.\n\n## Components\n\n### PricingTable\n\nRenders your products as a pricing page with interval toggle, feature comparison, and built-in checkout.\n\n```tsx\nimport { PricingTable } from '@billingos/sdk'\n\n<PricingTable\n  showIntervalToggle={true}\n  defaultInterval=\"month\"\n  onPlanChanged={(subscription) => console.log('Subscribed!', subscription)}\n/>\n```\n\n| Prop | Type | Description |\n|------|------|-------------|\n| `planIds` | `string[]` | Filter to specific product IDs |\n| `showIntervalToggle` | `boolean` | Show monthly/yearly toggle (default: `true`) |\n| `defaultInterval` | `'month' \\| 'year'` | Default billing interval |\n| `onSelectPlan` | `(priceId: string) => void` | Custom handler (bypasses built-in checkout) |\n| `onPlanChanged` | `(subscription) => void` | Called after successful checkout |\n| `customer` | `{ email?, name? }` | Prefill customer info in checkout |\n| `compact` | `boolean` | Render cards only, no wrapper |\n| `footerText` | `string \\| null` | Footer note (null to hide) |\n\n### CustomerPortal\n\nSelf-service billing portal — subscriptions, invoices, payment methods, plan changes.\n\n```tsx\nimport { CustomerPortal } from '@billingos/sdk'\n\n<CustomerPortal\n  mode=\"drawer\"       // 'drawer' | 'modal' | 'page'\n  isOpen={isOpen}\n  onClose={() => setIsOpen(false)}\n/>\n```\n\n| Prop | Type | Description |\n|------|------|-------------|\n| `mode` | `'drawer' \\| 'modal' \\| 'page'` | Display mode (default: `'drawer'`) |\n| `isOpen` | `boolean` | Open/close state (drawer/modal modes) |\n| `onClose` | `() => void` | Close callback |\n| `defaultTab` | `'subscription' \\| 'invoices' \\| 'payment' \\| 'settings'` | Default tab |\n| `onSubscriptionUpdate` | `(subscription) => void` | Subscription changed |\n| `onSubscriptionCancel` | `() => void` | Subscription cancelled |\n\n### CheckoutModal\n\nIframe-based checkout dialog. Used automatically by PricingTable, or use standalone:\n\n```tsx\nimport { CheckoutModal } from '@billingos/sdk'\n\n<CheckoutModal\n  open={isOpen}\n  onOpenChange={setIsOpen}\n  priceId=\"price_abc123\"\n  customer={{ email: 'user@example.com' }}\n  onSuccess={(subscription) => console.log('Done!', subscription)}\n/>\n```\n\n### FeatureGate\n\nConditionally render UI based on feature entitlements:\n\n```tsx\nimport { FeatureGate } from '@billingos/sdk'\n\n<FeatureGate\n  feature=\"advanced_analytics\"\n  fallback={<UpgradePrompt feature=\"advanced_analytics\" />}\n>\n  <AnalyticsDashboard />\n</FeatureGate>\n```\n\n### UpgradeNudge\n\nDisplays an upgrade prompt when usage approaches a threshold:\n\n```tsx\nimport { UpgradeNudge } from '@billingos/sdk'\n\n<UpgradeNudge\n  feature=\"api_calls\"\n  threshold={80}\n  onUpgradeClick={() => setShowPricing(true)}\n/>\n```\n\n## Hooks\n\n### Feature Gating\n\n```tsx\nimport { useHasFeature, useFeature, useEntitlements } from '@billingos/sdk'\n\n// Simple boolean check\nconst { hasAccess, isLoading } = useHasFeature('advanced_analytics')\n\n// Full feature details (access, usage, limits)\nconst { data } = useFeature('api_calls')\n\n// All entitlements for current customer\nconst { data } = useEntitlements()\n```\n\n### Usage Tracking\n\n```tsx\nimport { useTrackUsage, useUsageMetrics } from '@billingos/sdk'\n\n// Track usage events\nconst track = useTrackUsage()\ntrack.mutate({ featureKey: 'api_calls', quantity: 1 })\n\n// Read usage metrics\nconst { data } = useUsageMetrics('api_calls')\n```\n\n### Subscriptions\n\n```tsx\nimport { useSubscription } from '@billingos/sdk'\n\nconst { data: subscription, isLoading } = useSubscription()\n```\n\n## Theming\n\nCustomize appearance via the provider:\n\n```tsx\n<BillingOSProvider\n  sessionTokenUrl=\"/api/billingos-session\"\n  appearance={{\n    theme: 'dark', // 'light' | 'dark' | 'auto'\n    light: {\n      colorPrimary: '#2563eb',\n      borderRadius: '12px',\n    },\n    dark: {\n      colorPrimary: '#3b82f6',\n    },\n  }}\n>\n```\n\n## Peer Dependencies\n\n| Package | Version |\n|---------|---------|\n| `react` | `^18.0.0 \\|\\| ^19.0.0` |\n| `react-dom` | `^18.0.0 \\|\\| ^19.0.0` |\n| `@tanstack/react-query` | `^5.90.0` |\n\n## Environment Detection\n\nThe SDK auto-detects your environment from the session token:\n\n- `bos_session_live_*` -> Production API\n- `bos_session_test_*` -> Sandbox API\n\nNo URL configuration needed.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}