@vonq/hapi-elements-types 1.5.0 → 1.6.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/package.json +15 -4
- package/src/_window/api.types.ts +9 -7
- package/src/_window/auth.types.ts +6 -4
- package/src/_window/config.types.ts +0 -25
- package/src/_window/events.types.ts +15 -14
- package/src/_window/instances.types.ts +19 -10
- package/src/_window/qa.types.ts +7 -5
- package/src/_window/routing.types.ts +6 -4
- package/src/_window/sdk.types.ts +29 -27
- package/src/_window/service.types.ts +9 -7
- package/src/_window/state.types.ts +55 -53
- package/src/_window/ui.types.ts +6 -4
- package/src/_window/utils.types.ts +7 -5
- package/src/_window/validation.types.ts +7 -5
- package/src/_window/window.ts +126 -42
- package/src/alert/index.ts +4 -7
- package/src/alert/service.types.ts +2 -2
- package/src/alert/state.types.ts +1 -19
- package/src/ats/api.types.ts +2 -2
- package/src/ats/index.ts +4 -7
- package/src/ats/service.types.ts +2 -2
- package/src/ats/state.types.ts +1 -1
- package/src/basket/index.ts +5 -10
- package/src/basket/service.types.ts +2 -2
- package/src/basket/state.types.ts +1 -1
- package/src/basket/utils.types.ts +2 -2
- package/src/campaign/api.types.ts +2 -2
- package/src/campaign/index.ts +8 -13
- package/src/campaign/qa.types.ts +4 -4
- package/src/campaign/service.types.ts +2 -2
- package/src/campaign/state.types.ts +1 -1
- package/src/campaign/utils.types.ts +2 -2
- package/{enums.ts → src/common/enums.ts} +2 -1
- package/src/common/events/types.ts +6 -6
- package/src/common/index.ts +5 -20
- package/src/common/logger/types.ts +11 -0
- package/src/common/qa.types.ts +2 -2
- package/src/common/types.ts +5 -6
- package/src/common/validator/types.ts +4 -0
- package/src/contract/api.types.ts +2 -2
- package/src/contract/index.ts +7 -12
- package/src/contract/qa.types.ts +2 -2
- package/src/contract/service.types.ts +2 -2
- package/src/contract/state.types.ts +1 -1
- package/src/contract/utils.types.ts +2 -2
- package/src/debugging/index.ts +1 -4
- package/src/debugging/state.types.ts +1 -1
- package/src/index.ts +16 -20
- package/src/language/index.ts +3 -9
- package/src/language/qa.types.ts +2 -2
- package/src/language/state.types.ts +1 -1
- package/src/modal/index.ts +4 -9
- package/src/modal/service.types.ts +2 -2
- package/src/modal/state.types.ts +1 -1
- package/src/orderJourney/index.ts +6 -11
- package/src/orderJourney/qa.types.ts +2 -2
- package/src/orderJourney/state.types.ts +1 -1
- package/src/orderJourney/utils.types.ts +2 -2
- package/src/product/api.types.ts +2 -2
- package/src/product/index.ts +8 -12
- package/src/product/qa.types.ts +2 -2
- package/src/product/service.types.ts +2 -2
- package/src/product/state.types.ts +1 -1
- package/src/product/utils.types.ts +2 -2
- package/src/routing/index.ts +1 -3
- package/src/theming/index.ts +4 -9
- package/src/theming/qa.types.ts +2 -2
- package/src/theming/state.types.ts +1 -1
- package/src/ui/service.types.ts +2 -2
- package/src/wallet/api.types.ts +2 -2
- package/src/wallet/index.ts +5 -9
- package/src/wallet/service.types.ts +2 -2
- package/src/wallet/state.types.ts +1 -1
- package/tsconfig.json +6 -11
- package/src/alert/functions.types.ts +0 -13
- package/src/alert/state.initial.ts +0 -16
- package/src/alert/state.validations.ts +0 -11
- package/src/ats/functions.types.ts +0 -7
- package/src/ats/state.initial.ts +0 -5
- package/src/ats/state.validations.ts +0 -6
- package/src/basket/consts.ts +0 -1
- package/src/basket/functions.types.ts +0 -40
- package/src/basket/state.initial.ts +0 -11
- package/src/basket/state.validations.ts +0 -12
- package/src/basket/utils.ts +0 -79
- package/src/campaign/consts.ts +0 -1
- package/src/campaign/functions.types.ts +0 -90
- package/src/campaign/state.initial.ts +0 -84
- package/src/campaign/state.validations.ts +0 -16
- package/src/campaign/utils.ts +0 -53
- package/src/common/LocalStorage.ts +0 -123
- package/src/common/browser.ts +0 -2
- package/src/common/color.ts +0 -9
- package/src/common/immutable.ts +0 -28
- package/src/common/instances/Instance.ts +0 -13
- package/src/common/instances/consts.ts +0 -1
- package/src/common/instances/index.ts +0 -4
- package/src/common/json.ts +0 -25
- package/src/common/logger/Logger.ts +0 -70
- package/src/common/logger/index.ts +0 -5
- package/src/common/logger-datadog/LoggerDatadog.ts +0 -42
- package/src/common/logger-datadog/index.ts +0 -3
- package/src/common/misc.ts +0 -114
- package/src/common/promise.ts +0 -161
- package/src/common/proxy.ts +0 -77
- package/src/common/regExTest.ts +0 -12
- package/src/common/tree.ts +0 -148
- package/src/common/utm.ts +0 -19
- package/src/common/validators.ts +0 -21
- package/src/common/webComponents.ts +0 -26
- package/src/config/functions.types.ts +0 -23
- package/src/config/index.ts +0 -5
- package/src/config/state.initial.ts +0 -11
- package/src/config/state.types.ts +0 -15
- package/src/consts.ts +0 -980
- package/src/contract/consts.ts +0 -1
- package/src/contract/functions.types.ts +0 -112
- package/src/contract/state.initial.ts +0 -39
- package/src/contract/state.validations.ts +0 -21
- package/src/contract/utils.ts +0 -36
- package/src/debugging/functions.types.ts +0 -34
- package/src/debugging/state.initial.ts +0 -10
- package/src/debugging/state.validations.ts +0 -10
- package/src/language/consts.ts +0 -6
- package/src/language/en.ts +0 -530
- package/src/language/functions.types.ts +0 -29
- package/src/language/state.initial.ts +0 -13
- package/src/language/state.validations.ts +0 -10
- package/src/language/utils.ts +0 -17
- package/src/modal/consts.ts +0 -6
- package/src/modal/functions.types.ts +0 -22
- package/src/modal/state.initial.ts +0 -9
- package/src/modal/state.validations.ts +0 -6
- package/src/modal/store.types.ts +0 -5
- package/src/orderJourney/consts.ts +0 -289
- package/src/orderJourney/functions.types.ts +0 -140
- package/src/orderJourney/state.initial.ts +0 -401
- package/src/orderJourney/state.validations.ts +0 -78
- package/src/orderJourney/utils.ts +0 -7
- package/src/product/consts.ts +0 -1
- package/src/product/functions.types.ts +0 -156
- package/src/product/state.initial.ts +0 -28
- package/src/product/state.validations.ts +0 -25
- package/src/routing/functions.types.ts +0 -48
- package/src/routing/state.initial.ts +0 -10
- package/src/theming/consts.ts +0 -7727
- package/src/theming/functions.types.ts +0 -13
- package/src/theming/state.initial.ts +0 -16
- package/src/theming/state.validations.ts +0 -8
- package/src/theming/utils.ts +0 -581
- package/src/types.ts +0 -229
- package/src/utils.ts +0 -3
- package/src/wallet/consts.ts +0 -3
- package/src/wallet/functions.types.ts +0 -58
- package/src/wallet/state.initial.ts +0 -18
- package/src/wallet/state.validations.ts +0 -18
@@ -1,25 +0,0 @@
|
|
1
|
-
import { ProductStoreState } from "./state.types"
|
2
|
-
import { StateValidations } from "../_window/state.types"
|
3
|
-
|
4
|
-
export const productStoreStoreStateValidations: StateValidations<ProductStoreState> =
|
5
|
-
{
|
6
|
-
recommendedProducts: "product.products",
|
7
|
-
recommendedProductsAreLoading: "common.genericBoolean",
|
8
|
-
productsWithContractsSupport: "product.productsWithContractSupport",
|
9
|
-
productsWithContractsSupportAreLoading: "common.genericBoolean",
|
10
|
-
products: "common.products",
|
11
|
-
productsAreLoading: "common.genericBoolean",
|
12
|
-
productsPaginationMeta: "product.productsPaginationMeta",
|
13
|
-
productNameInput: "common.genericString",
|
14
|
-
jobRegionsIdsSelected: "common.genericNumberArray",
|
15
|
-
jobRegions: "product.productLocations",
|
16
|
-
jobTitles: "product.jobTitles",
|
17
|
-
jobTitlesIdsSelected: "common.genericNumberArray",
|
18
|
-
jobFunctions: "product.jobFunctions",
|
19
|
-
jobFunctionsAreLoading: "common.genericBoolean",
|
20
|
-
jobFunctionsInput: "common.genericString",
|
21
|
-
jobFunctionsIdsSelected: "common.genericNumberArray",
|
22
|
-
jobIndustries: "product.industries",
|
23
|
-
jobIndustriesAreLoading: "common.genericBoolean",
|
24
|
-
jobIndustriesIdsSelected: "common.genericNumberArray",
|
25
|
-
}
|
@@ -1,48 +0,0 @@
|
|
1
|
-
export type RouterStoreSetParentWindowQueryParamsHandler = (
|
2
|
-
params: Record<string, string>,
|
3
|
-
) => void
|
4
|
-
export type RouterStoreSetParentWindowPathnameHandler = (
|
5
|
-
pathname: string,
|
6
|
-
) => void
|
7
|
-
export type RouterStoreSetParentWindowOriginHandler = (origin: string) => void
|
8
|
-
export type RouterStoreSetLastScrollPositionHandler = (position: number) => void
|
9
|
-
export type RouterStoreSetRedirectUrlHandler = (url?: string) => void
|
10
|
-
export type RouterStoreSetIsRedirectingHandler = (
|
11
|
-
isRedirecting: boolean,
|
12
|
-
) => void
|
13
|
-
export type RouterStoreSetCurrentRoutePathNameHandler = (
|
14
|
-
pathname: string,
|
15
|
-
) => void
|
16
|
-
export type RouterStoreSetPreviousRoutePathNameHandler = (
|
17
|
-
pathname: string,
|
18
|
-
) => void
|
19
|
-
export type RouterStoreSetCurrentAsPathHandler = (pathname: string) => void
|
20
|
-
export type RouterStoreSetPreviousAsPathHandler = (pathname: string) => void
|
21
|
-
export type RouterStoreSetPreviousHashHandler = (
|
22
|
-
hash: string | undefined,
|
23
|
-
) => void
|
24
|
-
export type RouterStoreSetCurrentHashHandler = (
|
25
|
-
hash: string | undefined,
|
26
|
-
) => void
|
27
|
-
export type RouterStoreFunctions = {
|
28
|
-
/**
|
29
|
-
* The function that sets the value of `lastScrollPosition`. Refer to [RouterStoreState](/docs/api/modules#routertorestate) for more details. **This function is called automatically when route changes and should not be called from outside**
|
30
|
-
*/
|
31
|
-
setLastScrollPosition: RouterStoreSetLastScrollPositionHandler
|
32
|
-
/**
|
33
|
-
* The function that sets the value of `redirectUrl`. Refer to [RouterStoreState](/docs/api/modules#routertorestate) for more details.
|
34
|
-
*/
|
35
|
-
setRedirectUrl: RouterStoreSetRedirectUrlHandler
|
36
|
-
/**
|
37
|
-
* The function that sets the value of `isRedirecting`. Refer to [RouterStoreState](/docs/api/modules#routertorestate) for more details.
|
38
|
-
*/
|
39
|
-
setIsRedirecting: RouterStoreSetIsRedirectingHandler
|
40
|
-
/**
|
41
|
-
* The function that sets the value of `currentAsPath`. Refer to [RouterStoreState](/docs/api/modules#routertorestate) for more details. **This function is called automatically when route changes and should not be called from outside**
|
42
|
-
*/
|
43
|
-
setCurrentAsPath: RouterStoreSetCurrentAsPathHandler
|
44
|
-
/**
|
45
|
-
* The function that sets the value of `previousAsPath`. Refer to [RouterStoreState](/docs/api/modules#routertorestate) for more details. **This function is called automatically when route changes and should not be called from outside**
|
46
|
-
*/
|
47
|
-
setPreviousAsPath: RouterStoreSetPreviousAsPathHandler
|
48
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { RouterStoreState } from "./state.types"
|
2
|
-
import { isBrowser } from "../common/browser"
|
3
|
-
|
4
|
-
export const initialRouterStoreState: RouterStoreState = {
|
5
|
-
currentAsPath: isBrowser ? window.location.pathname : "",
|
6
|
-
previousAsPath: isBrowser ? window.location.pathname : "",
|
7
|
-
redirectUrl: "",
|
8
|
-
isRedirecting: false,
|
9
|
-
lastScrollPosition: 0,
|
10
|
-
}
|