@automattic/data-stores 3.1.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -1
- package/README.md +10 -9
- package/dist/cjs/add-ons/hooks/use-add-on-prices.js +3 -3
- package/dist/cjs/add-ons/hooks/use-add-on-prices.js.map +1 -1
- package/dist/cjs/add-ons/icons/custom-design.js +1 -1
- package/dist/cjs/add-ons/icons/custom-design.js.map +1 -1
- package/dist/cjs/add-ons/icons/unlimited-themes.js +1 -1
- package/dist/cjs/add-ons/icons/unlimited-themes.js.map +1 -1
- package/dist/cjs/contextual-help/admin-sections.js +2 -2
- package/dist/cjs/contextual-help/admin-sections.js.map +1 -1
- package/dist/cjs/help-center/actions.js +89 -62
- package/dist/cjs/help-center/actions.js.map +1 -1
- package/dist/cjs/help-center/index.js +13 -12
- package/dist/cjs/help-center/index.js.map +1 -1
- package/dist/cjs/help-center/reducer.js +32 -16
- package/dist/cjs/help-center/reducer.js.map +1 -1
- package/dist/cjs/help-center/resolvers.js +6 -1
- package/dist/cjs/help-center/resolvers.js.map +1 -1
- package/dist/cjs/help-center/selectors.js +11 -7
- package/dist/cjs/help-center/selectors.js.map +1 -1
- package/dist/cjs/index.js +3 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/onboard/actions.js +10 -10
- package/dist/cjs/onboard/actions.js.map +1 -1
- package/dist/cjs/onboard/index.js +0 -1
- package/dist/cjs/onboard/index.js.map +1 -1
- package/dist/cjs/onboard/reducer.js +18 -16
- package/dist/cjs/onboard/reducer.js.map +1 -1
- package/dist/cjs/onboard/selectors.js +5 -5
- package/dist/cjs/onboard/selectors.js.map +1 -1
- package/dist/cjs/plans/queries/use-plans.js +20 -1
- package/dist/cjs/plans/queries/use-plans.js.map +1 -1
- package/dist/cjs/plans/resolvers.js +4 -4
- package/dist/cjs/plans/resolvers.js.map +1 -1
- package/dist/cjs/purchases/lib/assembler.js +7 -13
- package/dist/cjs/purchases/lib/assembler.js.map +1 -1
- package/dist/cjs/purchases/queries/lib/use-query-keys-factory.js +1 -0
- package/dist/cjs/purchases/queries/lib/use-query-keys-factory.js.map +1 -1
- package/dist/cjs/purchases/queries/use-get-jetpack-transferred-license-purchases.js +33 -0
- package/dist/cjs/purchases/queries/use-get-jetpack-transferred-license-purchases.js.map +1 -0
- package/dist/cjs/queries/use-launchpad.js +3 -2
- package/dist/cjs/queries/use-launchpad.js.map +1 -1
- package/dist/cjs/queries/use-site-domains-query.js.map +1 -1
- package/dist/cjs/queries/use-site-intent.js.map +1 -1
- package/dist/cjs/reader/mutations/use-site-subscribe-mutation.js +1 -1
- package/dist/cjs/reader/mutations/use-site-subscribe-mutation.js.map +1 -1
- package/dist/cjs/reader/mutations/use-site-unsubscribe-mutation.js +4 -0
- package/dist/cjs/reader/mutations/use-site-unsubscribe-mutation.js.map +1 -1
- package/dist/cjs/site/actions.js +1 -1
- package/dist/cjs/site/actions.js.map +1 -1
- package/dist/cjs/site/constants.js +2 -1
- package/dist/cjs/site/constants.js.map +1 -1
- package/dist/cjs/site/types.js.map +1 -1
- package/dist/esm/add-ons/hooks/use-add-on-prices.js +1 -1
- package/dist/esm/add-ons/hooks/use-add-on-prices.js.map +1 -1
- package/dist/esm/add-ons/icons/custom-design.js +2 -2
- package/dist/esm/add-ons/icons/custom-design.js.map +1 -1
- package/dist/esm/add-ons/icons/unlimited-themes.js +2 -2
- package/dist/esm/add-ons/icons/unlimited-themes.js.map +1 -1
- package/dist/esm/contextual-help/admin-sections.js +2 -2
- package/dist/esm/contextual-help/admin-sections.js.map +1 -1
- package/dist/esm/help-center/actions.js +81 -57
- package/dist/esm/help-center/actions.js.map +1 -1
- package/dist/esm/help-center/index.js +11 -10
- package/dist/esm/help-center/index.js.map +1 -1
- package/dist/esm/help-center/reducer.js +32 -16
- package/dist/esm/help-center/reducer.js.map +1 -1
- package/dist/esm/help-center/resolvers.js +6 -1
- package/dist/esm/help-center/resolvers.js.map +1 -1
- package/dist/esm/help-center/selectors.js +5 -3
- package/dist/esm/help-center/selectors.js.map +1 -1
- package/dist/esm/index.js +2 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/onboard/actions.js +7 -7
- package/dist/esm/onboard/actions.js.map +1 -1
- package/dist/esm/onboard/index.js +0 -1
- package/dist/esm/onboard/index.js.map +1 -1
- package/dist/esm/onboard/reducer.js +15 -15
- package/dist/esm/onboard/reducer.js.map +1 -1
- package/dist/esm/onboard/selectors.js +2 -2
- package/dist/esm/onboard/selectors.js.map +1 -1
- package/dist/esm/plans/queries/use-plans.js +20 -1
- package/dist/esm/plans/queries/use-plans.js.map +1 -1
- package/dist/esm/plans/resolvers.js +1 -1
- package/dist/esm/plans/resolvers.js.map +1 -1
- package/dist/esm/purchases/lib/assembler.js +7 -13
- package/dist/esm/purchases/lib/assembler.js.map +1 -1
- package/dist/esm/purchases/queries/lib/use-query-keys-factory.js +1 -0
- package/dist/esm/purchases/queries/lib/use-query-keys-factory.js.map +1 -1
- package/dist/esm/purchases/queries/use-get-jetpack-transferred-license-purchases.js +29 -0
- package/dist/esm/purchases/queries/use-get-jetpack-transferred-license-purchases.js.map +1 -0
- package/dist/esm/queries/use-launchpad.js +2 -2
- package/dist/esm/queries/use-launchpad.js.map +1 -1
- package/dist/esm/queries/use-site-domains-query.js.map +1 -1
- package/dist/esm/queries/use-site-intent.js.map +1 -1
- package/dist/esm/reader/mutations/use-site-subscribe-mutation.js +1 -1
- package/dist/esm/reader/mutations/use-site-subscribe-mutation.js.map +1 -1
- package/dist/esm/reader/mutations/use-site-unsubscribe-mutation.js +4 -0
- package/dist/esm/reader/mutations/use-site-unsubscribe-mutation.js.map +1 -1
- package/dist/esm/site/actions.js +1 -1
- package/dist/esm/site/actions.js.map +1 -1
- package/dist/esm/site/constants.js +1 -0
- package/dist/esm/site/constants.js.map +1 -1
- package/dist/esm/site/types.js.map +1 -1
- package/dist/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/add-ons/icons/custom-design.d.ts.map +1 -1
- package/dist/types/add-ons/icons/unlimited-themes.d.ts.map +1 -1
- package/dist/types/help-center/actions.d.ts +53 -30
- package/dist/types/help-center/actions.d.ts.map +1 -1
- package/dist/types/help-center/index.d.ts +1 -1
- package/dist/types/help-center/index.d.ts.map +1 -1
- package/dist/types/help-center/reducer.d.ts +14 -7
- package/dist/types/help-center/reducer.d.ts.map +1 -1
- package/dist/types/help-center/resolvers.d.ts +22 -3
- package/dist/types/help-center/resolvers.d.ts.map +1 -1
- package/dist/types/help-center/selectors.d.ts +8 -3
- package/dist/types/help-center/selectors.d.ts.map +1 -1
- package/dist/types/help-center/types.d.ts +3 -1
- package/dist/types/help-center/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +478 -46
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/onboard/actions.d.ts +13 -24
- package/dist/types/onboard/actions.d.ts.map +1 -1
- package/dist/types/onboard/index.d.ts.map +1 -1
- package/dist/types/onboard/reducer.d.ts +7 -5
- package/dist/types/onboard/reducer.d.ts.map +1 -1
- package/dist/types/onboard/selectors.d.ts +6 -6
- package/dist/types/onboard/selectors.d.ts.map +1 -1
- package/dist/types/onboard/types.d.ts +1 -1
- package/dist/types/onboard/types.d.ts.map +1 -1
- package/dist/types/plans/queries/use-plans.d.ts.map +1 -1
- package/dist/types/purchases/lib/assembler.d.ts +3 -3
- package/dist/types/purchases/lib/assembler.d.ts.map +1 -1
- package/dist/types/purchases/queries/lib/use-query-keys-factory.d.ts +1 -0
- package/dist/types/purchases/queries/lib/use-query-keys-factory.d.ts.map +1 -1
- package/dist/types/purchases/queries/use-get-jetpack-transferred-license-purchases.d.ts +18 -0
- package/dist/types/purchases/queries/use-get-jetpack-transferred-license-purchases.d.ts.map +1 -0
- package/dist/types/purchases/types.d.ts +16 -106
- package/dist/types/purchases/types.d.ts.map +1 -1
- package/dist/types/queries/use-all-domains-query.d.ts +1 -1
- package/dist/types/queries/use-all-domains-query.d.ts.map +1 -1
- package/dist/types/queries/use-launchpad.d.ts +1 -0
- package/dist/types/queries/use-launchpad.d.ts.map +1 -1
- package/dist/types/queries/use-site-domains-query.d.ts +2 -1
- package/dist/types/queries/use-site-domains-query.d.ts.map +1 -1
- package/dist/types/queries/use-site-intent.d.ts +2 -1
- package/dist/types/queries/use-site-intent.d.ts.map +1 -1
- package/dist/types/queries/use-site-query.d.ts +1 -1
- package/dist/types/queries/use-site-query.d.ts.map +1 -1
- package/dist/types/reader/index.d.ts +475 -41
- package/dist/types/reader/index.d.ts.map +1 -1
- package/dist/types/reader/mutations/use-site-subscribe-mutation.d.ts +1 -1
- package/dist/types/reader/mutations/use-site-subscribe-mutation.d.ts.map +1 -1
- package/dist/types/reader/mutations/use-site-unsubscribe-mutation.d.ts +2 -0
- package/dist/types/reader/mutations/use-site-unsubscribe-mutation.d.ts.map +1 -1
- package/dist/types/reader/queries/use-pending-post-subscriptions-query.d.ts +75 -7
- package/dist/types/reader/queries/use-pending-post-subscriptions-query.d.ts.map +1 -1
- package/dist/types/reader/queries/use-pending-site-subscriptions-query.d.ts +75 -7
- package/dist/types/reader/queries/use-pending-site-subscriptions-query.d.ts.map +1 -1
- package/dist/types/reader/queries/use-post-subscriptions-query.d.ts +143 -13
- package/dist/types/reader/queries/use-post-subscriptions-query.d.ts.map +1 -1
- package/dist/types/reader/queries/use-site-subscriptions-query.d.ts +103 -13
- package/dist/types/reader/queries/use-site-subscriptions-query.d.ts.map +1 -1
- 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/types.d.ts +12 -2
- package/dist/types/site/types.d.ts.map +1 -1
- package/dist/types/user/actions.d.ts +1 -1
- package/dist/types/user/reducer.d.ts +1 -1
- package/dist/types/user/resolvers.d.ts +2 -2
- package/dist/types/user/selectors.d.ts +2 -2
- package/dist/types/user/selectors.d.ts.map +1 -1
- package/dist/types/user/types.d.ts +2 -31
- package/dist/types/user/types.d.ts.map +1 -1
- package/package.json +28 -21
- package/src/add-ons/hooks/use-add-on-prices.ts +1 -1
- package/src/add-ons/icons/custom-design.tsx +3 -11
- package/src/add-ons/icons/unlimited-themes.tsx +3 -12
- package/src/contextual-help/admin-sections.ts +2 -2
- package/src/help-center/actions.ts +101 -65
- package/src/help-center/index.ts +10 -8
- package/src/help-center/reducer.ts +45 -24
- package/src/help-center/resolvers.ts +20 -3
- package/src/help-center/selectors.ts +6 -3
- package/src/help-center/types.ts +3 -1
- package/src/index.ts +6 -6
- package/src/newsletter-categories/test/index.tsx +5 -7
- package/src/onboard/actions.ts +11 -24
- package/src/onboard/index.ts +0 -1
- package/src/onboard/reducer.ts +18 -19
- package/src/onboard/selectors.ts +2 -2
- package/src/onboard/types.ts +1 -1
- package/src/plans/queries/use-plans.ts +29 -1
- package/src/plans/resolvers.ts +1 -1
- package/src/purchases/lib/assembler.ts +11 -21
- package/src/purchases/queries/lib/use-query-keys-factory.ts +1 -0
- package/src/purchases/queries/use-get-jetpack-transferred-license-purchases.tsx +43 -0
- package/src/purchases/types.ts +21 -113
- package/src/queries/use-launchpad.ts +2 -2
- package/src/queries/use-site-domains-query.ts +1 -0
- package/src/queries/use-site-intent.ts +2 -1
- package/src/reader/mutations/use-site-subscribe-mutation.ts +2 -2
- package/src/reader/mutations/use-site-unsubscribe-mutation.ts +7 -0
- package/src/reader/queries/test/use-read-feed-search-query.tsx +1 -1
- package/src/site/actions.ts +1 -1
- package/src/site/constants.ts +1 -0
- package/src/site/test/selectors.ts +0 -1
- package/src/site/types.ts +12 -2
- package/src/user/types.ts +2 -36
- package/dist/cjs/analyzer/actions.js +0 -38
- package/dist/cjs/analyzer/actions.js.map +0 -1
- package/dist/cjs/analyzer/constants.js +0 -5
- package/dist/cjs/analyzer/constants.js.map +0 -1
- package/dist/cjs/analyzer/index.js +0 -19
- package/dist/cjs/analyzer/index.js.map +0 -1
- package/dist/cjs/analyzer/reducers.js +0 -27
- package/dist/cjs/analyzer/reducers.js.map +0 -1
- package/dist/cjs/analyzer/selectors.js +0 -15
- package/dist/cjs/analyzer/selectors.js.map +0 -1
- package/dist/cjs/analyzer/types.js +0 -3
- package/dist/cjs/analyzer/types.js.map +0 -1
- package/dist/cjs/domain-suggestions/actions.js +0 -33
- package/dist/cjs/domain-suggestions/actions.js.map +0 -1
- package/dist/cjs/domain-suggestions/constants.js +0 -12
- package/dist/cjs/domain-suggestions/constants.js.map +0 -1
- package/dist/cjs/domain-suggestions/index.js +0 -25
- package/dist/cjs/domain-suggestions/index.js.map +0 -1
- package/dist/cjs/domain-suggestions/queries.js +0 -78
- package/dist/cjs/domain-suggestions/queries.js.map +0 -1
- package/dist/cjs/domain-suggestions/reducer.js +0 -65
- package/dist/cjs/domain-suggestions/reducer.js.map +0 -1
- package/dist/cjs/domain-suggestions/resolvers.js +0 -91
- package/dist/cjs/domain-suggestions/resolvers.js.map +0 -1
- package/dist/cjs/domain-suggestions/selectors.js +0 -58
- package/dist/cjs/domain-suggestions/selectors.js.map +0 -1
- package/dist/cjs/domain-suggestions/types.js +0 -3
- package/dist/cjs/domain-suggestions/types.js.map +0 -1
- package/dist/cjs/domain-suggestions/utils.js +0 -47
- package/dist/cjs/domain-suggestions/utils.js.map +0 -1
- package/dist/esm/analyzer/actions.js +0 -35
- package/dist/esm/analyzer/actions.js.map +0 -1
- package/dist/esm/analyzer/constants.js +0 -2
- package/dist/esm/analyzer/constants.js.map +0 -1
- package/dist/esm/analyzer/index.js +0 -15
- package/dist/esm/analyzer/index.js.map +0 -1
- package/dist/esm/analyzer/reducers.js +0 -25
- package/dist/esm/analyzer/reducers.js.map +0 -1
- package/dist/esm/analyzer/selectors.js +0 -9
- package/dist/esm/analyzer/selectors.js.map +0 -1
- package/dist/esm/analyzer/types.js +0 -2
- package/dist/esm/analyzer/types.js.map +0 -1
- package/dist/esm/domain-suggestions/actions.js +0 -25
- package/dist/esm/domain-suggestions/actions.js.map +0 -1
- package/dist/esm/domain-suggestions/constants.js +0 -9
- package/dist/esm/domain-suggestions/constants.js.map +0 -1
- package/dist/esm/domain-suggestions/index.js +0 -20
- package/dist/esm/domain-suggestions/index.js.map +0 -1
- package/dist/esm/domain-suggestions/queries.js +0 -72
- package/dist/esm/domain-suggestions/queries.js.map +0 -1
- package/dist/esm/domain-suggestions/reducer.js +0 -61
- package/dist/esm/domain-suggestions/reducer.js.map +0 -1
- package/dist/esm/domain-suggestions/resolvers.js +0 -84
- package/dist/esm/domain-suggestions/resolvers.js.map +0 -1
- package/dist/esm/domain-suggestions/selectors.js +0 -47
- package/dist/esm/domain-suggestions/selectors.js.map +0 -1
- package/dist/esm/domain-suggestions/types.js +0 -2
- package/dist/esm/domain-suggestions/types.js.map +0 -1
- package/dist/esm/domain-suggestions/utils.js +0 -41
- package/dist/esm/domain-suggestions/utils.js.map +0 -1
- package/dist/types/analyzer/actions.d.ts +0 -37
- package/dist/types/analyzer/actions.d.ts.map +0 -1
- package/dist/types/analyzer/constants.d.ts +0 -2
- package/dist/types/analyzer/constants.d.ts.map +0 -1
- package/dist/types/analyzer/index.d.ts +0 -38
- package/dist/types/analyzer/index.d.ts.map +0 -1
- package/dist/types/analyzer/reducers.d.ts +0 -11
- package/dist/types/analyzer/reducers.d.ts.map +0 -1
- package/dist/types/analyzer/selectors.d.ts +0 -7
- package/dist/types/analyzer/selectors.d.ts.map +0 -1
- package/dist/types/analyzer/types.d.ts +0 -35
- package/dist/types/analyzer/types.d.ts.map +0 -1
- package/dist/types/domain-suggestions/actions.d.ts +0 -27
- package/dist/types/domain-suggestions/actions.d.ts.map +0 -1
- package/dist/types/domain-suggestions/constants.d.ts +0 -8
- package/dist/types/domain-suggestions/constants.d.ts.map +0 -1
- package/dist/types/domain-suggestions/index.d.ts +0 -10
- package/dist/types/domain-suggestions/index.d.ts.map +0 -1
- package/dist/types/domain-suggestions/queries.d.ts +0 -323
- package/dist/types/domain-suggestions/queries.d.ts.map +0 -1
- package/dist/types/domain-suggestions/reducer.d.ts +0 -16
- package/dist/types/domain-suggestions/reducer.d.ts.map +0 -1
- package/dist/types/domain-suggestions/resolvers.d.ts +0 -39
- package/dist/types/domain-suggestions/resolvers.d.ts.map +0 -1
- package/dist/types/domain-suggestions/selectors.d.ts +0 -18
- package/dist/types/domain-suggestions/selectors.d.ts.map +0 -1
- package/dist/types/domain-suggestions/types.d.ts +0 -206
- package/dist/types/domain-suggestions/types.d.ts.map +0 -1
- package/dist/types/domain-suggestions/utils.d.ts +0 -23
- package/dist/types/domain-suggestions/utils.d.ts.map +0 -1
- package/src/analyzer/actions.ts +0 -49
- package/src/analyzer/constants.ts +0 -1
- package/src/analyzer/index.ts +0 -17
- package/src/analyzer/reducers.ts +0 -36
- package/src/analyzer/selectors.ts +0 -11
- package/src/analyzer/types.ts +0 -37
- package/src/domain-suggestions/actions.ts +0 -51
- package/src/domain-suggestions/constants.ts +0 -8
- package/src/domain-suggestions/index.ts +0 -22
- package/src/domain-suggestions/queries.ts +0 -85
- package/src/domain-suggestions/reducer.ts +0 -77
- package/src/domain-suggestions/resolvers.ts +0 -110
- package/src/domain-suggestions/selectors.ts +0 -86
- package/src/domain-suggestions/test/reducer.ts +0 -105
- package/src/domain-suggestions/test/selectors.ts +0 -127
- package/src/domain-suggestions/types.ts +0 -254
- package/src/domain-suggestions/utils.ts +0 -50
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { AnalyzeColorsResponse } from './types';
|
|
2
|
-
export declare function createActions(): {
|
|
3
|
-
colorsAnalyzeStart: (url: string) => {
|
|
4
|
-
type: "COLORS_ANALYZE_START";
|
|
5
|
-
url: string;
|
|
6
|
-
};
|
|
7
|
-
colorsAnalyzeSuccess: (url: string, data: AnalyzeColorsResponse) => {
|
|
8
|
-
type: "COLORS_ANALYZE_SUCCESS";
|
|
9
|
-
data: {
|
|
10
|
-
url: string;
|
|
11
|
-
colors: import("./types").ColorsData & import("./types").PreferredPalettes;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
colorsAnalyzeFailed: (url: string) => {
|
|
15
|
-
type: "COLORS_ANALYZE_FAILED";
|
|
16
|
-
url: string;
|
|
17
|
-
};
|
|
18
|
-
analyzeColors: (url: string) => Generator<{
|
|
19
|
-
type: "WPCOM_REQUEST";
|
|
20
|
-
request: import("wpcom-proxy-request").WpcomRequestParams;
|
|
21
|
-
} | {
|
|
22
|
-
type: "COLORS_ANALYZE_START";
|
|
23
|
-
url: string;
|
|
24
|
-
} | {
|
|
25
|
-
type: "COLORS_ANALYZE_SUCCESS";
|
|
26
|
-
data: {
|
|
27
|
-
url: string;
|
|
28
|
-
colors: import("./types").ColorsData & import("./types").PreferredPalettes;
|
|
29
|
-
};
|
|
30
|
-
} | {
|
|
31
|
-
type: "COLORS_ANALYZE_FAILED";
|
|
32
|
-
url: string;
|
|
33
|
-
}, void, AnalyzeColorsResponse>;
|
|
34
|
-
};
|
|
35
|
-
export type ActionCreators = ReturnType<typeof createActions>;
|
|
36
|
-
export type Action = ReturnType<ActionCreators['colorsAnalyzeStart'] | ActionCreators['colorsAnalyzeSuccess'] | ActionCreators['colorsAnalyzeFailed']>;
|
|
37
|
-
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/analyzer/actions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,aAAa;8BACM,MAAM;;;;gCAKJ,MAAM,QAAQ,qBAAqB;;;;;;;+BAKpC,MAAM;;;;yBAKX,MAAM;;;;;;;;;;;;;;;;EAqBpC;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CAAE,OAAO,aAAa,CAAE,CAAC;AAEhE,MAAM,MAAM,MAAM,GAAG,UAAU,CAC5B,cAAc,CAAE,oBAAoB,CAAE,GACtC,cAAc,CAAE,sBAAsB,CAAE,GACxC,cAAc,CAAE,qBAAqB,CAAE,CACzC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/analyzer/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,wBAAwB,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { State } from './reducers';
|
|
2
|
-
import * as selectors from './selectors';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export type { State };
|
|
5
|
-
export declare const store: import("@wordpress/data/build-types/types").StoreDescriptor<import("@wordpress/data/build-types/types").ReduxStoreConfig<unknown, {
|
|
6
|
-
colorsAnalyzeStart: (url: string) => {
|
|
7
|
-
type: "COLORS_ANALYZE_START";
|
|
8
|
-
url: string;
|
|
9
|
-
};
|
|
10
|
-
colorsAnalyzeSuccess: (url: string, data: import("./types").AnalyzeColorsResponse) => {
|
|
11
|
-
type: "COLORS_ANALYZE_SUCCESS";
|
|
12
|
-
data: {
|
|
13
|
-
url: string;
|
|
14
|
-
colors: import("./types").ColorsData & import("./types").PreferredPalettes;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
colorsAnalyzeFailed: (url: string) => {
|
|
18
|
-
type: "COLORS_ANALYZE_FAILED";
|
|
19
|
-
url: string;
|
|
20
|
-
};
|
|
21
|
-
analyzeColors: (url: string) => Generator<{
|
|
22
|
-
type: "WPCOM_REQUEST";
|
|
23
|
-
request: import("wpcom-proxy-request").WpcomRequestParams;
|
|
24
|
-
} | {
|
|
25
|
-
type: "COLORS_ANALYZE_START";
|
|
26
|
-
url: string;
|
|
27
|
-
} | {
|
|
28
|
-
type: "COLORS_ANALYZE_SUCCESS";
|
|
29
|
-
data: {
|
|
30
|
-
url: string;
|
|
31
|
-
colors: import("./types").ColorsData & import("./types").PreferredPalettes;
|
|
32
|
-
};
|
|
33
|
-
} | {
|
|
34
|
-
type: "COLORS_ANALYZE_FAILED";
|
|
35
|
-
url: string;
|
|
36
|
-
}, void, import("./types").AnalyzeColorsResponse>;
|
|
37
|
-
}, typeof selectors>>;
|
|
38
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/analyzer/index.ts"],"names":[],"mappings":"AAIA,OAAgB,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,cAAc,SAAS,CAAC;AACxB,YAAY,EAAE,KAAK,EAAE,CAAC;AAEtB,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAKf,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Action } from './actions';
|
|
2
|
-
import type { ColorsState } from './types';
|
|
3
|
-
import type { Reducer } from 'redux';
|
|
4
|
-
declare const reducers: Reducer<{
|
|
5
|
-
analyzer: ColorsState;
|
|
6
|
-
}, Action, Partial<{
|
|
7
|
-
analyzer: never;
|
|
8
|
-
}>>;
|
|
9
|
-
export type State = ReturnType<typeof reducers>;
|
|
10
|
-
export default reducers;
|
|
11
|
-
//# sourceMappingURL=reducers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reducers.d.ts","sourceRoot":"","sources":["../../../src/analyzer/reducers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AA4BrC,QAAA,MAAM,QAAQ;;;;GAAkC,CAAC;AAEjD,MAAM,MAAM,KAAK,GAAG,UAAU,CAAE,OAAO,QAAQ,CAAE,CAAC;AAElD,eAAe,QAAQ,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { State } from './reducers';
|
|
2
|
-
export declare const getState: (state: State) => {
|
|
3
|
-
analyzer: import("./types").ColorsState;
|
|
4
|
-
};
|
|
5
|
-
export declare const isSiteColorsInAnalysis: (state: State) => boolean | undefined;
|
|
6
|
-
export declare const getSiteColors: (state: State, url: null | string) => (import("./types").ColorsData & import("./types").PreferredPalettes) | null | undefined;
|
|
7
|
-
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../src/analyzer/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,eAAO,MAAM,QAAQ,GAAK,OAAO,KAAK;;CAAW,CAAC;AAClD,eAAO,MAAM,sBAAsB,GAAK,OAAO,KAAK,wBAA8B,CAAC;AACnF,eAAO,MAAM,aAAa,GAAK,OAAO,KAAK,EAAE,KAAK,IAAI,GAAG,MAAM,4FAM9D,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as actions from './actions';
|
|
2
|
-
import type { DispatchFromMap } from '../mapped-types';
|
|
3
|
-
interface Color {
|
|
4
|
-
name: string;
|
|
5
|
-
hex: string;
|
|
6
|
-
}
|
|
7
|
-
export interface ColorsData {
|
|
8
|
-
link: Color[];
|
|
9
|
-
text: Color[];
|
|
10
|
-
background: Color[];
|
|
11
|
-
}
|
|
12
|
-
export interface PreferredPalettes {
|
|
13
|
-
preferred_palettes: {
|
|
14
|
-
link: Color;
|
|
15
|
-
text: Color;
|
|
16
|
-
background: Color;
|
|
17
|
-
}[];
|
|
18
|
-
}
|
|
19
|
-
export interface AnalyzeColorsResponse {
|
|
20
|
-
url: string;
|
|
21
|
-
status: string;
|
|
22
|
-
colors: ColorsData & PreferredPalettes;
|
|
23
|
-
}
|
|
24
|
-
type SiteUrl = string;
|
|
25
|
-
export type ColorsState = {
|
|
26
|
-
analyzing?: boolean;
|
|
27
|
-
colors?: {
|
|
28
|
-
[key: SiteUrl]: ColorsData & PreferredPalettes;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export interface Dispatch {
|
|
32
|
-
dispatch: DispatchFromMap<typeof actions>;
|
|
33
|
-
}
|
|
34
|
-
export {};
|
|
35
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/analyzer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,UAAU,KAAK;IACd,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,KAAK,EAAE,CAAC;IACd,IAAI,EAAE,KAAK,EAAE,CAAC;IACd,UAAU,EAAE,KAAK,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IACjC,kBAAkB,EAAE;QACnB,IAAI,EAAE,KAAK,CAAC;QACZ,IAAI,EAAE,KAAK,CAAC;QACZ,UAAU,EAAE,KAAK,CAAC;KAClB,EAAE,CAAC;CACJ;AAED,MAAM,WAAW,qBAAqB;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,UAAU,GAAG,iBAAiB,CAAC;CACvC;AAED,KAAK,OAAO,GAAG,MAAM,CAAC;AACtB,MAAM,MAAM,WAAW,GAAG;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE;QAAE,CAAE,GAAG,EAAE,OAAO,GAAI,UAAU,GAAG,iBAAiB,CAAA;KAAE,CAAC;CAC9D,CAAC;AAEF,MAAM,WAAW,QAAQ;IACxB,QAAQ,EAAE,eAAe,CAAE,OAAO,OAAO,CAAE,CAAC;CAC5C"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { DomainSuggestion, DomainSuggestionQuery, DomainCategory, DomainAvailability } from './types';
|
|
2
|
-
export declare const receiveCategories: (categories: DomainCategory[]) => {
|
|
3
|
-
readonly type: "RECEIVE_CATEGORIES";
|
|
4
|
-
readonly categories: DomainCategory[];
|
|
5
|
-
};
|
|
6
|
-
export declare const fetchDomainSuggestions: () => {
|
|
7
|
-
readonly type: "FETCH_DOMAIN_SUGGESTIONS";
|
|
8
|
-
readonly timeStamp: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const receiveDomainAvailability: (domainName: string, availability: DomainAvailability) => {
|
|
11
|
-
readonly type: "RECEIVE_DOMAIN_AVAILABILITY";
|
|
12
|
-
readonly domainName: string;
|
|
13
|
-
readonly availability: DomainAvailability;
|
|
14
|
-
};
|
|
15
|
-
export declare const receiveDomainSuggestionsSuccess: (queryObject: DomainSuggestionQuery, suggestions: DomainSuggestion[] | undefined) => {
|
|
16
|
-
readonly type: "RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS";
|
|
17
|
-
readonly queryObject: DomainSuggestionQuery;
|
|
18
|
-
readonly suggestions: DomainSuggestion[] | undefined;
|
|
19
|
-
readonly timeStamp: number;
|
|
20
|
-
};
|
|
21
|
-
export declare const receiveDomainSuggestionsError: (errorMessage: string) => {
|
|
22
|
-
readonly type: "RECEIVE_DOMAIN_SUGGESTIONS_ERROR";
|
|
23
|
-
readonly errorMessage: string;
|
|
24
|
-
readonly timeStamp: number;
|
|
25
|
-
};
|
|
26
|
-
export type Action = ReturnType<typeof receiveCategories | typeof fetchDomainSuggestions | typeof receiveDomainSuggestionsSuccess | typeof receiveDomainSuggestionsError | typeof receiveDomainAvailability>;
|
|
27
|
-
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/domain-suggestions/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,iBAAiB,GAAK,YAAY,cAAc,EAAE;;;CAIlD,CAAC;AAEd,eAAO,MAAM,sBAAsB;;;CAItB,CAAC;AAEd,eAAO,MAAM,yBAAyB,GAAK,YAAY,MAAM,EAAE,cAAc,kBAAkB;;;;CAKlF,CAAC;AAEd,eAAO,MAAM,+BAA+B,GAC3C,aAAa,qBAAqB,EAClC,aAAa,gBAAgB,EAAE,GAAG,SAAS;;;;;CAO/B,CAAC;AAEd,eAAO,MAAM,6BAA6B,GAAK,cAAc,MAAM;;;;CAKtD,CAAC;AAEd,MAAM,MAAM,MAAM,GAAG,UAAU,CAC5B,OAAO,iBAAiB,GACxB,OAAO,sBAAsB,GAC7B,OAAO,+BAA+B,GACtC,OAAO,6BAA6B,GACpC,OAAO,yBAAyB,CAClC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/domain-suggestions/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,mCAAmC,CAAC;AAE1D,oBAAY,UAAU;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,aAAa,kBAAkB;CAC/B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as actions from './actions';
|
|
2
|
-
import { State } from './reducer';
|
|
3
|
-
import * as selectors from './selectors';
|
|
4
|
-
export * from './types';
|
|
5
|
-
export * from './constants';
|
|
6
|
-
export * from './queries';
|
|
7
|
-
export { getFormattedPrice } from './utils';
|
|
8
|
-
export type { State };
|
|
9
|
-
export declare const store: import("@wordpress/data/build-types/types").StoreDescriptor<import("@wordpress/data/build-types/types").ReduxStoreConfig<unknown, typeof actions, typeof selectors>>;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domain-suggestions/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAErC,OAAgB,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAEzC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,YAAY,EAAE,KAAK,EAAE,CAAC;AAEtB,eAAO,MAAM,KAAK,sKAMf,CAAC"}
|
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
import type { DomainSuggestion, DomainSuggestionSelectorOptions } from './types';
|
|
2
|
-
export declare function useGetDomainSuggestions(search?: string | null, searchOptions?: DomainSuggestionSelectorOptions, queryOptions?: {}): {
|
|
3
|
-
invalidateCache: () => Promise<void>;
|
|
4
|
-
data: DomainSuggestion[];
|
|
5
|
-
error: Error;
|
|
6
|
-
isError: true;
|
|
7
|
-
isPending: false;
|
|
8
|
-
isLoadingError: false;
|
|
9
|
-
isRefetchError: true;
|
|
10
|
-
isSuccess: false;
|
|
11
|
-
status: "error";
|
|
12
|
-
dataUpdatedAt: number;
|
|
13
|
-
errorUpdatedAt: number;
|
|
14
|
-
failureCount: number;
|
|
15
|
-
failureReason: Error | null;
|
|
16
|
-
errorUpdateCount: number;
|
|
17
|
-
isFetched: boolean;
|
|
18
|
-
isFetchedAfterMount: boolean;
|
|
19
|
-
isFetching: boolean;
|
|
20
|
-
isLoading: boolean;
|
|
21
|
-
isInitialLoading: boolean;
|
|
22
|
-
isPaused: boolean;
|
|
23
|
-
isPlaceholderData: boolean;
|
|
24
|
-
isRefetching: boolean;
|
|
25
|
-
isStale: boolean;
|
|
26
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
27
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
28
|
-
} | {
|
|
29
|
-
invalidateCache: () => Promise<void>;
|
|
30
|
-
data: DomainSuggestion[];
|
|
31
|
-
error: null;
|
|
32
|
-
isError: false;
|
|
33
|
-
isPending: false;
|
|
34
|
-
isLoadingError: false;
|
|
35
|
-
isRefetchError: false;
|
|
36
|
-
isSuccess: true;
|
|
37
|
-
status: "success";
|
|
38
|
-
dataUpdatedAt: number;
|
|
39
|
-
errorUpdatedAt: number;
|
|
40
|
-
failureCount: number;
|
|
41
|
-
failureReason: Error | null;
|
|
42
|
-
errorUpdateCount: number;
|
|
43
|
-
isFetched: boolean;
|
|
44
|
-
isFetchedAfterMount: boolean;
|
|
45
|
-
isFetching: boolean;
|
|
46
|
-
isLoading: boolean;
|
|
47
|
-
isInitialLoading: boolean;
|
|
48
|
-
isPaused: boolean;
|
|
49
|
-
isPlaceholderData: boolean;
|
|
50
|
-
isRefetching: boolean;
|
|
51
|
-
isStale: boolean;
|
|
52
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
53
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
54
|
-
} | {
|
|
55
|
-
invalidateCache: () => Promise<void>;
|
|
56
|
-
data: undefined;
|
|
57
|
-
error: Error;
|
|
58
|
-
isError: true;
|
|
59
|
-
isPending: false;
|
|
60
|
-
isLoadingError: true;
|
|
61
|
-
isRefetchError: false;
|
|
62
|
-
isSuccess: false;
|
|
63
|
-
status: "error";
|
|
64
|
-
dataUpdatedAt: number;
|
|
65
|
-
errorUpdatedAt: number;
|
|
66
|
-
failureCount: number;
|
|
67
|
-
failureReason: Error | null;
|
|
68
|
-
errorUpdateCount: number;
|
|
69
|
-
isFetched: boolean;
|
|
70
|
-
isFetchedAfterMount: boolean;
|
|
71
|
-
isFetching: boolean;
|
|
72
|
-
isLoading: boolean;
|
|
73
|
-
isInitialLoading: boolean;
|
|
74
|
-
isPaused: boolean;
|
|
75
|
-
isPlaceholderData: boolean;
|
|
76
|
-
isRefetching: boolean;
|
|
77
|
-
isStale: boolean;
|
|
78
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
79
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
80
|
-
} | {
|
|
81
|
-
invalidateCache: () => Promise<void>;
|
|
82
|
-
data: undefined;
|
|
83
|
-
error: null;
|
|
84
|
-
isError: false;
|
|
85
|
-
isPending: true;
|
|
86
|
-
isLoadingError: false;
|
|
87
|
-
isRefetchError: false;
|
|
88
|
-
isSuccess: false;
|
|
89
|
-
status: "pending";
|
|
90
|
-
dataUpdatedAt: number;
|
|
91
|
-
errorUpdatedAt: number;
|
|
92
|
-
failureCount: number;
|
|
93
|
-
failureReason: Error | null;
|
|
94
|
-
errorUpdateCount: number;
|
|
95
|
-
isFetched: boolean;
|
|
96
|
-
isFetchedAfterMount: boolean;
|
|
97
|
-
isFetching: boolean;
|
|
98
|
-
isLoading: boolean;
|
|
99
|
-
isInitialLoading: boolean;
|
|
100
|
-
isPaused: boolean;
|
|
101
|
-
isPlaceholderData: boolean;
|
|
102
|
-
isRefetching: boolean;
|
|
103
|
-
isStale: boolean;
|
|
104
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
105
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Returns the expected *.wordpress.com for a given domain name
|
|
109
|
-
*/
|
|
110
|
-
export declare function useGetWordPressSubdomain(paidDomainName?: string | null): {
|
|
111
|
-
invalidateCache: () => Promise<void>;
|
|
112
|
-
data: DomainSuggestion[];
|
|
113
|
-
error: Error;
|
|
114
|
-
isError: true;
|
|
115
|
-
isPending: false;
|
|
116
|
-
isLoadingError: false;
|
|
117
|
-
isRefetchError: true;
|
|
118
|
-
isSuccess: false;
|
|
119
|
-
status: "error";
|
|
120
|
-
dataUpdatedAt: number;
|
|
121
|
-
errorUpdatedAt: number;
|
|
122
|
-
failureCount: number;
|
|
123
|
-
failureReason: Error | null;
|
|
124
|
-
errorUpdateCount: number;
|
|
125
|
-
isFetched: boolean;
|
|
126
|
-
isFetchedAfterMount: boolean;
|
|
127
|
-
isFetching: boolean;
|
|
128
|
-
isLoading: boolean;
|
|
129
|
-
isInitialLoading: boolean;
|
|
130
|
-
isPaused: boolean;
|
|
131
|
-
isPlaceholderData: boolean;
|
|
132
|
-
isRefetching: boolean;
|
|
133
|
-
isStale: boolean;
|
|
134
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
135
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
136
|
-
} | {
|
|
137
|
-
invalidateCache: () => Promise<void>;
|
|
138
|
-
data: DomainSuggestion[];
|
|
139
|
-
error: null;
|
|
140
|
-
isError: false;
|
|
141
|
-
isPending: false;
|
|
142
|
-
isLoadingError: false;
|
|
143
|
-
isRefetchError: false;
|
|
144
|
-
isSuccess: true;
|
|
145
|
-
status: "success";
|
|
146
|
-
dataUpdatedAt: number;
|
|
147
|
-
errorUpdatedAt: number;
|
|
148
|
-
failureCount: number;
|
|
149
|
-
failureReason: Error | null;
|
|
150
|
-
errorUpdateCount: number;
|
|
151
|
-
isFetched: boolean;
|
|
152
|
-
isFetchedAfterMount: boolean;
|
|
153
|
-
isFetching: boolean;
|
|
154
|
-
isLoading: boolean;
|
|
155
|
-
isInitialLoading: boolean;
|
|
156
|
-
isPaused: boolean;
|
|
157
|
-
isPlaceholderData: boolean;
|
|
158
|
-
isRefetching: boolean;
|
|
159
|
-
isStale: boolean;
|
|
160
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
161
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
162
|
-
} | {
|
|
163
|
-
invalidateCache: () => Promise<void>;
|
|
164
|
-
data: undefined;
|
|
165
|
-
error: Error;
|
|
166
|
-
isError: true;
|
|
167
|
-
isPending: false;
|
|
168
|
-
isLoadingError: true;
|
|
169
|
-
isRefetchError: false;
|
|
170
|
-
isSuccess: false;
|
|
171
|
-
status: "error";
|
|
172
|
-
dataUpdatedAt: number;
|
|
173
|
-
errorUpdatedAt: number;
|
|
174
|
-
failureCount: number;
|
|
175
|
-
failureReason: Error | null;
|
|
176
|
-
errorUpdateCount: number;
|
|
177
|
-
isFetched: boolean;
|
|
178
|
-
isFetchedAfterMount: boolean;
|
|
179
|
-
isFetching: boolean;
|
|
180
|
-
isLoading: boolean;
|
|
181
|
-
isInitialLoading: boolean;
|
|
182
|
-
isPaused: boolean;
|
|
183
|
-
isPlaceholderData: boolean;
|
|
184
|
-
isRefetching: boolean;
|
|
185
|
-
isStale: boolean;
|
|
186
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
187
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
188
|
-
} | {
|
|
189
|
-
invalidateCache: () => Promise<void>;
|
|
190
|
-
data: undefined;
|
|
191
|
-
error: null;
|
|
192
|
-
isError: false;
|
|
193
|
-
isPending: true;
|
|
194
|
-
isLoadingError: false;
|
|
195
|
-
isRefetchError: false;
|
|
196
|
-
isSuccess: false;
|
|
197
|
-
status: "pending";
|
|
198
|
-
dataUpdatedAt: number;
|
|
199
|
-
errorUpdatedAt: number;
|
|
200
|
-
failureCount: number;
|
|
201
|
-
failureReason: Error | null;
|
|
202
|
-
errorUpdateCount: number;
|
|
203
|
-
isFetched: boolean;
|
|
204
|
-
isFetchedAfterMount: boolean;
|
|
205
|
-
isFetching: boolean;
|
|
206
|
-
isLoading: boolean;
|
|
207
|
-
isInitialLoading: boolean;
|
|
208
|
-
isPaused: boolean;
|
|
209
|
-
isPlaceholderData: boolean;
|
|
210
|
-
isRefetching: boolean;
|
|
211
|
-
isStale: boolean;
|
|
212
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
213
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
214
|
-
};
|
|
215
|
-
/**
|
|
216
|
-
* Returns a custom .com domain suggestion for a given query
|
|
217
|
-
*/
|
|
218
|
-
export declare function useGetSingleCustomDotComDomainSuggestion(query?: string | null, locale?: string): {
|
|
219
|
-
invalidateCache: () => Promise<void>;
|
|
220
|
-
data: DomainSuggestion[];
|
|
221
|
-
error: Error;
|
|
222
|
-
isError: true;
|
|
223
|
-
isPending: false;
|
|
224
|
-
isLoadingError: false;
|
|
225
|
-
isRefetchError: true;
|
|
226
|
-
isSuccess: false;
|
|
227
|
-
status: "error";
|
|
228
|
-
dataUpdatedAt: number;
|
|
229
|
-
errorUpdatedAt: number;
|
|
230
|
-
failureCount: number;
|
|
231
|
-
failureReason: Error | null;
|
|
232
|
-
errorUpdateCount: number;
|
|
233
|
-
isFetched: boolean;
|
|
234
|
-
isFetchedAfterMount: boolean;
|
|
235
|
-
isFetching: boolean;
|
|
236
|
-
isLoading: boolean;
|
|
237
|
-
isInitialLoading: boolean;
|
|
238
|
-
isPaused: boolean;
|
|
239
|
-
isPlaceholderData: boolean;
|
|
240
|
-
isRefetching: boolean;
|
|
241
|
-
isStale: boolean;
|
|
242
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
243
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
244
|
-
} | {
|
|
245
|
-
invalidateCache: () => Promise<void>;
|
|
246
|
-
data: DomainSuggestion[];
|
|
247
|
-
error: null;
|
|
248
|
-
isError: false;
|
|
249
|
-
isPending: false;
|
|
250
|
-
isLoadingError: false;
|
|
251
|
-
isRefetchError: false;
|
|
252
|
-
isSuccess: true;
|
|
253
|
-
status: "success";
|
|
254
|
-
dataUpdatedAt: number;
|
|
255
|
-
errorUpdatedAt: number;
|
|
256
|
-
failureCount: number;
|
|
257
|
-
failureReason: Error | null;
|
|
258
|
-
errorUpdateCount: number;
|
|
259
|
-
isFetched: boolean;
|
|
260
|
-
isFetchedAfterMount: boolean;
|
|
261
|
-
isFetching: boolean;
|
|
262
|
-
isLoading: boolean;
|
|
263
|
-
isInitialLoading: boolean;
|
|
264
|
-
isPaused: boolean;
|
|
265
|
-
isPlaceholderData: boolean;
|
|
266
|
-
isRefetching: boolean;
|
|
267
|
-
isStale: boolean;
|
|
268
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
269
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
270
|
-
} | {
|
|
271
|
-
invalidateCache: () => Promise<void>;
|
|
272
|
-
data: undefined;
|
|
273
|
-
error: Error;
|
|
274
|
-
isError: true;
|
|
275
|
-
isPending: false;
|
|
276
|
-
isLoadingError: true;
|
|
277
|
-
isRefetchError: false;
|
|
278
|
-
isSuccess: false;
|
|
279
|
-
status: "error";
|
|
280
|
-
dataUpdatedAt: number;
|
|
281
|
-
errorUpdatedAt: number;
|
|
282
|
-
failureCount: number;
|
|
283
|
-
failureReason: Error | null;
|
|
284
|
-
errorUpdateCount: number;
|
|
285
|
-
isFetched: boolean;
|
|
286
|
-
isFetchedAfterMount: boolean;
|
|
287
|
-
isFetching: boolean;
|
|
288
|
-
isLoading: boolean;
|
|
289
|
-
isInitialLoading: boolean;
|
|
290
|
-
isPaused: boolean;
|
|
291
|
-
isPlaceholderData: boolean;
|
|
292
|
-
isRefetching: boolean;
|
|
293
|
-
isStale: boolean;
|
|
294
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
295
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
296
|
-
} | {
|
|
297
|
-
invalidateCache: () => Promise<void>;
|
|
298
|
-
data: undefined;
|
|
299
|
-
error: null;
|
|
300
|
-
isError: false;
|
|
301
|
-
isPending: true;
|
|
302
|
-
isLoadingError: false;
|
|
303
|
-
isRefetchError: false;
|
|
304
|
-
isSuccess: false;
|
|
305
|
-
status: "pending";
|
|
306
|
-
dataUpdatedAt: number;
|
|
307
|
-
errorUpdatedAt: number;
|
|
308
|
-
failureCount: number;
|
|
309
|
-
failureReason: Error | null;
|
|
310
|
-
errorUpdateCount: number;
|
|
311
|
-
isFetched: boolean;
|
|
312
|
-
isFetchedAfterMount: boolean;
|
|
313
|
-
isFetching: boolean;
|
|
314
|
-
isLoading: boolean;
|
|
315
|
-
isInitialLoading: boolean;
|
|
316
|
-
isPaused: boolean;
|
|
317
|
-
isPlaceholderData: boolean;
|
|
318
|
-
isRefetching: boolean;
|
|
319
|
-
isStale: boolean;
|
|
320
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<DomainSuggestion[], Error>>;
|
|
321
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
322
|
-
};
|
|
323
|
-
//# sourceMappingURL=queries.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/domain-suggestions/queries.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAIjF,wBAAgB,uBAAuB,CACtC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,EACtB,aAAa,GAAE,+BAAoC,EACnD,YAAY,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CjB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQvE;AAED;;GAEG;AACH,wBAAgB,wCAAwC,CAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ/F"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Action } from './actions';
|
|
2
|
-
import type { DomainCategory, DomainSuggestionState, DomainAvailabilities } from './types';
|
|
3
|
-
import type { Reducer } from 'redux';
|
|
4
|
-
export declare const domainSuggestions: Reducer<DomainSuggestionState, Action>;
|
|
5
|
-
declare const reducer: Reducer<{
|
|
6
|
-
categories: DomainCategory[];
|
|
7
|
-
domainSuggestions: DomainSuggestionState;
|
|
8
|
-
availability: DomainAvailabilities;
|
|
9
|
-
}, Action, Partial<{
|
|
10
|
-
categories: never;
|
|
11
|
-
domainSuggestions: never;
|
|
12
|
-
availability: never;
|
|
13
|
-
}>>;
|
|
14
|
-
export type State = ReturnType<typeof reducer>;
|
|
15
|
-
export default reducer;
|
|
16
|
-
//# sourceMappingURL=reducer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../src/domain-suggestions/reducer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC3F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAUrC,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAE,qBAAqB,EAAE,MAAM,CAsCrE,CAAC;AAmBF,QAAA,MAAM,OAAO;;;;;;;;GAAqE,CAAC;AAEnF,MAAM,MAAM,KAAK,GAAG,UAAU,CAAE,OAAO,OAAO,CAAE,CAAC;AAEjD,eAAe,OAAO,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { DomainSuggestion, DomainSuggestionQuery } from './types';
|
|
2
|
-
export declare const isAvailable: (domainName: string) => Generator<{
|
|
3
|
-
readonly type: "FETCH_AND_PARSE";
|
|
4
|
-
readonly resource: RequestInfo | URL;
|
|
5
|
-
readonly options: RequestInit | undefined;
|
|
6
|
-
}, {
|
|
7
|
-
readonly type: "RECEIVE_DOMAIN_AVAILABILITY";
|
|
8
|
-
readonly domainName: string;
|
|
9
|
-
readonly availability: import("./types").DomainAvailability;
|
|
10
|
-
}, {
|
|
11
|
-
body: any;
|
|
12
|
-
}>;
|
|
13
|
-
export declare function getCategories(): Generator<{
|
|
14
|
-
readonly type: "FETCH_AND_PARSE";
|
|
15
|
-
readonly resource: RequestInfo | URL;
|
|
16
|
-
readonly options: RequestInit | undefined;
|
|
17
|
-
}, {
|
|
18
|
-
readonly type: "RECEIVE_CATEGORIES";
|
|
19
|
-
readonly categories: import("./types").DomainCategory[];
|
|
20
|
-
}, {
|
|
21
|
-
body: any;
|
|
22
|
-
}>;
|
|
23
|
-
export declare function __internalGetDomainSuggestions(queryObject: DomainSuggestionQuery): Generator<{
|
|
24
|
-
type: "WPCOM_REQUEST";
|
|
25
|
-
request: import("wpcom-proxy-request").WpcomRequestParams;
|
|
26
|
-
} | {
|
|
27
|
-
readonly type: "FETCH_DOMAIN_SUGGESTIONS";
|
|
28
|
-
readonly timeStamp: number;
|
|
29
|
-
}, {
|
|
30
|
-
readonly type: "RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS";
|
|
31
|
-
readonly queryObject: DomainSuggestionQuery;
|
|
32
|
-
readonly suggestions: DomainSuggestion[] | undefined;
|
|
33
|
-
readonly timeStamp: number;
|
|
34
|
-
} | {
|
|
35
|
-
readonly type: "RECEIVE_DOMAIN_SUGGESTIONS_ERROR";
|
|
36
|
-
readonly errorMessage: string;
|
|
37
|
-
readonly timeStamp: number;
|
|
38
|
-
}, DomainSuggestion[]>;
|
|
39
|
-
//# sourceMappingURL=resolvers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../src/domain-suggestions/resolvers.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAevE,eAAO,MAAM,WAAW,GAA0B,YAAY,MAAM;;;;;;;;;;EAgBnE,CAAC;AAEF,wBAAiB,aAAa;;;;;;;;;GAK7B;AAED,wBAAiB,8BAA8B,CAAE,WAAW,EAAE,qBAAqB;;;;;;;;;;;;;;;uBAyDlF"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DataStatus } from './constants';
|
|
2
|
-
import type { State } from './reducer';
|
|
3
|
-
import type { DomainAvailability, DomainAvailabilities, DomainCategory, DomainSuggestion, DomainSuggestionQuery, DomainSuggestionSelectorOptions } from './types';
|
|
4
|
-
export declare const getCategories: (state: State) => DomainCategory[];
|
|
5
|
-
export declare const getDomainSuggestions: (_state: State, search: string, options?: DomainSuggestionSelectorOptions) => DomainSuggestion[] | undefined;
|
|
6
|
-
export declare const getDomainState: (state: State) => DataStatus;
|
|
7
|
-
export declare const getDomainErrorMessage: (state: State) => string | null;
|
|
8
|
-
export declare const isLoadingDomainSuggestions: (_state: State, search: string, options?: DomainSuggestionSelectorOptions) => boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Do not use this selector. It is for internal use.
|
|
11
|
-
* @param state Store state
|
|
12
|
-
* @param queryObject Normalized object representing the query
|
|
13
|
-
* @returns suggestions
|
|
14
|
-
*/
|
|
15
|
-
export declare const __internalGetDomainSuggestions: (state: State, queryObject: DomainSuggestionQuery) => DomainSuggestion[] | undefined;
|
|
16
|
-
export declare const isAvailable: (state: State, domainName: string) => DomainAvailability | undefined;
|
|
17
|
-
export declare const getDomainAvailabilities: (state: State) => DomainAvailabilities;
|
|
18
|
-
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../src/domain-suggestions/selectors.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EACX,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,+BAA+B,EAC/B,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,aAAa,GAAK,OAAO,KAAK,KAAI,cAAc,EAU5D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAChC,QAAQ,KAAK,EACb,QAAQ,MAAM,EACd,UAAS,+BAAoC,KAC3C,gBAAgB,EAAE,GAAG,SAWvB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAK,OAAO,KAAK,KAAI,UAE/C,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAK,OAAO,KAAK,KAAI,MAAM,GAAG,IAE/D,CAAC;AAIF,eAAO,MAAM,0BAA0B,GACtC,QAAQ,KAAK,EACb,QAAQ,MAAM,EACd,UAAS,+BAAoC,KAC3C,OAQF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,GAC1C,OAAO,KAAK,EACZ,aAAa,qBAAqB,KAChC,gBAAgB,EAAE,GAAG,SAEvB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAK,OAAO,KAAK,EAAE,YAAY,MAAM,KAAI,kBAAkB,GAAG,SAErF,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAK,OAAO,KAAK,KAAI,oBAExD,CAAC"}
|