@vonq/hapi-elements-types 1.5.0 → 1.7.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/{src/_window → _window}/api.types.ts +9 -7
- package/_window/auth.types.ts +13 -0
- package/_window/config.types.ts +5 -0
- package/{src/_window → _window}/events.types.ts +15 -14
- package/_window/instances.types.ts +27 -0
- package/{src/_window → _window}/qa.types.ts +7 -5
- package/{src/_window → _window}/routing.types.ts +6 -4
- package/{src/_window → _window}/sdk.types.ts +29 -27
- package/{src/_window → _window}/service.types.ts +9 -7
- package/{src/_window → _window}/state.types.ts +55 -53
- package/_window/ui.types.ts +15 -0
- package/{src/_window → _window}/utils.types.ts +7 -5
- package/{src/_window → _window}/validation.types.ts +7 -5
- package/_window/window.ts +140 -0
- package/alert/index.ts +6 -0
- package/{src/alert → alert}/service.types.ts +2 -2
- package/alert/state.types.ts +9 -0
- package/{src/ats → ats}/api.types.ts +2 -2
- package/ats/index.ts +6 -0
- package/{src/ats → ats}/service.types.ts +2 -2
- package/{src/ats → ats}/state.types.ts +1 -1
- package/basket/index.ts +7 -0
- package/{src/basket → basket}/service.types.ts +2 -2
- package/{src/basket → basket}/state.types.ts +1 -1
- package/{src/basket → basket}/utils.types.ts +2 -2
- package/{src/campaign → campaign}/api.types.ts +2 -2
- package/campaign/index.ts +10 -0
- package/campaign/qa.types.ts +12 -0
- package/{src/campaign → campaign}/service.types.ts +2 -2
- package/{src/campaign → campaign}/state.types.ts +1 -1
- package/{src/campaign → campaign}/utils.types.ts +2 -2
- package/{enums.ts → common/enums.ts} +2 -1
- package/{src/common → common}/events/types.ts +6 -6
- package/common/index.ts +7 -0
- package/common/logger/types.ts +18 -0
- package/{src/common → common}/qa.types.ts +2 -2
- package/{src/common → common}/types.ts +5 -6
- package/common/validator/types.ts +4 -0
- package/{src/contract → contract}/api.types.ts +2 -2
- package/contract/index.ts +9 -0
- package/{src/contract → contract}/qa.types.ts +2 -2
- package/{src/contract → contract}/service.types.ts +2 -2
- package/{src/contract → contract}/state.types.ts +1 -1
- package/{src/contract → contract}/utils.types.ts +2 -2
- package/{src/common/logger-datadog → debugging}/index.ts +1 -1
- package/{src/debugging → debugging}/state.types.ts +1 -1
- package/index.ts +18 -0
- package/language/index.ts +5 -0
- package/{src/language → language}/qa.types.ts +2 -2
- package/{src/language → language}/state.types.ts +1 -1
- package/modal/index.ts +6 -0
- package/{src/modal → modal}/service.types.ts +2 -2
- package/{src/modal → modal}/state.types.ts +1 -1
- package/orderJourney/index.ts +8 -0
- package/{src/orderJourney → orderJourney}/qa.types.ts +2 -2
- package/{src/orderJourney → orderJourney}/state.types.ts +1 -1
- package/{src/orderJourney → orderJourney}/utils.types.ts +2 -2
- package/package.json +16 -5
- package/{src/product → product}/api.types.ts +2 -2
- package/product/index.ts +10 -0
- package/{src/product → product}/qa.types.ts +2 -2
- package/{src/product → product}/service.types.ts +2 -2
- package/{src/product → product}/state.types.ts +1 -1
- package/{src/product → product}/utils.types.ts +2 -2
- package/routing/index.ts +3 -0
- package/theming/index.ts +6 -0
- package/{src/theming → theming}/qa.types.ts +2 -2
- package/{src/theming → theming}/state.types.ts +1 -1
- package/{src/theming → theming}/types.ts +38 -1
- package/tsconfig.json +7 -12
- package/{src/ui → ui}/service.types.ts +2 -2
- package/{src/wallet → wallet}/api.types.ts +2 -2
- package/wallet/index.ts +7 -0
- package/{src/wallet → wallet}/service.types.ts +2 -2
- package/{src/wallet → wallet}/state.types.ts +1 -1
- package/src/_window/auth.types.ts +0 -11
- package/src/_window/config.types.ts +0 -30
- package/src/_window/instances.types.ts +0 -18
- package/src/_window/ui.types.ts +0 -13
- package/src/_window/window.ts +0 -56
- package/src/alert/functions.types.ts +0 -13
- package/src/alert/index.ts +0 -9
- package/src/alert/state.initial.ts +0 -16
- package/src/alert/state.types.ts +0 -27
- package/src/alert/state.validations.ts +0 -11
- package/src/ats/functions.types.ts +0 -7
- package/src/ats/index.ts +0 -9
- 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/index.ts +0 -12
- 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/index.ts +0 -15
- package/src/campaign/qa.types.ts +0 -12
- 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/index.ts +0 -22
- 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/types.ts +0 -7
- package/src/common/logger-datadog/LoggerDatadog.ts +0 -42
- 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/index.ts +0 -14
- 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/index.ts +0 -6
- package/src/debugging/state.initial.ts +0 -10
- package/src/debugging/state.validations.ts +0 -10
- package/src/index.ts +0 -22
- 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/index.ts +0 -11
- 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/index.ts +0 -11
- 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/index.ts +0 -13
- 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/index.ts +0 -14
- 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/index.ts +0 -5
- 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/index.ts +0 -11
- 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/index.ts +0 -11
- package/src/wallet/state.initial.ts +0 -18
- package/src/wallet/state.validations.ts +0 -18
- /package/{src/_window → _window}/index.ts +0 -0
- /package/{src/alert → alert}/enums.ts +0 -0
- /package/{src/alert → alert}/types.ts +0 -0
- /package/{src/ats → ats}/types.ts +0 -0
- /package/{src/basket → basket}/types.ts +0 -0
- /package/{src/basket → basket}/validations.types.ts +0 -0
- /package/{src/campaign → campaign}/enums.ts +0 -0
- /package/{src/campaign → campaign}/types.ts +0 -0
- /package/{src/campaign → campaign}/validations.types.ts +0 -0
- /package/{src/common → common}/events/EventCommand/enums.ts +0 -0
- /package/{src/common → common}/events/EventCommand/index.ts +0 -0
- /package/{src/common → common}/events/EventCommand/types.ts +0 -0
- /package/{src/common → common}/events/index.ts +0 -0
- /package/{src/common → common}/logger/enums.ts +0 -0
- /package/{src/common → common}/validations.types.ts +0 -0
- /package/{src/contract → contract}/types.ts +0 -0
- /package/{src/contract → contract}/validations.types.ts +0 -0
- /package/{src/language → language}/validations.types.ts +0 -0
- /package/{src/modal → modal}/enums.ts +0 -0
- /package/{src/modal → modal}/types.ts +0 -0
- /package/{src/orderJourney → orderJourney}/enums.ts +0 -0
- /package/{src/orderJourney → orderJourney}/types.ts +0 -0
- /package/{src/orderJourney → orderJourney}/validations.types.ts +0 -0
- /package/{src/product → product}/enums.ts +0 -0
- /package/{src/product → product}/types.ts +0 -0
- /package/{src/product → product}/validations.types.ts +0 -0
- /package/{src/routing → routing}/state.types.ts +0 -0
- /package/{src/theming → theming}/validations.types.ts +0 -0
- /package/{src/ui → ui}/index.ts +0 -0
- /package/{src/wallet → wallet}/types.ts +0 -0
- /package/{src/wallet → wallet}/validations.types.ts +0 -0
package/src/contract/consts.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export const CONTRACT_CREATE_FORM_LOCALSTORAGE_KEY = "createContractForm"
|
@@ -1,112 +0,0 @@
|
|
1
|
-
import { ProductSupportingContractsComplete } from "../product/types"
|
2
|
-
import {
|
3
|
-
Contract,
|
4
|
-
ContractCreateForm,
|
5
|
-
ContractGroup,
|
6
|
-
ContractGroupCreateForm,
|
7
|
-
ContractGroupSelected,
|
8
|
-
} from "./types"
|
9
|
-
import { PaginationResponseV1, RecursivePartial } from "../common/types"
|
10
|
-
|
11
|
-
export type ContractStoreSetContractSelectedHandler = (
|
12
|
-
moc: ProductSupportingContractsComplete | null,
|
13
|
-
) => void
|
14
|
-
export type ContractStoreSetContractSelectedIdHandler = (
|
15
|
-
id: number | null,
|
16
|
-
) => void
|
17
|
-
export type ContractStoreSetContractSelectedIsLoading = (
|
18
|
-
isLoading: boolean,
|
19
|
-
) => void
|
20
|
-
export type ContractStoreSetContractFormHandler = (
|
21
|
-
form: RecursivePartial<ContractCreateForm>,
|
22
|
-
replaceAsIs?: boolean,
|
23
|
-
) => void
|
24
|
-
export type ContractStoreSetContractCreateErrorHandler = (
|
25
|
-
error: Record<string, unknown>,
|
26
|
-
) => void
|
27
|
-
export type ContractStoreSetContractsHandler = (contracts: Contract[]) => void
|
28
|
-
export type ContractStoreSetContractsPaginationMetaHandler = (
|
29
|
-
meta: PaginationResponseV1 | null,
|
30
|
-
) => void
|
31
|
-
export type ContractStoreSetContractsAreLoadingHandler = (
|
32
|
-
isLoading: boolean,
|
33
|
-
) => void
|
34
|
-
export type ContractStoreSetGroupsHandler = (groups: ContractGroup[]) => void
|
35
|
-
export type ContractStoreSetGroupsAreLoadingHandler = (
|
36
|
-
isLoading: boolean,
|
37
|
-
) => void
|
38
|
-
export type ContractStoreSetGroupSelectedHandler = (
|
39
|
-
group: ContractGroupSelected,
|
40
|
-
) => void
|
41
|
-
export type ContractStoreSetGroupIsCreatingHandler = (isSaving: boolean) => void
|
42
|
-
export type ContractStoreSetGroupCreateErrorHandler = (
|
43
|
-
error: string | null,
|
44
|
-
) => void
|
45
|
-
export type ContractStoreSetGroupFormHandler = (
|
46
|
-
form: ContractGroupCreateForm,
|
47
|
-
replaceAsIs?: boolean,
|
48
|
-
) => void
|
49
|
-
|
50
|
-
export type ContractStoreSetActiveTabIndexHandler = (index: number) => void
|
51
|
-
|
52
|
-
export type ContractStoreFunctions = {
|
53
|
-
/* Contracts */
|
54
|
-
/**
|
55
|
-
* The function that sets the value of `contracts`. Refer to [ContractStoreState](/docs/sdk/contracts/#contractstorestate) for more details.
|
56
|
-
*/
|
57
|
-
setContracts: ContractStoreSetContractsHandler
|
58
|
-
/**
|
59
|
-
* The function that sets the value of `contractsPaginationMeta`. Refer to [ContractStoreState](/docs/sdk/contracts/#contractstorestate) for more details.
|
60
|
-
*/
|
61
|
-
setContractsPaginationMeta: ContractStoreSetContractsPaginationMetaHandler
|
62
|
-
/**
|
63
|
-
* The function that sets the value of `contractsAreLoading`. Refer to [ContractStoreState](/docs/sdk/contracts/#contractstorestate) for more details.
|
64
|
-
*/
|
65
|
-
setContractsAreLoading: ContractStoreSetContractsAreLoadingHandler
|
66
|
-
/**
|
67
|
-
* The function that updates the value of `contractSelectedIsLoading`. Refer to [ContractStoreState](/docs/sdk/contracts/#contractstorestate) for more details.
|
68
|
-
*/
|
69
|
-
setContractSelectedIsLoading: ContractStoreSetContractSelectedIsLoading
|
70
|
-
/**
|
71
|
-
* The function that updates the value of `contractForm`. Refer to [ContractStoreState](/docs/sdk/contracts/#contractstorestate) for more details.
|
72
|
-
*/
|
73
|
-
setContractForm: ContractStoreSetContractFormHandler
|
74
|
-
/**
|
75
|
-
* The function that updates the value of `contractCreateError`. Refer to [ContractStoreState](/docs/sdk/contracts/#contractstorestate) for more details.
|
76
|
-
*/
|
77
|
-
setContractCreateError: ContractStoreSetContractCreateErrorHandler
|
78
|
-
/**
|
79
|
-
* The function that updates the value of `contractSelectedId`. Refer to [ContractStoreState](/docs/sdk/contracts/#contractstorestate) for more details.
|
80
|
-
*/
|
81
|
-
setContractSelectedId: ContractStoreSetContractSelectedIdHandler
|
82
|
-
/**
|
83
|
-
* The function that updates the value of `contractSelected`. Refer to [ContractStoreState](/docs/sdk/contracts/#contractstorestate) for more details.
|
84
|
-
*/
|
85
|
-
setContractSelected: ContractStoreSetContractSelectedHandler
|
86
|
-
|
87
|
-
/* Contracts Groups */
|
88
|
-
/**
|
89
|
-
* The function that sets the value of `groups`. Refer to [ContractStoreState](/docs/sdk/contracts/#contractstorestate) for more details.
|
90
|
-
*/
|
91
|
-
setGroups: ContractStoreSetGroupsHandler
|
92
|
-
/**
|
93
|
-
* The function that sets the value of `groupsAreLoading`. Refer to [ContractStoreState](/docs/sdk/contracts/#contractstorestate) for more details.
|
94
|
-
*/
|
95
|
-
setGroupsAreLoading: ContractStoreSetGroupsAreLoadingHandler
|
96
|
-
/**
|
97
|
-
* The function that sets the value of `groupIsCreating`. Refer to [ContractStoreState](/docs/sdk/contracts/#contractstorestate) for more details.
|
98
|
-
*/
|
99
|
-
setGroupIsCreating: ContractStoreSetGroupIsCreatingHandler
|
100
|
-
/**
|
101
|
-
* The function that sets the value of `groupCreateError`. Refer to [ContractStoreState](/docs/sdk/contracts/#contractstorestate) for more details.
|
102
|
-
*/
|
103
|
-
setGroupCreateError: ContractStoreSetGroupCreateErrorHandler
|
104
|
-
/**
|
105
|
-
* The function that sets the value of `groupSelected`. Refer to [ContractStoreState](/docs/sdk/contracts/#contractstorestate) for more details.
|
106
|
-
*/
|
107
|
-
setGroupSelected: ContractStoreSetGroupSelectedHandler
|
108
|
-
/**
|
109
|
-
* The function that updates the value of `groupForm`. Refer to [ContractStoreState](/docs/sdk/contracts/#contractstorestate) for more details.
|
110
|
-
*/
|
111
|
-
setGroupForm: ContractStoreSetGroupFormHandler
|
112
|
-
}
|
package/src/contract/index.ts
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
// created from 'create-ts-index'
|
2
|
-
|
3
|
-
export * from './api.types';
|
4
|
-
export * from './consts';
|
5
|
-
export * from './functions.types';
|
6
|
-
export * from './qa.types';
|
7
|
-
export * from './service.types';
|
8
|
-
export * from './state.initial';
|
9
|
-
export * from './state.types';
|
10
|
-
export * from './state.validations';
|
11
|
-
export * from './types';
|
12
|
-
export * from './utils';
|
13
|
-
export * from './utils.types';
|
14
|
-
export * from './validations.types';
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import { ContractStoreState } from "./state.types"
|
2
|
-
|
3
|
-
export const initialContractStoreState: ContractStoreState = {
|
4
|
-
/* Contracts */
|
5
|
-
contractsAreLoading: false,
|
6
|
-
contractsPaginationMeta: {
|
7
|
-
limit: 50,
|
8
|
-
offset: 0,
|
9
|
-
},
|
10
|
-
contracts: [],
|
11
|
-
contractForm: {
|
12
|
-
id: 0,
|
13
|
-
credentials: {},
|
14
|
-
facets: {},
|
15
|
-
expiry_date: null,
|
16
|
-
alias: null,
|
17
|
-
purchase_price: {
|
18
|
-
amount: null,
|
19
|
-
currency: null,
|
20
|
-
},
|
21
|
-
credits: null,
|
22
|
-
followed_instructions: false,
|
23
|
-
allow_renegotiation: false,
|
24
|
-
},
|
25
|
-
contractCreateError: {},
|
26
|
-
contractFormIsValid: null,
|
27
|
-
contractSelected: null,
|
28
|
-
contractSelectedId: null,
|
29
|
-
contractSelectedIsLoading: false,
|
30
|
-
/* Contracts Groups */
|
31
|
-
groupSelected: null,
|
32
|
-
groupIsCreating: false,
|
33
|
-
groupCreateError: null,
|
34
|
-
groupsAreLoading: false,
|
35
|
-
groups: [],
|
36
|
-
groupForm: {
|
37
|
-
name: "",
|
38
|
-
},
|
39
|
-
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { ContractStoreState } from "./state.types"
|
2
|
-
import { StateValidations } from "../_window/state.types"
|
3
|
-
|
4
|
-
export const contractStoreStateValidations: StateValidations<ContractStoreState> =
|
5
|
-
{
|
6
|
-
contractsAreLoading: "common.genericBoolean",
|
7
|
-
contracts: "contract.contracts",
|
8
|
-
contractsPaginationMeta: "common.paginationMetaV1",
|
9
|
-
contractForm: "contract.contractForm",
|
10
|
-
contractSelectedId: "common.genericNullableStringOrNumber",
|
11
|
-
contractSelected: "contract.contractSelected",
|
12
|
-
contractSelectedIsLoading: "common.genericBoolean",
|
13
|
-
contractCreateError: "common.genericObject",
|
14
|
-
contractFormIsValid: "throwHasNoSetterError",
|
15
|
-
groups: "contract.groups",
|
16
|
-
groupsAreLoading: "common.genericBoolean",
|
17
|
-
groupSelected: "contract.groupSelected",
|
18
|
-
groupIsCreating: "common.genericBoolean",
|
19
|
-
groupCreateError: "common.genericObject",
|
20
|
-
groupForm: "contract.groupForm",
|
21
|
-
}
|
package/src/contract/utils.ts
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
import { isBrowser } from "../common/browser"
|
2
|
-
import { initialContractStoreState } from "./state.initial"
|
3
|
-
import { Contract } from "./types"
|
4
|
-
|
5
|
-
export const setCreateContractFormToLocalStorage = (
|
6
|
-
_form: any,
|
7
|
-
_channelId: number,
|
8
|
-
) => {
|
9
|
-
/*LocalStorage.set(CONTRACT_CREATE_FORM_LOCALSTORAGE_KEY, {
|
10
|
-
...form,
|
11
|
-
id: channelId,
|
12
|
-
})*/
|
13
|
-
}
|
14
|
-
|
15
|
-
export const getInitialContractForm = () => {
|
16
|
-
const form = isBrowser
|
17
|
-
? //LocalStorage.get(CONTRACT_CREATE_FORM_LOCALSTORAGE_KEY) ||
|
18
|
-
initialContractStoreState.contractForm
|
19
|
-
: initialContractStoreState.contractForm
|
20
|
-
return form
|
21
|
-
}
|
22
|
-
|
23
|
-
export const getInitialGroupForm = () => {
|
24
|
-
const form = isBrowser
|
25
|
-
? //LocalStorage.get(CONTRACT_CREATE_FORM_LOCALSTORAGE_KEY) ||
|
26
|
-
initialContractStoreState.groupForm
|
27
|
-
: initialContractStoreState.groupForm
|
28
|
-
return form
|
29
|
-
}
|
30
|
-
|
31
|
-
export const getContractById = (
|
32
|
-
contractId: string,
|
33
|
-
contracts: Contract[],
|
34
|
-
): Contract | undefined => {
|
35
|
-
return contracts.find((contract) => contract.contract_id === contractId)
|
36
|
-
}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
export type DebuggingStoreSetLocaleDebuggingIsEnabledHandler = (
|
2
|
-
isEnabled: boolean,
|
3
|
-
) => void
|
4
|
-
|
5
|
-
export type DebuggingStoreSetCampaignFormDebuggerIsShownHandler = (
|
6
|
-
isShown: boolean,
|
7
|
-
) => void
|
8
|
-
|
9
|
-
export type DebuggingStoreSetComponentDebuggingIsEnabledHandler = (
|
10
|
-
isEnabled: boolean,
|
11
|
-
) => void
|
12
|
-
|
13
|
-
export type DebuggingStoreSetConsoleLogsAreEnabledHandler = (
|
14
|
-
areEnabled: boolean,
|
15
|
-
) => void
|
16
|
-
|
17
|
-
export type DebuggingStoreFunctions = {
|
18
|
-
/**
|
19
|
-
* The function that sets the value of `campaignFormDebuggerIsShown`. Refer to [DebuggingStoreState](/docs/sdk/debugging/#debuggingstorestate) for more details.
|
20
|
-
*/
|
21
|
-
setCampaignFormDebuggerIsShown: DebuggingStoreSetCampaignFormDebuggerIsShownHandler
|
22
|
-
/**
|
23
|
-
* The function that sets the value of `localeDebuggingIsEnabled`. Refer to [DebuggingStoreState](/docs/sdk/debugging/#debuggingstorestate) for more details.
|
24
|
-
*/
|
25
|
-
setLocaleDebuggingIsEnabled: DebuggingStoreSetLocaleDebuggingIsEnabledHandler
|
26
|
-
/**
|
27
|
-
* The function that sets the value of `componentDebuggingIsEnabled`. Refer to [DebuggingStoreState](/docs/sdk/debugging/#debuggingstorestate) for more details.
|
28
|
-
*/
|
29
|
-
setComponentDebuggingIsEnabled: DebuggingStoreSetComponentDebuggingIsEnabledHandler
|
30
|
-
/**
|
31
|
-
* The function that sets the value of `consoleLogsAreEnabled`. Refer to [DebuggingStoreState](/docs/sdk/debugging/#debuggingstorestate) for more details.
|
32
|
-
*/
|
33
|
-
setConsoleLogsAreEnabled: DebuggingStoreSetConsoleLogsAreEnabledHandler
|
34
|
-
}
|
package/src/debugging/index.ts
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
import { DebuggingStoreState } from "./state.types"
|
2
|
-
import { isBrowser } from "../common/browser"
|
3
|
-
import { _window } from "../consts"
|
4
|
-
|
5
|
-
export const initialDebuggingStoreState: DebuggingStoreState = {
|
6
|
-
campaignFormDebuggerIsShown: false,
|
7
|
-
localeDebuggingIsEnabled: false,
|
8
|
-
componentDebuggingIsEnabled: false,
|
9
|
-
consoleLogsAreEnabled: isBrowser ? _window!.hapiConfig?.enableLogs : false,
|
10
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { DebuggingStoreState } from "./state.types"
|
2
|
-
import { StateValidations } from "../_window/state.types"
|
3
|
-
|
4
|
-
export const debuggingStoreStateValidations: StateValidations<DebuggingStoreState> =
|
5
|
-
{
|
6
|
-
campaignFormDebuggerIsShown: "common.genericBoolean",
|
7
|
-
componentDebuggingIsEnabled: "common.genericBoolean",
|
8
|
-
consoleLogsAreEnabled: "common.genericBoolean",
|
9
|
-
localeDebuggingIsEnabled: "common.genericBoolean",
|
10
|
-
}
|
package/src/index.ts
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
// created from 'create-ts-index'
|
2
|
-
|
3
|
-
export * from './_window';
|
4
|
-
export * from './alert';
|
5
|
-
export * from './ats';
|
6
|
-
export * from './basket';
|
7
|
-
export * from './campaign';
|
8
|
-
export * from './common';
|
9
|
-
export * from './config';
|
10
|
-
export * from './contract';
|
11
|
-
export * from './debugging';
|
12
|
-
export * from './language';
|
13
|
-
export * from './modal';
|
14
|
-
export * from './orderJourney';
|
15
|
-
export * from './product';
|
16
|
-
export * from './routing';
|
17
|
-
export * from './theming';
|
18
|
-
export * from './ui';
|
19
|
-
export * from './wallet';
|
20
|
-
export * from './consts';
|
21
|
-
export * from './types';
|
22
|
-
export * from './utils';
|