@automattic/plans-grid-next 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +3 -0
- package/dist/cjs/__mocks__/wpcom-proxy-request.js +17 -0
- package/dist/cjs/__mocks__/wpcom-proxy-request.js.map +1 -0
- package/dist/cjs/_media-queries.scss +14 -0
- package/dist/cjs/_mixins.scss +15 -0
- package/dist/cjs/_shared.scss +174 -0
- package/dist/cjs/components/comparison-grid/index.js +527 -0
- package/dist/cjs/components/comparison-grid/index.js.map +1 -0
- package/dist/cjs/components/comparison-grid/index.stories.js +74 -0
- package/dist/cjs/components/comparison-grid/index.stories.js.map +1 -0
- package/dist/cjs/components/comparison-grid/style.scss +318 -0
- package/dist/cjs/components/dropdown-option.js +33 -0
- package/dist/cjs/components/dropdown-option.js.map +1 -0
- package/dist/cjs/components/features-grid/billing-timeframes.js +15 -0
- package/dist/cjs/components/features-grid/billing-timeframes.js.map +1 -0
- package/dist/cjs/components/features-grid/client-logo-list/client-list.js +106 -0
- package/dist/cjs/components/features-grid/client-logo-list/client-list.js.map +1 -0
- package/dist/cjs/components/features-grid/client-logo-list/index.js +17 -0
- package/dist/cjs/components/features-grid/client-logo-list/index.js.map +1 -0
- package/dist/cjs/components/features-grid/client-logo-list/style.scss +52 -0
- package/dist/cjs/components/features-grid/enterprise-features.js +41 -0
- package/dist/cjs/components/features-grid/enterprise-features.js.map +1 -0
- package/dist/cjs/components/features-grid/index.js +130 -0
- package/dist/cjs/components/features-grid/index.js.map +1 -0
- package/dist/cjs/components/features-grid/index.stories.js +112 -0
- package/dist/cjs/components/features-grid/index.stories.js.map +1 -0
- package/dist/cjs/components/features-grid/mobile-free-domain.js +25 -0
- package/dist/cjs/components/features-grid/mobile-free-domain.js.map +1 -0
- package/dist/cjs/components/features-grid/plan-features-list.js +56 -0
- package/dist/cjs/components/features-grid/plan-features-list.js.map +1 -0
- package/dist/cjs/components/features-grid/plan-headers.js +15 -0
- package/dist/cjs/components/features-grid/plan-headers.js.map +1 -0
- package/dist/cjs/components/features-grid/plan-logos.js +12 -0
- package/dist/cjs/components/features-grid/plan-logos.js.map +1 -0
- package/dist/cjs/components/features-grid/plan-prices.js +14 -0
- package/dist/cjs/components/features-grid/plan-prices.js.map +1 -0
- package/dist/cjs/components/features-grid/plan-tagline.js +12 -0
- package/dist/cjs/components/features-grid/plan-tagline.js.map +1 -0
- package/dist/cjs/components/features-grid/previous-features-included-title.js +36 -0
- package/dist/cjs/components/features-grid/previous-features-included-title.js.map +1 -0
- package/dist/cjs/components/features-grid/spotlight-plan.js +24 -0
- package/dist/cjs/components/features-grid/spotlight-plan.js.map +1 -0
- package/dist/cjs/components/features-grid/spotlight-plan.scss +5 -0
- package/dist/cjs/components/features-grid/style.scss +630 -0
- package/dist/cjs/components/features-grid/table.js +38 -0
- package/dist/cjs/components/features-grid/table.js.map +1 -0
- package/dist/cjs/components/features-grid/top-buttons.js +15 -0
- package/dist/cjs/components/features-grid/top-buttons.js.map +1 -0
- package/dist/cjs/components/features.js +72 -0
- package/dist/cjs/components/features.js.map +1 -0
- package/dist/cjs/components/item.js +9 -0
- package/dist/cjs/components/item.js.map +1 -0
- package/dist/cjs/components/plan-button/index.js +21 -0
- package/dist/cjs/components/plan-button/index.js.map +1 -0
- package/dist/cjs/components/plan-button/style.scss +179 -0
- package/dist/cjs/components/plan-div-td-container.js +9 -0
- package/dist/cjs/components/plan-div-td-container.js.map +1 -0
- package/dist/cjs/components/plan-logo.js +45 -0
- package/dist/cjs/components/plan-logo.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/components/interval-type-dropdown.js +39 -0
- package/dist/cjs/components/plan-type-selector/components/interval-type-dropdown.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/components/interval-type-selector.js +12 -0
- package/dist/cjs/components/plan-type-selector/components/interval-type-selector.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/components/interval-type-toggle.js +55 -0
- package/dist/cjs/components/plan-type-selector/components/interval-type-toggle.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/components/popup-messages.js +108 -0
- package/dist/cjs/components/plan-type-selector/components/popup-messages.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/hooks/use-interval-options.js +56 -0
- package/dist/cjs/components/plan-type-selector/hooks/use-interval-options.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/hooks/use-max-discount.js +45 -0
- package/dist/cjs/components/plan-type-selector/hooks/use-max-discount.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/hooks/use-max-discounts-for-plan-terms.js +68 -0
- package/dist/cjs/components/plan-type-selector/hooks/use-max-discounts-for-plan-terms.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/index.js +27 -0
- package/dist/cjs/components/plan-type-selector/index.js.map +1 -0
- package/dist/cjs/components/plan-type-selector/style.scss +196 -0
- package/dist/cjs/components/plans-2023-tooltip.js +46 -0
- package/dist/cjs/components/plans-2023-tooltip.js.map +1 -0
- package/dist/cjs/components/popular-badge.js +16 -0
- package/dist/cjs/components/popular-badge.js.map +1 -0
- package/dist/cjs/components/shared/action-button/index.js +91 -0
- package/dist/cjs/components/shared/action-button/index.js.map +1 -0
- package/dist/cjs/components/shared/action-button/style.scss +12 -0
- package/dist/cjs/components/shared/billing-timeframe/index.js +58 -0
- package/dist/cjs/components/shared/billing-timeframe/index.js.map +1 -0
- package/dist/cjs/components/shared/header-price/header-price-context.js +14 -0
- package/dist/cjs/components/shared/header-price/header-price-context.js.map +1 -0
- package/dist/cjs/components/shared/header-price/index.js +102 -0
- package/dist/cjs/components/shared/header-price/index.js.map +1 -0
- package/dist/cjs/components/shared/header-price/style.scss +112 -0
- package/dist/cjs/components/shared/plan-pill/index.js +6 -0
- package/dist/cjs/components/shared/plan-pill/index.js.map +1 -0
- package/dist/cjs/components/shared/plan-pill/style.scss +30 -0
- package/dist/cjs/components/shared/storage/components/plan-storage.js +28 -0
- package/dist/cjs/components/shared/storage/components/plan-storage.js.map +1 -0
- package/dist/cjs/components/shared/storage/components/storage-dropdown.js +96 -0
- package/dist/cjs/components/shared/storage/components/storage-dropdown.js.map +1 -0
- package/dist/cjs/components/shared/storage/components/storage-feature-label.js +40 -0
- package/dist/cjs/components/shared/storage/components/storage-feature-label.js.map +1 -0
- package/dist/cjs/components/shared/storage/constants.js +6 -0
- package/dist/cjs/components/shared/storage/constants.js.map +1 -0
- package/dist/cjs/components/shared/storage/hooks/use-default-storage-option.js +26 -0
- package/dist/cjs/components/shared/storage/hooks/use-default-storage-option.js.map +1 -0
- package/dist/cjs/components/shared/storage/hooks/use-plan-storage.js +29 -0
- package/dist/cjs/components/shared/storage/hooks/use-plan-storage.js.map +1 -0
- package/dist/cjs/components/shared/storage/hooks/use-purchased-storage-add-on.js +51 -0
- package/dist/cjs/components/shared/storage/hooks/use-purchased-storage-add-on.js.map +1 -0
- package/dist/cjs/components/shared/storage/hooks/use-storage-string.js +13 -0
- package/dist/cjs/components/shared/storage/hooks/use-storage-string.js.map +1 -0
- package/dist/cjs/components/shared/storage/index.js +14 -0
- package/dist/cjs/components/shared/storage/index.js.map +1 -0
- package/dist/cjs/components/sticky-container.js +74 -0
- package/dist/cjs/components/sticky-container.js.map +1 -0
- package/dist/cjs/constants.js +11 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/css-mixins.js +14 -0
- package/dist/cjs/css-mixins.js.map +1 -0
- package/dist/cjs/fixtures/plans.js +1542 -0
- package/dist/cjs/fixtures/plans.js.map +1 -0
- package/dist/cjs/fixtures/sites-plans.js +458 -0
- package/dist/cjs/fixtures/sites-plans.js.map +1 -0
- package/dist/cjs/fixtures/sites-purchases.js +133 -0
- package/dist/cjs/fixtures/sites-purchases.js.map +1 -0
- package/dist/cjs/grid-context.js +40 -0
- package/dist/cjs/grid-context.js.map +1 -0
- package/dist/cjs/hooks/data-store/is-popular-plan.js +9 -0
- package/dist/cjs/hooks/data-store/is-popular-plan.js.map +1 -0
- package/dist/cjs/hooks/data-store/types.js +3 -0
- package/dist/cjs/hooks/data-store/types.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-grid-plan-for-spotlight.js +18 -0
- package/dist/cjs/hooks/data-store/use-grid-plan-for-spotlight.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-grid-plans-for-comparison-grid.js +55 -0
- package/dist/cjs/hooks/data-store/use-grid-plans-for-comparison-grid.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-grid-plans-for-features-grid.js +56 -0
- package/dist/cjs/hooks/data-store/use-grid-plans-for-features-grid.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-grid-plans.js +254 -0
- package/dist/cjs/hooks/data-store/use-grid-plans.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-highlight-labels.js +60 -0
- package/dist/cjs/hooks/data-store/use-highlight-labels.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-highlighted-features.js +35 -0
- package/dist/cjs/hooks/data-store/use-highlighted-features.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-plan-billing-description.js +216 -0
- package/dist/cjs/hooks/data-store/use-plan-billing-description.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-plan-features-for-grid-plans.js +133 -0
- package/dist/cjs/hooks/data-store/use-plan-features-for-grid-plans.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-plans-from-types.js +30 -0
- package/dist/cjs/hooks/data-store/use-plans-from-types.js.map +1 -0
- package/dist/cjs/hooks/data-store/use-restructured-plan-features-for-comparison-grid.js +90 -0
- package/dist/cjs/hooks/data-store/use-restructured-plan-features-for-comparison-grid.js.map +1 -0
- package/dist/cjs/hooks/use-grid-size.js +33 -0
- package/dist/cjs/hooks/use-grid-size.js.map +1 -0
- package/dist/cjs/hooks/use-highlight-adjacency-matrix.js +31 -0
- package/dist/cjs/hooks/use-highlight-adjacency-matrix.js.map +1 -0
- package/dist/cjs/hooks/use-is-large-currency.js +69 -0
- package/dist/cjs/hooks/use-is-large-currency.js.map +1 -0
- package/dist/cjs/hooks/use-manage-tooltip-toggle.js +29 -0
- package/dist/cjs/hooks/use-manage-tooltip-toggle.js.map +1 -0
- package/dist/cjs/hooks/use-plan-pricing-info-from-grid-plans.js +17 -0
- package/dist/cjs/hooks/use-plan-pricing-info-from-grid-plans.js.map +1 -0
- package/dist/cjs/index.js +36 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/lib/filter-unused-features-object.js +19 -0
- package/dist/cjs/lib/filter-unused-features-object.js.map +1 -0
- package/dist/cjs/lib/get-plan-features-object.js +11 -0
- package/dist/cjs/lib/get-plan-features-object.js.map +1 -0
- package/dist/cjs/lib/get-plan-pricing-info-from-grid-plans.js +16 -0
- package/dist/cjs/lib/get-plan-pricing-info-from-grid-plans.js.map +1 -0
- package/dist/cjs/lib/is-same-plan.js +12 -0
- package/dist/cjs/lib/is-same-plan.js.map +1 -0
- package/dist/cjs/lib/sort-plan-properties.js +39 -0
- package/dist/cjs/lib/sort-plan-properties.js.map +1 -0
- package/dist/cjs/lib/touch-detect/index.js +20 -0
- package/dist/cjs/lib/touch-detect/index.js.map +1 -0
- package/dist/cjs/types.js +3 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/esm/__mocks__/wpcom-proxy-request.js +11 -0
- package/dist/esm/__mocks__/wpcom-proxy-request.js.map +1 -0
- package/dist/esm/_media-queries.scss +14 -0
- package/dist/esm/_mixins.scss +15 -0
- package/dist/esm/_shared.scss +174 -0
- package/dist/esm/components/comparison-grid/index.js +524 -0
- package/dist/esm/components/comparison-grid/index.js.map +1 -0
- package/dist/esm/components/comparison-grid/index.stories.js +71 -0
- package/dist/esm/components/comparison-grid/index.stories.js.map +1 -0
- package/dist/esm/components/comparison-grid/style.scss +318 -0
- package/dist/esm/components/dropdown-option.js +30 -0
- package/dist/esm/components/dropdown-option.js.map +1 -0
- package/dist/esm/components/features-grid/billing-timeframes.js +12 -0
- package/dist/esm/components/features-grid/billing-timeframes.js.map +1 -0
- package/dist/esm/components/features-grid/client-logo-list/client-list.js +104 -0
- package/dist/esm/components/features-grid/client-logo-list/client-list.js.map +1 -0
- package/dist/esm/components/features-grid/client-logo-list/index.js +14 -0
- package/dist/esm/components/features-grid/client-logo-list/index.js.map +1 -0
- package/dist/esm/components/features-grid/client-logo-list/style.scss +52 -0
- package/dist/esm/components/features-grid/enterprise-features.js +38 -0
- package/dist/esm/components/features-grid/enterprise-features.js.map +1 -0
- package/dist/esm/components/features-grid/index.js +127 -0
- package/dist/esm/components/features-grid/index.js.map +1 -0
- package/dist/esm/components/features-grid/index.stories.js +109 -0
- package/dist/esm/components/features-grid/index.stories.js.map +1 -0
- package/dist/esm/components/features-grid/mobile-free-domain.js +23 -0
- package/dist/esm/components/features-grid/mobile-free-domain.js.map +1 -0
- package/dist/esm/components/features-grid/plan-features-list.js +53 -0
- package/dist/esm/components/features-grid/plan-features-list.js.map +1 -0
- package/dist/esm/components/features-grid/plan-headers.js +12 -0
- package/dist/esm/components/features-grid/plan-headers.js.map +1 -0
- package/dist/esm/components/features-grid/plan-logos.js +9 -0
- package/dist/esm/components/features-grid/plan-logos.js.map +1 -0
- package/dist/esm/components/features-grid/plan-prices.js +11 -0
- package/dist/esm/components/features-grid/plan-prices.js.map +1 -0
- package/dist/esm/components/features-grid/plan-tagline.js +9 -0
- package/dist/esm/components/features-grid/plan-tagline.js.map +1 -0
- package/dist/esm/components/features-grid/previous-features-included-title.js +33 -0
- package/dist/esm/components/features-grid/previous-features-included-title.js.map +1 -0
- package/dist/esm/components/features-grid/spotlight-plan.js +21 -0
- package/dist/esm/components/features-grid/spotlight-plan.js.map +1 -0
- package/dist/esm/components/features-grid/spotlight-plan.scss +5 -0
- package/dist/esm/components/features-grid/style.scss +630 -0
- package/dist/esm/components/features-grid/table.js +35 -0
- package/dist/esm/components/features-grid/table.js.map +1 -0
- package/dist/esm/components/features-grid/top-buttons.js +12 -0
- package/dist/esm/components/features-grid/top-buttons.js.map +1 -0
- package/dist/esm/components/features.js +69 -0
- package/dist/esm/components/features.js.map +1 -0
- package/dist/esm/components/item.js +5 -0
- package/dist/esm/components/item.js.map +1 -0
- package/dist/esm/components/plan-button/index.js +18 -0
- package/dist/esm/components/plan-button/index.js.map +1 -0
- package/dist/esm/components/plan-button/style.scss +179 -0
- package/dist/esm/components/plan-div-td-container.js +7 -0
- package/dist/esm/components/plan-div-td-container.js.map +1 -0
- package/dist/esm/components/plan-logo.js +42 -0
- package/dist/esm/components/plan-logo.js.map +1 -0
- package/dist/esm/components/plan-type-selector/components/interval-type-dropdown.js +34 -0
- package/dist/esm/components/plan-type-selector/components/interval-type-dropdown.js.map +1 -0
- package/dist/esm/components/plan-type-selector/components/interval-type-selector.js +8 -0
- package/dist/esm/components/plan-type-selector/components/interval-type-selector.js.map +1 -0
- package/dist/esm/components/plan-type-selector/components/interval-type-toggle.js +50 -0
- package/dist/esm/components/plan-type-selector/components/interval-type-toggle.js.map +1 -0
- package/dist/esm/components/plan-type-selector/components/popup-messages.js +105 -0
- package/dist/esm/components/plan-type-selector/components/popup-messages.js.map +1 -0
- package/dist/esm/components/plan-type-selector/hooks/use-interval-options.js +52 -0
- package/dist/esm/components/plan-type-selector/hooks/use-interval-options.js.map +1 -0
- package/dist/esm/components/plan-type-selector/hooks/use-max-discount.js +42 -0
- package/dist/esm/components/plan-type-selector/hooks/use-max-discount.js.map +1 -0
- package/dist/esm/components/plan-type-selector/hooks/use-max-discounts-for-plan-terms.js +65 -0
- package/dist/esm/components/plan-type-selector/hooks/use-max-discounts-for-plan-terms.js.map +1 -0
- package/dist/esm/components/plan-type-selector/index.js +24 -0
- package/dist/esm/components/plan-type-selector/index.js.map +1 -0
- package/dist/esm/components/plan-type-selector/style.scss +196 -0
- package/dist/esm/components/plans-2023-tooltip.js +41 -0
- package/dist/esm/components/plans-2023-tooltip.js.map +1 -0
- package/dist/esm/components/popular-badge.js +13 -0
- package/dist/esm/components/popular-badge.js.map +1 -0
- package/dist/esm/components/shared/action-button/index.js +88 -0
- package/dist/esm/components/shared/action-button/index.js.map +1 -0
- package/dist/esm/components/shared/action-button/style.scss +12 -0
- package/dist/esm/components/shared/billing-timeframe/index.js +55 -0
- package/dist/esm/components/shared/billing-timeframe/index.js.map +1 -0
- package/dist/esm/components/shared/header-price/header-price-context.js +10 -0
- package/dist/esm/components/shared/header-price/header-price-context.js.map +1 -0
- package/dist/esm/components/shared/header-price/index.js +99 -0
- package/dist/esm/components/shared/header-price/index.js.map +1 -0
- package/dist/esm/components/shared/header-price/style.scss +112 -0
- package/dist/esm/components/shared/plan-pill/index.js +4 -0
- package/dist/esm/components/shared/plan-pill/index.js.map +1 -0
- package/dist/esm/components/shared/plan-pill/style.scss +30 -0
- package/dist/esm/components/shared/storage/components/plan-storage.js +25 -0
- package/dist/esm/components/shared/storage/components/plan-storage.js.map +1 -0
- package/dist/esm/components/shared/storage/components/storage-dropdown.js +93 -0
- package/dist/esm/components/shared/storage/components/storage-dropdown.js.map +1 -0
- package/dist/esm/components/shared/storage/components/storage-feature-label.js +37 -0
- package/dist/esm/components/shared/storage/components/storage-feature-label.js.map +1 -0
- package/dist/esm/components/shared/storage/constants.js +3 -0
- package/dist/esm/components/shared/storage/constants.js.map +1 -0
- package/dist/esm/components/shared/storage/hooks/use-default-storage-option.js +22 -0
- package/dist/esm/components/shared/storage/hooks/use-default-storage-option.js.map +1 -0
- package/dist/esm/components/shared/storage/hooks/use-plan-storage.js +27 -0
- package/dist/esm/components/shared/storage/hooks/use-plan-storage.js.map +1 -0
- package/dist/esm/components/shared/storage/hooks/use-purchased-storage-add-on.js +48 -0
- package/dist/esm/components/shared/storage/hooks/use-purchased-storage-add-on.js.map +1 -0
- package/dist/esm/components/shared/storage/hooks/use-storage-string.js +11 -0
- package/dist/esm/components/shared/storage/hooks/use-storage-string.js.map +1 -0
- package/dist/esm/components/shared/storage/index.js +9 -0
- package/dist/esm/components/shared/storage/index.js.map +1 -0
- package/dist/esm/components/sticky-container.js +69 -0
- package/dist/esm/components/sticky-container.js.map +1 -0
- package/dist/esm/constants.js +8 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/css-mixins.js +10 -0
- package/dist/esm/css-mixins.js.map +1 -0
- package/dist/esm/fixtures/plans.js +1540 -0
- package/dist/esm/fixtures/plans.js.map +1 -0
- package/dist/esm/fixtures/sites-plans.js +456 -0
- package/dist/esm/fixtures/sites-plans.js.map +1 -0
- package/dist/esm/fixtures/sites-purchases.js +131 -0
- package/dist/esm/fixtures/sites-purchases.js.map +1 -0
- package/dist/esm/grid-context.js +36 -0
- package/dist/esm/grid-context.js.map +1 -0
- package/dist/esm/hooks/data-store/is-popular-plan.js +5 -0
- package/dist/esm/hooks/data-store/is-popular-plan.js.map +1 -0
- package/dist/esm/hooks/data-store/types.js +2 -0
- package/dist/esm/hooks/data-store/types.js.map +1 -0
- package/dist/esm/hooks/data-store/use-grid-plan-for-spotlight.js +16 -0
- package/dist/esm/hooks/data-store/use-grid-plan-for-spotlight.js.map +1 -0
- package/dist/esm/hooks/data-store/use-grid-plans-for-comparison-grid.js +52 -0
- package/dist/esm/hooks/data-store/use-grid-plans-for-comparison-grid.js.map +1 -0
- package/dist/esm/hooks/data-store/use-grid-plans-for-features-grid.js +53 -0
- package/dist/esm/hooks/data-store/use-grid-plans-for-features-grid.js.map +1 -0
- package/dist/esm/hooks/data-store/use-grid-plans.js +249 -0
- package/dist/esm/hooks/data-store/use-grid-plans.js.map +1 -0
- package/dist/esm/hooks/data-store/use-highlight-labels.js +58 -0
- package/dist/esm/hooks/data-store/use-highlight-labels.js.map +1 -0
- package/dist/esm/hooks/data-store/use-highlighted-features.js +33 -0
- package/dist/esm/hooks/data-store/use-highlighted-features.js.map +1 -0
- package/dist/esm/hooks/data-store/use-plan-billing-description.js +213 -0
- package/dist/esm/hooks/data-store/use-plan-billing-description.js.map +1 -0
- package/dist/esm/hooks/data-store/use-plan-features-for-grid-plans.js +130 -0
- package/dist/esm/hooks/data-store/use-plan-features-for-grid-plans.js.map +1 -0
- package/dist/esm/hooks/data-store/use-plans-from-types.js +27 -0
- package/dist/esm/hooks/data-store/use-plans-from-types.js.map +1 -0
- package/dist/esm/hooks/data-store/use-restructured-plan-features-for-comparison-grid.js +87 -0
- package/dist/esm/hooks/data-store/use-restructured-plan-features-for-comparison-grid.js.map +1 -0
- package/dist/esm/hooks/use-grid-size.js +29 -0
- package/dist/esm/hooks/use-grid-size.js.map +1 -0
- package/dist/esm/hooks/use-highlight-adjacency-matrix.js +29 -0
- package/dist/esm/hooks/use-highlight-adjacency-matrix.js.map +1 -0
- package/dist/esm/hooks/use-is-large-currency.js +66 -0
- package/dist/esm/hooks/use-is-large-currency.js.map +1 -0
- package/dist/esm/hooks/use-manage-tooltip-toggle.js +25 -0
- package/dist/esm/hooks/use-manage-tooltip-toggle.js.map +1 -0
- package/dist/esm/hooks/use-plan-pricing-info-from-grid-plans.js +13 -0
- package/dist/esm/hooks/use-plan-pricing-info-from-grid-plans.js.map +1 -0
- package/dist/esm/index.js +28 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/filter-unused-features-object.js +17 -0
- package/dist/esm/lib/filter-unused-features-object.js.map +1 -0
- package/dist/esm/lib/get-plan-features-object.js +9 -0
- package/dist/esm/lib/get-plan-features-object.js.map +1 -0
- package/dist/esm/lib/get-plan-pricing-info-from-grid-plans.js +12 -0
- package/dist/esm/lib/get-plan-pricing-info-from-grid-plans.js.map +1 -0
- package/dist/esm/lib/is-same-plan.js +8 -0
- package/dist/esm/lib/is-same-plan.js.map +1 -0
- package/dist/esm/lib/sort-plan-properties.js +35 -0
- package/dist/esm/lib/sort-plan-properties.js.map +1 -0
- package/dist/esm/lib/touch-detect/index.js +16 -0
- package/dist/esm/lib/touch-detect/index.js.map +1 -0
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/tsconfig-cjs.tsbuildinfo +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/__mocks__/wpcom-proxy-request.d.ts +8 -0
- package/dist/types/__mocks__/wpcom-proxy-request.d.ts.map +1 -0
- package/dist/types/components/comparison-grid/index.d.ts +5 -0
- package/dist/types/components/comparison-grid/index.d.ts.map +1 -0
- package/dist/types/components/comparison-grid/index.stories.d.ts +66 -0
- package/dist/types/components/comparison-grid/index.stories.d.ts.map +1 -0
- package/dist/types/components/dropdown-option.d.ts +10 -0
- package/dist/types/components/dropdown-option.d.ts.map +1 -0
- package/dist/types/components/features-grid/billing-timeframes.d.ts +11 -0
- package/dist/types/components/features-grid/billing-timeframes.d.ts.map +1 -0
- package/dist/types/components/features-grid/client-logo-list/client-list.d.ts +11 -0
- package/dist/types/components/features-grid/client-logo-list/client-list.d.ts.map +1 -0
- package/dist/types/components/features-grid/client-logo-list/index.d.ts +4 -0
- package/dist/types/components/features-grid/client-logo-list/index.d.ts.map +1 -0
- package/dist/types/components/features-grid/enterprise-features.d.ts +11 -0
- package/dist/types/components/features-grid/enterprise-features.d.ts.map +1 -0
- package/dist/types/components/features-grid/index.d.ts +5 -0
- package/dist/types/components/features-grid/index.d.ts.map +1 -0
- package/dist/types/components/features-grid/index.stories.d.ts +173 -0
- package/dist/types/components/features-grid/index.stories.d.ts.map +1 -0
- package/dist/types/components/features-grid/mobile-free-domain.d.ts +8 -0
- package/dist/types/components/features-grid/mobile-free-domain.d.ts.map +1 -0
- package/dist/types/components/features-grid/plan-features-list.d.ts +31 -0
- package/dist/types/components/features-grid/plan-features-list.d.ts.map +1 -0
- package/dist/types/components/features-grid/plan-headers.d.ts +10 -0
- package/dist/types/components/features-grid/plan-headers.d.ts.map +1 -0
- package/dist/types/components/features-grid/plan-logos.d.ts +11 -0
- package/dist/types/components/features-grid/plan-logos.d.ts.map +1 -0
- package/dist/types/components/features-grid/plan-prices.d.ts +11 -0
- package/dist/types/components/features-grid/plan-prices.d.ts.map +1 -0
- package/dist/types/components/features-grid/plan-tagline.d.ts +10 -0
- package/dist/types/components/features-grid/plan-tagline.d.ts.map +1 -0
- package/dist/types/components/features-grid/previous-features-included-title.d.ts +10 -0
- package/dist/types/components/features-grid/previous-features-included-title.d.ts.map +1 -0
- package/dist/types/components/features-grid/spotlight-plan.d.ts +17 -0
- package/dist/types/components/features-grid/spotlight-plan.d.ts.map +1 -0
- package/dist/types/components/features-grid/table.d.ts +26 -0
- package/dist/types/components/features-grid/table.d.ts.map +1 -0
- package/dist/types/components/features-grid/top-buttons.d.ts +14 -0
- package/dist/types/components/features-grid/top-buttons.d.ts.map +1 -0
- package/dist/types/components/features.d.ts +17 -0
- package/dist/types/components/features.d.ts.map +1 -0
- package/dist/types/components/item.d.ts +5 -0
- package/dist/types/components/item.d.ts.map +1 -0
- package/dist/types/components/plan-button/index.d.ts +17 -0
- package/dist/types/components/plan-button/index.d.ts.map +1 -0
- package/dist/types/components/plan-div-td-container.d.ts +7 -0
- package/dist/types/components/plan-div-td-container.d.ts.map +1 -0
- package/dist/types/components/plan-logo.d.ts +12 -0
- package/dist/types/components/plan-logo.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/components/interval-type-dropdown.d.ts +4 -0
- package/dist/types/components/plan-type-selector/components/interval-type-dropdown.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/components/interval-type-selector.d.ts +4 -0
- package/dist/types/components/plan-type-selector/components/interval-type-selector.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/components/interval-type-toggle.d.ts +4 -0
- package/dist/types/components/plan-type-selector/components/interval-type-toggle.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/components/popup-messages.d.ts +9 -0
- package/dist/types/components/plan-type-selector/components/popup-messages.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/hooks/use-interval-options.d.ts +11 -0
- package/dist/types/components/plan-type-selector/hooks/use-interval-options.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/hooks/use-max-discount.d.ts +4 -0
- package/dist/types/components/plan-type-selector/hooks/use-max-discount.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/hooks/use-max-discounts-for-plan-terms.d.ts +10 -0
- package/dist/types/components/plan-type-selector/hooks/use-max-discounts-for-plan-terms.d.ts.map +1 -0
- package/dist/types/components/plan-type-selector/index.d.ts +6 -0
- package/dist/types/components/plan-type-selector/index.d.ts.map +1 -0
- package/dist/types/components/plans-2023-tooltip.d.ts +11 -0
- package/dist/types/components/plans-2023-tooltip.d.ts.map +1 -0
- package/dist/types/components/popular-badge.d.ts +9 -0
- package/dist/types/components/popular-badge.d.ts.map +1 -0
- package/dist/types/components/shared/action-button/index.d.ts +19 -0
- package/dist/types/components/shared/action-button/index.d.ts.map +1 -0
- package/dist/types/components/shared/billing-timeframe/index.d.ts +8 -0
- package/dist/types/components/shared/billing-timeframe/index.d.ts.map +1 -0
- package/dist/types/components/shared/header-price/header-price-context.d.ts +12 -0
- package/dist/types/components/shared/header-price/header-price-context.d.ts.map +1 -0
- package/dist/types/components/shared/header-price/index.d.ts +11 -0
- package/dist/types/components/shared/header-price/index.d.ts.map +1 -0
- package/dist/types/components/shared/plan-pill/index.d.ts +3 -0
- package/dist/types/components/shared/plan-pill/index.d.ts.map +1 -0
- package/dist/types/components/shared/storage/components/plan-storage.d.ts +13 -0
- package/dist/types/components/shared/storage/components/plan-storage.d.ts.map +1 -0
- package/dist/types/components/shared/storage/components/storage-dropdown.d.ts +9 -0
- package/dist/types/components/shared/storage/components/storage-dropdown.d.ts.map +1 -0
- package/dist/types/components/shared/storage/components/storage-feature-label.d.ts +7 -0
- package/dist/types/components/shared/storage/components/storage-feature-label.d.ts.map +1 -0
- package/dist/types/components/shared/storage/constants.d.ts +2 -0
- package/dist/types/components/shared/storage/constants.d.ts.map +1 -0
- package/dist/types/components/shared/storage/hooks/use-default-storage-option.d.ts +14 -0
- package/dist/types/components/shared/storage/hooks/use-default-storage-option.d.ts.map +1 -0
- package/dist/types/components/shared/storage/hooks/use-plan-storage.d.ts +4 -0
- package/dist/types/components/shared/storage/hooks/use-plan-storage.d.ts.map +1 -0
- package/dist/types/components/shared/storage/hooks/use-purchased-storage-add-on.d.ts +3 -0
- package/dist/types/components/shared/storage/hooks/use-purchased-storage-add-on.d.ts.map +1 -0
- package/dist/types/components/shared/storage/hooks/use-storage-string.d.ts +4 -0
- package/dist/types/components/shared/storage/hooks/use-storage-string.d.ts.map +1 -0
- package/dist/types/components/shared/storage/index.d.ts +9 -0
- package/dist/types/components/shared/storage/index.d.ts.map +1 -0
- package/dist/types/components/sticky-container.d.ts +33 -0
- package/dist/types/components/sticky-container.d.ts.map +1 -0
- package/dist/types/constants.d.ts +2 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/css-mixins.d.ts +3 -0
- package/dist/types/css-mixins.d.ts.map +1 -0
- package/dist/types/fixtures/plans.d.ts +201 -0
- package/dist/types/fixtures/plans.d.ts.map +1 -0
- package/dist/types/fixtures/sites-plans.d.ts +457 -0
- package/dist/types/fixtures/sites-plans.d.ts.map +1 -0
- package/dist/types/fixtures/sites-purchases.d.ts +96 -0
- package/dist/types/fixtures/sites-purchases.d.ts.map +1 -0
- package/dist/types/grid-context.d.ts +40 -0
- package/dist/types/grid-context.d.ts.map +1 -0
- package/dist/types/hooks/data-store/is-popular-plan.d.ts +2 -0
- package/dist/types/hooks/data-store/is-popular-plan.d.ts.map +1 -0
- package/dist/types/hooks/data-store/types.d.ts +40 -0
- package/dist/types/hooks/data-store/types.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-grid-plan-for-spotlight.d.ts +10 -0
- package/dist/types/hooks/data-store/use-grid-plan-for-spotlight.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-grid-plans-for-comparison-grid.d.ts +5 -0
- package/dist/types/hooks/data-store/use-grid-plans-for-comparison-grid.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-grid-plans-for-features-grid.d.ts +5 -0
- package/dist/types/hooks/data-store/use-grid-plans-for-features-grid.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-grid-plans.d.ts +13 -0
- package/dist/types/hooks/data-store/use-grid-plans.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-highlight-labels.d.ts +20 -0
- package/dist/types/hooks/data-store/use-highlight-labels.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-highlighted-features.d.ts +22 -0
- package/dist/types/hooks/data-store/use-highlighted-features.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-plan-billing-description.d.ts +16 -0
- package/dist/types/hooks/data-store/use-plan-billing-description.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-plan-features-for-grid-plans.d.ts +21 -0
- package/dist/types/hooks/data-store/use-plan-features-for-grid-plans.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-plans-from-types.d.ts +10 -0
- package/dist/types/hooks/data-store/use-plans-from-types.d.ts.map +1 -0
- package/dist/types/hooks/data-store/use-restructured-plan-features-for-comparison-grid.d.ts +15 -0
- package/dist/types/hooks/data-store/use-restructured-plan-features-for-comparison-grid.d.ts.map +1 -0
- package/dist/types/hooks/use-grid-size.d.ts +18 -0
- package/dist/types/hooks/use-grid-size.d.ts.map +1 -0
- package/dist/types/hooks/use-highlight-adjacency-matrix.d.ts +15 -0
- package/dist/types/hooks/use-highlight-adjacency-matrix.d.ts.map +1 -0
- package/dist/types/hooks/use-is-large-currency.d.ts +16 -0
- package/dist/types/hooks/use-is-large-currency.d.ts.map +1 -0
- package/dist/types/hooks/use-manage-tooltip-toggle.d.ts +3 -0
- package/dist/types/hooks/use-manage-tooltip-toggle.d.ts.map +1 -0
- package/dist/types/hooks/use-plan-pricing-info-from-grid-plans.d.ts +11 -0
- package/dist/types/hooks/use-plan-pricing-info-from-grid-plans.d.ts.map +1 -0
- package/dist/types/index.d.ts +32 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lib/filter-unused-features-object.d.ts +8 -0
- package/dist/types/lib/filter-unused-features-object.d.ts.map +1 -0
- package/dist/types/lib/get-plan-features-object.d.ts +4 -0
- package/dist/types/lib/get-plan-features-object.d.ts.map +1 -0
- package/dist/types/lib/get-plan-pricing-info-from-grid-plans.d.ts +9 -0
- package/dist/types/lib/get-plan-pricing-info-from-grid-plans.d.ts.map +1 -0
- package/dist/types/lib/is-same-plan.d.ts +3 -0
- package/dist/types/lib/is-same-plan.d.ts.map +1 -0
- package/dist/types/lib/sort-plan-properties.d.ts +3 -0
- package/dist/types/lib/sort-plan-properties.d.ts.map +1 -0
- package/dist/types/lib/touch-detect/index.d.ts +11 -0
- package/dist/types/lib/touch-detect/index.d.ts.map +1 -0
- package/dist/types/types.d.ts +225 -0
- package/dist/types/types.d.ts.map +1 -0
- package/package.json +83 -0
- package/src/__mocks__/wpcom-proxy-request.js +13 -0
- package/src/_media-queries.scss +14 -0
- package/src/_mixins.scss +15 -0
- package/src/_shared.scss +174 -0
- package/src/components/comparison-grid/README.md +3 -0
- package/src/components/comparison-grid/index.stories.tsx +91 -0
- package/src/components/comparison-grid/index.tsx +1215 -0
- package/src/components/comparison-grid/style.scss +318 -0
- package/src/components/dropdown-option.tsx +44 -0
- package/src/components/features-grid/README.md +3 -0
- package/src/components/features-grid/billing-timeframes.tsx +37 -0
- package/src/components/features-grid/client-logo-list/client-list.tsx +199 -0
- package/src/components/features-grid/client-logo-list/index.tsx +24 -0
- package/src/components/features-grid/client-logo-list/style.scss +52 -0
- package/src/components/features-grid/enterprise-features.tsx +101 -0
- package/src/components/features-grid/index.stories.tsx +143 -0
- package/src/components/features-grid/index.tsx +442 -0
- package/src/components/features-grid/mobile-free-domain.tsx +51 -0
- package/src/components/features-grid/plan-features-list.tsx +187 -0
- package/src/components/features-grid/plan-headers.tsx +31 -0
- package/src/components/features-grid/plan-logos.tsx +27 -0
- package/src/components/features-grid/plan-prices.tsx +37 -0
- package/src/components/features-grid/plan-tagline.tsx +25 -0
- package/src/components/features-grid/previous-features-included-title.tsx +66 -0
- package/src/components/features-grid/spotlight-plan.scss +5 -0
- package/src/components/features-grid/spotlight-plan.tsx +77 -0
- package/src/components/features-grid/style.scss +630 -0
- package/src/components/features-grid/table.tsx +185 -0
- package/src/components/features-grid/top-buttons.tsx +49 -0
- package/src/components/features.tsx +168 -0
- package/src/components/item.tsx +9 -0
- package/src/components/plan-button/index.tsx +59 -0
- package/src/components/plan-button/style.scss +179 -0
- package/src/components/plan-div-td-container.tsx +15 -0
- package/src/components/plan-logo.tsx +111 -0
- package/src/components/plan-type-selector/components/interval-type-dropdown.tsx +70 -0
- package/src/components/plan-type-selector/components/interval-type-selector.tsx +13 -0
- package/src/components/plan-type-selector/components/interval-type-toggle.tsx +100 -0
- package/src/components/plan-type-selector/components/popup-messages.tsx +128 -0
- package/src/components/plan-type-selector/hooks/use-interval-options.tsx +89 -0
- package/src/components/plan-type-selector/hooks/use-max-discount.ts +64 -0
- package/src/components/plan-type-selector/hooks/use-max-discounts-for-plan-terms.ts +99 -0
- package/src/components/plan-type-selector/index.tsx +50 -0
- package/src/components/plan-type-selector/style.scss +196 -0
- package/src/components/plans-2023-tooltip.tsx +85 -0
- package/src/components/popular-badge.tsx +30 -0
- package/src/components/shared/README.md +1 -0
- package/src/components/shared/action-button/index.tsx +205 -0
- package/src/components/shared/action-button/style.scss +12 -0
- package/src/components/shared/billing-timeframe/index.tsx +106 -0
- package/src/components/shared/header-price/header-price-context.tsx +24 -0
- package/src/components/shared/header-price/index.tsx +278 -0
- package/src/components/shared/header-price/style.scss +112 -0
- package/src/components/shared/plan-pill/index.jsx +7 -0
- package/src/components/shared/plan-pill/style.scss +30 -0
- package/src/components/shared/storage/components/plan-storage.tsx +51 -0
- package/src/components/shared/storage/components/storage-dropdown.tsx +187 -0
- package/src/components/shared/storage/components/storage-feature-label.tsx +68 -0
- package/src/components/shared/storage/constants.ts +3 -0
- package/src/components/shared/storage/hooks/use-default-storage-option.ts +34 -0
- package/src/components/shared/storage/hooks/use-plan-storage.ts +41 -0
- package/src/components/shared/storage/hooks/use-purchased-storage-add-on.ts +53 -0
- package/src/components/shared/storage/hooks/use-storage-string.ts +13 -0
- package/src/components/shared/storage/index.ts +9 -0
- package/src/components/sticky-container.tsx +146 -0
- package/src/components/test/actions-button.tsx +397 -0
- package/src/components/test/billing-timeframe.tsx +341 -0
- package/src/components/test/header-price.tsx +189 -0
- package/src/components/test/plan-type-selector.tsx +44 -0
- package/src/constants.ts +13 -0
- package/src/css-mixins.tsx +11 -0
- package/src/fixtures/plans.ts +1539 -0
- package/src/fixtures/sites-plans.ts +455 -0
- package/src/fixtures/sites-purchases.ts +130 -0
- package/src/grid-context.tsx +104 -0
- package/src/hooks/data-store/is-popular-plan.ts +5 -0
- package/src/hooks/data-store/types.ts +41 -0
- package/src/hooks/data-store/use-grid-plan-for-spotlight.ts +35 -0
- package/src/hooks/data-store/use-grid-plans-for-comparison-grid.ts +81 -0
- package/src/hooks/data-store/use-grid-plans-for-features-grid.ts +79 -0
- package/src/hooks/data-store/use-grid-plans.tsx +360 -0
- package/src/hooks/data-store/use-highlight-labels.ts +88 -0
- package/src/hooks/data-store/use-highlighted-features.ts +51 -0
- package/src/hooks/data-store/use-plan-billing-description.tsx +309 -0
- package/src/hooks/data-store/use-plan-features-for-grid-plans.ts +219 -0
- package/src/hooks/data-store/use-plans-from-types.ts +51 -0
- package/src/hooks/data-store/use-restructured-plan-features-for-comparison-grid.ts +158 -0
- package/src/hooks/test/use-is-large-currency.ts +69 -0
- package/src/hooks/use-grid-size.ts +46 -0
- package/src/hooks/use-highlight-adjacency-matrix.ts +48 -0
- package/src/hooks/use-is-large-currency.ts +91 -0
- package/src/hooks/use-manage-tooltip-toggle.ts +30 -0
- package/src/hooks/use-plan-pricing-info-from-grid-plans.ts +36 -0
- package/src/index.tsx +46 -0
- package/src/lib/filter-unused-features-object.ts +31 -0
- package/src/lib/get-plan-features-object.ts +12 -0
- package/src/lib/get-plan-pricing-info-from-grid-plans.ts +31 -0
- package/src/lib/is-same-plan.ts +8 -0
- package/src/lib/sort-plan-properties.ts +46 -0
- package/src/lib/test/filter-plan-features-object.ts +65 -0
- package/src/lib/test/sort-plan-properties.ts +104 -0
- package/src/lib/touch-detect/README.md +11 -0
- package/src/lib/touch-detect/index.js +17 -0
- package/src/types.ts +340 -0
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'1': {
|
|
3
|
+
formatted_original_price: string;
|
|
4
|
+
raw_price: number;
|
|
5
|
+
raw_price_integer: number;
|
|
6
|
+
formatted_price: string;
|
|
7
|
+
raw_discount: number;
|
|
8
|
+
raw_discount_integer: number;
|
|
9
|
+
formatted_discount: string;
|
|
10
|
+
product_slug: string;
|
|
11
|
+
discount_reason: null;
|
|
12
|
+
is_domain_upgrade: null;
|
|
13
|
+
currency_code: string;
|
|
14
|
+
current_plan: boolean;
|
|
15
|
+
has_domain_credit: boolean;
|
|
16
|
+
id: null;
|
|
17
|
+
user_is_owner: null;
|
|
18
|
+
interval: number;
|
|
19
|
+
};
|
|
20
|
+
'1003': {
|
|
21
|
+
formatted_original_price: string;
|
|
22
|
+
raw_price: number;
|
|
23
|
+
raw_price_integer: number;
|
|
24
|
+
formatted_price: string;
|
|
25
|
+
raw_discount: number;
|
|
26
|
+
raw_discount_integer: number;
|
|
27
|
+
formatted_discount: string;
|
|
28
|
+
product_slug: string;
|
|
29
|
+
discount_reason: null;
|
|
30
|
+
is_domain_upgrade: null;
|
|
31
|
+
currency_code: string;
|
|
32
|
+
can_start_trial: boolean;
|
|
33
|
+
interval: number;
|
|
34
|
+
};
|
|
35
|
+
'1008': {
|
|
36
|
+
formatted_original_price: string;
|
|
37
|
+
raw_price: number;
|
|
38
|
+
raw_price_integer: number;
|
|
39
|
+
formatted_price: string;
|
|
40
|
+
raw_discount: number;
|
|
41
|
+
raw_discount_integer: number;
|
|
42
|
+
formatted_discount: string;
|
|
43
|
+
product_slug: string;
|
|
44
|
+
discount_reason: null;
|
|
45
|
+
is_domain_upgrade: null;
|
|
46
|
+
currency_code: string;
|
|
47
|
+
can_start_trial: boolean;
|
|
48
|
+
interval: number;
|
|
49
|
+
};
|
|
50
|
+
'1009': {
|
|
51
|
+
formatted_original_price: string;
|
|
52
|
+
raw_price: number;
|
|
53
|
+
raw_price_integer: number;
|
|
54
|
+
formatted_price: string;
|
|
55
|
+
raw_discount: number;
|
|
56
|
+
raw_discount_integer: number;
|
|
57
|
+
formatted_discount: string;
|
|
58
|
+
product_slug: string;
|
|
59
|
+
discount_reason: null;
|
|
60
|
+
is_domain_upgrade: null;
|
|
61
|
+
currency_code: string;
|
|
62
|
+
can_start_trial: boolean;
|
|
63
|
+
interval: number;
|
|
64
|
+
};
|
|
65
|
+
'1010': {
|
|
66
|
+
formatted_original_price: string;
|
|
67
|
+
raw_price: number;
|
|
68
|
+
raw_price_integer: number;
|
|
69
|
+
formatted_price: string;
|
|
70
|
+
raw_discount: number;
|
|
71
|
+
raw_discount_integer: number;
|
|
72
|
+
formatted_discount: string;
|
|
73
|
+
product_slug: string;
|
|
74
|
+
discount_reason: null;
|
|
75
|
+
is_domain_upgrade: null;
|
|
76
|
+
currency_code: string;
|
|
77
|
+
can_start_trial: boolean;
|
|
78
|
+
interval: number;
|
|
79
|
+
};
|
|
80
|
+
'1011': {
|
|
81
|
+
formatted_original_price: string;
|
|
82
|
+
raw_price: number;
|
|
83
|
+
raw_price_integer: number;
|
|
84
|
+
formatted_price: string;
|
|
85
|
+
raw_discount: number;
|
|
86
|
+
raw_discount_integer: number;
|
|
87
|
+
formatted_discount: string;
|
|
88
|
+
product_slug: string;
|
|
89
|
+
discount_reason: null;
|
|
90
|
+
is_domain_upgrade: null;
|
|
91
|
+
currency_code: string;
|
|
92
|
+
can_start_trial: boolean;
|
|
93
|
+
interval: number;
|
|
94
|
+
};
|
|
95
|
+
'1013': {
|
|
96
|
+
formatted_original_price: string;
|
|
97
|
+
raw_price: number;
|
|
98
|
+
raw_price_integer: number;
|
|
99
|
+
formatted_price: string;
|
|
100
|
+
raw_discount: number;
|
|
101
|
+
raw_discount_integer: number;
|
|
102
|
+
formatted_discount: string;
|
|
103
|
+
product_slug: string;
|
|
104
|
+
discount_reason: null;
|
|
105
|
+
is_domain_upgrade: null;
|
|
106
|
+
currency_code: string;
|
|
107
|
+
can_start_trial: boolean;
|
|
108
|
+
interval: number;
|
|
109
|
+
};
|
|
110
|
+
'1018': {
|
|
111
|
+
formatted_original_price: string;
|
|
112
|
+
raw_price: number;
|
|
113
|
+
raw_price_integer: number;
|
|
114
|
+
formatted_price: string;
|
|
115
|
+
raw_discount: number;
|
|
116
|
+
raw_discount_integer: number;
|
|
117
|
+
formatted_discount: string;
|
|
118
|
+
product_slug: string;
|
|
119
|
+
discount_reason: null;
|
|
120
|
+
is_domain_upgrade: null;
|
|
121
|
+
currency_code: string;
|
|
122
|
+
can_start_trial: boolean;
|
|
123
|
+
interval: number;
|
|
124
|
+
};
|
|
125
|
+
'1019': {
|
|
126
|
+
formatted_original_price: string;
|
|
127
|
+
raw_price: number;
|
|
128
|
+
raw_price_integer: number;
|
|
129
|
+
formatted_price: string;
|
|
130
|
+
raw_discount: number;
|
|
131
|
+
raw_discount_integer: number;
|
|
132
|
+
formatted_discount: string;
|
|
133
|
+
product_slug: string;
|
|
134
|
+
discount_reason: null;
|
|
135
|
+
is_domain_upgrade: null;
|
|
136
|
+
currency_code: string;
|
|
137
|
+
can_start_trial: boolean;
|
|
138
|
+
interval: number;
|
|
139
|
+
};
|
|
140
|
+
'1021': {
|
|
141
|
+
formatted_original_price: string;
|
|
142
|
+
raw_price: number;
|
|
143
|
+
raw_price_integer: number;
|
|
144
|
+
formatted_price: string;
|
|
145
|
+
raw_discount: number;
|
|
146
|
+
raw_discount_integer: number;
|
|
147
|
+
formatted_discount: string;
|
|
148
|
+
product_slug: string;
|
|
149
|
+
discount_reason: null;
|
|
150
|
+
is_domain_upgrade: null;
|
|
151
|
+
currency_code: string;
|
|
152
|
+
can_start_trial: boolean;
|
|
153
|
+
interval: number;
|
|
154
|
+
};
|
|
155
|
+
'1023': {
|
|
156
|
+
formatted_original_price: string;
|
|
157
|
+
raw_price: number;
|
|
158
|
+
raw_price_integer: number;
|
|
159
|
+
formatted_price: string;
|
|
160
|
+
raw_discount: number;
|
|
161
|
+
raw_discount_integer: number;
|
|
162
|
+
formatted_discount: string;
|
|
163
|
+
product_slug: string;
|
|
164
|
+
discount_reason: null;
|
|
165
|
+
is_domain_upgrade: null;
|
|
166
|
+
currency_code: string;
|
|
167
|
+
can_start_trial: boolean;
|
|
168
|
+
interval: number;
|
|
169
|
+
};
|
|
170
|
+
'1028': {
|
|
171
|
+
formatted_original_price: string;
|
|
172
|
+
raw_price: number;
|
|
173
|
+
raw_price_integer: number;
|
|
174
|
+
formatted_price: string;
|
|
175
|
+
raw_discount: number;
|
|
176
|
+
raw_discount_integer: number;
|
|
177
|
+
formatted_discount: string;
|
|
178
|
+
product_slug: string;
|
|
179
|
+
discount_reason: null;
|
|
180
|
+
is_domain_upgrade: null;
|
|
181
|
+
currency_code: string;
|
|
182
|
+
can_start_trial: boolean;
|
|
183
|
+
interval: number;
|
|
184
|
+
};
|
|
185
|
+
'1029': {
|
|
186
|
+
formatted_original_price: string;
|
|
187
|
+
raw_price: number;
|
|
188
|
+
raw_price_integer: number;
|
|
189
|
+
formatted_price: string;
|
|
190
|
+
raw_discount: number;
|
|
191
|
+
raw_discount_integer: number;
|
|
192
|
+
formatted_discount: string;
|
|
193
|
+
product_slug: string;
|
|
194
|
+
discount_reason: null;
|
|
195
|
+
is_domain_upgrade: null;
|
|
196
|
+
currency_code: string;
|
|
197
|
+
can_start_trial: boolean;
|
|
198
|
+
interval: number;
|
|
199
|
+
};
|
|
200
|
+
'1030': {
|
|
201
|
+
formatted_original_price: string;
|
|
202
|
+
raw_price: number;
|
|
203
|
+
raw_price_integer: number;
|
|
204
|
+
formatted_price: string;
|
|
205
|
+
raw_discount: number;
|
|
206
|
+
raw_discount_integer: number;
|
|
207
|
+
formatted_discount: string;
|
|
208
|
+
product_slug: string;
|
|
209
|
+
discount_reason: null;
|
|
210
|
+
is_domain_upgrade: null;
|
|
211
|
+
currency_code: string;
|
|
212
|
+
can_start_trial: boolean;
|
|
213
|
+
interval: number;
|
|
214
|
+
};
|
|
215
|
+
'1031': {
|
|
216
|
+
formatted_original_price: string;
|
|
217
|
+
raw_price: number;
|
|
218
|
+
raw_price_integer: number;
|
|
219
|
+
formatted_price: string;
|
|
220
|
+
raw_discount: number;
|
|
221
|
+
raw_discount_integer: number;
|
|
222
|
+
formatted_discount: string;
|
|
223
|
+
product_slug: string;
|
|
224
|
+
discount_reason: null;
|
|
225
|
+
is_domain_upgrade: null;
|
|
226
|
+
currency_code: string;
|
|
227
|
+
can_start_trial: boolean;
|
|
228
|
+
interval: number;
|
|
229
|
+
};
|
|
230
|
+
'1032': {
|
|
231
|
+
formatted_original_price: string;
|
|
232
|
+
raw_price: number;
|
|
233
|
+
raw_price_integer: number;
|
|
234
|
+
formatted_price: string;
|
|
235
|
+
raw_discount: number;
|
|
236
|
+
raw_discount_integer: number;
|
|
237
|
+
formatted_discount: string;
|
|
238
|
+
product_slug: string;
|
|
239
|
+
discount_reason: null;
|
|
240
|
+
is_domain_upgrade: null;
|
|
241
|
+
currency_code: string;
|
|
242
|
+
can_start_trial: boolean;
|
|
243
|
+
interval: number;
|
|
244
|
+
};
|
|
245
|
+
'1033': {
|
|
246
|
+
formatted_original_price: string;
|
|
247
|
+
raw_price: number;
|
|
248
|
+
raw_price_integer: number;
|
|
249
|
+
formatted_price: string;
|
|
250
|
+
raw_discount: number;
|
|
251
|
+
raw_discount_integer: number;
|
|
252
|
+
formatted_discount: string;
|
|
253
|
+
product_slug: string;
|
|
254
|
+
discount_reason: null;
|
|
255
|
+
is_domain_upgrade: null;
|
|
256
|
+
currency_code: string;
|
|
257
|
+
can_start_trial: boolean;
|
|
258
|
+
interval: number;
|
|
259
|
+
};
|
|
260
|
+
'1034': {
|
|
261
|
+
formatted_original_price: string;
|
|
262
|
+
raw_price: number;
|
|
263
|
+
raw_price_integer: number;
|
|
264
|
+
formatted_price: string;
|
|
265
|
+
raw_discount: number;
|
|
266
|
+
raw_discount_integer: number;
|
|
267
|
+
formatted_discount: string;
|
|
268
|
+
product_slug: string;
|
|
269
|
+
discount_reason: null;
|
|
270
|
+
is_domain_upgrade: null;
|
|
271
|
+
currency_code: string;
|
|
272
|
+
can_start_trial: boolean;
|
|
273
|
+
interval: number;
|
|
274
|
+
};
|
|
275
|
+
'1035': {
|
|
276
|
+
formatted_original_price: string;
|
|
277
|
+
raw_price: number;
|
|
278
|
+
raw_price_integer: number;
|
|
279
|
+
formatted_price: string;
|
|
280
|
+
raw_discount: number;
|
|
281
|
+
raw_discount_integer: number;
|
|
282
|
+
formatted_discount: string;
|
|
283
|
+
product_slug: string;
|
|
284
|
+
discount_reason: null;
|
|
285
|
+
is_domain_upgrade: null;
|
|
286
|
+
currency_code: string;
|
|
287
|
+
can_start_trial: boolean;
|
|
288
|
+
interval: number;
|
|
289
|
+
};
|
|
290
|
+
'1043': {
|
|
291
|
+
formatted_original_price: string;
|
|
292
|
+
raw_price: number;
|
|
293
|
+
raw_price_integer: number;
|
|
294
|
+
formatted_price: string;
|
|
295
|
+
raw_discount: number;
|
|
296
|
+
raw_discount_integer: number;
|
|
297
|
+
formatted_discount: string;
|
|
298
|
+
product_slug: string;
|
|
299
|
+
discount_reason: null;
|
|
300
|
+
is_domain_upgrade: null;
|
|
301
|
+
currency_code: string;
|
|
302
|
+
can_start_trial: boolean;
|
|
303
|
+
interval: number;
|
|
304
|
+
};
|
|
305
|
+
'1048': {
|
|
306
|
+
formatted_original_price: string;
|
|
307
|
+
raw_price: number;
|
|
308
|
+
raw_price_integer: number;
|
|
309
|
+
formatted_price: string;
|
|
310
|
+
raw_discount: number;
|
|
311
|
+
raw_discount_integer: number;
|
|
312
|
+
formatted_discount: string;
|
|
313
|
+
product_slug: string;
|
|
314
|
+
discount_reason: null;
|
|
315
|
+
is_domain_upgrade: null;
|
|
316
|
+
currency_code: string;
|
|
317
|
+
can_start_trial: boolean;
|
|
318
|
+
interval: number;
|
|
319
|
+
};
|
|
320
|
+
'1049': {
|
|
321
|
+
formatted_original_price: string;
|
|
322
|
+
raw_price: number;
|
|
323
|
+
raw_price_integer: number;
|
|
324
|
+
formatted_price: string;
|
|
325
|
+
raw_discount: number;
|
|
326
|
+
raw_discount_integer: number;
|
|
327
|
+
formatted_discount: string;
|
|
328
|
+
product_slug: string;
|
|
329
|
+
discount_reason: null;
|
|
330
|
+
is_domain_upgrade: null;
|
|
331
|
+
currency_code: string;
|
|
332
|
+
can_start_trial: boolean;
|
|
333
|
+
interval: number;
|
|
334
|
+
};
|
|
335
|
+
'1051': {
|
|
336
|
+
formatted_original_price: string;
|
|
337
|
+
raw_price: number;
|
|
338
|
+
raw_price_integer: number;
|
|
339
|
+
formatted_price: string;
|
|
340
|
+
raw_discount: number;
|
|
341
|
+
raw_discount_integer: number;
|
|
342
|
+
formatted_discount: string;
|
|
343
|
+
product_slug: string;
|
|
344
|
+
discount_reason: null;
|
|
345
|
+
is_domain_upgrade: null;
|
|
346
|
+
currency_code: string;
|
|
347
|
+
can_start_trial: boolean;
|
|
348
|
+
interval: number;
|
|
349
|
+
};
|
|
350
|
+
'1052': {
|
|
351
|
+
formatted_original_price: string;
|
|
352
|
+
raw_price: number;
|
|
353
|
+
raw_price_integer: number;
|
|
354
|
+
formatted_price: string;
|
|
355
|
+
raw_discount: number;
|
|
356
|
+
raw_discount_integer: number;
|
|
357
|
+
formatted_discount: string;
|
|
358
|
+
product_slug: string;
|
|
359
|
+
discount_reason: null;
|
|
360
|
+
is_domain_upgrade: null;
|
|
361
|
+
currency_code: string;
|
|
362
|
+
can_start_trial: boolean;
|
|
363
|
+
interval: number;
|
|
364
|
+
};
|
|
365
|
+
'1053': {
|
|
366
|
+
formatted_original_price: string;
|
|
367
|
+
raw_price: number;
|
|
368
|
+
raw_price_integer: number;
|
|
369
|
+
formatted_price: string;
|
|
370
|
+
raw_discount: number;
|
|
371
|
+
raw_discount_integer: number;
|
|
372
|
+
formatted_discount: string;
|
|
373
|
+
product_slug: string;
|
|
374
|
+
discount_reason: null;
|
|
375
|
+
is_domain_upgrade: null;
|
|
376
|
+
currency_code: string;
|
|
377
|
+
can_start_trial: boolean;
|
|
378
|
+
interval: number;
|
|
379
|
+
};
|
|
380
|
+
'1054': {
|
|
381
|
+
formatted_original_price: string;
|
|
382
|
+
raw_price: number;
|
|
383
|
+
raw_price_integer: number;
|
|
384
|
+
formatted_price: string;
|
|
385
|
+
raw_discount: number;
|
|
386
|
+
raw_discount_integer: number;
|
|
387
|
+
formatted_discount: string;
|
|
388
|
+
product_slug: string;
|
|
389
|
+
discount_reason: null;
|
|
390
|
+
is_domain_upgrade: null;
|
|
391
|
+
currency_code: string;
|
|
392
|
+
can_start_trial: boolean;
|
|
393
|
+
interval: number;
|
|
394
|
+
};
|
|
395
|
+
'1055': {
|
|
396
|
+
formatted_original_price: string;
|
|
397
|
+
raw_price: number;
|
|
398
|
+
raw_price_integer: number;
|
|
399
|
+
formatted_price: string;
|
|
400
|
+
raw_discount: number;
|
|
401
|
+
raw_discount_integer: number;
|
|
402
|
+
formatted_discount: string;
|
|
403
|
+
product_slug: string;
|
|
404
|
+
discount_reason: null;
|
|
405
|
+
is_domain_upgrade: null;
|
|
406
|
+
currency_code: string;
|
|
407
|
+
can_start_trial: boolean;
|
|
408
|
+
interval: number;
|
|
409
|
+
};
|
|
410
|
+
'1056': {
|
|
411
|
+
formatted_original_price: string;
|
|
412
|
+
raw_price: number;
|
|
413
|
+
raw_price_integer: number;
|
|
414
|
+
formatted_price: string;
|
|
415
|
+
raw_discount: number;
|
|
416
|
+
raw_discount_integer: number;
|
|
417
|
+
formatted_discount: string;
|
|
418
|
+
product_slug: string;
|
|
419
|
+
discount_reason: null;
|
|
420
|
+
is_domain_upgrade: null;
|
|
421
|
+
currency_code: string;
|
|
422
|
+
can_start_trial: boolean;
|
|
423
|
+
interval: number;
|
|
424
|
+
};
|
|
425
|
+
'1058': {
|
|
426
|
+
formatted_original_price: string;
|
|
427
|
+
raw_price: number;
|
|
428
|
+
raw_price_integer: number;
|
|
429
|
+
formatted_price: string;
|
|
430
|
+
raw_discount: number;
|
|
431
|
+
raw_discount_integer: number;
|
|
432
|
+
formatted_discount: string;
|
|
433
|
+
product_slug: string;
|
|
434
|
+
discount_reason: null;
|
|
435
|
+
is_domain_upgrade: null;
|
|
436
|
+
currency_code: string;
|
|
437
|
+
can_start_trial: boolean;
|
|
438
|
+
interval: number;
|
|
439
|
+
};
|
|
440
|
+
'1061': {
|
|
441
|
+
formatted_original_price: string;
|
|
442
|
+
raw_price: number;
|
|
443
|
+
raw_price_integer: number;
|
|
444
|
+
formatted_price: string;
|
|
445
|
+
raw_discount: number;
|
|
446
|
+
raw_discount_integer: number;
|
|
447
|
+
formatted_discount: string;
|
|
448
|
+
product_slug: string;
|
|
449
|
+
discount_reason: null;
|
|
450
|
+
is_domain_upgrade: null;
|
|
451
|
+
currency_code: string;
|
|
452
|
+
can_start_trial: boolean;
|
|
453
|
+
interval: number;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
export default _default;
|
|
457
|
+
//# sourceMappingURL=sites-plans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sites-plans.d.ts","sourceRoot":"","sources":["../../../src/fixtures/sites-plans.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAscE"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
ID: string;
|
|
3
|
+
user_id: string;
|
|
4
|
+
blog_id: string;
|
|
5
|
+
product_id: string;
|
|
6
|
+
subscribed_date: string;
|
|
7
|
+
renew: string;
|
|
8
|
+
auto_renew: string;
|
|
9
|
+
renew_date: string;
|
|
10
|
+
inactive_date: null;
|
|
11
|
+
active: string;
|
|
12
|
+
meta: string;
|
|
13
|
+
ownership_id: string;
|
|
14
|
+
most_recent_renew_date: string;
|
|
15
|
+
amount: number;
|
|
16
|
+
expiry_date: string;
|
|
17
|
+
expiry_message: string;
|
|
18
|
+
expiry_sub_message: string;
|
|
19
|
+
expiry_status: string;
|
|
20
|
+
partner_name: null;
|
|
21
|
+
partner_slug: null;
|
|
22
|
+
partner_type: null;
|
|
23
|
+
partner_key_id: null;
|
|
24
|
+
subscription_status: string;
|
|
25
|
+
product_slug: string;
|
|
26
|
+
product_type: string;
|
|
27
|
+
blog_created_date: string;
|
|
28
|
+
blogname: string;
|
|
29
|
+
domain: string;
|
|
30
|
+
description: string;
|
|
31
|
+
primary_blog: string;
|
|
32
|
+
attached_to_purchase_id: null;
|
|
33
|
+
included_domain: string;
|
|
34
|
+
included_domain_purchase_amount: number;
|
|
35
|
+
currency_code: string;
|
|
36
|
+
currency_symbol: string;
|
|
37
|
+
renewal_price_tier_slug: string;
|
|
38
|
+
renewal_price_tier_usage_quantity: number;
|
|
39
|
+
current_price_tier_slug: string;
|
|
40
|
+
current_price_tier_usage_quantity: number;
|
|
41
|
+
price_tier_list: {
|
|
42
|
+
minimum_units: number;
|
|
43
|
+
maximum_units: number;
|
|
44
|
+
minimum_price: number;
|
|
45
|
+
maximum_price: number;
|
|
46
|
+
minimum_price_display: string;
|
|
47
|
+
maximum_price_display: string;
|
|
48
|
+
}[];
|
|
49
|
+
auto_renew_coupon_code: null;
|
|
50
|
+
auto_renew_coupon_discount_percentage: null;
|
|
51
|
+
price_text: string;
|
|
52
|
+
bill_period_label: string;
|
|
53
|
+
bill_period_days: number;
|
|
54
|
+
regular_price_text: string;
|
|
55
|
+
regular_price_integer: number;
|
|
56
|
+
product_display_price: string;
|
|
57
|
+
price_integer: number;
|
|
58
|
+
is_cancelable: boolean;
|
|
59
|
+
async_pending_payment_block_is_set: boolean;
|
|
60
|
+
can_explicit_renew: boolean;
|
|
61
|
+
can_disable_auto_renew: boolean;
|
|
62
|
+
can_reenable_auto_renewal: boolean;
|
|
63
|
+
iap_purchase_management_link: null;
|
|
64
|
+
is_iap_purchase: boolean;
|
|
65
|
+
is_locked: boolean;
|
|
66
|
+
is_refundable: boolean;
|
|
67
|
+
refund_period_in_days: number;
|
|
68
|
+
is_renewable: boolean;
|
|
69
|
+
is_renewal: boolean;
|
|
70
|
+
has_private_registration: boolean;
|
|
71
|
+
is_woo_express_trial: boolean;
|
|
72
|
+
refund_amount: number;
|
|
73
|
+
refund_integer: number;
|
|
74
|
+
refund_currency_symbol: string;
|
|
75
|
+
refund_text: string;
|
|
76
|
+
refund_options: null;
|
|
77
|
+
total_refund_amount: number;
|
|
78
|
+
total_refund_integer: number;
|
|
79
|
+
total_refund_currency: string;
|
|
80
|
+
total_refund_text: string;
|
|
81
|
+
check_dns: boolean;
|
|
82
|
+
payment_card_processor: null;
|
|
83
|
+
payment_card_id: string;
|
|
84
|
+
payment_card_type: string;
|
|
85
|
+
payment_details: string;
|
|
86
|
+
payment_expiry_timestamp: number;
|
|
87
|
+
payment_expiry: string;
|
|
88
|
+
stored_details_id: string;
|
|
89
|
+
payment_name: string;
|
|
90
|
+
payment_country_code: string;
|
|
91
|
+
payment_country_name: string;
|
|
92
|
+
is_rechargable: boolean;
|
|
93
|
+
payment_type: string;
|
|
94
|
+
}[];
|
|
95
|
+
export default _default;
|
|
96
|
+
//# sourceMappingURL=sites-purchases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sites-purchases.d.ts","sourceRoot":"","sources":["../../../src/fixtures/sites-purchases.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAiIE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { GridContextProps, GridPlan, PlansIntent, UseAction } from './types';
|
|
3
|
+
import type { FeatureList, FeatureGroupMap } from '@automattic/calypso-products';
|
|
4
|
+
import type { Plans } from '@automattic/data-stores';
|
|
5
|
+
interface PlansGridContext {
|
|
6
|
+
intent?: PlansIntent;
|
|
7
|
+
siteId?: number | null;
|
|
8
|
+
gridPlans: GridPlan[];
|
|
9
|
+
gridPlansIndex: {
|
|
10
|
+
[key: string]: GridPlan;
|
|
11
|
+
};
|
|
12
|
+
allFeaturesList: FeatureList;
|
|
13
|
+
helpers: {
|
|
14
|
+
useCheckPlanAvailabilityForPurchase: Plans.UseCheckPlanAvailabilityForPurchase;
|
|
15
|
+
useAction: UseAction;
|
|
16
|
+
recordTracksEvent?: GridContextProps['recordTracksEvent'];
|
|
17
|
+
};
|
|
18
|
+
coupon?: string;
|
|
19
|
+
enableFeatureTooltips?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* `enableCategorisedFeatures` relevant to Features Grid (and omitted from Comparison Grid)
|
|
22
|
+
* for rendering features with categories based on available/associated feature group map.
|
|
23
|
+
*/
|
|
24
|
+
enableCategorisedFeatures?: boolean;
|
|
25
|
+
enableStorageAsBadge?: boolean;
|
|
26
|
+
enableReducedFeatureGroupSpacing?: boolean;
|
|
27
|
+
enableLogosOnlyForEnterprisePlan?: boolean;
|
|
28
|
+
enableTermSavingsPriceDisplay?: boolean;
|
|
29
|
+
featureGroupMap: Partial<FeatureGroupMap>;
|
|
30
|
+
hideUnsupportedFeatures?: boolean;
|
|
31
|
+
hideFeatureGroupTitles?: boolean;
|
|
32
|
+
enterpriseFeaturesList?: string[];
|
|
33
|
+
reflectStorageSelectionInPlanPrices?: boolean;
|
|
34
|
+
}
|
|
35
|
+
declare const PlansGridContext: import("react").Context<PlansGridContext>;
|
|
36
|
+
declare const PlansGridContextProvider: ({ intent, gridPlans, useCheckPlanAvailabilityForPurchase, useAction, recordTracksEvent, allFeaturesList, siteId, children, coupon, enableFeatureTooltips, enableCategorisedFeatures, enableStorageAsBadge, enableReducedFeatureGroupSpacing, enableLogosOnlyForEnterprisePlan, enableTermSavingsPriceDisplay, featureGroupMap, hideUnsupportedFeatures, hideFeatureGroupTitles, enterpriseFeaturesList, reflectStorageSelectionInPlanPrices, }: GridContextProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare const usePlansGridContext: () => PlansGridContext;
|
|
38
|
+
export type { PlansIntent };
|
|
39
|
+
export default PlansGridContextProvider;
|
|
40
|
+
//# sourceMappingURL=grid-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-context.d.ts","sourceRoot":"","sources":["../../src/grid-context.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,UAAU,gBAAgB;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,cAAc,EAAE;QAAE,CAAE,GAAG,EAAE,MAAM,GAAI,QAAQ,CAAA;KAAE,CAAC;IAC9C,eAAe,EAAE,WAAW,CAAC;IAC7B,OAAO,EAAE;QACR,mCAAmC,EAAE,KAAK,CAAC,mCAAmC,CAAC;QAE/E,SAAS,EAAE,SAAS,CAAC;QACrB,iBAAiB,CAAC,EAAE,gBAAgB,CAAE,mBAAmB,CAAE,CAAC;KAC5D,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAC3C,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAC3C,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACxC,eAAe,EAAE,OAAO,CAAE,eAAe,CAAE,CAAC;IAC5C,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,mCAAmC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED,QAAA,MAAM,gBAAgB,2CAA8D,CAAC;AAErF,QAAA,MAAM,wBAAwB,mbAqB3B,gBAAgB,4CAuClB,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,gBAAkD,CAAC;AAE1F,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-popular-plan.d.ts","sourceRoot":"","sources":["../../../../src/hooks/data-store/is-popular-plan.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAE,QAAQ,EAAE,MAAM,GAAI,OAAO,CAEzD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { FeatureList, PlanSlug, TERMS_LIST } from '@automattic/calypso-products';
|
|
2
|
+
import { Plans } from '@automattic/data-stores';
|
|
3
|
+
import { TranslateResult } from 'i18n-calypso';
|
|
4
|
+
import { GridPlan, HiddenPlans, PlansIntent } from '../../types';
|
|
5
|
+
import { UseFreeTrialPlanSlugs } from './use-grid-plans';
|
|
6
|
+
export interface UseGridPlansParams {
|
|
7
|
+
allFeaturesList: FeatureList;
|
|
8
|
+
coupon?: string;
|
|
9
|
+
eligibleForFreeHostingTrial?: boolean;
|
|
10
|
+
hasRedeemedDomainCredit?: boolean;
|
|
11
|
+
hiddenPlans?: HiddenPlans;
|
|
12
|
+
intent?: PlansIntent;
|
|
13
|
+
isDisplayingPlansNeededForFeature?: boolean;
|
|
14
|
+
isInSignup?: boolean;
|
|
15
|
+
isSubdomainNotGenerated?: boolean;
|
|
16
|
+
selectedFeature?: string | null;
|
|
17
|
+
selectedPlan?: PlanSlug;
|
|
18
|
+
showLegacyStorageFeature?: boolean;
|
|
19
|
+
siteId?: number | null;
|
|
20
|
+
term?: (typeof TERMS_LIST)[number];
|
|
21
|
+
useCheckPlanAvailabilityForPurchase: Plans.UseCheckPlanAvailabilityForPurchase;
|
|
22
|
+
useFreeTrialPlanSlugs?: UseFreeTrialPlanSlugs;
|
|
23
|
+
/**
|
|
24
|
+
* Provide a map of plan slug keyed strings to display as the highlight label on top of each plan.
|
|
25
|
+
*/
|
|
26
|
+
highlightLabelOverrides?: {
|
|
27
|
+
[K in PlanSlug]?: TranslateResult;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Used to hide the "Your Plan" label for domain-only sites
|
|
31
|
+
*/
|
|
32
|
+
isDomainOnlySite?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Determine if storage add-on products should be combined with plan costs when
|
|
35
|
+
* calculating prices.
|
|
36
|
+
*/
|
|
37
|
+
reflectStorageSelectionInPlanPrices?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export type UseGridPlansType = (params: UseGridPlansParams) => Omit<GridPlan, 'features'>[] | null;
|
|
40
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/hooks/data-store/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,WAAW,kBAAkB;IAClC,eAAe,EAAE,WAAW,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,CAAC,EAAE,CAAE,OAAO,UAAU,CAAE,CAAE,MAAM,CAAE,CAAC;IACvC,mCAAmC,EAAE,KAAK,CAAC,mCAAmC,CAAC;IAC/E,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C;;OAEG;IACH,uBAAuB,CAAC,EAAE;SAAI,CAAC,IAAI,QAAQ,CAAE,CAAC,EAAE,eAAe;KAAE,CAAC;IAClE;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,mCAAmC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED,MAAM,MAAM,gBAAgB,GAAG,CAC9B,MAAM,EAAE,kBAAkB,KACtB,IAAI,CAAE,QAAQ,EAAE,UAAU,CAAE,EAAE,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GridPlan, PlansIntent } from '../../types';
|
|
2
|
+
interface Params {
|
|
3
|
+
gridPlans: GridPlan[] | null;
|
|
4
|
+
intent?: PlansIntent;
|
|
5
|
+
isSpotlightOnCurrentPlan?: boolean;
|
|
6
|
+
siteId?: number | null;
|
|
7
|
+
}
|
|
8
|
+
declare const useGridPlanForSpotlight: ({ gridPlans, intent, isSpotlightOnCurrentPlan, siteId, }: Params) => GridPlan | undefined;
|
|
9
|
+
export default useGridPlanForSpotlight;
|
|
10
|
+
//# sourceMappingURL=use-grid-plan-for-spotlight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-grid-plan-for-spotlight.d.ts","sourceRoot":"","sources":["../../../../src/hooks/data-store/use-grid-plan-for-spotlight.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAIpD,UAAU,MAAM;IACf,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,QAAA,MAAM,uBAAuB,6DAK1B,MAAM,KAAI,QAAQ,GAAG,SAavB,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UseGridPlansParams } from './types';
|
|
2
|
+
import type { GridPlan } from '../../types';
|
|
3
|
+
declare const useGridPlansForComparisonGrid: ({ allFeaturesList, coupon, eligibleForFreeHostingTrial, hasRedeemedDomainCredit, hiddenPlans, intent, isDisplayingPlansNeededForFeature, isSubdomainNotGenerated, selectedFeature, selectedPlan, showLegacyStorageFeature, siteId, term, useCheckPlanAvailabilityForPurchase, useFreeTrialPlanSlugs, isDomainOnlySite, reflectStorageSelectionInPlanPrices, }: UseGridPlansParams) => GridPlan[] | null;
|
|
4
|
+
export default useGridPlansForComparisonGrid;
|
|
5
|
+
//# sourceMappingURL=use-grid-plans-for-comparison-grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-grid-plans-for-comparison-grid.d.ts","sourceRoot":"","sources":["../../../../src/hooks/data-store/use-grid-plans-for-comparison-grid.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,QAAA,MAAM,6BAA6B,kWAkBhC,kBAAkB,KAAI,QAAQ,EAAE,GAAG,IAgDrC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UseGridPlansParams } from './types';
|
|
2
|
+
import type { GridPlan } from '../../types';
|
|
3
|
+
declare const useGridPlansForFeaturesGrid: ({ allFeaturesList, coupon, eligibleForFreeHostingTrial, hasRedeemedDomainCredit, hiddenPlans, intent, isDisplayingPlansNeededForFeature, isInSignup, isSubdomainNotGenerated, selectedFeature, selectedPlan, showLegacyStorageFeature, siteId, term, useCheckPlanAvailabilityForPurchase, useFreeTrialPlanSlugs, highlightLabelOverrides, isDomainOnlySite, reflectStorageSelectionInPlanPrices, }: UseGridPlansParams) => GridPlan[] | null;
|
|
4
|
+
export default useGridPlansForFeaturesGrid;
|
|
5
|
+
//# sourceMappingURL=use-grid-plans-for-features-grid.d.ts.map
|