@automattic/data-stores 3.0.0 → 3.1.0-rc.1
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 +25 -3
- package/README.md +28 -25
- package/autocomplete.gif +0 -0
- package/dist/cjs/add-ons/constants.js +18 -0
- package/dist/cjs/add-ons/constants.js.map +1 -0
- package/dist/cjs/add-ons/hooks/use-add-on-checkout-link.js +24 -0
- package/dist/cjs/add-ons/hooks/use-add-on-checkout-link.js.map +1 -0
- package/dist/cjs/add-ons/hooks/use-add-on-display-cost.js +29 -0
- package/dist/cjs/add-ons/hooks/use-add-on-display-cost.js.map +1 -0
- package/dist/cjs/add-ons/hooks/use-add-on-prices.js +62 -0
- package/dist/cjs/add-ons/hooks/use-add-on-prices.js.map +1 -0
- package/dist/cjs/add-ons/hooks/use-add-on-purchase-status.js +33 -0
- package/dist/cjs/add-ons/hooks/use-add-on-purchase-status.js.map +1 -0
- package/dist/cjs/add-ons/hooks/use-add-ons.js +221 -0
- package/dist/cjs/add-ons/hooks/use-add-ons.js.map +1 -0
- package/dist/cjs/add-ons/hooks/use-available-storage-add-ons.js +32 -0
- package/dist/cjs/add-ons/hooks/use-available-storage-add-ons.js.map +1 -0
- package/dist/cjs/add-ons/hooks/use-storage-add-ons.js +12 -0
- package/dist/cjs/add-ons/hooks/use-storage-add-ons.js.map +1 -0
- package/dist/cjs/add-ons/icons/custom-design.js +7 -0
- package/dist/cjs/add-ons/icons/custom-design.js.map +1 -0
- package/dist/cjs/add-ons/icons/jetpack-ai.js +7 -0
- package/dist/cjs/add-ons/icons/jetpack-ai.js.map +1 -0
- package/dist/cjs/add-ons/icons/jetpack-stats.js +8 -0
- package/dist/cjs/add-ons/icons/jetpack-stats.js.map +1 -0
- package/dist/cjs/add-ons/icons/space-upgrade.js +7 -0
- package/dist/cjs/add-ons/icons/space-upgrade.js.map +1 -0
- package/dist/cjs/add-ons/icons/unlimited-themes.js +7 -0
- package/dist/cjs/add-ons/icons/unlimited-themes.js.map +1 -0
- package/dist/cjs/add-ons/index.js +19 -0
- package/dist/cjs/add-ons/index.js.map +1 -0
- package/dist/cjs/add-ons/lib/is-storage-addon-enabled.js +11 -0
- package/dist/cjs/add-ons/lib/is-storage-addon-enabled.js.map +1 -0
- package/dist/cjs/add-ons/types.js.map +1 -0
- package/dist/cjs/analyzer/actions.js +40 -0
- package/dist/cjs/analyzer/actions.js.map +1 -0
- package/dist/cjs/analyzer/constants.js +5 -0
- package/dist/cjs/analyzer/constants.js.map +1 -0
- package/dist/cjs/analyzer/index.js +19 -0
- package/dist/cjs/analyzer/index.js.map +1 -0
- package/dist/cjs/analyzer/reducers.js +27 -0
- package/dist/cjs/analyzer/reducers.js.map +1 -0
- package/dist/cjs/analyzer/selectors.js +15 -0
- package/dist/cjs/analyzer/selectors.js.map +1 -0
- package/dist/cjs/analyzer/types.js.map +1 -0
- package/dist/cjs/automated-transfer-eligibility/index.js +0 -2
- package/dist/cjs/automated-transfer-eligibility/index.js.map +1 -1
- package/dist/cjs/automated-transfer-eligibility/reducer.js.map +1 -1
- package/dist/cjs/automated-transfer-eligibility/resolvers.js +0 -1
- package/dist/cjs/automated-transfer-eligibility/resolvers.js.map +1 -1
- package/dist/cjs/automated-transfer-eligibility/selectors.js +0 -4
- package/dist/cjs/automated-transfer-eligibility/selectors.js.map +1 -1
- package/dist/cjs/contextual-help/admin-sections.js +375 -0
- package/dist/cjs/contextual-help/admin-sections.js.map +1 -0
- package/dist/cjs/contextual-help/constants.js +1 -5
- package/dist/cjs/contextual-help/constants.js.map +1 -1
- package/dist/cjs/contextual-help/contextual-help.js +7 -1515
- package/dist/cjs/contextual-help/contextual-help.js.map +1 -1
- package/dist/cjs/domain-suggestions/actions.js.map +1 -1
- package/dist/cjs/domain-suggestions/constants.js +1 -1
- package/dist/cjs/domain-suggestions/constants.js.map +1 -1
- package/dist/cjs/domain-suggestions/index.js +1 -0
- package/dist/cjs/domain-suggestions/index.js.map +1 -1
- package/dist/cjs/domain-suggestions/queries.js +79 -0
- package/dist/cjs/domain-suggestions/queries.js.map +1 -0
- package/dist/cjs/domain-suggestions/reducer.js.map +1 -1
- package/dist/cjs/domain-suggestions/resolvers.js.map +1 -1
- package/dist/cjs/domain-suggestions/selectors.js +1 -4
- package/dist/cjs/domain-suggestions/selectors.js.map +1 -1
- package/dist/cjs/domain-suggestions/utils.js +0 -4
- package/dist/cjs/domain-suggestions/utils.js.map +1 -1
- package/dist/cjs/help-center/actions.js +96 -22
- package/dist/cjs/help-center/actions.js.map +1 -1
- package/dist/cjs/help-center/index.js +5 -3
- package/dist/cjs/help-center/index.js.map +1 -1
- package/dist/cjs/help-center/reducer.js +51 -17
- package/dist/cjs/help-center/reducer.js.map +1 -1
- package/dist/cjs/help-center/selectors.js +17 -7
- package/dist/cjs/help-center/selectors.js.map +1 -1
- package/dist/cjs/help-center/types.js.map +1 -0
- package/dist/cjs/index.js +39 -31
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/launchpad-navigator/actions.js +71 -0
- package/dist/cjs/launchpad-navigator/actions.js.map +1 -0
- package/dist/cjs/launchpad-navigator/constants.js +7 -0
- package/dist/cjs/launchpad-navigator/constants.js.map +1 -0
- package/dist/cjs/launchpad-navigator/index.js +19 -0
- package/dist/cjs/launchpad-navigator/index.js.map +1 -0
- package/dist/cjs/launchpad-navigator/reducer.js +24 -0
- package/dist/cjs/launchpad-navigator/reducer.js.map +1 -0
- package/dist/cjs/launchpad-navigator/selectors.js +8 -0
- package/dist/cjs/launchpad-navigator/selectors.js.map +1 -0
- package/dist/cjs/mutations/use-domains-bulk-actions-mutation.js +59 -0
- package/dist/cjs/mutations/use-domains-bulk-actions-mutation.js.map +1 -0
- package/dist/cjs/onboard/actions.js +237 -46
- package/dist/cjs/onboard/actions.js.map +1 -1
- package/dist/cjs/onboard/constants.js +33 -10
- package/dist/cjs/onboard/constants.js.map +1 -1
- package/dist/cjs/onboard/index.js +28 -8
- package/dist/cjs/onboard/index.js.map +1 -1
- package/dist/cjs/onboard/reducer.js +300 -32
- package/dist/cjs/onboard/reducer.js.map +1 -1
- package/dist/cjs/onboard/selectors.js +74 -19
- package/dist/cjs/onboard/selectors.js.map +1 -1
- package/dist/cjs/onboard/types.js.map +1 -0
- package/dist/cjs/onboard/utils.js +42 -0
- package/dist/cjs/onboard/utils.js.map +1 -0
- package/dist/cjs/plans/constants.js +23 -3
- package/dist/cjs/plans/constants.js.map +1 -1
- package/dist/cjs/plans/hooks/use-current-plan-expiry-date.js +13 -0
- package/dist/cjs/plans/hooks/use-current-plan-expiry-date.js.map +1 -0
- package/dist/cjs/plans/hooks/use-current-plan-term.js +15 -0
- package/dist/cjs/plans/hooks/use-current-plan-term.js.map +1 -0
- package/dist/cjs/plans/hooks/use-current-plan.js +13 -0
- package/dist/cjs/plans/hooks/use-current-plan.js.map +1 -0
- package/dist/cjs/plans/hooks/use-intro-offers-for-woo-express.js +32 -0
- package/dist/cjs/plans/hooks/use-intro-offers-for-woo-express.js.map +1 -0
- package/dist/cjs/plans/hooks/use-intro-offers.js +31 -0
- package/dist/cjs/plans/hooks/use-intro-offers.js.map +1 -0
- package/dist/cjs/plans/hooks/use-pricing-meta-for-grid-plans.js +221 -0
- package/dist/cjs/plans/hooks/use-pricing-meta-for-grid-plans.js.map +1 -0
- package/dist/cjs/plans/index.js +19 -1
- package/dist/cjs/plans/index.js.map +1 -1
- package/dist/cjs/plans/mock/apis/plans.js +9 -0
- package/dist/cjs/plans/mock/apis/plans.js.map +1 -1
- package/dist/cjs/plans/mock/index.js +4 -0
- package/dist/cjs/plans/mock/index.js.map +1 -1
- package/dist/cjs/plans/mock/next/index.js +5 -0
- package/dist/cjs/plans/mock/next/index.js.map +1 -0
- package/dist/cjs/plans/mock/next/store/plans.js +98 -0
- package/dist/cjs/plans/mock/next/store/plans.js.map +1 -0
- package/dist/cjs/plans/mock/store/products.js +2 -2
- package/dist/cjs/plans/queries/lib/unpack-cost-overrides.js +20 -0
- package/dist/cjs/plans/queries/lib/unpack-cost-overrides.js.map +1 -0
- package/dist/cjs/plans/queries/lib/unpack-intro-offer.js +31 -0
- package/dist/cjs/plans/queries/lib/unpack-intro-offer.js.map +1 -0
- package/dist/cjs/plans/queries/lib/use-query-keys-factory.js +8 -0
- package/dist/cjs/plans/queries/lib/use-query-keys-factory.js.map +1 -0
- package/dist/cjs/plans/queries/use-plans.js +61 -0
- package/dist/cjs/plans/queries/use-plans.js.map +1 -0
- package/dist/cjs/plans/queries/use-site-plans.js +65 -0
- package/dist/cjs/plans/queries/use-site-plans.js.map +1 -0
- package/dist/cjs/plans/reducer.js.map +1 -1
- package/dist/cjs/plans/resolvers.js +1 -4
- package/dist/cjs/plans/resolvers.js.map +1 -1
- package/dist/cjs/plans/selectors.js +1 -4
- package/dist/cjs/plans/selectors.js.map +1 -1
- package/dist/cjs/plugins/index.js +19 -0
- package/dist/cjs/plugins/index.js.map +1 -0
- package/dist/cjs/plugins/one-week-persistence-config.js +70 -0
- package/dist/cjs/plugins/one-week-persistence-config.js.map +1 -0
- package/dist/cjs/products-list/actions.js.map +1 -1
- package/dist/cjs/products-list/index.js +12 -16
- package/dist/cjs/products-list/index.js.map +1 -1
- package/dist/cjs/products-list/queries/lib/use-query-keys-factory.js +7 -0
- package/dist/cjs/products-list/queries/lib/use-query-keys-factory.js.map +1 -0
- package/dist/cjs/products-list/queries/use-products.js +54 -0
- package/dist/cjs/products-list/queries/use-products.js.map +1 -0
- package/dist/cjs/products-list/reducer.js.map +1 -1
- package/dist/cjs/products-list/resolvers.js.map +1 -1
- package/dist/cjs/products-list/selectors.js +11 -2
- package/dist/cjs/products-list/selectors.js.map +1 -1
- package/dist/cjs/purchases/hooks/use-site-purchase-by-id.js +12 -0
- package/dist/cjs/purchases/hooks/use-site-purchase-by-id.js.map +1 -0
- package/dist/cjs/purchases/hooks/use-site-purchases-by-product-slug.js +21 -0
- package/dist/cjs/purchases/hooks/use-site-purchases-by-product-slug.js.map +1 -0
- package/dist/cjs/purchases/index.js +21 -0
- package/dist/cjs/purchases/index.js.map +1 -0
- package/dist/cjs/purchases/lib/assembler.js +141 -0
- package/dist/cjs/purchases/lib/assembler.js.map +1 -0
- package/dist/cjs/purchases/queries/lib/use-query-keys-factory.js +7 -0
- package/dist/cjs/purchases/queries/lib/use-query-keys-factory.js.map +1 -0
- package/dist/cjs/purchases/queries/use-site-purchases.js +37 -0
- package/dist/cjs/purchases/queries/use-site-purchases.js.map +1 -0
- package/dist/cjs/purchases/types.js.map +1 -0
- package/dist/cjs/queries/use-all-domains-query.js +28 -0
- package/dist/cjs/queries/use-all-domains-query.js.map +1 -0
- package/dist/cjs/queries/use-bulk-domain-update-status-query.js +72 -0
- package/dist/cjs/queries/use-bulk-domain-update-status-query.js.map +1 -0
- package/dist/cjs/queries/use-happiness-engineers-query.js +4 -2
- package/dist/cjs/queries/use-happiness-engineers-query.js.map +1 -1
- package/dist/cjs/queries/use-launchpad-navigator.js +39 -0
- package/dist/cjs/queries/use-launchpad-navigator.js.map +1 -0
- package/dist/cjs/queries/use-launchpad.js +146 -0
- package/dist/cjs/queries/use-launchpad.js.map +1 -0
- package/dist/cjs/queries/use-site-domains-query.js +30 -0
- package/dist/cjs/queries/use-site-domains-query.js.map +1 -0
- package/dist/cjs/queries/use-site-intent.js +7 -5
- package/dist/cjs/queries/use-site-intent.js.map +1 -1
- package/dist/cjs/queries/use-site-query.js +25 -0
- package/dist/cjs/queries/use-site-query.js.map +1 -0
- package/dist/cjs/reader/constants.js +26 -2
- package/dist/cjs/reader/constants.js.map +1 -1
- package/dist/cjs/reader/contexts/index.js +10 -0
- package/dist/cjs/reader/contexts/index.js.map +1 -0
- package/dist/cjs/reader/contexts/site-subscriptions-query-props.js +34 -0
- package/dist/cjs/reader/contexts/site-subscriptions-query-props.js.map +1 -0
- package/dist/cjs/reader/contexts/unsubscribed-feeds-search.js +26 -0
- package/dist/cjs/reader/contexts/unsubscribed-feeds-search.js.map +1 -0
- package/dist/cjs/reader/helpers/index.js +91 -0
- package/dist/cjs/reader/helpers/index.js.map +1 -0
- package/dist/cjs/reader/helpers/optimistic-update.js +37 -0
- package/dist/cjs/reader/helpers/optimistic-update.js.map +1 -0
- package/dist/cjs/reader/helpers/query-key.js +15 -0
- package/dist/cjs/reader/helpers/query-key.js.map +1 -0
- package/dist/cjs/reader/helpers/type-guards.js +25 -0
- package/dist/cjs/reader/helpers/type-guards.js.map +1 -0
- package/dist/cjs/reader/helpers/validators.js +35 -0
- package/dist/cjs/reader/helpers/validators.js.map +1 -0
- package/dist/cjs/reader/hooks/index.js +12 -0
- package/dist/cjs/reader/hooks/index.js.map +1 -0
- package/dist/cjs/reader/hooks/use-cache-key.js +11 -0
- package/dist/cjs/reader/hooks/use-cache-key.js.map +1 -0
- package/dist/cjs/reader/hooks/use-is-logged-in.js +14 -0
- package/dist/cjs/reader/hooks/use-is-logged-in.js.map +1 -0
- package/dist/cjs/reader/hooks/use-is-query-enabled.js +13 -0
- package/dist/cjs/reader/hooks/use-is-query-enabled.js.map +1 -0
- package/dist/cjs/reader/hooks/use-subscriber-email-address.js +22 -0
- package/dist/cjs/reader/hooks/use-subscriber-email-address.js.map +1 -0
- package/dist/cjs/reader/index.js +52 -27
- package/dist/cjs/reader/index.js.map +1 -1
- package/dist/cjs/reader/mutations/index.js +30 -0
- package/dist/cjs/reader/mutations/index.js.map +1 -0
- package/dist/cjs/reader/mutations/use-pending-post-confirm-mutation.js +85 -0
- package/dist/cjs/reader/mutations/use-pending-post-confirm-mutation.js.map +1 -0
- package/dist/cjs/reader/mutations/use-pending-post-delete-mutation.js +78 -0
- package/dist/cjs/reader/mutations/use-pending-post-delete-mutation.js.map +1 -0
- package/dist/cjs/reader/mutations/use-pending-site-confirm-mutation.js +83 -0
- package/dist/cjs/reader/mutations/use-pending-site-confirm-mutation.js.map +1 -0
- package/dist/cjs/reader/mutations/use-pending-site-delete-mutation.js +78 -0
- package/dist/cjs/reader/mutations/use-pending-site-delete-mutation.js.map +1 -0
- package/dist/cjs/reader/mutations/use-post-notify-me-of-new-comments-mutation.js +69 -0
- package/dist/cjs/reader/mutations/use-post-notify-me-of-new-comments-mutation.js.map +1 -0
- package/dist/cjs/reader/mutations/use-post-unsubscribe-mutation.js +75 -0
- package/dist/cjs/reader/mutations/use-post-unsubscribe-mutation.js.map +1 -0
- package/dist/cjs/reader/mutations/use-site-delivery-frequency-mutation.js +95 -0
- package/dist/cjs/reader/mutations/use-site-delivery-frequency-mutation.js.map +1 -0
- package/dist/cjs/reader/mutations/use-site-email-me-new-comments-mutation.js +102 -0
- package/dist/cjs/reader/mutations/use-site-email-me-new-comments-mutation.js.map +1 -0
- package/dist/cjs/reader/mutations/use-site-email-me-new-posts-mutation.js +107 -0
- package/dist/cjs/reader/mutations/use-site-email-me-new-posts-mutation.js.map +1 -0
- package/dist/cjs/reader/mutations/use-site-notify-me-of-new-posts-mutation.js +108 -0
- package/dist/cjs/reader/mutations/use-site-notify-me-of-new-posts-mutation.js.map +1 -0
- package/dist/cjs/reader/mutations/use-site-subscribe-mutation.js +106 -0
- package/dist/cjs/reader/mutations/use-site-subscribe-mutation.js.map +1 -0
- package/dist/cjs/reader/mutations/use-site-unsubscribe-mutation.js +140 -0
- package/dist/cjs/reader/mutations/use-site-unsubscribe-mutation.js.map +1 -0
- package/dist/cjs/reader/mutations/use-user-settings-mutation.js +56 -0
- package/dist/cjs/reader/mutations/use-user-settings-mutation.js.map +1 -0
- package/dist/cjs/reader/queries/index.js +26 -0
- package/dist/cjs/reader/queries/index.js.map +1 -0
- package/dist/cjs/reader/queries/use-pending-post-subscriptions-query.js +48 -0
- package/dist/cjs/reader/queries/use-pending-post-subscriptions-query.js.map +1 -0
- package/dist/cjs/reader/queries/use-pending-site-subscriptions-query.js +48 -0
- package/dist/cjs/reader/queries/use-pending-site-subscriptions-query.js.map +1 -0
- package/dist/cjs/reader/queries/use-post-subscriptions-query.js +94 -0
- package/dist/cjs/reader/queries/use-post-subscriptions-query.js.map +1 -0
- package/dist/cjs/reader/queries/use-read-feed-query.js +21 -0
- package/dist/cjs/reader/queries/use-read-feed-query.js.map +1 -0
- package/dist/cjs/reader/queries/use-read-feed-search-query.js +39 -0
- package/dist/cjs/reader/queries/use-read-feed-search-query.js.map +1 -0
- package/dist/cjs/reader/queries/use-read-feed-site-query.js +26 -0
- package/dist/cjs/reader/queries/use-read-feed-site-query.js.map +1 -0
- package/dist/cjs/reader/queries/use-site-subscription-details-query.js +26 -0
- package/dist/cjs/reader/queries/use-site-subscription-details-query.js.map +1 -0
- package/dist/cjs/reader/queries/use-site-subscriptions-query.js +109 -0
- package/dist/cjs/reader/queries/use-site-subscriptions-query.js.map +1 -0
- package/dist/cjs/reader/queries/use-subscriptions-count-query.js +25 -0
- package/dist/cjs/reader/queries/use-subscriptions-count-query.js.map +1 -0
- package/dist/cjs/reader/queries/use-user-settings-query.js +24 -0
- package/dist/cjs/reader/queries/use-user-settings-query.js.map +1 -0
- package/dist/cjs/reader/types/index.js +3 -0
- package/dist/cjs/reader/types/index.js.map +1 -0
- package/dist/cjs/site/actions.js +210 -34
- package/dist/cjs/site/actions.js.map +1 -1
- package/dist/cjs/site/constants.js +6 -1
- package/dist/cjs/site/constants.js.map +1 -1
- package/dist/cjs/site/index.js +15 -1
- package/dist/cjs/site/index.js.map +1 -1
- package/dist/cjs/site/queries/lib/use-query-keys-factory.js +17 -0
- package/dist/cjs/site/queries/lib/use-query-keys-factory.js.map +1 -0
- package/dist/cjs/site/queries/use-site-features.js +24 -0
- package/dist/cjs/site/queries/use-site-features.js.map +1 -0
- package/dist/cjs/site/queries/use-site-media-storage.js +29 -0
- package/dist/cjs/site/queries/use-site-media-storage.js.map +1 -0
- package/dist/cjs/site/queries/use-site-user-query.js +21 -0
- package/dist/cjs/site/queries/use-site-user-query.js.map +1 -0
- package/dist/cjs/site/queries/use-site.js +24 -0
- package/dist/cjs/site/queries/use-site.js.map +1 -0
- package/dist/cjs/site/reducer.js +50 -1
- package/dist/cjs/site/reducer.js.map +1 -1
- package/dist/cjs/site/resolvers.js +15 -5
- package/dist/cjs/site/resolvers.js.map +1 -1
- package/dist/cjs/site/selectors.js +27 -18
- package/dist/cjs/site/selectors.js.map +1 -1
- package/dist/cjs/site/types.js +88 -8
- package/dist/cjs/site/types.js.map +1 -1
- package/dist/cjs/site/utils.js +29 -0
- package/dist/cjs/site/utils.js.map +1 -0
- package/dist/cjs/site-reset/index.js +7 -0
- package/dist/cjs/site-reset/index.js.map +1 -0
- package/dist/cjs/site-reset/use-site-reset-content-summary-query.js +20 -0
- package/dist/cjs/site-reset/use-site-reset-content-summary-query.js.map +1 -0
- package/dist/cjs/site-reset/use-site-reset-mutation.js +24 -0
- package/dist/cjs/site-reset/use-site-reset-mutation.js.map +1 -0
- package/dist/cjs/site-reset/use-site-reset-status-query.js +20 -0
- package/dist/cjs/site-reset/use-site-reset-status-query.js.map +1 -0
- package/dist/cjs/starter-designs-queries/index.js +8 -0
- package/dist/cjs/starter-designs-queries/index.js.map +1 -0
- package/dist/cjs/starter-designs-queries/use-starter-design-by-slug.js +27 -0
- package/dist/cjs/starter-designs-queries/use-starter-design-by-slug.js.map +1 -0
- package/dist/cjs/starter-designs-queries/use-starter-designs-query.js +57 -0
- package/dist/cjs/starter-designs-queries/use-starter-designs-query.js.map +1 -0
- package/dist/cjs/stepper-internal/actions.js +13 -0
- package/dist/cjs/stepper-internal/actions.js.map +1 -0
- package/dist/cjs/stepper-internal/constants.js +5 -0
- package/dist/cjs/stepper-internal/constants.js.map +1 -0
- package/dist/cjs/stepper-internal/index.js +24 -0
- package/dist/cjs/stepper-internal/index.js.map +1 -0
- package/dist/cjs/stepper-internal/reducer.js +19 -0
- package/dist/cjs/stepper-internal/reducer.js.map +1 -0
- package/dist/cjs/stepper-internal/selectors.js +8 -0
- package/dist/cjs/stepper-internal/selectors.js.map +1 -0
- package/dist/cjs/subscriber/actions.js +150 -0
- package/dist/cjs/subscriber/actions.js.map +1 -0
- package/dist/cjs/subscriber/constants.js +5 -0
- package/dist/cjs/subscriber/constants.js.map +1 -0
- package/dist/cjs/subscriber/index.js +19 -0
- package/dist/cjs/subscriber/index.js.map +1 -0
- package/dist/cjs/subscriber/reducers.js +103 -0
- package/dist/cjs/subscriber/reducers.js.map +1 -0
- package/dist/cjs/subscriber/selectors.js +14 -0
- package/dist/cjs/subscriber/selectors.js.map +1 -0
- package/dist/cjs/subscriber/types.js.map +1 -0
- package/dist/cjs/templates/index.js +6 -0
- package/dist/cjs/templates/index.js.map +1 -0
- package/dist/cjs/templates/types.js.map +1 -0
- package/dist/cjs/templates/use-template.js +19 -0
- package/dist/cjs/templates/use-template.js.map +1 -0
- package/dist/cjs/theme/index.js +5 -0
- package/dist/cjs/theme/index.js.map +1 -0
- package/dist/cjs/theme/utils.js +15 -0
- package/dist/cjs/theme/utils.js.map +1 -0
- package/dist/cjs/user/actions.js +5 -52
- package/dist/cjs/user/actions.js.map +1 -1
- package/dist/cjs/user/index.js +3 -3
- package/dist/cjs/user/index.js.map +1 -1
- package/dist/cjs/user/reducer.js +5 -50
- package/dist/cjs/user/reducer.js.map +1 -1
- package/dist/cjs/user/resolvers.js +2 -2
- package/dist/cjs/user/resolvers.js.map +1 -1
- package/dist/cjs/user/selectors.js +2 -8
- package/dist/cjs/user/selectors.js.map +1 -1
- package/dist/cjs/users/types.js +3 -0
- package/dist/cjs/users/types.js.map +1 -0
- package/dist/cjs/users/use-send-invites.js +21 -0
- package/dist/cjs/users/use-send-invites.js.map +1 -0
- package/dist/cjs/wpcom-plans-ui/actions.js +20 -0
- package/dist/cjs/wpcom-plans-ui/actions.js.map +1 -0
- package/dist/cjs/wpcom-plans-ui/constants.js +5 -0
- package/dist/cjs/wpcom-plans-ui/constants.js.map +1 -0
- package/dist/cjs/wpcom-plans-ui/index.js +18 -0
- package/dist/cjs/wpcom-plans-ui/index.js.map +1 -0
- package/dist/cjs/wpcom-plans-ui/reducer.js +29 -0
- package/dist/cjs/wpcom-plans-ui/reducer.js.map +1 -0
- package/dist/cjs/wpcom-plans-ui/selectors.js +18 -0
- package/dist/cjs/wpcom-plans-ui/selectors.js.map +1 -0
- package/dist/cjs/wpcom-plans-ui/types.js +3 -0
- package/dist/cjs/wpcom-plans-ui/types.js.map +1 -0
- package/dist/cjs/wpcom-request-controls/index.js +0 -1
- package/dist/cjs/wpcom-request-controls/index.js.map +1 -1
- package/dist/esm/add-ons/constants.js +15 -0
- package/dist/esm/add-ons/constants.js.map +1 -0
- package/dist/esm/add-ons/hooks/use-add-on-checkout-link.js +22 -0
- package/dist/esm/add-ons/hooks/use-add-on-checkout-link.js.map +1 -0
- package/dist/esm/add-ons/hooks/use-add-on-display-cost.js +26 -0
- package/dist/esm/add-ons/hooks/use-add-on-display-cost.js.map +1 -0
- package/dist/esm/add-ons/hooks/use-add-on-prices.js +59 -0
- package/dist/esm/add-ons/hooks/use-add-on-prices.js.map +1 -0
- package/dist/esm/add-ons/hooks/use-add-on-purchase-status.js +30 -0
- package/dist/esm/add-ons/hooks/use-add-on-purchase-status.js.map +1 -0
- package/dist/esm/add-ons/hooks/use-add-ons.js +218 -0
- package/dist/esm/add-ons/hooks/use-add-ons.js.map +1 -0
- package/dist/esm/add-ons/hooks/use-available-storage-add-ons.js +29 -0
- package/dist/esm/add-ons/hooks/use-available-storage-add-ons.js.map +1 -0
- package/dist/esm/add-ons/hooks/use-storage-add-ons.js +9 -0
- package/dist/esm/add-ons/hooks/use-storage-add-ons.js.map +1 -0
- package/dist/esm/add-ons/icons/custom-design.js +5 -0
- package/dist/esm/add-ons/icons/custom-design.js.map +1 -0
- package/dist/esm/add-ons/icons/jetpack-ai.js +5 -0
- package/dist/esm/add-ons/icons/jetpack-ai.js.map +1 -0
- package/dist/esm/add-ons/icons/jetpack-stats.js +6 -0
- package/dist/esm/add-ons/icons/jetpack-stats.js.map +1 -0
- package/dist/esm/add-ons/icons/space-upgrade.js +5 -0
- package/dist/esm/add-ons/icons/space-upgrade.js.map +1 -0
- package/dist/esm/add-ons/icons/unlimited-themes.js +5 -0
- package/dist/esm/add-ons/icons/unlimited-themes.js.map +1 -0
- package/dist/esm/add-ons/index.js +10 -0
- package/dist/esm/add-ons/index.js.map +1 -0
- package/dist/esm/add-ons/lib/is-storage-addon-enabled.js +8 -0
- package/dist/esm/add-ons/lib/is-storage-addon-enabled.js.map +1 -0
- package/dist/esm/add-ons/types.js.map +1 -0
- package/dist/esm/analyzer/actions.js +36 -0
- package/dist/esm/analyzer/actions.js.map +1 -0
- package/dist/esm/analyzer/constants.js +2 -0
- package/dist/esm/analyzer/constants.js.map +1 -0
- package/dist/esm/analyzer/index.js +15 -0
- package/dist/esm/analyzer/index.js.map +1 -0
- package/dist/esm/analyzer/reducers.js +25 -0
- package/dist/esm/analyzer/reducers.js.map +1 -0
- package/dist/esm/analyzer/selectors.js +9 -0
- package/dist/esm/analyzer/selectors.js.map +1 -0
- package/dist/esm/analyzer/types.js.map +1 -0
- package/dist/esm/automated-transfer-eligibility/index.js +0 -2
- package/dist/esm/automated-transfer-eligibility/index.js.map +1 -1
- package/dist/esm/automated-transfer-eligibility/reducer.js.map +1 -1
- package/dist/esm/automated-transfer-eligibility/resolvers.js +0 -1
- package/dist/esm/automated-transfer-eligibility/resolvers.js.map +1 -1
- package/dist/esm/automated-transfer-eligibility/selectors.js +0 -4
- package/dist/esm/automated-transfer-eligibility/selectors.js.map +1 -1
- package/dist/esm/contextual-help/admin-sections.js +371 -0
- package/dist/esm/contextual-help/admin-sections.js.map +1 -0
- package/dist/esm/contextual-help/constants.js +0 -4
- package/dist/esm/contextual-help/constants.js.map +1 -1
- package/dist/esm/contextual-help/contextual-help.js +7 -1515
- package/dist/esm/contextual-help/contextual-help.js.map +1 -1
- package/dist/esm/domain-suggestions/actions.js.map +1 -1
- package/dist/esm/domain-suggestions/index.js +3 -2
- package/dist/esm/domain-suggestions/index.js.map +1 -1
- package/dist/esm/domain-suggestions/queries.js +72 -0
- package/dist/esm/domain-suggestions/queries.js.map +1 -0
- package/dist/esm/domain-suggestions/reducer.js.map +1 -1
- package/dist/esm/domain-suggestions/resolvers.js.map +1 -1
- package/dist/esm/domain-suggestions/selectors.js +1 -4
- package/dist/esm/domain-suggestions/selectors.js.map +1 -1
- package/dist/esm/domain-suggestions/utils.js +0 -4
- package/dist/esm/domain-suggestions/utils.js.map +1 -1
- package/dist/esm/help-center/actions.js +83 -16
- package/dist/esm/help-center/actions.js.map +1 -1
- package/dist/esm/help-center/index.js +6 -3
- package/dist/esm/help-center/index.js.map +1 -1
- package/dist/esm/help-center/reducer.js +51 -17
- package/dist/esm/help-center/reducer.js.map +1 -1
- package/dist/esm/help-center/selectors.js +8 -3
- package/dist/esm/help-center/selectors.js.map +1 -1
- package/dist/esm/help-center/types.js.map +1 -0
- package/dist/esm/index.js +29 -16
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/launchpad-navigator/actions.js +63 -0
- package/dist/esm/launchpad-navigator/actions.js.map +1 -0
- package/dist/esm/launchpad-navigator/constants.js +4 -0
- package/dist/esm/launchpad-navigator/constants.js.map +1 -0
- package/dist/esm/launchpad-navigator/index.js +15 -0
- package/dist/esm/launchpad-navigator/index.js.map +1 -0
- package/dist/esm/launchpad-navigator/reducer.js +22 -0
- package/dist/esm/launchpad-navigator/reducer.js.map +1 -0
- package/dist/esm/launchpad-navigator/selectors.js +3 -0
- package/dist/esm/launchpad-navigator/selectors.js.map +1 -0
- package/dist/esm/mutations/use-domains-bulk-actions-mutation.js +54 -0
- package/dist/esm/mutations/use-domains-bulk-actions-mutation.js.map +1 -0
- package/dist/esm/onboard/actions.js +197 -39
- package/dist/esm/onboard/actions.js.map +1 -1
- package/dist/esm/onboard/constants.js +32 -9
- package/dist/esm/onboard/constants.js.map +1 -1
- package/dist/esm/onboard/index.js +28 -9
- package/dist/esm/onboard/index.js.map +1 -1
- package/dist/esm/onboard/reducer.js +295 -32
- package/dist/esm/onboard/reducer.js.map +1 -1
- package/dist/esm/onboard/selectors.js +48 -11
- package/dist/esm/onboard/selectors.js.map +1 -1
- package/dist/esm/onboard/types.js.map +1 -0
- package/dist/esm/onboard/utils.js +37 -0
- package/dist/esm/onboard/utils.js.map +1 -0
- package/dist/esm/plans/constants.js +22 -2
- package/dist/esm/plans/constants.js.map +1 -1
- package/dist/esm/plans/hooks/use-current-plan-expiry-date.js +10 -0
- package/dist/esm/plans/hooks/use-current-plan-expiry-date.js.map +1 -0
- package/dist/esm/plans/hooks/use-current-plan-term.js +12 -0
- package/dist/esm/plans/hooks/use-current-plan-term.js.map +1 -0
- package/dist/esm/plans/hooks/use-current-plan.js +10 -0
- package/dist/esm/plans/hooks/use-current-plan.js.map +1 -0
- package/dist/esm/plans/hooks/use-intro-offers-for-woo-express.js +29 -0
- package/dist/esm/plans/hooks/use-intro-offers-for-woo-express.js.map +1 -0
- package/dist/esm/plans/hooks/use-intro-offers.js +28 -0
- package/dist/esm/plans/hooks/use-intro-offers.js.map +1 -0
- package/dist/esm/plans/hooks/use-pricing-meta-for-grid-plans.js +218 -0
- package/dist/esm/plans/hooks/use-pricing-meta-for-grid-plans.js.map +1 -0
- package/dist/esm/plans/index.js +11 -1
- package/dist/esm/plans/index.js.map +1 -1
- package/dist/esm/plans/mock/apis/plans.js +9 -0
- package/dist/esm/plans/mock/apis/plans.js.map +1 -1
- package/dist/esm/plans/mock/index.js +4 -0
- package/dist/esm/plans/mock/index.js.map +1 -1
- package/dist/esm/plans/mock/next/index.js +2 -0
- package/dist/esm/plans/mock/next/index.js.map +1 -0
- package/dist/esm/plans/mock/next/store/plans.js +95 -0
- package/dist/esm/plans/mock/next/store/plans.js.map +1 -0
- package/dist/esm/plans/mock/store/products.js +2 -2
- package/dist/esm/plans/queries/lib/unpack-cost-overrides.js +17 -0
- package/dist/esm/plans/queries/lib/unpack-cost-overrides.js.map +1 -0
- package/dist/esm/plans/queries/lib/unpack-intro-offer.js +29 -0
- package/dist/esm/plans/queries/lib/unpack-intro-offer.js.map +1 -0
- package/dist/esm/plans/queries/lib/use-query-keys-factory.js +6 -0
- package/dist/esm/plans/queries/lib/use-query-keys-factory.js.map +1 -0
- package/dist/esm/plans/queries/use-plans.js +58 -0
- package/dist/esm/plans/queries/use-plans.js.map +1 -0
- package/dist/esm/plans/queries/use-site-plans.js +62 -0
- package/dist/esm/plans/queries/use-site-plans.js.map +1 -0
- package/dist/esm/plans/reducer.js.map +1 -1
- package/dist/esm/plans/resolvers.js +1 -4
- package/dist/esm/plans/resolvers.js.map +1 -1
- package/dist/esm/plans/selectors.js +1 -4
- package/dist/esm/plans/selectors.js.map +1 -1
- package/dist/esm/plugins/index.js +14 -0
- package/dist/esm/plugins/index.js.map +1 -0
- package/dist/esm/plugins/one-week-persistence-config.js +68 -0
- package/dist/esm/plugins/one-week-persistence-config.js.map +1 -0
- package/dist/esm/products-list/actions.js.map +1 -1
- package/dist/esm/products-list/index.js +11 -15
- package/dist/esm/products-list/index.js.map +1 -1
- package/dist/esm/products-list/queries/lib/use-query-keys-factory.js +5 -0
- package/dist/esm/products-list/queries/lib/use-query-keys-factory.js.map +1 -0
- package/dist/esm/products-list/queries/use-products.js +51 -0
- package/dist/esm/products-list/queries/use-products.js.map +1 -0
- package/dist/esm/products-list/reducer.js.map +1 -1
- package/dist/esm/products-list/resolvers.js.map +1 -1
- package/dist/esm/products-list/selectors.js +11 -2
- package/dist/esm/products-list/selectors.js.map +1 -1
- package/dist/esm/purchases/hooks/use-site-purchase-by-id.js +9 -0
- package/dist/esm/purchases/hooks/use-site-purchase-by-id.js.map +1 -0
- package/dist/esm/purchases/hooks/use-site-purchases-by-product-slug.js +18 -0
- package/dist/esm/purchases/hooks/use-site-purchases-by-product-slug.js.map +1 -0
- package/dist/esm/purchases/index.js +14 -0
- package/dist/esm/purchases/index.js.map +1 -0
- package/dist/esm/purchases/lib/assembler.js +136 -0
- package/dist/esm/purchases/lib/assembler.js.map +1 -0
- package/dist/esm/purchases/queries/lib/use-query-keys-factory.js +5 -0
- package/dist/esm/purchases/queries/lib/use-query-keys-factory.js.map +1 -0
- package/dist/esm/purchases/queries/use-site-purchases.js +32 -0
- package/dist/esm/purchases/queries/use-site-purchases.js.map +1 -0
- package/dist/esm/purchases/types.js.map +1 -0
- package/dist/esm/queries/use-all-domains-query.js +22 -0
- package/dist/esm/queries/use-all-domains-query.js.map +1 -0
- package/dist/esm/queries/use-bulk-domain-update-status-query.js +66 -0
- package/dist/esm/queries/use-bulk-domain-update-status-query.js.map +1 -0
- package/dist/esm/queries/use-happiness-engineers-query.js +4 -2
- package/dist/esm/queries/use-happiness-engineers-query.js.map +1 -1
- package/dist/esm/queries/use-launchpad-navigator.js +33 -0
- package/dist/esm/queries/use-launchpad-navigator.js.map +1 -0
- package/dist/esm/queries/use-launchpad.js +136 -0
- package/dist/esm/queries/use-launchpad.js.map +1 -0
- package/dist/esm/queries/use-site-domains-query.js +23 -0
- package/dist/esm/queries/use-site-domains-query.js.map +1 -0
- package/dist/esm/queries/use-site-intent.js +7 -5
- package/dist/esm/queries/use-site-intent.js.map +1 -1
- package/dist/esm/queries/use-site-query.js +19 -0
- package/dist/esm/queries/use-site-query.js.map +1 -0
- package/dist/esm/reader/constants.js +25 -1
- package/dist/esm/reader/constants.js.map +1 -1
- package/dist/esm/reader/contexts/index.js +3 -0
- package/dist/esm/reader/contexts/index.js.map +1 -0
- package/dist/esm/reader/contexts/site-subscriptions-query-props.js +29 -0
- package/dist/esm/reader/contexts/site-subscriptions-query-props.js.map +1 -0
- package/dist/esm/reader/contexts/unsubscribed-feeds-search.js +20 -0
- package/dist/esm/reader/contexts/unsubscribed-feeds-search.js.map +1 -0
- package/dist/esm/reader/helpers/index.js +80 -0
- package/dist/esm/reader/helpers/index.js.map +1 -0
- package/dist/esm/reader/helpers/optimistic-update.js +33 -0
- package/dist/esm/reader/helpers/optimistic-update.js.map +1 -0
- package/dist/esm/reader/helpers/query-key.js +12 -0
- package/dist/esm/reader/helpers/query-key.js.map +1 -0
- package/dist/esm/reader/helpers/type-guards.js +19 -0
- package/dist/esm/reader/helpers/type-guards.js.map +1 -0
- package/dist/esm/reader/helpers/validators.js +31 -0
- package/dist/esm/reader/helpers/validators.js.map +1 -0
- package/dist/esm/reader/hooks/index.js +5 -0
- package/dist/esm/reader/hooks/index.js.map +1 -0
- package/dist/esm/reader/hooks/use-cache-key.js +8 -0
- package/dist/esm/reader/hooks/use-cache-key.js.map +1 -0
- package/dist/esm/reader/hooks/use-is-logged-in.js +12 -0
- package/dist/esm/reader/hooks/use-is-logged-in.js.map +1 -0
- package/dist/esm/reader/hooks/use-is-query-enabled.js +11 -0
- package/dist/esm/reader/hooks/use-is-query-enabled.js.map +1 -0
- package/dist/esm/reader/hooks/use-subscriber-email-address.js +20 -0
- package/dist/esm/reader/hooks/use-subscriber-email-address.js.map +1 -0
- package/dist/esm/reader/index.js +38 -25
- package/dist/esm/reader/index.js.map +1 -1
- package/dist/esm/reader/mutations/index.js +14 -0
- package/dist/esm/reader/mutations/index.js.map +1 -0
- package/dist/esm/reader/mutations/use-pending-post-confirm-mutation.js +83 -0
- package/dist/esm/reader/mutations/use-pending-post-confirm-mutation.js.map +1 -0
- package/dist/esm/reader/mutations/use-pending-post-delete-mutation.js +76 -0
- package/dist/esm/reader/mutations/use-pending-post-delete-mutation.js.map +1 -0
- package/dist/esm/reader/mutations/use-pending-site-confirm-mutation.js +81 -0
- package/dist/esm/reader/mutations/use-pending-site-confirm-mutation.js.map +1 -0
- package/dist/esm/reader/mutations/use-pending-site-delete-mutation.js +76 -0
- package/dist/esm/reader/mutations/use-pending-site-delete-mutation.js.map +1 -0
- package/dist/esm/reader/mutations/use-post-notify-me-of-new-comments-mutation.js +67 -0
- package/dist/esm/reader/mutations/use-post-notify-me-of-new-comments-mutation.js.map +1 -0
- package/dist/esm/reader/mutations/use-post-unsubscribe-mutation.js +73 -0
- package/dist/esm/reader/mutations/use-post-unsubscribe-mutation.js.map +1 -0
- package/dist/esm/reader/mutations/use-site-delivery-frequency-mutation.js +93 -0
- package/dist/esm/reader/mutations/use-site-delivery-frequency-mutation.js.map +1 -0
- package/dist/esm/reader/mutations/use-site-email-me-new-comments-mutation.js +100 -0
- package/dist/esm/reader/mutations/use-site-email-me-new-comments-mutation.js.map +1 -0
- package/dist/esm/reader/mutations/use-site-email-me-new-posts-mutation.js +105 -0
- package/dist/esm/reader/mutations/use-site-email-me-new-posts-mutation.js.map +1 -0
- package/dist/esm/reader/mutations/use-site-notify-me-of-new-posts-mutation.js +106 -0
- package/dist/esm/reader/mutations/use-site-notify-me-of-new-posts-mutation.js.map +1 -0
- package/dist/esm/reader/mutations/use-site-subscribe-mutation.js +104 -0
- package/dist/esm/reader/mutations/use-site-subscribe-mutation.js.map +1 -0
- package/dist/esm/reader/mutations/use-site-unsubscribe-mutation.js +138 -0
- package/dist/esm/reader/mutations/use-site-unsubscribe-mutation.js.map +1 -0
- package/dist/esm/reader/mutations/use-user-settings-mutation.js +54 -0
- package/dist/esm/reader/mutations/use-user-settings-mutation.js.map +1 -0
- package/dist/esm/reader/queries/index.js +11 -0
- package/dist/esm/reader/queries/index.js.map +1 -0
- package/dist/esm/reader/queries/use-pending-post-subscriptions-query.js +46 -0
- package/dist/esm/reader/queries/use-pending-post-subscriptions-query.js.map +1 -0
- package/dist/esm/reader/queries/use-pending-site-subscriptions-query.js +46 -0
- package/dist/esm/reader/queries/use-pending-site-subscriptions-query.js.map +1 -0
- package/dist/esm/reader/queries/use-post-subscriptions-query.js +91 -0
- package/dist/esm/reader/queries/use-post-subscriptions-query.js.map +1 -0
- package/dist/esm/reader/queries/use-read-feed-query.js +18 -0
- package/dist/esm/reader/queries/use-read-feed-query.js.map +1 -0
- package/dist/esm/reader/queries/use-read-feed-search-query.js +35 -0
- package/dist/esm/reader/queries/use-read-feed-search-query.js.map +1 -0
- package/dist/esm/reader/queries/use-read-feed-site-query.js +23 -0
- package/dist/esm/reader/queries/use-read-feed-site-query.js.map +1 -0
- package/dist/esm/reader/queries/use-site-subscription-details-query.js +24 -0
- package/dist/esm/reader/queries/use-site-subscription-details-query.js.map +1 -0
- package/dist/esm/reader/queries/use-site-subscriptions-query.js +106 -0
- package/dist/esm/reader/queries/use-site-subscriptions-query.js.map +1 -0
- package/dist/esm/reader/queries/use-subscriptions-count-query.js +22 -0
- package/dist/esm/reader/queries/use-subscriptions-count-query.js.map +1 -0
- package/dist/esm/reader/queries/use-user-settings-query.js +22 -0
- package/dist/esm/reader/queries/use-user-settings-query.js.map +1 -0
- package/dist/esm/reader/types/index.js +2 -0
- package/dist/esm/reader/types/index.js.map +1 -0
- package/dist/esm/site/actions.js +210 -34
- package/dist/esm/site/actions.js.map +1 -1
- package/dist/esm/site/constants.js +4 -0
- package/dist/esm/site/constants.js.map +1 -1
- package/dist/esm/site/index.js +11 -1
- package/dist/esm/site/index.js.map +1 -1
- package/dist/esm/site/queries/lib/use-query-keys-factory.js +15 -0
- package/dist/esm/site/queries/lib/use-query-keys-factory.js.map +1 -0
- package/dist/esm/site/queries/use-site-features.js +21 -0
- package/dist/esm/site/queries/use-site-features.js.map +1 -0
- package/dist/esm/site/queries/use-site-media-storage.js +26 -0
- package/dist/esm/site/queries/use-site-media-storage.js.map +1 -0
- package/dist/esm/site/queries/use-site-user-query.js +16 -0
- package/dist/esm/site/queries/use-site-user-query.js.map +1 -0
- package/dist/esm/site/queries/use-site.js +21 -0
- package/dist/esm/site/queries/use-site.js.map +1 -0
- package/dist/esm/site/reducer.js +46 -0
- package/dist/esm/site/reducer.js.map +1 -1
- package/dist/esm/site/resolvers.js +13 -4
- package/dist/esm/site/resolvers.js.map +1 -1
- package/dist/esm/site/selectors.js +22 -16
- package/dist/esm/site/selectors.js.map +1 -1
- package/dist/esm/site/types.js +80 -0
- package/dist/esm/site/types.js.map +1 -1
- package/dist/esm/site/utils.js +25 -0
- package/dist/esm/site/utils.js.map +1 -0
- package/dist/esm/site-reset/index.js +4 -0
- package/dist/esm/site-reset/index.js.map +1 -0
- package/dist/esm/site-reset/use-site-reset-content-summary-query.js +15 -0
- package/dist/esm/site-reset/use-site-reset-content-summary-query.js.map +1 -0
- package/dist/esm/site-reset/use-site-reset-mutation.js +19 -0
- package/dist/esm/site-reset/use-site-reset-mutation.js.map +1 -0
- package/dist/esm/site-reset/use-site-reset-status-query.js +15 -0
- package/dist/esm/site-reset/use-site-reset-status-query.js.map +1 -0
- package/dist/esm/starter-designs-queries/index.js +3 -0
- package/dist/esm/starter-designs-queries/index.js.map +1 -0
- package/dist/esm/starter-designs-queries/use-starter-design-by-slug.js +22 -0
- package/dist/esm/starter-designs-queries/use-starter-design-by-slug.js.map +1 -0
- package/dist/esm/starter-designs-queries/use-starter-designs-query.js +52 -0
- package/dist/esm/starter-designs-queries/use-starter-designs-query.js.map +1 -0
- package/dist/esm/stepper-internal/actions.js +8 -0
- package/dist/esm/stepper-internal/actions.js.map +1 -0
- package/dist/esm/stepper-internal/constants.js +2 -0
- package/dist/esm/stepper-internal/constants.js.map +1 -0
- package/dist/esm/stepper-internal/index.js +19 -0
- package/dist/esm/stepper-internal/index.js.map +1 -0
- package/dist/esm/stepper-internal/reducer.js +15 -0
- package/dist/esm/stepper-internal/reducer.js.map +1 -0
- package/dist/esm/stepper-internal/selectors.js +3 -0
- package/dist/esm/stepper-internal/selectors.js.map +1 -0
- package/dist/esm/subscriber/actions.js +145 -0
- package/dist/esm/subscriber/actions.js.map +1 -0
- package/dist/esm/subscriber/constants.js +2 -0
- package/dist/esm/subscriber/constants.js.map +1 -0
- package/dist/esm/subscriber/index.js +15 -0
- package/dist/esm/subscriber/index.js.map +1 -0
- package/dist/esm/subscriber/reducers.js +99 -0
- package/dist/esm/subscriber/reducers.js.map +1 -0
- package/dist/esm/subscriber/selectors.js +6 -0
- package/dist/esm/subscriber/selectors.js.map +1 -0
- package/dist/esm/subscriber/types.js.map +1 -0
- package/dist/esm/templates/index.js +2 -0
- package/dist/esm/templates/index.js.map +1 -0
- package/dist/esm/templates/types.js.map +1 -0
- package/dist/esm/templates/use-template.js +16 -0
- package/dist/esm/templates/use-template.js.map +1 -0
- package/dist/esm/theme/index.js +2 -0
- package/dist/esm/theme/index.js.map +1 -0
- package/dist/esm/theme/utils.js +11 -0
- package/dist/esm/theme/utils.js.map +1 -0
- package/dist/esm/user/actions.js +5 -52
- package/dist/esm/user/actions.js.map +1 -1
- package/dist/esm/user/index.js +4 -4
- package/dist/esm/user/index.js.map +1 -1
- package/dist/esm/user/reducer.js +4 -46
- package/dist/esm/user/reducer.js.map +1 -1
- package/dist/esm/user/resolvers.js +2 -2
- package/dist/esm/user/resolvers.js.map +1 -1
- package/dist/esm/user/selectors.js +1 -4
- package/dist/esm/user/selectors.js.map +1 -1
- package/dist/esm/users/types.js +2 -0
- package/dist/esm/users/types.js.map +1 -0
- package/dist/esm/users/use-send-invites.js +16 -0
- package/dist/esm/users/use-send-invites.js.map +1 -0
- package/dist/esm/wpcom-plans-ui/actions.js +14 -0
- package/dist/esm/wpcom-plans-ui/actions.js.map +1 -0
- package/dist/esm/wpcom-plans-ui/constants.js +2 -0
- package/dist/esm/wpcom-plans-ui/constants.js.map +1 -0
- package/dist/esm/wpcom-plans-ui/index.js +14 -0
- package/dist/esm/wpcom-plans-ui/index.js.map +1 -0
- package/dist/esm/wpcom-plans-ui/reducer.js +27 -0
- package/dist/esm/wpcom-plans-ui/reducer.js.map +1 -0
- package/dist/esm/wpcom-plans-ui/selectors.js +12 -0
- package/dist/esm/wpcom-plans-ui/selectors.js.map +1 -0
- package/dist/esm/wpcom-plans-ui/types.js +2 -0
- package/dist/esm/wpcom-plans-ui/types.js.map +1 -0
- package/dist/esm/wpcom-request-controls/index.js +0 -1
- package/dist/esm/wpcom-request-controls/index.js.map +1 -1
- package/dist/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/add-ons/constants.d.ts +9 -0
- package/dist/types/add-ons/constants.d.ts.map +1 -0
- package/dist/types/add-ons/hooks/use-add-on-checkout-link.d.ts +9 -0
- package/dist/types/add-ons/hooks/use-add-on-checkout-link.d.ts.map +1 -0
- package/dist/types/add-ons/hooks/use-add-on-display-cost.d.ts +5 -0
- package/dist/types/add-ons/hooks/use-add-on-display-cost.d.ts.map +1 -0
- package/dist/types/add-ons/hooks/use-add-on-prices.d.ts +9 -0
- package/dist/types/add-ons/hooks/use-add-on-prices.d.ts.map +1 -0
- package/dist/types/add-ons/hooks/use-add-on-purchase-status.d.ts +17 -0
- package/dist/types/add-ons/hooks/use-add-on-purchase-status.d.ts.map +1 -0
- package/dist/types/add-ons/hooks/use-add-ons.d.ts +8 -0
- package/dist/types/add-ons/hooks/use-add-ons.d.ts.map +1 -0
- package/dist/types/add-ons/hooks/use-available-storage-add-ons.d.ts +13 -0
- package/dist/types/add-ons/hooks/use-available-storage-add-ons.d.ts.map +1 -0
- package/dist/types/add-ons/hooks/use-storage-add-ons.d.ts +6 -0
- package/dist/types/add-ons/hooks/use-storage-add-ons.d.ts.map +1 -0
- package/dist/types/add-ons/icons/custom-design.d.ts +3 -0
- package/dist/types/add-ons/icons/custom-design.d.ts.map +1 -0
- package/dist/types/add-ons/icons/jetpack-ai.d.ts +3 -0
- package/dist/types/add-ons/icons/jetpack-ai.d.ts.map +1 -0
- package/dist/types/add-ons/icons/jetpack-stats.d.ts +3 -0
- package/dist/types/add-ons/icons/jetpack-stats.d.ts.map +1 -0
- package/dist/types/add-ons/icons/space-upgrade.d.ts +3 -0
- package/dist/types/add-ons/icons/space-upgrade.d.ts.map +1 -0
- package/dist/types/add-ons/icons/unlimited-themes.d.ts +3 -0
- package/dist/types/add-ons/icons/unlimited-themes.d.ts.map +1 -0
- package/dist/types/add-ons/index.d.ts +10 -0
- package/dist/types/add-ons/index.d.ts.map +1 -0
- package/dist/types/add-ons/lib/is-storage-addon-enabled.d.ts +7 -0
- package/dist/types/add-ons/lib/is-storage-addon-enabled.d.ts.map +1 -0
- package/dist/types/add-ons/types.d.ts +28 -0
- package/dist/types/add-ons/types.d.ts.map +1 -0
- package/dist/types/analyzer/actions.d.ts +37 -0
- package/dist/types/analyzer/actions.d.ts.map +1 -0
- package/dist/types/analyzer/constants.d.ts +2 -0
- package/dist/types/analyzer/constants.d.ts.map +1 -0
- package/dist/types/analyzer/index.d.ts +38 -0
- package/dist/types/analyzer/index.d.ts.map +1 -0
- package/dist/types/analyzer/reducers.d.ts +9 -0
- package/dist/types/analyzer/reducers.d.ts.map +1 -0
- package/dist/types/analyzer/selectors.d.ts +7 -0
- package/dist/types/analyzer/selectors.d.ts.map +1 -0
- package/dist/types/analyzer/types.d.ts +35 -0
- package/dist/types/analyzer/types.d.ts.map +1 -0
- package/dist/types/automated-transfer-eligibility/actions.d.ts +1 -1
- package/dist/types/automated-transfer-eligibility/actions.d.ts.map +1 -1
- package/dist/types/automated-transfer-eligibility/index.d.ts +0 -7
- package/dist/types/automated-transfer-eligibility/index.d.ts.map +1 -1
- package/dist/types/automated-transfer-eligibility/resolvers.d.ts +0 -1
- package/dist/types/automated-transfer-eligibility/resolvers.d.ts.map +1 -1
- package/dist/types/automated-transfer-eligibility/selectors.d.ts +4 -4
- package/dist/types/automated-transfer-eligibility/selectors.d.ts.map +1 -1
- package/dist/types/automated-transfer-eligibility/types.d.ts +4 -2
- package/dist/types/automated-transfer-eligibility/types.d.ts.map +1 -1
- package/dist/types/contextual-help/admin-sections.d.ts +34 -0
- package/dist/types/contextual-help/admin-sections.d.ts.map +1 -0
- package/dist/types/contextual-help/constants.d.ts +0 -4
- package/dist/types/contextual-help/constants.d.ts.map +1 -1
- package/dist/types/contextual-help/contextual-help.d.ts +9 -26
- package/dist/types/contextual-help/contextual-help.d.ts.map +1 -1
- package/dist/types/domain-suggestions/actions.d.ts +1 -1
- package/dist/types/domain-suggestions/actions.d.ts.map +1 -1
- package/dist/types/domain-suggestions/index.d.ts +1 -7
- package/dist/types/domain-suggestions/index.d.ts.map +1 -1
- package/dist/types/domain-suggestions/queries.d.ts +323 -0
- package/dist/types/domain-suggestions/queries.d.ts.map +1 -0
- package/dist/types/domain-suggestions/reducer.d.ts +1 -1
- package/dist/types/domain-suggestions/reducer.d.ts.map +1 -1
- package/dist/types/domain-suggestions/resolvers.d.ts +3 -3
- package/dist/types/domain-suggestions/selectors.d.ts +0 -1
- package/dist/types/domain-suggestions/selectors.d.ts.map +1 -1
- package/dist/types/domain-suggestions/types.d.ts +23 -15
- package/dist/types/domain-suggestions/types.d.ts.map +1 -1
- package/dist/types/domain-suggestions/utils.d.ts +0 -4
- package/dist/types/domain-suggestions/utils.d.ts.map +1 -1
- package/dist/types/help-center/actions.d.ts +96 -23
- package/dist/types/help-center/actions.d.ts.map +1 -1
- package/dist/types/help-center/index.d.ts +1 -7
- package/dist/types/help-center/index.d.ts.map +1 -1
- package/dist/types/help-center/reducer.d.ts +9 -7
- package/dist/types/help-center/reducer.d.ts.map +1 -1
- package/dist/types/help-center/selectors.d.ts +8 -6
- package/dist/types/help-center/selectors.d.ts.map +1 -1
- package/dist/types/help-center/types.d.ts +41 -0
- package/dist/types/help-center/types.d.ts.map +1 -0
- package/dist/types/index.d.ts +891 -17
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/launchpad-navigator/actions.d.ts +22 -0
- package/dist/types/launchpad-navigator/actions.d.ts.map +1 -0
- package/dist/types/launchpad-navigator/constants.d.ts +4 -0
- package/dist/types/launchpad-navigator/constants.d.ts.map +1 -0
- package/dist/types/launchpad-navigator/index.d.ts +4 -0
- package/dist/types/launchpad-navigator/index.d.ts.map +1 -0
- package/dist/types/launchpad-navigator/reducer.d.ts +9 -0
- package/dist/types/launchpad-navigator/reducer.d.ts.map +1 -0
- package/dist/types/launchpad-navigator/selectors.d.ts +4 -0
- package/dist/types/launchpad-navigator/selectors.d.ts.map +1 -0
- package/dist/types/mapped-types.d.ts +7 -16
- package/dist/types/mapped-types.d.ts.map +1 -1
- package/dist/types/mutations/use-domains-bulk-actions-mutation.d.ts +89 -0
- package/dist/types/mutations/use-domains-bulk-actions-mutation.d.ts.map +1 -0
- package/dist/types/onboard/actions.d.ts +283 -43
- package/dist/types/onboard/actions.d.ts.map +1 -1
- package/dist/types/onboard/constants.d.ts +25 -3
- package/dist/types/onboard/constants.d.ts.map +1 -1
- package/dist/types/onboard/index.d.ts +5 -5
- package/dist/types/onboard/index.d.ts.map +1 -1
- package/dist/types/onboard/reducer.d.ts +42 -14
- package/dist/types/onboard/reducer.d.ts.map +1 -1
- package/dist/types/onboard/selectors.d.ts +65 -24
- package/dist/types/onboard/selectors.d.ts.map +1 -1
- package/dist/types/onboard/types.d.ts +56 -0
- package/dist/types/onboard/types.d.ts.map +1 -0
- package/dist/types/onboard/utils.d.ts +4 -0
- package/dist/types/onboard/utils.d.ts.map +1 -0
- package/dist/types/plans/actions.d.ts +6 -6
- package/dist/types/plans/actions.d.ts.map +1 -1
- package/dist/types/plans/constants.d.ts +13 -4
- package/dist/types/plans/constants.d.ts.map +1 -1
- package/dist/types/plans/hooks/use-current-plan-expiry-date.d.ts +6 -0
- package/dist/types/plans/hooks/use-current-plan-expiry-date.d.ts.map +1 -0
- package/dist/types/plans/hooks/use-current-plan-term.d.ts +7 -0
- package/dist/types/plans/hooks/use-current-plan-term.d.ts.map +1 -0
- package/dist/types/plans/hooks/use-current-plan.d.ts +7 -0
- package/dist/types/plans/hooks/use-current-plan.d.ts.map +1 -0
- package/dist/types/plans/hooks/use-intro-offers-for-woo-express.d.ts +20 -0
- package/dist/types/plans/hooks/use-intro-offers-for-woo-express.d.ts.map +1 -0
- package/dist/types/plans/hooks/use-intro-offers.d.ts +18 -0
- package/dist/types/plans/hooks/use-intro-offers.d.ts.map +1 -0
- package/dist/types/plans/hooks/use-pricing-meta-for-grid-plans.d.ts +54 -0
- package/dist/types/plans/hooks/use-pricing-meta-for-grid-plans.d.ts.map +1 -0
- package/dist/types/plans/index.d.ts +13 -8
- package/dist/types/plans/index.d.ts.map +1 -1
- package/dist/types/plans/mock/apis/plans.d.ts.map +1 -1
- package/dist/types/plans/mock/index.d.ts +4 -0
- package/dist/types/plans/mock/index.d.ts.map +1 -1
- package/dist/types/plans/mock/next/index.d.ts +2 -0
- package/dist/types/plans/mock/next/index.d.ts.map +1 -0
- package/dist/types/plans/mock/next/store/plans.d.ts +13 -0
- package/dist/types/plans/mock/next/store/plans.d.ts.map +1 -0
- package/dist/types/plans/queries/lib/unpack-cost-overrides.d.ts +6 -0
- package/dist/types/plans/queries/lib/unpack-cost-overrides.d.ts.map +1 -0
- package/dist/types/plans/queries/lib/unpack-intro-offer.d.ts +7 -0
- package/dist/types/plans/queries/lib/unpack-intro-offer.d.ts.map +1 -0
- package/dist/types/plans/queries/lib/use-query-keys-factory.d.ts +6 -0
- package/dist/types/plans/queries/lib/use-query-keys-factory.d.ts.map +1 -0
- package/dist/types/plans/queries/use-plans.d.ts +16 -0
- package/dist/types/plans/queries/use-plans.d.ts.map +1 -0
- package/dist/types/plans/queries/use-site-plans.d.ts +16 -0
- package/dist/types/plans/queries/use-site-plans.d.ts.map +1 -0
- package/dist/types/plans/reducer.d.ts +2 -2
- package/dist/types/plans/reducer.d.ts.map +1 -1
- package/dist/types/plans/resolvers.d.ts +2 -2
- package/dist/types/plans/resolvers.d.ts.map +1 -1
- package/dist/types/plans/selectors.d.ts +2 -3
- package/dist/types/plans/selectors.d.ts.map +1 -1
- package/dist/types/plans/types.d.ts +189 -16
- package/dist/types/plans/types.d.ts.map +1 -1
- package/dist/types/plugins/index.d.ts +2 -0
- package/dist/types/plugins/index.d.ts.map +1 -0
- package/dist/types/plugins/one-week-persistence-config.d.ts +6 -0
- package/dist/types/plugins/one-week-persistence-config.d.ts.map +1 -0
- package/dist/types/products-list/actions.d.ts +4 -4
- package/dist/types/products-list/actions.d.ts.map +1 -1
- package/dist/types/products-list/index.d.ts +3 -6
- package/dist/types/products-list/index.d.ts.map +1 -1
- package/dist/types/products-list/queries/lib/use-query-keys-factory.d.ts +5 -0
- package/dist/types/products-list/queries/lib/use-query-keys-factory.d.ts.map +1 -0
- package/dist/types/products-list/queries/use-products.d.ts +14 -0
- package/dist/types/products-list/queries/use-products.d.ts.map +1 -0
- package/dist/types/products-list/reducer.d.ts +4 -4
- package/dist/types/products-list/reducer.d.ts.map +1 -1
- package/dist/types/products-list/resolvers.d.ts.map +1 -1
- package/dist/types/products-list/selectors.d.ts +4 -3
- package/dist/types/products-list/selectors.d.ts.map +1 -1
- package/dist/types/products-list/types.d.ts +34 -6
- package/dist/types/products-list/types.d.ts.map +1 -1
- package/dist/types/purchases/hooks/use-site-purchase-by-id.d.ts +8 -0
- package/dist/types/purchases/hooks/use-site-purchase-by-id.d.ts.map +1 -0
- package/dist/types/purchases/hooks/use-site-purchases-by-product-slug.d.ts +12 -0
- package/dist/types/purchases/hooks/use-site-purchases-by-product-slug.d.ts.map +1 -0
- package/dist/types/purchases/index.d.ts +14 -0
- package/dist/types/purchases/index.d.ts.map +1 -0
- package/dist/types/purchases/lib/assembler.d.ts +4 -0
- package/dist/types/purchases/lib/assembler.d.ts.map +1 -0
- package/dist/types/purchases/queries/lib/use-query-keys-factory.d.ts +5 -0
- package/dist/types/purchases/queries/lib/use-query-keys-factory.d.ts.map +1 -0
- package/dist/types/purchases/queries/use-site-purchases.d.ts +21 -0
- package/dist/types/purchases/queries/use-site-purchases.d.ts.map +1 -0
- package/dist/types/purchases/types.d.ts +321 -0
- package/dist/types/purchases/types.d.ts.map +1 -0
- package/dist/types/queries/use-all-domains-query.d.ts +12 -0
- package/dist/types/queries/use-all-domains-query.d.ts.map +1 -0
- package/dist/types/queries/use-bulk-domain-update-status-query.d.ts +45 -0
- package/dist/types/queries/use-bulk-domain-update-status-query.d.ts.map +1 -0
- package/dist/types/queries/use-happiness-engineers-query.d.ts +2 -2
- package/dist/types/queries/use-happiness-engineers-query.d.ts.map +1 -1
- package/dist/types/queries/use-launchpad-navigator.d.ts +15 -0
- package/dist/types/queries/use-launchpad-navigator.d.ts.map +1 -0
- package/dist/types/queries/use-launchpad.d.ts +64 -0
- package/dist/types/queries/use-launchpad.d.ts.map +1 -0
- package/dist/types/queries/use-site-domains-query.d.ts +129 -0
- package/dist/types/queries/use-site-domains-query.d.ts.map +1 -0
- package/dist/types/queries/use-site-intent.d.ts +2 -2
- package/dist/types/queries/use-site-intent.d.ts.map +1 -1
- package/dist/types/queries/use-site-query.d.ts +5 -0
- package/dist/types/queries/use-site-query.d.ts.map +1 -0
- package/dist/types/reader/constants.d.ts +21 -1
- package/dist/types/reader/constants.d.ts.map +1 -1
- package/dist/types/reader/contexts/index.d.ts +3 -0
- package/dist/types/reader/contexts/index.d.ts.map +1 -0
- package/dist/types/reader/contexts/site-subscriptions-query-props.d.ts +17 -0
- package/dist/types/reader/contexts/site-subscriptions-query-props.d.ts.map +1 -0
- package/dist/types/reader/contexts/unsubscribed-feeds-search.d.ts +12 -0
- package/dist/types/reader/contexts/unsubscribed-feeds-search.d.ts.map +1 -0
- package/dist/types/reader/helpers/index.d.ts +44 -0
- package/dist/types/reader/helpers/index.d.ts.map +1 -0
- package/dist/types/reader/helpers/optimistic-update.d.ts +18 -0
- package/dist/types/reader/helpers/optimistic-update.d.ts.map +1 -0
- package/dist/types/reader/helpers/query-key.d.ts +4 -0
- package/dist/types/reader/helpers/query-key.d.ts.map +1 -0
- package/dist/types/reader/helpers/type-guards.d.ts +5 -0
- package/dist/types/reader/helpers/type-guards.d.ts.map +1 -0
- package/dist/types/reader/helpers/validators.d.ts +14 -0
- package/dist/types/reader/helpers/validators.d.ts.map +1 -0
- package/dist/types/reader/hooks/index.d.ts +5 -0
- package/dist/types/reader/hooks/index.d.ts.map +1 -0
- package/dist/types/reader/hooks/use-cache-key.d.ts +3 -0
- package/dist/types/reader/hooks/use-cache-key.d.ts.map +1 -0
- package/dist/types/reader/hooks/use-is-logged-in.d.ts +6 -0
- package/dist/types/reader/hooks/use-is-logged-in.d.ts.map +1 -0
- package/dist/types/reader/hooks/use-is-query-enabled.d.ts +3 -0
- package/dist/types/reader/hooks/use-is-query-enabled.d.ts.map +1 -0
- package/dist/types/reader/hooks/use-subscriber-email-address.d.ts +3 -0
- package/dist/types/reader/hooks/use-subscriber-email-address.d.ts.map +1 -0
- package/dist/types/reader/index.d.ts +864 -12
- package/dist/types/reader/index.d.ts.map +1 -1
- package/dist/types/reader/mutations/index.d.ts +14 -0
- package/dist/types/reader/mutations/index.d.ts.map +1 -0
- package/dist/types/reader/mutations/use-pending-post-confirm-mutation.d.ts +13 -0
- package/dist/types/reader/mutations/use-pending-post-confirm-mutation.d.ts.map +1 -0
- package/dist/types/reader/mutations/use-pending-post-delete-mutation.d.ts +13 -0
- package/dist/types/reader/mutations/use-pending-post-delete-mutation.d.ts.map +1 -0
- package/dist/types/reader/mutations/use-pending-site-confirm-mutation.d.ts +14 -0
- package/dist/types/reader/mutations/use-pending-site-confirm-mutation.d.ts.map +1 -0
- package/dist/types/reader/mutations/use-pending-site-delete-mutation.d.ts +13 -0
- package/dist/types/reader/mutations/use-pending-site-delete-mutation.d.ts.map +1 -0
- package/dist/types/reader/mutations/use-post-notify-me-of-new-comments-mutation.d.ts +13 -0
- package/dist/types/reader/mutations/use-post-notify-me-of-new-comments-mutation.d.ts.map +1 -0
- package/dist/types/reader/mutations/use-post-unsubscribe-mutation.d.ts +25 -0
- package/dist/types/reader/mutations/use-post-unsubscribe-mutation.d.ts.map +1 -0
- package/dist/types/reader/mutations/use-site-delivery-frequency-mutation.d.ts +27 -0
- package/dist/types/reader/mutations/use-site-delivery-frequency-mutation.d.ts.map +1 -0
- package/dist/types/reader/mutations/use-site-email-me-new-comments-mutation.d.ts +19 -0
- package/dist/types/reader/mutations/use-site-email-me-new-comments-mutation.d.ts.map +1 -0
- package/dist/types/reader/mutations/use-site-email-me-new-posts-mutation.d.ts +19 -0
- package/dist/types/reader/mutations/use-site-email-me-new-posts-mutation.d.ts.map +1 -0
- package/dist/types/reader/mutations/use-site-notify-me-of-new-posts-mutation.d.ts +19 -0
- package/dist/types/reader/mutations/use-site-notify-me-of-new-posts-mutation.d.ts.map +1 -0
- package/dist/types/reader/mutations/use-site-subscribe-mutation.d.ts +29 -0
- package/dist/types/reader/mutations/use-site-subscribe-mutation.d.ts.map +1 -0
- package/dist/types/reader/mutations/use-site-unsubscribe-mutation.d.ts +21 -0
- package/dist/types/reader/mutations/use-site-unsubscribe-mutation.d.ts.map +1 -0
- package/dist/types/reader/mutations/use-user-settings-mutation.d.ts +15 -0
- package/dist/types/reader/mutations/use-user-settings-mutation.d.ts.map +1 -0
- package/dist/types/reader/queries/index.d.ts +12 -0
- package/dist/types/reader/queries/index.d.ts.map +1 -0
- package/dist/types/reader/queries/use-pending-post-subscriptions-query.d.ts +120 -0
- package/dist/types/reader/queries/use-pending-post-subscriptions-query.d.ts.map +1 -0
- package/dist/types/reader/queries/use-pending-site-subscriptions-query.d.ts +120 -0
- package/dist/types/reader/queries/use-pending-site-subscriptions-query.d.ts.map +1 -0
- package/dist/types/reader/queries/use-post-subscriptions-query.d.ts +228 -0
- package/dist/types/reader/queries/use-post-subscriptions-query.d.ts.map +1 -0
- package/dist/types/reader/queries/use-read-feed-query.d.ts +26 -0
- package/dist/types/reader/queries/use-read-feed-query.d.ts.map +1 -0
- package/dist/types/reader/queries/use-read-feed-search-query.d.ts +34 -0
- package/dist/types/reader/queries/use-read-feed-search-query.d.ts.map +1 -0
- package/dist/types/reader/queries/use-read-feed-site-query.d.ts +15 -0
- package/dist/types/reader/queries/use-read-feed-site-query.d.ts.map +1 -0
- package/dist/types/reader/queries/use-site-subscription-details-query.d.ts +4 -0
- package/dist/types/reader/queries/use-site-subscription-details-query.d.ts.map +1 -0
- package/dist/types/reader/queries/use-site-subscriptions-query.d.ts +145 -0
- package/dist/types/reader/queries/use-site-subscriptions-query.d.ts.map +1 -0
- package/dist/types/reader/queries/use-subscriptions-count-query.d.ts +5 -0
- package/dist/types/reader/queries/use-subscriptions-count-query.d.ts.map +1 -0
- package/dist/types/reader/queries/use-user-settings-query.d.ts +9 -0
- package/dist/types/reader/queries/use-user-settings-query.d.ts.map +1 -0
- package/dist/types/reader/types/index.d.ts +187 -0
- package/dist/types/reader/types/index.d.ts.map +1 -0
- package/dist/types/shared-types.d.ts +1 -0
- package/dist/types/shared-types.d.ts.map +1 -1
- package/dist/types/site/actions.d.ts +84 -27
- package/dist/types/site/actions.d.ts.map +1 -1
- package/dist/types/site/constants.d.ts +1 -0
- package/dist/types/site/constants.d.ts.map +1 -1
- package/dist/types/site/index.d.ts +9 -8
- package/dist/types/site/index.d.ts.map +1 -1
- package/dist/types/site/queries/lib/use-query-keys-factory.d.ts +8 -0
- package/dist/types/site/queries/lib/use-query-keys-factory.d.ts.map +1 -0
- package/dist/types/site/queries/use-site-features.d.ts +11 -0
- package/dist/types/site/queries/use-site-features.d.ts.map +1 -0
- package/dist/types/site/queries/use-site-media-storage.d.ts +12 -0
- package/dist/types/site/queries/use-site-media-storage.d.ts.map +1 -0
- package/dist/types/site/queries/use-site-user-query.d.ts +9 -0
- package/dist/types/site/queries/use-site-user-query.d.ts.map +1 -0
- package/dist/types/site/queries/use-site.d.ts +11 -0
- package/dist/types/site/queries/use-site.d.ts.map +1 -0
- package/dist/types/site/reducer.d.ts +19 -2
- package/dist/types/site/reducer.d.ts.map +1 -1
- package/dist/types/site/resolvers.d.ts +5 -3
- package/dist/types/site/resolvers.d.ts.map +1 -1
- package/dist/types/site/selectors.d.ts +27 -84
- package/dist/types/site/selectors.d.ts.map +1 -1
- package/dist/types/site/types.d.ts +356 -115
- package/dist/types/site/types.d.ts.map +1 -1
- package/dist/types/site/utils.d.ts +2 -0
- package/dist/types/site/utils.d.ts.map +1 -0
- package/dist/types/site-reset/index.d.ts +4 -0
- package/dist/types/site-reset/index.d.ts.map +1 -0
- package/dist/types/site-reset/use-site-reset-content-summary-query.d.ts +10 -0
- package/dist/types/site-reset/use-site-reset-content-summary-query.d.ts.map +1 -0
- package/dist/types/site-reset/use-site-reset-mutation.d.ts +96 -0
- package/dist/types/site-reset/use-site-reset-mutation.d.ts.map +1 -0
- package/dist/types/site-reset/use-site-reset-status-query.d.ts +8 -0
- package/dist/types/site-reset/use-site-reset-status-query.d.ts.map +1 -0
- package/dist/types/starter-designs-queries/index.d.ts +4 -0
- package/dist/types/starter-designs-queries/index.d.ts.map +1 -0
- package/dist/types/starter-designs-queries/types.d.ts +7 -2
- package/dist/types/starter-designs-queries/types.d.ts.map +1 -1
- package/dist/types/starter-designs-queries/use-starter-design-by-slug.d.ts +9 -0
- package/dist/types/starter-designs-queries/use-starter-design-by-slug.d.ts.map +1 -0
- package/dist/types/starter-designs-queries/use-starter-designs-query.d.ts +43 -0
- package/dist/types/starter-designs-queries/use-starter-designs-query.d.ts.map +1 -0
- package/dist/types/stepper-internal/actions.d.ts +11 -0
- package/dist/types/stepper-internal/actions.d.ts.map +1 -0
- package/dist/types/stepper-internal/constants.d.ts +2 -0
- package/dist/types/stepper-internal/constants.d.ts.map +1 -0
- package/dist/types/stepper-internal/index.d.ts +8 -0
- package/dist/types/stepper-internal/index.d.ts.map +1 -0
- package/dist/types/stepper-internal/reducer.d.ts +15 -0
- package/dist/types/stepper-internal/reducer.d.ts.map +1 -0
- package/dist/types/stepper-internal/selectors.d.ts +14 -0
- package/dist/types/stepper-internal/selectors.d.ts.map +1 -0
- package/dist/types/subscriber/actions.d.ts +100 -0
- package/dist/types/subscriber/actions.d.ts.map +1 -0
- package/dist/types/subscriber/constants.d.ts +2 -0
- package/dist/types/subscriber/constants.d.ts.map +1 -0
- package/dist/types/subscriber/index.d.ts +101 -0
- package/dist/types/subscriber/index.d.ts.map +1 -0
- package/dist/types/subscriber/reducers.d.ts +10 -0
- package/dist/types/subscriber/reducers.d.ts.map +1 -0
- package/dist/types/subscriber/selectors.d.ts +16 -0
- package/dist/types/subscriber/selectors.d.ts.map +1 -0
- package/dist/types/subscriber/types.d.ts +41 -0
- package/dist/types/subscriber/types.d.ts.map +1 -0
- package/dist/types/templates/index.d.ts +3 -0
- package/dist/types/templates/index.d.ts.map +1 -0
- package/dist/types/templates/types.d.ts +28 -0
- package/dist/types/templates/types.d.ts.map +1 -0
- package/dist/types/templates/use-template.d.ts +8 -0
- package/dist/types/templates/use-template.d.ts.map +1 -0
- package/dist/types/theme/index.d.ts +2 -0
- package/dist/types/theme/index.d.ts.map +1 -0
- package/dist/types/theme/utils.d.ts +5 -0
- package/dist/types/theme/utils.d.ts.map +1 -0
- package/dist/types/user/actions.d.ts +7 -41
- package/dist/types/user/actions.d.ts.map +1 -1
- package/dist/types/user/index.d.ts +1 -9
- package/dist/types/user/index.d.ts.map +1 -1
- package/dist/types/user/reducer.d.ts +3 -10
- package/dist/types/user/reducer.d.ts.map +1 -1
- package/dist/types/user/resolvers.d.ts +2 -3
- package/dist/types/user/resolvers.d.ts.map +1 -1
- package/dist/types/user/selectors.d.ts +1 -8
- package/dist/types/user/selectors.d.ts.map +1 -1
- package/dist/types/user/types.d.ts +9 -41
- package/dist/types/user/types.d.ts.map +1 -1
- package/dist/types/users/types.d.ts +44 -0
- package/dist/types/users/types.d.ts.map +1 -0
- package/dist/types/users/use-send-invites.d.ts +7 -0
- package/dist/types/users/use-send-invites.d.ts.map +1 -0
- package/dist/types/wpcom-plans-ui/actions.d.ts +21 -0
- package/dist/types/wpcom-plans-ui/actions.d.ts.map +1 -0
- package/dist/types/wpcom-plans-ui/constants.d.ts +2 -0
- package/dist/types/wpcom-plans-ui/constants.d.ts.map +1 -0
- package/dist/types/wpcom-plans-ui/index.d.ts +6 -0
- package/dist/types/wpcom-plans-ui/index.d.ts.map +1 -0
- package/dist/types/wpcom-plans-ui/reducer.d.ts +10 -0
- package/dist/types/wpcom-plans-ui/reducer.d.ts.map +1 -0
- package/dist/types/wpcom-plans-ui/selectors.d.ts +6 -0
- package/dist/types/wpcom-plans-ui/selectors.d.ts.map +1 -0
- package/dist/types/wpcom-plans-ui/types.d.ts +13 -0
- package/dist/types/wpcom-plans-ui/types.d.ts.map +1 -0
- package/dist/types/wpcom-request-controls/index.d.ts +2 -3
- package/dist/types/wpcom-request-controls/index.d.ts.map +1 -1
- package/package.json +31 -14
- package/src/add-ons/constants.ts +17 -0
- package/src/add-ons/hooks/use-add-on-checkout-link.ts +38 -0
- package/src/add-ons/hooks/use-add-on-display-cost.ts +28 -0
- package/src/add-ons/hooks/use-add-on-prices.ts +68 -0
- package/src/add-ons/hooks/use-add-on-purchase-status.ts +43 -0
- package/src/add-ons/hooks/use-add-ons.ts +275 -0
- package/src/add-ons/hooks/use-available-storage-add-ons.ts +38 -0
- package/src/add-ons/hooks/use-storage-add-ons.ts +18 -0
- package/src/add-ons/icons/custom-design.tsx +20 -0
- package/src/add-ons/icons/jetpack-ai.tsx +24 -0
- package/src/add-ons/icons/jetpack-stats.tsx +19 -0
- package/src/add-ons/icons/space-upgrade.tsx +18 -0
- package/src/add-ons/icons/unlimited-themes.tsx +21 -0
- package/src/add-ons/index.ts +10 -0
- package/src/add-ons/lib/is-storage-addon-enabled.ts +9 -0
- package/src/add-ons/types.ts +28 -0
- package/src/analyzer/actions.ts +50 -0
- package/src/analyzer/constants.ts +1 -0
- package/src/analyzer/index.ts +17 -0
- package/src/analyzer/reducers.ts +36 -0
- package/src/analyzer/selectors.ts +11 -0
- package/src/analyzer/types.ts +37 -0
- package/src/automated-transfer-eligibility/index.ts +1 -9
- package/src/automated-transfer-eligibility/resolvers.ts +0 -1
- package/src/automated-transfer-eligibility/selectors.ts +5 -8
- package/src/automated-transfer-eligibility/types.ts +4 -1
- package/src/contextual-help/admin-sections.ts +404 -0
- package/src/contextual-help/constants.ts +0 -5
- package/src/contextual-help/contextual-help.tsx +12 -1877
- package/src/domain-suggestions/actions.ts +5 -5
- package/src/domain-suggestions/index.ts +4 -9
- package/src/domain-suggestions/queries.ts +85 -0
- package/src/domain-suggestions/selectors.ts +12 -5
- package/src/domain-suggestions/types.ts +23 -10
- package/src/domain-suggestions/utils.ts +0 -4
- package/src/help-center/actions.ts +129 -41
- package/src/help-center/index.ts +9 -9
- package/src/help-center/reducer.ts +66 -22
- package/src/help-center/selectors.ts +8 -3
- package/src/help-center/types.ts +47 -0
- package/src/index.ts +45 -24
- package/src/launchpad-navigator/actions.ts +85 -0
- package/src/launchpad-navigator/constants.ts +4 -0
- package/src/launchpad-navigator/index.ts +16 -0
- package/src/launchpad-navigator/reducer.ts +35 -0
- package/src/launchpad-navigator/selectors.ts +6 -0
- package/src/mapped-types.ts +1 -17
- package/src/mutations/use-domains-bulk-actions-mutation.ts +90 -0
- package/src/onboard/actions.ts +309 -61
- package/src/onboard/constants.ts +25 -2
- package/src/onboard/index.ts +32 -16
- package/src/onboard/reducer.ts +368 -39
- package/src/onboard/selectors.ts +50 -14
- package/src/onboard/test/actions.ts +25 -0
- package/src/onboard/test/reducers.ts +26 -0
- package/src/onboard/test/selectors.ts +22 -0
- package/src/onboard/test/utils.ts +29 -0
- package/src/onboard/types.ts +68 -0
- package/src/onboard/utils.ts +54 -0
- package/src/plans/constants.ts +25 -3
- package/src/plans/hooks/test/use-current-plan.ts +43 -0
- package/src/plans/hooks/test/use-intro-offers.ts +97 -0
- package/src/plans/hooks/test/use-pricing-meta-for-grid-plans.ts +295 -0
- package/src/plans/hooks/use-current-plan-expiry-date.ts +17 -0
- package/src/plans/hooks/use-current-plan-term.ts +18 -0
- package/src/plans/hooks/use-current-plan.ts +21 -0
- package/src/plans/hooks/use-intro-offers-for-woo-express.ts +49 -0
- package/src/plans/hooks/use-intro-offers.ts +45 -0
- package/src/plans/hooks/use-pricing-meta-for-grid-plans.ts +325 -0
- package/src/plans/index.ts +18 -8
- package/src/plans/mock/apis/plans.ts +9 -0
- package/src/plans/mock/index.ts +4 -0
- package/src/plans/mock/next/README.md +3 -0
- package/src/plans/mock/next/index.ts +1 -0
- package/src/plans/mock/next/store/plans.ts +102 -0
- package/src/plans/mock/store/products.ts +2 -2
- package/src/plans/queries/lib/unpack-cost-overrides.ts +18 -0
- package/src/plans/queries/lib/unpack-intro-offer.ts +40 -0
- package/src/plans/queries/lib/use-query-keys-factory.ts +6 -0
- package/src/plans/queries/use-plans.ts +79 -0
- package/src/plans/queries/use-site-plans.ts +82 -0
- package/src/plans/resolvers.ts +22 -19
- package/src/plans/selectors.ts +22 -21
- package/src/plans/types.ts +223 -12
- package/src/plugins/index.ts +17 -0
- package/src/plugins/one-week-persistence-config.ts +79 -0
- package/src/products-list/actions.ts +2 -2
- package/src/products-list/index.ts +12 -20
- package/src/products-list/queries/lib/use-query-keys-factory.ts +5 -0
- package/src/products-list/queries/use-products.ts +65 -0
- package/src/products-list/reducer.ts +5 -2
- package/src/products-list/resolvers.ts +2 -2
- package/src/products-list/selectors.ts +16 -2
- package/src/products-list/test/actions.ts +3 -2
- package/src/products-list/test/selectors.ts +3 -8
- package/src/products-list/types.ts +42 -6
- package/src/purchases/hooks/test/use-site-purchases-by-product-slug.ts +61 -0
- package/src/purchases/hooks/use-site-purchase-by-id.ts +17 -0
- package/src/purchases/hooks/use-site-purchases-by-product-slug.ts +34 -0
- package/src/purchases/index.ts +17 -0
- package/src/purchases/lib/assembler.ts +157 -0
- package/src/purchases/queries/lib/use-query-keys-factory.ts +5 -0
- package/src/purchases/queries/use-site-purchases.ts +52 -0
- package/src/purchases/types.ts +353 -0
- package/src/queries/use-all-domains-query.ts +59 -0
- package/src/queries/use-bulk-domain-update-status-query.ts +125 -0
- package/src/queries/use-happiness-engineers-query.ts +8 -9
- package/src/queries/use-launchpad-navigator.ts +56 -0
- package/src/queries/use-launchpad.ts +244 -0
- package/src/queries/use-site-domains-query.ts +165 -0
- package/src/queries/use-site-intent.ts +8 -10
- package/src/queries/use-site-query.ts +25 -0
- package/src/reader/constants.ts +24 -1
- package/src/reader/contexts/index.ts +8 -0
- package/src/reader/contexts/site-subscriptions-query-props.tsx +48 -0
- package/src/reader/contexts/unsubscribed-feeds-search.tsx +35 -0
- package/src/reader/helpers/index.ts +127 -0
- package/src/reader/helpers/optimistic-update.ts +85 -0
- package/src/reader/helpers/query-key.ts +17 -0
- package/src/reader/helpers/type-guards.ts +35 -0
- package/src/reader/helpers/validators.ts +34 -0
- package/src/reader/hooks/index.ts +4 -0
- package/src/reader/hooks/use-cache-key.ts +9 -0
- package/src/reader/hooks/use-is-logged-in.ts +22 -0
- package/src/reader/hooks/use-is-query-enabled.ts +13 -0
- package/src/reader/hooks/use-subscriber-email-address.ts +25 -0
- package/src/reader/index.ts +67 -33
- package/src/reader/mutations/index.ts +13 -0
- package/src/reader/mutations/test/use-site-delivery-frequency-mutation.test.tsx +66 -0
- package/src/reader/mutations/use-pending-post-confirm-mutation.ts +116 -0
- package/src/reader/mutations/use-pending-post-delete-mutation.ts +109 -0
- package/src/reader/mutations/use-pending-site-confirm-mutation.ts +115 -0
- package/src/reader/mutations/use-pending-site-delete-mutation.ts +109 -0
- package/src/reader/mutations/use-post-notify-me-of-new-comments-mutation.ts +89 -0
- package/src/reader/mutations/use-post-unsubscribe-mutation.ts +123 -0
- package/src/reader/mutations/use-site-delivery-frequency-mutation.ts +148 -0
- package/src/reader/mutations/use-site-email-me-new-comments-mutation.ts +140 -0
- package/src/reader/mutations/use-site-email-me-new-posts-mutation.ts +143 -0
- package/src/reader/mutations/use-site-notify-me-of-new-posts-mutation.ts +145 -0
- package/src/reader/mutations/use-site-subscribe-mutation.ts +181 -0
- package/src/reader/mutations/use-site-unsubscribe-mutation.ts +233 -0
- package/src/reader/mutations/use-user-settings-mutation.ts +66 -0
- package/src/reader/queries/index.ts +15 -0
- package/src/reader/queries/test/use-read-feed-search-query.tsx +55 -0
- package/src/reader/queries/test/use-site-subscriptions-query.tsx +180 -0
- package/src/reader/queries/use-pending-post-subscriptions-query.ts +72 -0
- package/src/reader/queries/use-pending-site-subscriptions-query.ts +72 -0
- package/src/reader/queries/use-post-subscriptions-query.ts +135 -0
- package/src/reader/queries/use-read-feed-query.ts +43 -0
- package/src/reader/queries/use-read-feed-search-query.ts +72 -0
- package/src/reader/queries/use-read-feed-site-query.ts +35 -0
- package/src/reader/queries/use-site-subscription-details-query.ts +31 -0
- package/src/reader/queries/use-site-subscriptions-query.ts +148 -0
- package/src/reader/queries/use-subscriptions-count-query.ts +26 -0
- package/src/reader/queries/use-user-settings-query.ts +24 -0
- package/src/reader/types/index.ts +204 -0
- package/src/shared-types.ts +10 -0
- package/src/site/actions.ts +308 -38
- package/src/site/constants.ts +7 -0
- package/src/site/index.ts +15 -9
- package/src/site/queries/lib/use-query-keys-factory.ts +15 -0
- package/src/site/queries/use-site-features.ts +28 -0
- package/src/site/queries/use-site-media-storage.ts +36 -0
- package/src/site/queries/use-site-user-query.ts +26 -0
- package/src/site/queries/use-site.ts +28 -0
- package/src/site/reducer.ts +63 -0
- package/src/site/resolvers.ts +25 -5
- package/src/site/selectors.ts +63 -38
- package/src/site/test/actions.ts +172 -7
- package/src/site/test/reducer.ts +19 -1
- package/src/site/test/selectors.ts +98 -2
- package/src/site/types.ts +397 -111
- package/src/site/utils.ts +38 -0
- package/src/site-reset/index.ts +3 -0
- package/src/site-reset/test/use-site-reset-mutation.tsx +76 -0
- package/src/site-reset/use-site-reset-content-summary-query.ts +26 -0
- package/src/site-reset/use-site-reset-mutation.ts +39 -0
- package/src/site-reset/use-site-reset-status-query.ts +24 -0
- package/src/starter-designs-queries/index.ts +3 -0
- package/src/starter-designs-queries/types.ts +6 -2
- package/src/starter-designs-queries/use-starter-design-by-slug.ts +34 -0
- package/src/starter-designs-queries/use-starter-designs-query.ts +125 -0
- package/src/stepper-internal/actions.ts +13 -0
- package/src/stepper-internal/constants.ts +1 -0
- package/src/stepper-internal/index.ts +25 -0
- package/src/stepper-internal/reducer.ts +31 -0
- package/src/stepper-internal/selectors.ts +4 -0
- package/src/stepper-internal/test/action.ts +22 -0
- package/src/stepper-internal/test/reducer.ts +33 -0
- package/src/stepper-internal/test/selectors.ts +29 -0
- package/src/subscriber/actions.ts +191 -0
- package/src/subscriber/constants.ts +1 -0
- package/src/subscriber/index.ts +17 -0
- package/src/subscriber/reducers.ts +107 -0
- package/src/subscriber/selectors.ts +7 -0
- package/src/subscriber/test/reducers.ts +220 -0
- package/src/subscriber/types.ts +46 -0
- package/src/templates/index.ts +2 -0
- package/src/templates/types.ts +28 -0
- package/src/templates/use-template.ts +27 -0
- package/src/theme/index.ts +1 -0
- package/src/theme/test/utils.ts +13 -0
- package/src/theme/utils.ts +10 -0
- package/src/user/README.md +3 -79
- package/src/user/actions.ts +8 -74
- package/src/user/index.ts +5 -12
- package/src/user/reducer.ts +5 -56
- package/src/user/resolvers.ts +2 -3
- package/src/user/selectors.ts +1 -5
- package/src/user/test/reducer.ts +2 -119
- package/src/user/test/resolvers.ts +1 -1
- package/src/user/types.ts +9 -46
- package/src/users/types.ts +42 -0
- package/src/users/use-send-invites.ts +21 -0
- package/src/wpcom-plans-ui/README.md +3 -0
- package/src/wpcom-plans-ui/actions.ts +33 -0
- package/src/wpcom-plans-ui/constants.ts +1 -0
- package/src/wpcom-plans-ui/index.ts +19 -0
- package/src/wpcom-plans-ui/reducer.ts +40 -0
- package/src/wpcom-plans-ui/selectors.ts +20 -0
- package/src/wpcom-plans-ui/test/reducer.js +15 -0
- package/src/wpcom-plans-ui/test/selectors.js +19 -0
- package/src/wpcom-plans-ui/types.ts +14 -0
- package/src/wpcom-request-controls/index.ts +5 -6
- package/dist/cjs/auth/actions.js +0 -200
- package/dist/cjs/auth/actions.js.map +0 -1
- package/dist/cjs/auth/constants.js +0 -6
- package/dist/cjs/auth/constants.js.map +0 -1
- package/dist/cjs/auth/controls.js +0 -46
- package/dist/cjs/auth/controls.js.map +0 -1
- package/dist/cjs/auth/index.js +0 -36
- package/dist/cjs/auth/index.js.map +0 -1
- package/dist/cjs/auth/reducer.js +0 -80
- package/dist/cjs/auth/reducer.js.map +0 -1
- package/dist/cjs/auth/selectors.js +0 -14
- package/dist/cjs/auth/selectors.js.map +0 -1
- package/dist/cjs/auth/types.js.map +0 -1
- package/dist/cjs/auth/utils.js +0 -9
- package/dist/cjs/auth/utils.js.map +0 -1
- package/dist/cjs/i18n/actions.js +0 -10
- package/dist/cjs/i18n/actions.js.map +0 -1
- package/dist/cjs/i18n/constants.js +0 -6
- package/dist/cjs/i18n/constants.js.map +0 -1
- package/dist/cjs/i18n/index.js +0 -27
- package/dist/cjs/i18n/index.js.map +0 -1
- package/dist/cjs/i18n/reducer.js +0 -19
- package/dist/cjs/i18n/reducer.js.map +0 -1
- package/dist/cjs/i18n/resolvers.js +0 -16
- package/dist/cjs/i18n/resolvers.js.map +0 -1
- package/dist/cjs/i18n/selectors.js +0 -6
- package/dist/cjs/i18n/selectors.js.map +0 -1
- package/dist/cjs/i18n/types.js.map +0 -1
- package/dist/cjs/launch/actions.js +0 -123
- package/dist/cjs/launch/actions.js.map +0 -1
- package/dist/cjs/launch/constants.js +0 -7
- package/dist/cjs/launch/constants.js.map +0 -1
- package/dist/cjs/launch/data.js +0 -16
- package/dist/cjs/launch/data.js.map +0 -1
- package/dist/cjs/launch/index.js +0 -38
- package/dist/cjs/launch/index.js.map +0 -1
- package/dist/cjs/launch/persist.js +0 -6
- package/dist/cjs/launch/persist.js.map +0 -1
- package/dist/cjs/launch/reducer.js +0 -133
- package/dist/cjs/launch/reducer.js.map +0 -1
- package/dist/cjs/launch/selectors.js +0 -77
- package/dist/cjs/launch/selectors.js.map +0 -1
- package/dist/cjs/launch/types.js.map +0 -1
- package/dist/cjs/onboard/persist.js +0 -6
- package/dist/cjs/onboard/persist.js.map +0 -1
- package/dist/cjs/persistence-config-factory/index.js +0 -77
- package/dist/cjs/persistence-config-factory/index.js.map +0 -1
- package/dist/cjs/queries/use-has-3rd-party-cookies.js +0 -40
- package/dist/cjs/queries/use-has-3rd-party-cookies.js.map +0 -1
- package/dist/cjs/queries/use-has-seen-whats-new-modal-query.js +0 -43
- package/dist/cjs/queries/use-has-seen-whats-new-modal-query.js.map +0 -1
- package/dist/cjs/queries/use-site-analysis.js +0 -65
- package/dist/cjs/queries/use-site-analysis.js.map +0 -1
- package/dist/cjs/reader/actions.js +0 -9
- package/dist/cjs/reader/actions.js.map +0 -1
- package/dist/cjs/reader/persist.js +0 -6
- package/dist/cjs/reader/persist.js.map +0 -1
- package/dist/cjs/reader/reducer.js +0 -14
- package/dist/cjs/reader/reducer.js.map +0 -1
- package/dist/cjs/reader/resolvers.js +0 -20
- package/dist/cjs/reader/resolvers.js.map +0 -1
- package/dist/cjs/reader/selectors.js +0 -6
- package/dist/cjs/reader/selectors.js.map +0 -1
- package/dist/cjs/starter-designs-queries/use-starter-designs-generated-query.js +0 -37
- package/dist/cjs/starter-designs-queries/use-starter-designs-generated-query.js.map +0 -1
- package/dist/cjs/support-queries/types.js.map +0 -1
- package/dist/cjs/support-queries/use-sibyl-query.js +0 -22
- package/dist/cjs/support-queries/use-sibyl-query.js.map +0 -1
- package/dist/cjs/support-queries/use-submit-forums-topic.js +0 -42
- package/dist/cjs/support-queries/use-submit-forums-topic.js.map +0 -1
- package/dist/cjs/support-queries/use-submit-support-ticket.js +0 -16
- package/dist/cjs/support-queries/use-submit-support-ticket.js.map +0 -1
- package/dist/cjs/support-queries/use-support-availability.js +0 -17
- package/dist/cjs/support-queries/use-support-availability.js.map +0 -1
- package/dist/cjs/verticals/actions.js +0 -9
- package/dist/cjs/verticals/actions.js.map +0 -1
- package/dist/cjs/verticals/constants.js +0 -5
- package/dist/cjs/verticals/constants.js.map +0 -1
- package/dist/cjs/verticals/index.js +0 -27
- package/dist/cjs/verticals/index.js.map +0 -1
- package/dist/cjs/verticals/reducer.js +0 -12
- package/dist/cjs/verticals/reducer.js.map +0 -1
- package/dist/cjs/verticals/resolvers.js +0 -24
- package/dist/cjs/verticals/resolvers.js.map +0 -1
- package/dist/cjs/verticals/selectors.js +0 -8
- package/dist/cjs/verticals/selectors.js.map +0 -1
- package/dist/cjs/verticals/types.js.map +0 -1
- package/dist/cjs/verticals-templates/actions.js +0 -10
- package/dist/cjs/verticals-templates/actions.js.map +0 -1
- package/dist/cjs/verticals-templates/constants.js +0 -5
- package/dist/cjs/verticals-templates/constants.js.map +0 -1
- package/dist/cjs/verticals-templates/index.js +0 -28
- package/dist/cjs/verticals-templates/index.js.map +0 -1
- package/dist/cjs/verticals-templates/reducer.js +0 -15
- package/dist/cjs/verticals-templates/reducer.js.map +0 -1
- package/dist/cjs/verticals-templates/resolvers.js +0 -15
- package/dist/cjs/verticals-templates/resolvers.js.map +0 -1
- package/dist/cjs/verticals-templates/selectors.js +0 -14
- package/dist/cjs/verticals-templates/selectors.js.map +0 -1
- package/dist/cjs/verticals-templates/types.js.map +0 -1
- package/dist/cjs/wpcom-features/constants.js +0 -5
- package/dist/cjs/wpcom-features/constants.js.map +0 -1
- package/dist/cjs/wpcom-features/features-data.js +0 -41
- package/dist/cjs/wpcom-features/features-data.js.map +0 -1
- package/dist/cjs/wpcom-features/index.js +0 -25
- package/dist/cjs/wpcom-features/index.js.map +0 -1
- package/dist/cjs/wpcom-features/reducer.js +0 -8
- package/dist/cjs/wpcom-features/reducer.js.map +0 -1
- package/dist/cjs/wpcom-features/selectors.js +0 -20
- package/dist/cjs/wpcom-features/selectors.js.map +0 -1
- package/dist/cjs/wpcom-features/types.js.map +0 -1
- package/dist/esm/auth/actions.js +0 -196
- package/dist/esm/auth/actions.js.map +0 -1
- package/dist/esm/auth/constants.js +0 -3
- package/dist/esm/auth/constants.js.map +0 -1
- package/dist/esm/auth/controls.js +0 -42
- package/dist/esm/auth/controls.js.map +0 -1
- package/dist/esm/auth/index.js +0 -31
- package/dist/esm/auth/index.js.map +0 -1
- package/dist/esm/auth/reducer.js +0 -74
- package/dist/esm/auth/reducer.js.map +0 -1
- package/dist/esm/auth/selectors.js +0 -6
- package/dist/esm/auth/selectors.js.map +0 -1
- package/dist/esm/auth/types.js.map +0 -1
- package/dist/esm/auth/utils.js +0 -5
- package/dist/esm/auth/utils.js.map +0 -1
- package/dist/esm/i18n/actions.js +0 -6
- package/dist/esm/i18n/actions.js.map +0 -1
- package/dist/esm/i18n/constants.js +0 -3
- package/dist/esm/i18n/constants.js.map +0 -1
- package/dist/esm/i18n/index.js +0 -22
- package/dist/esm/i18n/index.js.map +0 -1
- package/dist/esm/i18n/reducer.js +0 -17
- package/dist/esm/i18n/reducer.js.map +0 -1
- package/dist/esm/i18n/resolvers.js +0 -12
- package/dist/esm/i18n/resolvers.js.map +0 -1
- package/dist/esm/i18n/selectors.js +0 -2
- package/dist/esm/i18n/selectors.js.map +0 -1
- package/dist/esm/i18n/types.js.map +0 -1
- package/dist/esm/launch/actions.js +0 -97
- package/dist/esm/launch/actions.js.map +0 -1
- package/dist/esm/launch/constants.js +0 -4
- package/dist/esm/launch/constants.js.map +0 -1
- package/dist/esm/launch/data.js +0 -13
- package/dist/esm/launch/data.js.map +0 -1
- package/dist/esm/launch/index.js +0 -33
- package/dist/esm/launch/index.js.map +0 -1
- package/dist/esm/launch/persist.js +0 -3
- package/dist/esm/launch/persist.js.map +0 -1
- package/dist/esm/launch/reducer.js +0 -131
- package/dist/esm/launch/reducer.js.map +0 -1
- package/dist/esm/launch/selectors.js +0 -58
- package/dist/esm/launch/selectors.js.map +0 -1
- package/dist/esm/launch/types.js.map +0 -1
- package/dist/esm/onboard/persist.js +0 -3
- package/dist/esm/onboard/persist.js.map +0 -1
- package/dist/esm/persistence-config-factory/index.js +0 -74
- package/dist/esm/persistence-config-factory/index.js.map +0 -1
- package/dist/esm/queries/use-has-3rd-party-cookies.js +0 -36
- package/dist/esm/queries/use-has-3rd-party-cookies.js.map +0 -1
- package/dist/esm/queries/use-has-seen-whats-new-modal-query.js +0 -38
- package/dist/esm/queries/use-has-seen-whats-new-modal-query.js.map +0 -1
- package/dist/esm/queries/use-site-analysis.js +0 -60
- package/dist/esm/queries/use-site-analysis.js.map +0 -1
- package/dist/esm/reader/actions.js +0 -5
- package/dist/esm/reader/actions.js.map +0 -1
- package/dist/esm/reader/persist.js +0 -3
- package/dist/esm/reader/persist.js.map +0 -1
- package/dist/esm/reader/reducer.js +0 -12
- package/dist/esm/reader/reducer.js.map +0 -1
- package/dist/esm/reader/resolvers.js +0 -16
- package/dist/esm/reader/resolvers.js.map +0 -1
- package/dist/esm/reader/selectors.js +0 -2
- package/dist/esm/reader/selectors.js.map +0 -1
- package/dist/esm/starter-designs-queries/use-starter-designs-generated-query.js +0 -32
- package/dist/esm/starter-designs-queries/use-starter-designs-generated-query.js.map +0 -1
- package/dist/esm/support-queries/types.js.map +0 -1
- package/dist/esm/support-queries/use-sibyl-query.js +0 -17
- package/dist/esm/support-queries/use-sibyl-query.js.map +0 -1
- package/dist/esm/support-queries/use-submit-forums-topic.js +0 -37
- package/dist/esm/support-queries/use-submit-forums-topic.js.map +0 -1
- package/dist/esm/support-queries/use-submit-support-ticket.js +0 -11
- package/dist/esm/support-queries/use-submit-support-ticket.js.map +0 -1
- package/dist/esm/support-queries/use-support-availability.js +0 -12
- package/dist/esm/support-queries/use-support-availability.js.map +0 -1
- package/dist/esm/verticals/actions.js +0 -5
- package/dist/esm/verticals/actions.js.map +0 -1
- package/dist/esm/verticals/constants.js +0 -2
- package/dist/esm/verticals/constants.js.map +0 -1
- package/dist/esm/verticals/index.js +0 -22
- package/dist/esm/verticals/index.js.map +0 -1
- package/dist/esm/verticals/reducer.js +0 -10
- package/dist/esm/verticals/reducer.js.map +0 -1
- package/dist/esm/verticals/resolvers.js +0 -20
- package/dist/esm/verticals/resolvers.js.map +0 -1
- package/dist/esm/verticals/selectors.js +0 -3
- package/dist/esm/verticals/selectors.js.map +0 -1
- package/dist/esm/verticals/types.js.map +0 -1
- package/dist/esm/verticals-templates/actions.js +0 -6
- package/dist/esm/verticals-templates/actions.js.map +0 -1
- package/dist/esm/verticals-templates/constants.js +0 -2
- package/dist/esm/verticals-templates/constants.js.map +0 -1
- package/dist/esm/verticals-templates/index.js +0 -23
- package/dist/esm/verticals-templates/index.js.map +0 -1
- package/dist/esm/verticals-templates/reducer.js +0 -13
- package/dist/esm/verticals-templates/reducer.js.map +0 -1
- package/dist/esm/verticals-templates/resolvers.js +0 -11
- package/dist/esm/verticals-templates/resolvers.js.map +0 -1
- package/dist/esm/verticals-templates/selectors.js +0 -10
- package/dist/esm/verticals-templates/selectors.js.map +0 -1
- package/dist/esm/verticals-templates/types.js.map +0 -1
- package/dist/esm/wpcom-features/constants.js +0 -2
- package/dist/esm/wpcom-features/constants.js.map +0 -1
- package/dist/esm/wpcom-features/features-data.js +0 -37
- package/dist/esm/wpcom-features/features-data.js.map +0 -1
- package/dist/esm/wpcom-features/index.js +0 -19
- package/dist/esm/wpcom-features/index.js.map +0 -1
- package/dist/esm/wpcom-features/reducer.js +0 -6
- package/dist/esm/wpcom-features/reducer.js.map +0 -1
- package/dist/esm/wpcom-features/selectors.js +0 -15
- package/dist/esm/wpcom-features/selectors.js.map +0 -1
- package/dist/esm/wpcom-features/types.js.map +0 -1
- package/dist/types/auth/actions.d.ts +0 -98
- package/dist/types/auth/actions.d.ts.map +0 -1
- package/dist/types/auth/constants.d.ts +0 -3
- package/dist/types/auth/constants.d.ts.map +0 -1
- package/dist/types/auth/controls.d.ts +0 -8
- package/dist/types/auth/controls.d.ts.map +0 -1
- package/dist/types/auth/index.d.ts +0 -13
- package/dist/types/auth/index.d.ts.map +0 -1
- package/dist/types/auth/reducer.d.ts +0 -19
- package/dist/types/auth/reducer.d.ts.map +0 -1
- package/dist/types/auth/selectors.d.ts +0 -7
- package/dist/types/auth/selectors.d.ts.map +0 -1
- package/dist/types/auth/types.d.ts +0 -48
- package/dist/types/auth/types.d.ts.map +0 -1
- package/dist/types/auth/utils.d.ts +0 -2
- package/dist/types/auth/utils.d.ts.map +0 -1
- package/dist/types/i18n/actions.d.ts +0 -8
- package/dist/types/i18n/actions.d.ts.map +0 -1
- package/dist/types/i18n/constants.d.ts +0 -3
- package/dist/types/i18n/constants.d.ts.map +0 -1
- package/dist/types/i18n/index.d.ts +0 -13
- package/dist/types/i18n/index.d.ts.map +0 -1
- package/dist/types/i18n/reducer.d.ts +0 -10
- package/dist/types/i18n/reducer.d.ts.map +0 -1
- package/dist/types/i18n/resolvers.d.ts +0 -3
- package/dist/types/i18n/resolvers.d.ts.map +0 -1
- package/dist/types/i18n/selectors.d.ts +0 -4
- package/dist/types/i18n/selectors.d.ts.map +0 -1
- package/dist/types/i18n/types.d.ts +0 -8
- package/dist/types/i18n/types.d.ts.map +0 -1
- package/dist/types/launch/actions.d.ts +0 -87
- package/dist/types/launch/actions.d.ts.map +0 -1
- package/dist/types/launch/constants.d.ts +0 -4
- package/dist/types/launch/constants.d.ts.map +0 -1
- package/dist/types/launch/data.d.ts +0 -3
- package/dist/types/launch/data.d.ts.map +0 -1
- package/dist/types/launch/index.d.ts +0 -14
- package/dist/types/launch/index.d.ts.map +0 -1
- package/dist/types/launch/persist.d.ts +0 -6
- package/dist/types/launch/persist.d.ts.map +0 -1
- package/dist/types/launch/reducer.d.ts +0 -23
- package/dist/types/launch/reducer.d.ts.map +0 -1
- package/dist/types/launch/selectors.d.ts +0 -36
- package/dist/types/launch/selectors.d.ts.map +0 -1
- package/dist/types/launch/types.d.ts +0 -4
- package/dist/types/launch/types.d.ts.map +0 -1
- package/dist/types/onboard/persist.d.ts +0 -6
- package/dist/types/onboard/persist.d.ts.map +0 -1
- package/dist/types/persistence-config-factory/index.d.ts +0 -10
- package/dist/types/persistence-config-factory/index.d.ts.map +0 -1
- package/dist/types/queries/use-has-3rd-party-cookies.d.ts +0 -10
- package/dist/types/queries/use-has-3rd-party-cookies.d.ts.map +0 -1
- package/dist/types/queries/use-has-seen-whats-new-modal-query.d.ts +0 -12
- package/dist/types/queries/use-has-seen-whats-new-modal-query.d.ts.map +0 -1
- package/dist/types/queries/use-site-analysis.d.ts +0 -18
- package/dist/types/queries/use-site-analysis.d.ts.map +0 -1
- package/dist/types/reader/actions.d.ts +0 -16
- package/dist/types/reader/actions.d.ts.map +0 -1
- package/dist/types/reader/persist.d.ts +0 -6
- package/dist/types/reader/persist.d.ts.map +0 -1
- package/dist/types/reader/reducer.d.ts +0 -8
- package/dist/types/reader/reducer.d.ts.map +0 -1
- package/dist/types/reader/resolvers.d.ts +0 -2
- package/dist/types/reader/resolvers.d.ts.map +0 -1
- package/dist/types/reader/selectors.d.ts +0 -3
- package/dist/types/reader/selectors.d.ts.map +0 -1
- package/dist/types/starter-designs-queries/use-starter-designs-generated-query.d.ts +0 -9
- package/dist/types/starter-designs-queries/use-starter-designs-generated-query.d.ts.map +0 -1
- package/dist/types/support-queries/types.d.ts +0 -19
- package/dist/types/support-queries/types.d.ts.map +0 -1
- package/dist/types/support-queries/use-sibyl-query.d.ts +0 -9
- package/dist/types/support-queries/use-sibyl-query.d.ts.map +0 -1
- package/dist/types/support-queries/use-submit-forums-topic.d.ts +0 -15
- package/dist/types/support-queries/use-submit-forums-topic.d.ts.map +0 -1
- package/dist/types/support-queries/use-submit-support-ticket.d.ts +0 -10
- package/dist/types/support-queries/use-submit-support-ticket.d.ts.map +0 -1
- package/dist/types/support-queries/use-support-availability.d.ts +0 -5
- package/dist/types/support-queries/use-support-availability.d.ts.map +0 -1
- package/dist/types/verticals/actions.d.ts +0 -7
- package/dist/types/verticals/actions.d.ts.map +0 -1
- package/dist/types/verticals/constants.d.ts +0 -2
- package/dist/types/verticals/constants.d.ts.map +0 -1
- package/dist/types/verticals/index.d.ts +0 -13
- package/dist/types/verticals/index.d.ts.map +0 -1
- package/dist/types/verticals/reducer.d.ts +0 -11
- package/dist/types/verticals/reducer.d.ts.map +0 -1
- package/dist/types/verticals/resolvers.d.ts +0 -17
- package/dist/types/verticals/resolvers.d.ts.map +0 -1
- package/dist/types/verticals/selectors.d.ts +0 -6
- package/dist/types/verticals/selectors.d.ts.map +0 -1
- package/dist/types/verticals/types.d.ts +0 -14
- package/dist/types/verticals/types.d.ts.map +0 -1
- package/dist/types/verticals-templates/actions.d.ts +0 -8
- package/dist/types/verticals-templates/actions.d.ts.map +0 -1
- package/dist/types/verticals-templates/constants.d.ts +0 -2
- package/dist/types/verticals-templates/constants.d.ts.map +0 -1
- package/dist/types/verticals-templates/index.d.ts +0 -13
- package/dist/types/verticals-templates/index.d.ts.map +0 -1
- package/dist/types/verticals-templates/reducer.d.ts +0 -12
- package/dist/types/verticals-templates/reducer.d.ts.map +0 -1
- package/dist/types/verticals-templates/resolvers.d.ts +0 -10
- package/dist/types/verticals-templates/resolvers.d.ts.map +0 -1
- package/dist/types/verticals-templates/selectors.d.ts +0 -9
- package/dist/types/verticals-templates/selectors.d.ts.map +0 -1
- package/dist/types/verticals-templates/types.d.ts +0 -25
- package/dist/types/verticals-templates/types.d.ts.map +0 -1
- package/dist/types/wpcom-features/constants.d.ts +0 -2
- package/dist/types/wpcom-features/constants.d.ts.map +0 -1
- package/dist/types/wpcom-features/features-data.d.ts +0 -3
- package/dist/types/wpcom-features/features-data.d.ts.map +0 -1
- package/dist/types/wpcom-features/index.d.ts +0 -12
- package/dist/types/wpcom-features/index.d.ts.map +0 -1
- package/dist/types/wpcom-features/reducer.d.ts +0 -6
- package/dist/types/wpcom-features/reducer.d.ts.map +0 -1
- package/dist/types/wpcom-features/selectors.d.ts +0 -6
- package/dist/types/wpcom-features/selectors.d.ts.map +0 -1
- package/dist/types/wpcom-features/types.d.ts +0 -7
- package/dist/types/wpcom-features/types.d.ts.map +0 -1
- package/src/auth/README.md +0 -96
- package/src/auth/actions.ts +0 -290
- package/src/auth/constants.ts +0 -2
- package/src/auth/controls.ts +0 -55
- package/src/auth/index.ts +0 -41
- package/src/auth/reducer.ts +0 -103
- package/src/auth/selectors.ts +0 -12
- package/src/auth/test/actions.ts +0 -231
- package/src/auth/test/flows.ts +0 -301
- package/src/auth/test/reducer.ts +0 -70
- package/src/auth/types.ts +0 -64
- package/src/auth/utils.ts +0 -4
- package/src/i18n/actions.ts +0 -13
- package/src/i18n/constants.ts +0 -2
- package/src/i18n/index.ts +0 -32
- package/src/i18n/reducer.ts +0 -25
- package/src/i18n/resolvers.ts +0 -15
- package/src/i18n/selectors.ts +0 -7
- package/src/i18n/test/reducer.js +0 -69
- package/src/i18n/test/resolvers.js +0 -28
- package/src/i18n/test/selectors.js +0 -22
- package/src/i18n/types.ts +0 -3
- package/src/launch/actions.ts +0 -172
- package/src/launch/constants.ts +0 -3
- package/src/launch/data.ts +0 -13
- package/src/launch/index.ts +0 -44
- package/src/launch/persist.ts +0 -3
- package/src/launch/reducer.ts +0 -167
- package/src/launch/selectors.ts +0 -86
- package/src/launch/types.ts +0 -4
- package/src/onboard/persist.ts +0 -3
- package/src/persistence-config-factory/index.ts +0 -86
- package/src/queries/use-has-3rd-party-cookies.ts +0 -42
- package/src/queries/use-has-seen-whats-new-modal-query.ts +0 -68
- package/src/queries/use-site-analysis.ts +0 -78
- package/src/reader/actions.ts +0 -20
- package/src/reader/persist.ts +0 -3
- package/src/reader/reducer.ts +0 -18
- package/src/reader/resolvers.ts +0 -15
- package/src/reader/selectors.ts +0 -4
- package/src/reader/test/reader-store.test.ts +0 -43
- package/src/starter-designs-queries/use-starter-designs-generated-query.ts +0 -51
- package/src/support-queries/types.ts +0 -28
- package/src/support-queries/use-sibyl-query.ts +0 -31
- package/src/support-queries/use-submit-forums-topic.ts +0 -56
- package/src/support-queries/use-submit-support-ticket.ts +0 -21
- package/src/support-queries/use-support-availability.ts +0 -24
- package/src/user/test/actions.ts +0 -153
- package/src/verticals/actions.ts +0 -8
- package/src/verticals/constants.ts +0 -1
- package/src/verticals/index.ts +0 -31
- package/src/verticals/reducer.ts +0 -17
- package/src/verticals/resolvers.ts +0 -23
- package/src/verticals/selectors.ts +0 -4
- package/src/verticals/types.ts +0 -13
- package/src/verticals-templates/actions.ts +0 -9
- package/src/verticals-templates/constants.ts +0 -1
- package/src/verticals-templates/index.ts +0 -31
- package/src/verticals-templates/reducer.ts +0 -23
- package/src/verticals-templates/resolvers.ts +0 -15
- package/src/verticals-templates/selectors.ts +0 -11
- package/src/verticals-templates/types.ts +0 -29
- package/src/wpcom-features/constants.tsx +0 -1
- package/src/wpcom-features/features-data.tsx +0 -44
- package/src/wpcom-features/index.ts +0 -30
- package/src/wpcom-features/reducer.ts +0 -11
- package/src/wpcom-features/selectors.ts +0 -24
- package/src/wpcom-features/types.ts +0 -16
- /package/dist/cjs/{auth → add-ons}/types.js +0 -0
- /package/dist/cjs/{i18n → analyzer}/types.js +0 -0
- /package/dist/cjs/{launch → help-center}/types.js +0 -0
- /package/dist/cjs/{support-queries → onboard}/types.js +0 -0
- /package/dist/cjs/{verticals-templates → purchases}/types.js +0 -0
- /package/dist/cjs/{verticals → subscriber}/types.js +0 -0
- /package/dist/cjs/{wpcom-features → templates}/types.js +0 -0
- /package/dist/esm/{auth → add-ons}/types.js +0 -0
- /package/dist/esm/{i18n → analyzer}/types.js +0 -0
- /package/dist/esm/{launch → help-center}/types.js +0 -0
- /package/dist/esm/{support-queries → onboard}/types.js +0 -0
- /package/dist/esm/{verticals-templates → purchases}/types.js +0 -0
- /package/dist/esm/{verticals → subscriber}/types.js +0 -0
- /package/dist/esm/{wpcom-features → templates}/types.js +0 -0
package/src/onboard/reducer.ts
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { combineReducers } from '@wordpress/data';
|
|
2
|
-
import {
|
|
3
|
-
import type { DomainSuggestion } from '../domain-suggestions/types';
|
|
4
|
-
import type { FeatureId } from '../wpcom-features/types';
|
|
2
|
+
import { SiteGoal } from './constants';
|
|
5
3
|
import type { OnboardAction } from './actions';
|
|
4
|
+
import type {
|
|
5
|
+
DomainForm,
|
|
6
|
+
ProfilerData,
|
|
7
|
+
DomainTransferNames,
|
|
8
|
+
DomainTransferAuthCodes,
|
|
9
|
+
ReadymadeTemplate,
|
|
10
|
+
} from './types';
|
|
11
|
+
import type { DomainSuggestion } from '../domain-suggestions';
|
|
12
|
+
import type { FeatureId } from '../shared-types';
|
|
6
13
|
// somewhat hacky, but resolves the circular dependency issue
|
|
7
|
-
import type { Design,
|
|
14
|
+
import type { Design, StyleVariation } from '@automattic/design-picker/src/types';
|
|
15
|
+
import type { MinimalRequestCartProduct } from '@automattic/shopping-cart';
|
|
8
16
|
import type { Reducer } from 'redux';
|
|
9
17
|
|
|
10
18
|
const domain: Reducer< DomainSuggestion | undefined, OnboardAction > = ( state, action ) => {
|
|
@@ -37,6 +45,16 @@ const domainCategory: Reducer< string | undefined, OnboardAction > = ( state, ac
|
|
|
37
45
|
return state;
|
|
38
46
|
};
|
|
39
47
|
|
|
48
|
+
const siteUrl: Reducer< string | undefined, OnboardAction > = ( state, action ) => {
|
|
49
|
+
if ( action.type === 'SET_SITE_URL' ) {
|
|
50
|
+
return action.siteUrl;
|
|
51
|
+
}
|
|
52
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
return state;
|
|
56
|
+
};
|
|
57
|
+
|
|
40
58
|
const hasUsedDomainsStep: Reducer< boolean, OnboardAction > = ( state = false, action ) => {
|
|
41
59
|
if ( action.type === 'SET_HAS_USED_DOMAINS_STEP' ) {
|
|
42
60
|
return action.hasUsedDomainsStep;
|
|
@@ -89,29 +107,45 @@ const randomizedDesigns: Reducer< { featured: Design[] }, OnboardAction > = (
|
|
|
89
107
|
return state;
|
|
90
108
|
};
|
|
91
109
|
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
) => {
|
|
96
|
-
if ( action.type === 'SET_FONTS' ) {
|
|
97
|
-
return action.fonts;
|
|
110
|
+
const selectedDesign: Reducer< Design | undefined, OnboardAction > = ( state, action ) => {
|
|
111
|
+
if ( action.type === 'SET_SELECTED_DESIGN' ) {
|
|
112
|
+
return action.selectedDesign;
|
|
98
113
|
}
|
|
99
|
-
if (
|
|
114
|
+
if ( [ 'RESET_SELECTED_DESIGN', 'RESET_ONBOARD_STORE' ].includes( action.type ) ) {
|
|
100
115
|
return undefined;
|
|
101
116
|
}
|
|
102
117
|
return state;
|
|
103
118
|
};
|
|
104
119
|
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
120
|
+
const selectedStyleVariation: Reducer< StyleVariation | undefined, OnboardAction > = (
|
|
121
|
+
state,
|
|
122
|
+
action
|
|
123
|
+
) => {
|
|
124
|
+
if ( action.type === 'SET_SELECTED_STYLE_VARIATION' ) {
|
|
125
|
+
return action.selectedStyleVariation;
|
|
108
126
|
}
|
|
109
|
-
if (
|
|
127
|
+
if ( [ 'RESET_SELECTED_STYLE_VARIATION', 'RESET_ONBOARD_STORE' ].includes( action.type ) ) {
|
|
110
128
|
return undefined;
|
|
111
129
|
}
|
|
112
130
|
return state;
|
|
113
131
|
};
|
|
114
132
|
|
|
133
|
+
const readymadeTemplate: Reducer< ReadymadeTemplate | undefined, OnboardAction > = (
|
|
134
|
+
state = undefined, // Initial state is set to undefined
|
|
135
|
+
action
|
|
136
|
+
) => {
|
|
137
|
+
switch ( action.type ) {
|
|
138
|
+
case 'SET_READYMADE_TEMPLATE':
|
|
139
|
+
return action.readymadeTemplate;
|
|
140
|
+
|
|
141
|
+
case 'RESET_ONBOARD_STORE':
|
|
142
|
+
return undefined;
|
|
143
|
+
|
|
144
|
+
default:
|
|
145
|
+
return state;
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
|
|
115
149
|
const selectedFeatures: Reducer< FeatureId[], OnboardAction > = (
|
|
116
150
|
state: FeatureId[] = [],
|
|
117
151
|
action
|
|
@@ -172,9 +206,9 @@ const siteTitle: Reducer< string, OnboardAction > = ( state = '', action ) => {
|
|
|
172
206
|
return state;
|
|
173
207
|
};
|
|
174
208
|
|
|
175
|
-
const
|
|
176
|
-
if ( action.type === '
|
|
177
|
-
return action.
|
|
209
|
+
const siteDescription: Reducer< string, OnboardAction > = ( state = '', action ) => {
|
|
210
|
+
if ( action.type === 'SET_SITE_DESCRIPTION' ) {
|
|
211
|
+
return action.siteDescription;
|
|
178
212
|
}
|
|
179
213
|
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
180
214
|
return '';
|
|
@@ -182,19 +216,45 @@ const anchorPodcastId: Reducer< string | null, OnboardAction > = ( state = '', a
|
|
|
182
216
|
return state;
|
|
183
217
|
};
|
|
184
218
|
|
|
185
|
-
const
|
|
186
|
-
if ( action.type === '
|
|
187
|
-
return action.
|
|
219
|
+
const siteLogo: Reducer< null | string, OnboardAction > = ( state = null, action ) => {
|
|
220
|
+
if ( action.type === 'SET_SITE_LOGO' ) {
|
|
221
|
+
return action.siteLogo;
|
|
188
222
|
}
|
|
189
223
|
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
190
|
-
return
|
|
224
|
+
return null;
|
|
191
225
|
}
|
|
192
226
|
return state;
|
|
193
227
|
};
|
|
194
228
|
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
|
|
229
|
+
const productCartItems: Reducer< MinimalRequestCartProduct[] | null, OnboardAction > = (
|
|
230
|
+
state = [],
|
|
231
|
+
action
|
|
232
|
+
) => {
|
|
233
|
+
if ( action.type === 'SET_PRODUCT_CART_ITEMS' ) {
|
|
234
|
+
return action.productCartItems;
|
|
235
|
+
}
|
|
236
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
237
|
+
return [];
|
|
238
|
+
}
|
|
239
|
+
return state;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
const planCartItem: Reducer< MinimalRequestCartProduct | null, OnboardAction > = (
|
|
243
|
+
state = null,
|
|
244
|
+
action
|
|
245
|
+
) => {
|
|
246
|
+
if ( action.type === 'SET_PLAN_CART_ITEM' ) {
|
|
247
|
+
return action.planCartItem;
|
|
248
|
+
}
|
|
249
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
250
|
+
return null;
|
|
251
|
+
}
|
|
252
|
+
return state;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
const siteAccentColor: Reducer< string, OnboardAction > = ( state = '', action ) => {
|
|
256
|
+
if ( action.type === 'SET_SITE_ACCENT_COLOR' ) {
|
|
257
|
+
return action.siteAccentColor;
|
|
198
258
|
}
|
|
199
259
|
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
200
260
|
return '';
|
|
@@ -226,7 +286,10 @@ const intent: Reducer< string, OnboardAction > = ( state = '', action ) => {
|
|
|
226
286
|
if ( action.type === 'SET_INTENT' ) {
|
|
227
287
|
return action.intent;
|
|
228
288
|
}
|
|
229
|
-
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
289
|
+
if ( action.type === 'RESET_ONBOARD_STORE' && action?.skipFlags?.includes( 'skipIntent' ) ) {
|
|
290
|
+
return state;
|
|
291
|
+
}
|
|
292
|
+
if ( [ 'RESET_INTENT', 'RESET_ONBOARD_STORE' ].includes( action.type ) ) {
|
|
230
293
|
return '';
|
|
231
294
|
}
|
|
232
295
|
return state;
|
|
@@ -259,7 +322,10 @@ const pendingAction: Reducer< undefined | ( () => Promise< any > ), OnboardActio
|
|
|
259
322
|
if ( action.type === 'SET_PENDING_ACTION' ) {
|
|
260
323
|
return action.pendingAction;
|
|
261
324
|
}
|
|
262
|
-
if (
|
|
325
|
+
if (
|
|
326
|
+
action.type === 'RESET_ONBOARD_STORE' &&
|
|
327
|
+
! action.skipFlags.includes( 'skipPendingAction' )
|
|
328
|
+
) {
|
|
263
329
|
return undefined;
|
|
264
330
|
}
|
|
265
331
|
return state;
|
|
@@ -285,40 +351,284 @@ const progressTitle: Reducer< string | undefined, OnboardAction > = ( state, act
|
|
|
285
351
|
return state;
|
|
286
352
|
};
|
|
287
353
|
|
|
288
|
-
const
|
|
354
|
+
const goals: Reducer< SiteGoal[], OnboardAction > = ( state = [], action ) => {
|
|
355
|
+
if ( action.type === 'SET_GOALS' ) {
|
|
356
|
+
return action.goals;
|
|
357
|
+
}
|
|
358
|
+
if ( action.type === 'CLEAR_IMPORT_GOAL' ) {
|
|
359
|
+
return state.filter( ( goal ) => goal !== SiteGoal.Import );
|
|
360
|
+
}
|
|
361
|
+
if ( action.type === 'CLEAR_DIFM_GOAL' ) {
|
|
362
|
+
return state.filter( ( goal ) => goal !== SiteGoal.DIFM );
|
|
363
|
+
}
|
|
364
|
+
if ( [ 'RESET_GOALS', 'RESET_ONBOARD_STORE' ].includes( action.type ) ) {
|
|
365
|
+
return [];
|
|
366
|
+
}
|
|
367
|
+
return state;
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
const verticalId: Reducer< string, OnboardAction > = ( state = '', action ) => {
|
|
371
|
+
if ( action.type === 'SET_VERTICAL_ID' ) {
|
|
372
|
+
return action.verticalId;
|
|
373
|
+
}
|
|
374
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
375
|
+
return '';
|
|
376
|
+
}
|
|
377
|
+
return state;
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
const storeLocationCountryCode: Reducer< string, OnboardAction > = ( state = '', action ) => {
|
|
381
|
+
if ( action.type === 'SET_STORE_LOCATION_COUNTRY_CODE' ) {
|
|
382
|
+
return action.storeLocationCountryCode;
|
|
383
|
+
}
|
|
384
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
385
|
+
return '';
|
|
386
|
+
}
|
|
387
|
+
return state;
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
const ecommerceFlowRecurType: Reducer< string, OnboardAction > = ( state = '', action ) => {
|
|
391
|
+
if ( action.type === 'SET_ECOMMERCE_FLOW_RECUR_TYPE' ) {
|
|
392
|
+
return action.ecommerceFlowRecurType;
|
|
393
|
+
}
|
|
394
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
395
|
+
return '';
|
|
396
|
+
}
|
|
397
|
+
return state;
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
const couponCode: Reducer< string, OnboardAction > = ( state = '', action ) => {
|
|
401
|
+
if ( action.type === 'SET_COUPON_CODE' ) {
|
|
402
|
+
return action.couponCode;
|
|
403
|
+
}
|
|
404
|
+
if ( [ 'RESET_COUPON_CODE', 'RESET_ONBOARD_STORE' ].includes( action.type ) ) {
|
|
405
|
+
return '';
|
|
406
|
+
}
|
|
407
|
+
return state;
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
const storageAddonSlug: Reducer< string, OnboardAction > = ( state = '', action ) => {
|
|
411
|
+
if ( action.type === 'SET_STORAGE_ADDON_SLUG' ) {
|
|
412
|
+
return action.storageAddonSlug;
|
|
413
|
+
}
|
|
414
|
+
if ( [ 'RESET_STORAGE_ADDON_SLUG', 'RESET_ONBOARD_STORE' ].includes( action.type ) ) {
|
|
415
|
+
return '';
|
|
416
|
+
}
|
|
417
|
+
return state;
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
const domainForm: Reducer< DomainForm, OnboardAction > = ( state = {}, action ) => {
|
|
421
|
+
if ( action.type === 'SET_DOMAIN_FORM' ) {
|
|
422
|
+
return {
|
|
423
|
+
...state,
|
|
424
|
+
...action.step,
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
428
|
+
return {};
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
return state;
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
const hideFreePlan: Reducer< boolean, OnboardAction > = ( state = false, action ) => {
|
|
435
|
+
if ( action.type === 'SET_HIDE_FREE_PLAN' ) {
|
|
436
|
+
return action.hideFreePlan;
|
|
437
|
+
}
|
|
438
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
439
|
+
return false;
|
|
440
|
+
}
|
|
441
|
+
return state;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
const hidePlansFeatureComparison: Reducer< boolean, OnboardAction > = ( state = false, action ) => {
|
|
445
|
+
if ( action.type === 'SET_HIDE_PLANS_FEATURE_COMPARISON' ) {
|
|
446
|
+
return action.hidePlansFeatureComparison;
|
|
447
|
+
}
|
|
448
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
449
|
+
return false;
|
|
450
|
+
}
|
|
451
|
+
return state;
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
const domainCartItem: Reducer< MinimalRequestCartProduct | undefined, OnboardAction > = (
|
|
455
|
+
state = undefined,
|
|
456
|
+
action
|
|
457
|
+
) => {
|
|
458
|
+
if ( action.type === 'SET_DOMAIN_CART_ITEM' ) {
|
|
459
|
+
return action.domainCartItem;
|
|
460
|
+
}
|
|
461
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
462
|
+
return undefined;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
return state;
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
const domainCartItems: Reducer< MinimalRequestCartProduct[] | undefined, OnboardAction > = (
|
|
469
|
+
state = undefined,
|
|
470
|
+
action
|
|
471
|
+
) => {
|
|
472
|
+
if ( action.type === 'SET_DOMAIN_CART_ITEMS' ) {
|
|
473
|
+
return action.domainCartItems;
|
|
474
|
+
}
|
|
475
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
476
|
+
return undefined;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
return state;
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
const isMigrateFromWp: Reducer< boolean, OnboardAction > = ( state = false, action ) => {
|
|
483
|
+
if ( action.type === 'SET_IS_MIGRATE_FROM_WP' ) {
|
|
484
|
+
return action.isMigrateFromWp;
|
|
485
|
+
}
|
|
486
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
487
|
+
return false;
|
|
488
|
+
}
|
|
489
|
+
return state;
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
const pluginsToVerify: Reducer< string[] | undefined, OnboardAction > = ( state, action ) => {
|
|
493
|
+
if ( action.type === 'SET_PLUGIN_SLUGS_TO_VERIFY' ) {
|
|
494
|
+
return action.pluginSlugs;
|
|
495
|
+
}
|
|
496
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
497
|
+
return undefined;
|
|
498
|
+
}
|
|
499
|
+
return state;
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
export const profilerData: Reducer< ProfilerData | undefined, OnboardAction > = (
|
|
503
|
+
state,
|
|
504
|
+
action
|
|
505
|
+
) => {
|
|
506
|
+
if ( action.type === 'SET_PROFILER_DATA' ) {
|
|
507
|
+
return action.profilerData;
|
|
508
|
+
}
|
|
509
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
510
|
+
return undefined;
|
|
511
|
+
}
|
|
512
|
+
return state;
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
export const domainTransferNames: Reducer< DomainTransferNames | undefined, OnboardAction > = (
|
|
289
516
|
state,
|
|
290
517
|
action
|
|
291
518
|
) => {
|
|
292
|
-
if ( action.type === '
|
|
293
|
-
|
|
519
|
+
if ( action.type === 'SET_DOMAINS_TRANSFER_DATA' ) {
|
|
520
|
+
// we don't want to store empty objects
|
|
521
|
+
if ( action.bulkDomainsData && Object.keys( action.bulkDomainsData ).length > 0 ) {
|
|
522
|
+
// remove auth codes for safety
|
|
523
|
+
return Object.entries( action.bulkDomainsData ).reduce(
|
|
524
|
+
( domainTransferNames, [ key, value ] ) => {
|
|
525
|
+
domainTransferNames[ key ] = value.domain;
|
|
526
|
+
return domainTransferNames;
|
|
527
|
+
},
|
|
528
|
+
{} as DomainTransferNames
|
|
529
|
+
);
|
|
530
|
+
}
|
|
531
|
+
return undefined;
|
|
532
|
+
}
|
|
533
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
534
|
+
return undefined;
|
|
294
535
|
}
|
|
295
536
|
return state;
|
|
296
537
|
};
|
|
297
538
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
539
|
+
/**
|
|
540
|
+
* A separate reducer for auth codes to avoid persisting sensitive data.
|
|
541
|
+
*/
|
|
542
|
+
export const domainTransferAuthCodes: Reducer<
|
|
543
|
+
DomainTransferAuthCodes | undefined,
|
|
544
|
+
OnboardAction
|
|
545
|
+
> = ( state, action ) => {
|
|
546
|
+
if ( action.type === 'SET_DOMAINS_TRANSFER_DATA' ) {
|
|
547
|
+
// we don't want to store empty objects
|
|
548
|
+
if ( action.bulkDomainsData && Object.keys( action.bulkDomainsData ).length > 0 ) {
|
|
549
|
+
return Object.entries( action.bulkDomainsData ).reduce( ( authCodes, [ key, value ] ) => {
|
|
550
|
+
authCodes[ key ] = {
|
|
551
|
+
auth: value.auth,
|
|
552
|
+
valid: value.valid,
|
|
553
|
+
rawPrice: value.rawPrice,
|
|
554
|
+
saleCost: value.saleCost,
|
|
555
|
+
currencyCode: value.currencyCode,
|
|
556
|
+
};
|
|
557
|
+
return authCodes;
|
|
558
|
+
}, {} as DomainTransferAuthCodes );
|
|
559
|
+
}
|
|
560
|
+
return undefined;
|
|
301
561
|
}
|
|
302
562
|
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
303
|
-
return
|
|
563
|
+
return undefined;
|
|
564
|
+
}
|
|
565
|
+
return state;
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
export const shouldImportDomainTransferDnsRecords: Reducer< boolean, OnboardAction > = (
|
|
569
|
+
state = true,
|
|
570
|
+
action
|
|
571
|
+
) => {
|
|
572
|
+
if ( action.type === 'SET_SHOULD_IMPORT_DOMAIN_TRANSFER_DNS_RECORDS' ) {
|
|
573
|
+
return action.shouldImportDomainTransferDnsRecords;
|
|
574
|
+
}
|
|
575
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
576
|
+
return true;
|
|
304
577
|
}
|
|
305
578
|
return state;
|
|
306
579
|
};
|
|
307
580
|
|
|
581
|
+
const paidSubscribers: Reducer< boolean, OnboardAction > = ( state = false, action ) => {
|
|
582
|
+
if ( action.type === 'SET_PAID_SUBSCRIBERS' ) {
|
|
583
|
+
return action.paidSubscribers;
|
|
584
|
+
}
|
|
585
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
586
|
+
return false;
|
|
587
|
+
}
|
|
588
|
+
return state;
|
|
589
|
+
};
|
|
590
|
+
|
|
591
|
+
const partnerBundle: Reducer< string | null, OnboardAction > = ( state = null, action ) => {
|
|
592
|
+
if ( action.type === 'SET_PARTNER_BUNDLE' ) {
|
|
593
|
+
return action.partnerBundle;
|
|
594
|
+
}
|
|
595
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
596
|
+
return null;
|
|
597
|
+
}
|
|
598
|
+
return state;
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
const signupDomainOrigin: Reducer< string | undefined, OnboardAction > = (
|
|
602
|
+
state = undefined,
|
|
603
|
+
action
|
|
604
|
+
) => {
|
|
605
|
+
if ( action.type === 'SET_SIGNUP_DOMAIN_ORIGIN' ) {
|
|
606
|
+
return action.signupDomainOrigin;
|
|
607
|
+
}
|
|
608
|
+
if ( action.type === 'RESET_ONBOARD_STORE' ) {
|
|
609
|
+
return undefined;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
return state;
|
|
613
|
+
};
|
|
614
|
+
|
|
308
615
|
const reducer = combineReducers( {
|
|
309
|
-
anchorPodcastId,
|
|
310
|
-
anchorEpisodeId,
|
|
311
|
-
anchorSpotifyUrl,
|
|
312
616
|
domain,
|
|
617
|
+
domainCartItem,
|
|
313
618
|
domainSearch,
|
|
314
619
|
domainCategory,
|
|
620
|
+
domainForm,
|
|
621
|
+
siteUrl,
|
|
315
622
|
isRedirecting,
|
|
316
623
|
hasUsedDomainsStep,
|
|
317
624
|
hasUsedPlansStep,
|
|
318
625
|
selectedFeatures,
|
|
626
|
+
domainTransferNames,
|
|
627
|
+
domainTransferAuthCodes,
|
|
628
|
+
shouldImportDomainTransferDnsRecords,
|
|
319
629
|
storeType,
|
|
320
|
-
selectedFonts,
|
|
321
630
|
selectedDesign,
|
|
631
|
+
selectedStyleVariation,
|
|
322
632
|
selectedSite,
|
|
323
633
|
siteTitle,
|
|
324
634
|
showSignupDialog,
|
|
@@ -331,8 +641,27 @@ const reducer = combineReducers( {
|
|
|
331
641
|
pendingAction,
|
|
332
642
|
progress,
|
|
333
643
|
progressTitle,
|
|
334
|
-
stepProgress,
|
|
335
644
|
goals,
|
|
645
|
+
hideFreePlan,
|
|
646
|
+
hidePlansFeatureComparison,
|
|
647
|
+
siteDescription,
|
|
648
|
+
siteLogo,
|
|
649
|
+
siteAccentColor,
|
|
650
|
+
readymadeTemplate,
|
|
651
|
+
verticalId,
|
|
652
|
+
storeLocationCountryCode,
|
|
653
|
+
ecommerceFlowRecurType,
|
|
654
|
+
couponCode,
|
|
655
|
+
storageAddonSlug,
|
|
656
|
+
planCartItem,
|
|
657
|
+
productCartItems,
|
|
658
|
+
isMigrateFromWp,
|
|
659
|
+
domainCartItems,
|
|
660
|
+
pluginsToVerify,
|
|
661
|
+
profilerData,
|
|
662
|
+
paidSubscribers,
|
|
663
|
+
partnerBundle,
|
|
664
|
+
signupDomainOrigin,
|
|
336
665
|
} );
|
|
337
666
|
|
|
338
667
|
export type State = ReturnType< typeof reducer >;
|
package/src/onboard/selectors.ts
CHANGED
|
@@ -1,32 +1,63 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DomainTransferData } from './types';
|
|
2
2
|
import type { State } from './reducer';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Merge persisted domain names with unpersisted auth codes.
|
|
5
|
+
* We don't want to persist auth codes due to their sensitive nature.
|
|
6
|
+
* @param state
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export const getBulkDomainsData = ( state: State ) => {
|
|
10
|
+
if ( ! state.domainTransferNames ) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
const domainTransferData: DomainTransferData = {};
|
|
14
|
+
for ( const key in state.domainTransferNames ) {
|
|
15
|
+
domainTransferData[ key ] = {
|
|
16
|
+
domain: state.domainTransferNames[ key ],
|
|
17
|
+
auth: state.domainTransferAuthCodes?.[ key ].auth ?? '',
|
|
18
|
+
valid: state.domainTransferAuthCodes?.[ key ].valid ?? false,
|
|
19
|
+
rawPrice: state.domainTransferAuthCodes?.[ key ].rawPrice ?? 0,
|
|
20
|
+
saleCost: state.domainTransferAuthCodes?.[ key ].saleCost,
|
|
21
|
+
currencyCode: state.domainTransferAuthCodes?.[ key ].currencyCode ?? 'USD',
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
return domainTransferData;
|
|
25
|
+
};
|
|
26
|
+
export const getBulkDomainsImportDnsRecords = ( state: State ) =>
|
|
27
|
+
state.shouldImportDomainTransferDnsRecords;
|
|
6
28
|
export const getIsRedirecting = ( state: State ) => state.isRedirecting;
|
|
7
29
|
export const getPlanProductId = ( state: State ) => state.planProductId;
|
|
30
|
+
export const getPlanCartItem = ( state: State ) => state.planCartItem;
|
|
31
|
+
export const getProductCartItems = ( state: State ) => state.productCartItems;
|
|
8
32
|
export const getLastLocation = ( state: State ) => state.lastLocation;
|
|
9
33
|
export const getRandomizedDesigns = ( state: State ) => state.randomizedDesigns;
|
|
10
34
|
export const getSelectedDesign = ( state: State ) => state.selectedDesign;
|
|
35
|
+
export const getSelectedStyleVariation = ( state: State ) => state.selectedStyleVariation;
|
|
11
36
|
export const getSelectedDomain = ( state: State ) => state.domain;
|
|
12
37
|
export const getSelectedFeatures = ( state: State ) => state.selectedFeatures;
|
|
13
|
-
export const getSelectedFonts = ( state: State ) => state.selectedFonts;
|
|
14
38
|
export const getSelectedSite = ( state: State ) => state.selectedSite;
|
|
15
39
|
export const getSelectedSiteTitle = ( state: State ) => state.siteTitle;
|
|
40
|
+
export const getSelectedSiteLogo = ( state: State ) => state.siteLogo;
|
|
41
|
+
export const getSelectedSiteDescription = ( state: State ) => state.siteDescription;
|
|
42
|
+
export const getSelectedSiteAccentColor = ( state: State ) => state.siteAccentColor;
|
|
43
|
+
export const getSelectedReadymadeTemplate = ( state: State ) => state.readymadeTemplate;
|
|
16
44
|
export const getIntent = ( state: State ) => state.intent;
|
|
17
45
|
export const getStartingPoint = ( state: State ) => state.startingPoint;
|
|
18
46
|
export const getStoreType = ( state: State ) => state.storeType;
|
|
19
47
|
export const getPendingAction = ( state: State ) => state.pendingAction;
|
|
20
48
|
export const getProgress = ( state: State ) => state.progress;
|
|
21
49
|
export const getProgressTitle = ( state: State ) => state.progressTitle;
|
|
22
|
-
export const getStepProgress = ( state: State ) => state.stepProgress;
|
|
23
50
|
export const getGoals = ( state: State ) => state.goals;
|
|
51
|
+
export const getStoreLocationCountryCode = ( state: State ) => state.storeLocationCountryCode;
|
|
52
|
+
export const getEcommerceFlowRecurType = ( state: State ) => state.ecommerceFlowRecurType;
|
|
53
|
+
export const getCouponCode = ( state: State ) => state.couponCode;
|
|
54
|
+
export const getStorageAddonSlug = ( state: State ) => state.storageAddonSlug;
|
|
24
55
|
export const getState = ( state: State ) => state;
|
|
25
56
|
export const hasPaidDesign = ( state: State ): boolean => {
|
|
26
57
|
if ( ! state.selectedDesign ) {
|
|
27
58
|
return false;
|
|
28
59
|
}
|
|
29
|
-
return state.selectedDesign
|
|
60
|
+
return state.selectedDesign?.design_tier !== 'free';
|
|
30
61
|
};
|
|
31
62
|
export const hasPaidDomain = ( state: State ): boolean => {
|
|
32
63
|
if ( ! state.domain ) {
|
|
@@ -37,12 +68,17 @@ export const hasPaidDomain = ( state: State ): boolean => {
|
|
|
37
68
|
export const hasSiteTitle = ( state: State ) => state.siteTitle.trim().length > 1; // for valid domain results, we need at least 2 characters
|
|
38
69
|
|
|
39
70
|
// Selectors dependent on other selectors (cannot be put in alphabetical order)
|
|
40
|
-
export const getDomainSearch = ( state: State ) =>
|
|
41
|
-
state.domainSearch ||
|
|
42
|
-
( isGoodDefaultDomainQuery( getSelectedSiteTitle( state ) ) && getSelectedSiteTitle( state ) ) ||
|
|
43
|
-
undefined;
|
|
44
|
-
|
|
45
71
|
export const hasSelectedDesign = ( state: State ) => !! state.selectedDesign;
|
|
46
72
|
|
|
47
|
-
export const
|
|
48
|
-
|
|
73
|
+
export const getDomainForm = ( state: State ) => state.domainForm;
|
|
74
|
+
export const getDomainCartItem = ( state: State ) => state.domainCartItem;
|
|
75
|
+
export const getDomainCartItems = ( state: State ) => state.domainCartItems;
|
|
76
|
+
export const getSignupDomainOrigin = ( state: State ) => state.signupDomainOrigin;
|
|
77
|
+
export const getSiteUrl = ( state: State ) => state.siteUrl;
|
|
78
|
+
export const getHideFreePlan = ( state: State ) => state.hideFreePlan;
|
|
79
|
+
export const getHidePlansFeatureComparison = ( state: State ) => state.hidePlansFeatureComparison;
|
|
80
|
+
export const getIsMigrateFromWp = ( state: State ) => state.isMigrateFromWp;
|
|
81
|
+
export const getPluginsToVerify = ( state: State ) => state.pluginsToVerify;
|
|
82
|
+
export const getProfilerData = ( state: State ) => state.profilerData;
|
|
83
|
+
export const getPaidSubscribers = ( state: State ) => state.paidSubscribers;
|
|
84
|
+
export const getPartnerBundle = ( state: State ) => state.partnerBundle;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jest-environment jsdom
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { setProfilerData } from '../actions';
|
|
6
|
+
import { ProfilerData } from '../types';
|
|
7
|
+
|
|
8
|
+
describe( 'actions', () => {
|
|
9
|
+
const expectedProfilerData = {
|
|
10
|
+
industry: 'clothing_and_accessories',
|
|
11
|
+
persona: 'im_already_selling_online',
|
|
12
|
+
platforms: [ 'shopify' ],
|
|
13
|
+
store_location: 'us',
|
|
14
|
+
store_name: 'Beautifully Handmade, 手工精美',
|
|
15
|
+
} as ProfilerData;
|
|
16
|
+
|
|
17
|
+
it( 'should return a SET_PROFILER_DATA action', () => {
|
|
18
|
+
const expected = {
|
|
19
|
+
type: 'SET_PROFILER_DATA',
|
|
20
|
+
profilerData: expectedProfilerData,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
expect( setProfilerData( expectedProfilerData ) ).toEqual( expected );
|
|
24
|
+
} );
|
|
25
|
+
} );
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { profilerData } from '../reducer';
|
|
2
|
+
import { ProfilerData } from '../types';
|
|
3
|
+
|
|
4
|
+
describe( 'reducer', () => {
|
|
5
|
+
it( 'returns the correct default state', () => {
|
|
6
|
+
const state = profilerData( undefined, { type: 'TEST_ACTION' } );
|
|
7
|
+
expect( state ).toEqual( undefined );
|
|
8
|
+
} );
|
|
9
|
+
|
|
10
|
+
it( 'returns the profiler data', () => {
|
|
11
|
+
const expectedProfilerData = {
|
|
12
|
+
industry: 'clothing_and_accessories',
|
|
13
|
+
persona: 'im_already_selling_online',
|
|
14
|
+
platforms: [ 'shopify' ],
|
|
15
|
+
store_location: 'us',
|
|
16
|
+
store_name: 'Beautifully Handmade, 手工精美',
|
|
17
|
+
} as ProfilerData;
|
|
18
|
+
|
|
19
|
+
const state = profilerData( undefined, {
|
|
20
|
+
type: 'SET_PROFILER_DATA',
|
|
21
|
+
profilerData: expectedProfilerData,
|
|
22
|
+
} );
|
|
23
|
+
|
|
24
|
+
expect( state ).toEqual( expectedProfilerData );
|
|
25
|
+
} );
|
|
26
|
+
} );
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jest-environment jsdom
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { getProfilerData } from '../selectors';
|
|
6
|
+
import type { State } from '../reducer';
|
|
7
|
+
|
|
8
|
+
describe( 'selectors', () => {
|
|
9
|
+
it( 'should return the profiler data', () => {
|
|
10
|
+
const expectedProfilerData = {
|
|
11
|
+
industry: 'clothing_and_accessories',
|
|
12
|
+
persona: 'im_already_selling_online',
|
|
13
|
+
platforms: [ 'shopify' ],
|
|
14
|
+
store_location: 'us',
|
|
15
|
+
store_name: 'Beautifully Handmade, 手工精美',
|
|
16
|
+
};
|
|
17
|
+
const state: State = {
|
|
18
|
+
profilerData: expectedProfilerData,
|
|
19
|
+
};
|
|
20
|
+
expect( getProfilerData( state ) ).toEqual( expectedProfilerData );
|
|
21
|
+
} );
|
|
22
|
+
} );
|