├── .babelrc ├── .env.sample ├── .eslintignore ├── .eslintrc ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── feature---improvement-request.md │ └── question.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .prettierrc.js ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── backend ├── auth │ └── get-auth-string.ts ├── controllers │ ├── api-route-controller.ts │ ├── auth-api-controller.ts │ ├── base-bigcommerce-controller.ts │ └── base-stripe-controller.ts ├── exceptions │ ├── base-error.ts │ ├── get-error.ts │ ├── handler.ts │ └── http-error.ts ├── middlewares │ ├── auth.ts │ ├── run-middleware.js │ ├── validation-middleware.ts │ └── validation.ts ├── prisma.ts ├── services │ ├── bigcommerce.service.ts │ ├── bigcommerce │ │ ├── big-base-api.ts │ │ ├── cart │ │ │ └── index.ts │ │ ├── catalog │ │ │ ├── index.ts │ │ │ ├── product-meta.ts │ │ │ ├── product-variant-metafield.ts │ │ │ └── products.ts │ │ ├── channels │ │ │ ├── index.ts │ │ │ └── listings.ts │ │ ├── customers │ │ │ └── index.ts │ │ ├── graphql │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── orders │ │ │ └── index.ts │ │ ├── scripts │ │ │ └── index.ts │ │ ├── store │ │ │ └── index.ts │ │ ├── webhooks │ │ │ └── index.ts │ │ └── widgets │ │ │ ├── index.ts │ │ │ ├── placement.ts │ │ │ ├── template.ts │ │ │ └── widget.ts │ └── stripe.service.ts └── transformers │ ├── BaseTransformer.ts │ ├── DisplaySettingTransformer.ts │ ├── StoreSettingTransformer.ts │ ├── StoreTransformer.ts │ ├── StripeTransformer.ts │ ├── UserTransformer.ts │ └── UsersOnStoresTransformer.ts ├── jest.config.js ├── next-env.d.ts ├── next.config.js ├── package.json ├── prisma ├── migrations │ ├── 20220822143907_init │ │ └── migration.sql │ └── migration_lock.toml └── schema.prisma ├── public ├── favicon.ico └── images │ ├── BigCommerce-logomark-whitebg.svg │ ├── default-product.svg │ ├── settings-icon.svg │ ├── stripe-product-image.svg │ └── stripe-subscription-logo.svg ├── sample-control-panel.png ├── sample-storefront.png ├── shared ├── constants │ ├── bcrypt.ts │ ├── bigcommerce.ts │ ├── broadcast.ts │ ├── common.ts │ ├── index.ts │ └── stripe.ts ├── di-container │ └── app.ts ├── enums │ ├── DiscountUnitType.ts │ └── FrequencyType.ts ├── handlers │ ├── errorHandler.ts │ └── getUserAndStore.ts ├── payloads │ ├── DisplaySettingPayload.ts │ ├── GetMeResponse.ts │ ├── StorePayload.ts │ ├── StoreSettingPayload.ts │ ├── StripePayload.ts │ ├── UserPayload.ts │ ├── channel-list │ │ └── ChannelListPayload.ts │ ├── product │ │ ├── ProductImagePayload.ts │ │ ├── ProductPayload.ts │ │ ├── ProductSubConfigPayload.ts │ │ ├── VariantMetafieldPayload.ts │ │ └── VariantPayload.ts │ ├── stripe │ │ ├── StripePriceProuctDataPayload.ts │ │ ├── StripePriceRecurringPayload.ts │ │ ├── StripePriceRequest.ts │ │ ├── StripePriceTiersPayload.ts │ │ ├── StripePriceTransformQuantityPayload.ts │ │ ├── StripePriceUpdateRequest.ts │ │ ├── StripeProductPackageDimensionsPayload.ts │ │ ├── StripeProductRequest.ts │ │ └── StripeProductUpdateRequest.ts │ └── subscription │ │ ├── SubConfigRequest.ts │ │ ├── SubscriptionConfigPayload.ts │ │ └── SubscriptionOptionPayload.ts ├── requests │ ├── IdRequest.ts │ └── IdStringRequest.ts ├── types │ ├── big-client.d.ts │ ├── big-commerce │ │ ├── BigCartItem.d.ts │ │ ├── BigCartItemRequest.d.ts │ │ ├── BigCartOptionSelections.d.ts │ │ ├── BigCartRequest.d.ts │ │ ├── ChannelConfigMeta.d.ts │ │ ├── ChannelConfigMetaSections.d.ts │ │ ├── ChannelPayload.d.ts │ │ └── ChannelUpdatePayload.d.ts │ ├── models │ │ └── StoreFull.d.ts │ ├── next.d.ts │ ├── requests.d.ts │ ├── styled │ │ ├── StylesProps.d.ts │ │ └── WrapperConfig.d.ts │ └── subscriptions │ │ ├── WidgetProps.d.ts │ │ └── index.d.ts └── utils │ └── isNullOrUndefined.ts ├── src ├── components │ ├── Base │ │ ├── ActionBar.tsx │ │ ├── AsyncButton.tsx │ │ ├── Button.tsx │ │ ├── CenterDiv.tsx │ │ ├── ColorPicker.tsx │ │ ├── Colors.ts │ │ ├── Flex.tsx │ │ ├── FlexItem.tsx │ │ ├── LoadingScreen.tsx │ │ ├── Modal.tsx │ │ ├── PageLayout.tsx │ │ ├── Panel.tsx │ │ ├── Radio.tsx │ │ ├── StyledInput.tsx │ │ └── StyledTable.tsx │ ├── Onboarding │ │ ├── CheckoutSettings.tsx │ │ ├── DisplaySettings │ │ │ ├── SubscriptionPreview.tsx │ │ │ └── index.tsx │ │ ├── StripeConnect.tsx │ │ ├── index.tsx │ │ └── styled.js │ ├── Products │ │ ├── Items │ │ │ └── EnabledSubscriptionCheck.tsx │ │ ├── List.tsx │ │ ├── Panes │ │ │ ├── ListPane.tsx │ │ │ ├── SubscriptionEditPane.tsx │ │ │ └── VariantProductListPane.tsx │ │ ├── Row │ │ │ ├── Action.tsx │ │ │ └── ThumbnailWithName.tsx │ │ └── Variant │ │ │ ├── List.tsx │ │ │ └── SubscriptionToggle.tsx │ └── Subscription │ │ ├── Option │ │ ├── Discount.tsx │ │ ├── EditPanel.tsx │ │ ├── Frequencies.tsx │ │ └── RuleCondition.tsx │ │ └── Widget │ │ ├── Button.tsx │ │ └── index.tsx ├── css │ └── styles.css ├── hocs │ └── withStyle.tsx ├── libs │ ├── alerts.ts │ ├── async.ts │ ├── axios.ts │ └── index.ts ├── locales │ ├── en.json │ └── fr.json ├── pages │ ├── _app.tsx │ ├── _document.js │ ├── api │ │ ├── auth.tsx │ │ ├── cart │ │ │ └── [...uri].ts │ │ ├── channel │ │ │ └── put.ts │ │ ├── load.tsx │ │ ├── me.tsx │ │ ├── product │ │ │ ├── [id].tsx │ │ │ ├── index.tsx │ │ │ ├── subscription │ │ │ │ └── [id].tsx │ │ │ └── variant │ │ │ │ └── subscription │ │ │ │ └── [id].tsx │ │ ├── store │ │ │ ├── display-settings │ │ │ │ └── put.ts │ │ │ └── index.ts │ │ ├── stripe │ │ │ ├── callback.ts │ │ │ ├── create-customer-portal-session.tsx │ │ │ ├── price │ │ │ │ ├── [id] │ │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ │ └── product │ │ │ │ └── [id] │ │ │ │ └── index.ts │ │ ├── uninstall.tsx │ │ └── webhooks │ │ │ └── index.ts │ ├── index.tsx │ ├── onboarding.tsx │ ├── products.tsx │ ├── settings.tsx │ ├── stripe │ │ └── callback.tsx │ └── support.tsx ├── providers │ ├── BigStoreProvider │ │ ├── context.ts │ │ ├── index.tsx │ │ └── modules │ │ │ ├── displaySetting.ts │ │ │ └── useStripe.ts │ ├── GlobalProvider │ │ ├── context.ts │ │ ├── index.tsx │ │ └── modules │ │ │ ├── product-list │ │ │ ├── context.ts │ │ │ └── useProductListUI.ts │ │ │ └── variant-product-list │ │ │ ├── context.ts │ │ │ └── useVariantProductUI.ts │ └── ProductProvider │ │ ├── context.ts │ │ ├── index.tsx │ │ └── modules │ │ ├── useLoading.ts │ │ ├── useProductEdit.ts │ │ ├── useProductSubConfig.ts │ │ ├── useProducts.ts │ │ ├── useSubConfig.ts │ │ └── useVariant.ts ├── styled │ └── applyStyle.tsx ├── templates │ └── subscribe-and-save-widget.hbs └── utils │ ├── cookies.ts │ ├── enum-to-options.ts │ ├── get-error-message.ts │ ├── get-lighten-darken-color.ts │ ├── open-popup-window.ts │ └── truncate.ts ├── test ├── __mocks__ │ └── fileMock.js ├── pages │ └── __snapshots__ │ │ └── index.test.tsx.snap └── testUtils.ts └── tsconfig.json /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/.babelrc -------------------------------------------------------------------------------- /.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/.env.sample -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature---improvement-request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/.github/ISSUE_TEMPLATE/feature---improvement-request.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/.github/ISSUE_TEMPLATE/question.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/README.md -------------------------------------------------------------------------------- /backend/auth/get-auth-string.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/auth/get-auth-string.ts -------------------------------------------------------------------------------- /backend/controllers/api-route-controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/controllers/api-route-controller.ts -------------------------------------------------------------------------------- /backend/controllers/auth-api-controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/controllers/auth-api-controller.ts -------------------------------------------------------------------------------- /backend/controllers/base-bigcommerce-controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/controllers/base-bigcommerce-controller.ts -------------------------------------------------------------------------------- /backend/controllers/base-stripe-controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/controllers/base-stripe-controller.ts -------------------------------------------------------------------------------- /backend/exceptions/base-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/exceptions/base-error.ts -------------------------------------------------------------------------------- /backend/exceptions/get-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/exceptions/get-error.ts -------------------------------------------------------------------------------- /backend/exceptions/handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/exceptions/handler.ts -------------------------------------------------------------------------------- /backend/exceptions/http-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/exceptions/http-error.ts -------------------------------------------------------------------------------- /backend/middlewares/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/middlewares/auth.ts -------------------------------------------------------------------------------- /backend/middlewares/run-middleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/middlewares/run-middleware.js -------------------------------------------------------------------------------- /backend/middlewares/validation-middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/middlewares/validation-middleware.ts -------------------------------------------------------------------------------- /backend/middlewares/validation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/middlewares/validation.ts -------------------------------------------------------------------------------- /backend/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/prisma.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce.service.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/big-base-api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/big-base-api.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/cart/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/cart/index.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/catalog/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/catalog/index.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/catalog/product-meta.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/catalog/product-meta.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/catalog/product-variant-metafield.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/catalog/product-variant-metafield.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/catalog/products.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/catalog/products.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/channels/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/channels/index.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/channels/listings.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/channels/listings.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/customers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/customers/index.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/graphql/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/graphql/index.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/index.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/orders/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/orders/index.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/scripts/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/scripts/index.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/store/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/store/index.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/webhooks/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/webhooks/index.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/widgets/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/widgets/index.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/widgets/placement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/widgets/placement.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/widgets/template.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/widgets/template.ts -------------------------------------------------------------------------------- /backend/services/bigcommerce/widgets/widget.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/bigcommerce/widgets/widget.ts -------------------------------------------------------------------------------- /backend/services/stripe.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/services/stripe.service.ts -------------------------------------------------------------------------------- /backend/transformers/BaseTransformer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/transformers/BaseTransformer.ts -------------------------------------------------------------------------------- /backend/transformers/DisplaySettingTransformer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/transformers/DisplaySettingTransformer.ts -------------------------------------------------------------------------------- /backend/transformers/StoreSettingTransformer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/transformers/StoreSettingTransformer.ts -------------------------------------------------------------------------------- /backend/transformers/StoreTransformer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/transformers/StoreTransformer.ts -------------------------------------------------------------------------------- /backend/transformers/StripeTransformer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/transformers/StripeTransformer.ts -------------------------------------------------------------------------------- /backend/transformers/UserTransformer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/transformers/UserTransformer.ts -------------------------------------------------------------------------------- /backend/transformers/UsersOnStoresTransformer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/backend/transformers/UsersOnStoresTransformer.ts -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/jest.config.js -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/package.json -------------------------------------------------------------------------------- /prisma/migrations/20220822143907_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/prisma/migrations/20220822143907_init/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/images/BigCommerce-logomark-whitebg.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/public/images/BigCommerce-logomark-whitebg.svg -------------------------------------------------------------------------------- /public/images/default-product.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/public/images/default-product.svg -------------------------------------------------------------------------------- /public/images/settings-icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/public/images/settings-icon.svg -------------------------------------------------------------------------------- /public/images/stripe-product-image.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/public/images/stripe-product-image.svg -------------------------------------------------------------------------------- /public/images/stripe-subscription-logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/public/images/stripe-subscription-logo.svg -------------------------------------------------------------------------------- /sample-control-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/sample-control-panel.png -------------------------------------------------------------------------------- /sample-storefront.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/sample-storefront.png -------------------------------------------------------------------------------- /shared/constants/bcrypt.ts: -------------------------------------------------------------------------------- 1 | export const BCRYPT_SALT_ROUND = 10; 2 | -------------------------------------------------------------------------------- /shared/constants/bigcommerce.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/constants/bigcommerce.ts -------------------------------------------------------------------------------- /shared/constants/broadcast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/constants/broadcast.ts -------------------------------------------------------------------------------- /shared/constants/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/constants/common.ts -------------------------------------------------------------------------------- /shared/constants/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/constants/index.ts -------------------------------------------------------------------------------- /shared/constants/stripe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/constants/stripe.ts -------------------------------------------------------------------------------- /shared/di-container/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/di-container/app.ts -------------------------------------------------------------------------------- /shared/enums/DiscountUnitType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/enums/DiscountUnitType.ts -------------------------------------------------------------------------------- /shared/enums/FrequencyType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/enums/FrequencyType.ts -------------------------------------------------------------------------------- /shared/handlers/errorHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/handlers/errorHandler.ts -------------------------------------------------------------------------------- /shared/handlers/getUserAndStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/handlers/getUserAndStore.ts -------------------------------------------------------------------------------- /shared/payloads/DisplaySettingPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/DisplaySettingPayload.ts -------------------------------------------------------------------------------- /shared/payloads/GetMeResponse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/GetMeResponse.ts -------------------------------------------------------------------------------- /shared/payloads/StorePayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/StorePayload.ts -------------------------------------------------------------------------------- /shared/payloads/StoreSettingPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/StoreSettingPayload.ts -------------------------------------------------------------------------------- /shared/payloads/StripePayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/StripePayload.ts -------------------------------------------------------------------------------- /shared/payloads/UserPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/UserPayload.ts -------------------------------------------------------------------------------- /shared/payloads/channel-list/ChannelListPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/channel-list/ChannelListPayload.ts -------------------------------------------------------------------------------- /shared/payloads/product/ProductImagePayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/product/ProductImagePayload.ts -------------------------------------------------------------------------------- /shared/payloads/product/ProductPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/product/ProductPayload.ts -------------------------------------------------------------------------------- /shared/payloads/product/ProductSubConfigPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/product/ProductSubConfigPayload.ts -------------------------------------------------------------------------------- /shared/payloads/product/VariantMetafieldPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/product/VariantMetafieldPayload.ts -------------------------------------------------------------------------------- /shared/payloads/product/VariantPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/product/VariantPayload.ts -------------------------------------------------------------------------------- /shared/payloads/stripe/StripePriceProuctDataPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/stripe/StripePriceProuctDataPayload.ts -------------------------------------------------------------------------------- /shared/payloads/stripe/StripePriceRecurringPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/stripe/StripePriceRecurringPayload.ts -------------------------------------------------------------------------------- /shared/payloads/stripe/StripePriceRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/stripe/StripePriceRequest.ts -------------------------------------------------------------------------------- /shared/payloads/stripe/StripePriceTiersPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/stripe/StripePriceTiersPayload.ts -------------------------------------------------------------------------------- /shared/payloads/stripe/StripePriceTransformQuantityPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/stripe/StripePriceTransformQuantityPayload.ts -------------------------------------------------------------------------------- /shared/payloads/stripe/StripePriceUpdateRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/stripe/StripePriceUpdateRequest.ts -------------------------------------------------------------------------------- /shared/payloads/stripe/StripeProductPackageDimensionsPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/stripe/StripeProductPackageDimensionsPayload.ts -------------------------------------------------------------------------------- /shared/payloads/stripe/StripeProductRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/stripe/StripeProductRequest.ts -------------------------------------------------------------------------------- /shared/payloads/stripe/StripeProductUpdateRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/stripe/StripeProductUpdateRequest.ts -------------------------------------------------------------------------------- /shared/payloads/subscription/SubConfigRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/subscription/SubConfigRequest.ts -------------------------------------------------------------------------------- /shared/payloads/subscription/SubscriptionConfigPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/subscription/SubscriptionConfigPayload.ts -------------------------------------------------------------------------------- /shared/payloads/subscription/SubscriptionOptionPayload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/payloads/subscription/SubscriptionOptionPayload.ts -------------------------------------------------------------------------------- /shared/requests/IdRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/requests/IdRequest.ts -------------------------------------------------------------------------------- /shared/requests/IdStringRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/requests/IdStringRequest.ts -------------------------------------------------------------------------------- /shared/types/big-client.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/big-client.d.ts -------------------------------------------------------------------------------- /shared/types/big-commerce/BigCartItem.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/big-commerce/BigCartItem.d.ts -------------------------------------------------------------------------------- /shared/types/big-commerce/BigCartItemRequest.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/big-commerce/BigCartItemRequest.d.ts -------------------------------------------------------------------------------- /shared/types/big-commerce/BigCartOptionSelections.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/big-commerce/BigCartOptionSelections.d.ts -------------------------------------------------------------------------------- /shared/types/big-commerce/BigCartRequest.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/big-commerce/BigCartRequest.d.ts -------------------------------------------------------------------------------- /shared/types/big-commerce/ChannelConfigMeta.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/big-commerce/ChannelConfigMeta.d.ts -------------------------------------------------------------------------------- /shared/types/big-commerce/ChannelConfigMetaSections.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/big-commerce/ChannelConfigMetaSections.d.ts -------------------------------------------------------------------------------- /shared/types/big-commerce/ChannelPayload.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/big-commerce/ChannelPayload.d.ts -------------------------------------------------------------------------------- /shared/types/big-commerce/ChannelUpdatePayload.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/big-commerce/ChannelUpdatePayload.d.ts -------------------------------------------------------------------------------- /shared/types/models/StoreFull.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/models/StoreFull.d.ts -------------------------------------------------------------------------------- /shared/types/next.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/next.d.ts -------------------------------------------------------------------------------- /shared/types/requests.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/requests.d.ts -------------------------------------------------------------------------------- /shared/types/styled/StylesProps.d.ts: -------------------------------------------------------------------------------- 1 | type StylesProps = React.CSSProperties; 2 | -------------------------------------------------------------------------------- /shared/types/styled/WrapperConfig.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/styled/WrapperConfig.d.ts -------------------------------------------------------------------------------- /shared/types/subscriptions/WidgetProps.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/subscriptions/WidgetProps.d.ts -------------------------------------------------------------------------------- /shared/types/subscriptions/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/types/subscriptions/index.d.ts -------------------------------------------------------------------------------- /shared/utils/isNullOrUndefined.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/shared/utils/isNullOrUndefined.ts -------------------------------------------------------------------------------- /src/components/Base/ActionBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Base/ActionBar.tsx -------------------------------------------------------------------------------- /src/components/Base/AsyncButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Base/AsyncButton.tsx -------------------------------------------------------------------------------- /src/components/Base/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Base/Button.tsx -------------------------------------------------------------------------------- /src/components/Base/CenterDiv.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Base/CenterDiv.tsx -------------------------------------------------------------------------------- /src/components/Base/ColorPicker.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Base/ColorPicker.tsx -------------------------------------------------------------------------------- /src/components/Base/Colors.ts: -------------------------------------------------------------------------------- 1 | export const primary = "#3C64F4"; 2 | -------------------------------------------------------------------------------- /src/components/Base/Flex.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Base/Flex.tsx -------------------------------------------------------------------------------- /src/components/Base/FlexItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Base/FlexItem.tsx -------------------------------------------------------------------------------- /src/components/Base/LoadingScreen.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Base/LoadingScreen.tsx -------------------------------------------------------------------------------- /src/components/Base/Modal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Base/Modal.tsx -------------------------------------------------------------------------------- /src/components/Base/PageLayout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Base/PageLayout.tsx -------------------------------------------------------------------------------- /src/components/Base/Panel.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Base/Panel.tsx -------------------------------------------------------------------------------- /src/components/Base/Radio.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Base/Radio.tsx -------------------------------------------------------------------------------- /src/components/Base/StyledInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Base/StyledInput.tsx -------------------------------------------------------------------------------- /src/components/Base/StyledTable.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Base/StyledTable.tsx -------------------------------------------------------------------------------- /src/components/Onboarding/CheckoutSettings.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Onboarding/CheckoutSettings.tsx -------------------------------------------------------------------------------- /src/components/Onboarding/DisplaySettings/SubscriptionPreview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Onboarding/DisplaySettings/SubscriptionPreview.tsx -------------------------------------------------------------------------------- /src/components/Onboarding/DisplaySettings/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Onboarding/DisplaySettings/index.tsx -------------------------------------------------------------------------------- /src/components/Onboarding/StripeConnect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Onboarding/StripeConnect.tsx -------------------------------------------------------------------------------- /src/components/Onboarding/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Onboarding/index.tsx -------------------------------------------------------------------------------- /src/components/Onboarding/styled.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Onboarding/styled.js -------------------------------------------------------------------------------- /src/components/Products/Items/EnabledSubscriptionCheck.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Products/Items/EnabledSubscriptionCheck.tsx -------------------------------------------------------------------------------- /src/components/Products/List.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Products/List.tsx -------------------------------------------------------------------------------- /src/components/Products/Panes/ListPane.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Products/Panes/ListPane.tsx -------------------------------------------------------------------------------- /src/components/Products/Panes/SubscriptionEditPane.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Products/Panes/SubscriptionEditPane.tsx -------------------------------------------------------------------------------- /src/components/Products/Panes/VariantProductListPane.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Products/Panes/VariantProductListPane.tsx -------------------------------------------------------------------------------- /src/components/Products/Row/Action.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Products/Row/Action.tsx -------------------------------------------------------------------------------- /src/components/Products/Row/ThumbnailWithName.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Products/Row/ThumbnailWithName.tsx -------------------------------------------------------------------------------- /src/components/Products/Variant/List.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Products/Variant/List.tsx -------------------------------------------------------------------------------- /src/components/Products/Variant/SubscriptionToggle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Products/Variant/SubscriptionToggle.tsx -------------------------------------------------------------------------------- /src/components/Subscription/Option/Discount.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Subscription/Option/Discount.tsx -------------------------------------------------------------------------------- /src/components/Subscription/Option/EditPanel.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Subscription/Option/EditPanel.tsx -------------------------------------------------------------------------------- /src/components/Subscription/Option/Frequencies.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Subscription/Option/Frequencies.tsx -------------------------------------------------------------------------------- /src/components/Subscription/Option/RuleCondition.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Subscription/Option/RuleCondition.tsx -------------------------------------------------------------------------------- /src/components/Subscription/Widget/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Subscription/Widget/Button.tsx -------------------------------------------------------------------------------- /src/components/Subscription/Widget/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/components/Subscription/Widget/index.tsx -------------------------------------------------------------------------------- /src/css/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/css/styles.css -------------------------------------------------------------------------------- /src/hocs/withStyle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/hocs/withStyle.tsx -------------------------------------------------------------------------------- /src/libs/alerts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/libs/alerts.ts -------------------------------------------------------------------------------- /src/libs/async.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/libs/async.ts -------------------------------------------------------------------------------- /src/libs/axios.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/libs/axios.ts -------------------------------------------------------------------------------- /src/libs/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./axios"; 2 | -------------------------------------------------------------------------------- /src/locales/en.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/locales/en.json -------------------------------------------------------------------------------- /src/locales/fr.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/locales/fr.json -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/_document.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/_document.js -------------------------------------------------------------------------------- /src/pages/api/auth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/auth.tsx -------------------------------------------------------------------------------- /src/pages/api/cart/[...uri].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/cart/[...uri].ts -------------------------------------------------------------------------------- /src/pages/api/channel/put.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/channel/put.ts -------------------------------------------------------------------------------- /src/pages/api/load.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/load.tsx -------------------------------------------------------------------------------- /src/pages/api/me.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/me.tsx -------------------------------------------------------------------------------- /src/pages/api/product/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/product/[id].tsx -------------------------------------------------------------------------------- /src/pages/api/product/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/product/index.tsx -------------------------------------------------------------------------------- /src/pages/api/product/subscription/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/product/subscription/[id].tsx -------------------------------------------------------------------------------- /src/pages/api/product/variant/subscription/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/product/variant/subscription/[id].tsx -------------------------------------------------------------------------------- /src/pages/api/store/display-settings/put.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/store/display-settings/put.ts -------------------------------------------------------------------------------- /src/pages/api/store/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/store/index.ts -------------------------------------------------------------------------------- /src/pages/api/stripe/callback.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/stripe/callback.ts -------------------------------------------------------------------------------- /src/pages/api/stripe/create-customer-portal-session.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/stripe/create-customer-portal-session.tsx -------------------------------------------------------------------------------- /src/pages/api/stripe/price/[id]/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/stripe/price/[id]/index.ts -------------------------------------------------------------------------------- /src/pages/api/stripe/price/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/stripe/price/index.ts -------------------------------------------------------------------------------- /src/pages/api/stripe/product/[id]/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/stripe/product/[id]/index.ts -------------------------------------------------------------------------------- /src/pages/api/uninstall.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/uninstall.tsx -------------------------------------------------------------------------------- /src/pages/api/webhooks/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/api/webhooks/index.ts -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/pages/onboarding.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/onboarding.tsx -------------------------------------------------------------------------------- /src/pages/products.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/products.tsx -------------------------------------------------------------------------------- /src/pages/settings.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/settings.tsx -------------------------------------------------------------------------------- /src/pages/stripe/callback.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/stripe/callback.tsx -------------------------------------------------------------------------------- /src/pages/support.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/pages/support.tsx -------------------------------------------------------------------------------- /src/providers/BigStoreProvider/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/BigStoreProvider/context.ts -------------------------------------------------------------------------------- /src/providers/BigStoreProvider/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/BigStoreProvider/index.tsx -------------------------------------------------------------------------------- /src/providers/BigStoreProvider/modules/displaySetting.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/BigStoreProvider/modules/displaySetting.ts -------------------------------------------------------------------------------- /src/providers/BigStoreProvider/modules/useStripe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/BigStoreProvider/modules/useStripe.ts -------------------------------------------------------------------------------- /src/providers/GlobalProvider/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/GlobalProvider/context.ts -------------------------------------------------------------------------------- /src/providers/GlobalProvider/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/GlobalProvider/index.tsx -------------------------------------------------------------------------------- /src/providers/GlobalProvider/modules/product-list/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/GlobalProvider/modules/product-list/context.ts -------------------------------------------------------------------------------- /src/providers/GlobalProvider/modules/product-list/useProductListUI.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/GlobalProvider/modules/product-list/useProductListUI.ts -------------------------------------------------------------------------------- /src/providers/GlobalProvider/modules/variant-product-list/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/GlobalProvider/modules/variant-product-list/context.ts -------------------------------------------------------------------------------- /src/providers/GlobalProvider/modules/variant-product-list/useVariantProductUI.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/GlobalProvider/modules/variant-product-list/useVariantProductUI.ts -------------------------------------------------------------------------------- /src/providers/ProductProvider/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/ProductProvider/context.ts -------------------------------------------------------------------------------- /src/providers/ProductProvider/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/ProductProvider/index.tsx -------------------------------------------------------------------------------- /src/providers/ProductProvider/modules/useLoading.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/ProductProvider/modules/useLoading.ts -------------------------------------------------------------------------------- /src/providers/ProductProvider/modules/useProductEdit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/ProductProvider/modules/useProductEdit.ts -------------------------------------------------------------------------------- /src/providers/ProductProvider/modules/useProductSubConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/ProductProvider/modules/useProductSubConfig.ts -------------------------------------------------------------------------------- /src/providers/ProductProvider/modules/useProducts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/ProductProvider/modules/useProducts.ts -------------------------------------------------------------------------------- /src/providers/ProductProvider/modules/useSubConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/ProductProvider/modules/useSubConfig.ts -------------------------------------------------------------------------------- /src/providers/ProductProvider/modules/useVariant.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/providers/ProductProvider/modules/useVariant.ts -------------------------------------------------------------------------------- /src/styled/applyStyle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/styled/applyStyle.tsx -------------------------------------------------------------------------------- /src/templates/subscribe-and-save-widget.hbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/templates/subscribe-and-save-widget.hbs -------------------------------------------------------------------------------- /src/utils/cookies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/utils/cookies.ts -------------------------------------------------------------------------------- /src/utils/enum-to-options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/utils/enum-to-options.ts -------------------------------------------------------------------------------- /src/utils/get-error-message.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/utils/get-error-message.ts -------------------------------------------------------------------------------- /src/utils/get-lighten-darken-color.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/utils/get-lighten-darken-color.ts -------------------------------------------------------------------------------- /src/utils/open-popup-window.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/utils/open-popup-window.ts -------------------------------------------------------------------------------- /src/utils/truncate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/src/utils/truncate.ts -------------------------------------------------------------------------------- /test/__mocks__/fileMock.js: -------------------------------------------------------------------------------- 1 | module.exports = "test-file-stub"; 2 | -------------------------------------------------------------------------------- /test/pages/__snapshots__/index.test.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/test/pages/__snapshots__/index.test.tsx.snap -------------------------------------------------------------------------------- /test/testUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/test/testUtils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bigcommerce/subscription-foundation/HEAD/tsconfig.json --------------------------------------------------------------------------------