@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.
Files changed (210) hide show
  1. package/{src/_window → _window}/api.types.ts +9 -7
  2. package/_window/auth.types.ts +13 -0
  3. package/_window/config.types.ts +5 -0
  4. package/{src/_window → _window}/events.types.ts +15 -14
  5. package/_window/instances.types.ts +27 -0
  6. package/{src/_window → _window}/qa.types.ts +7 -5
  7. package/{src/_window → _window}/routing.types.ts +6 -4
  8. package/{src/_window → _window}/sdk.types.ts +29 -27
  9. package/{src/_window → _window}/service.types.ts +9 -7
  10. package/{src/_window → _window}/state.types.ts +55 -53
  11. package/_window/ui.types.ts +15 -0
  12. package/{src/_window → _window}/utils.types.ts +7 -5
  13. package/{src/_window → _window}/validation.types.ts +7 -5
  14. package/_window/window.ts +140 -0
  15. package/alert/index.ts +6 -0
  16. package/{src/alert → alert}/service.types.ts +2 -2
  17. package/alert/state.types.ts +9 -0
  18. package/{src/ats → ats}/api.types.ts +2 -2
  19. package/ats/index.ts +6 -0
  20. package/{src/ats → ats}/service.types.ts +2 -2
  21. package/{src/ats → ats}/state.types.ts +1 -1
  22. package/basket/index.ts +7 -0
  23. package/{src/basket → basket}/service.types.ts +2 -2
  24. package/{src/basket → basket}/state.types.ts +1 -1
  25. package/{src/basket → basket}/utils.types.ts +2 -2
  26. package/{src/campaign → campaign}/api.types.ts +2 -2
  27. package/campaign/index.ts +10 -0
  28. package/campaign/qa.types.ts +12 -0
  29. package/{src/campaign → campaign}/service.types.ts +2 -2
  30. package/{src/campaign → campaign}/state.types.ts +1 -1
  31. package/{src/campaign → campaign}/utils.types.ts +2 -2
  32. package/{enums.ts → common/enums.ts} +2 -1
  33. package/{src/common → common}/events/types.ts +6 -6
  34. package/common/index.ts +7 -0
  35. package/common/logger/types.ts +18 -0
  36. package/{src/common → common}/qa.types.ts +2 -2
  37. package/{src/common → common}/types.ts +5 -6
  38. package/common/validator/types.ts +4 -0
  39. package/{src/contract → contract}/api.types.ts +2 -2
  40. package/contract/index.ts +9 -0
  41. package/{src/contract → contract}/qa.types.ts +2 -2
  42. package/{src/contract → contract}/service.types.ts +2 -2
  43. package/{src/contract → contract}/state.types.ts +1 -1
  44. package/{src/contract → contract}/utils.types.ts +2 -2
  45. package/{src/common/logger-datadog → debugging}/index.ts +1 -1
  46. package/{src/debugging → debugging}/state.types.ts +1 -1
  47. package/index.ts +18 -0
  48. package/language/index.ts +5 -0
  49. package/{src/language → language}/qa.types.ts +2 -2
  50. package/{src/language → language}/state.types.ts +1 -1
  51. package/modal/index.ts +6 -0
  52. package/{src/modal → modal}/service.types.ts +2 -2
  53. package/{src/modal → modal}/state.types.ts +1 -1
  54. package/orderJourney/index.ts +8 -0
  55. package/{src/orderJourney → orderJourney}/qa.types.ts +2 -2
  56. package/{src/orderJourney → orderJourney}/state.types.ts +1 -1
  57. package/{src/orderJourney → orderJourney}/utils.types.ts +2 -2
  58. package/package.json +16 -5
  59. package/{src/product → product}/api.types.ts +2 -2
  60. package/product/index.ts +10 -0
  61. package/{src/product → product}/qa.types.ts +2 -2
  62. package/{src/product → product}/service.types.ts +2 -2
  63. package/{src/product → product}/state.types.ts +1 -1
  64. package/{src/product → product}/utils.types.ts +2 -2
  65. package/routing/index.ts +3 -0
  66. package/theming/index.ts +6 -0
  67. package/{src/theming → theming}/qa.types.ts +2 -2
  68. package/{src/theming → theming}/state.types.ts +1 -1
  69. package/{src/theming → theming}/types.ts +38 -1
  70. package/tsconfig.json +7 -12
  71. package/{src/ui → ui}/service.types.ts +2 -2
  72. package/{src/wallet → wallet}/api.types.ts +2 -2
  73. package/wallet/index.ts +7 -0
  74. package/{src/wallet → wallet}/service.types.ts +2 -2
  75. package/{src/wallet → wallet}/state.types.ts +1 -1
  76. package/src/_window/auth.types.ts +0 -11
  77. package/src/_window/config.types.ts +0 -30
  78. package/src/_window/instances.types.ts +0 -18
  79. package/src/_window/ui.types.ts +0 -13
  80. package/src/_window/window.ts +0 -56
  81. package/src/alert/functions.types.ts +0 -13
  82. package/src/alert/index.ts +0 -9
  83. package/src/alert/state.initial.ts +0 -16
  84. package/src/alert/state.types.ts +0 -27
  85. package/src/alert/state.validations.ts +0 -11
  86. package/src/ats/functions.types.ts +0 -7
  87. package/src/ats/index.ts +0 -9
  88. package/src/ats/state.initial.ts +0 -5
  89. package/src/ats/state.validations.ts +0 -6
  90. package/src/basket/consts.ts +0 -1
  91. package/src/basket/functions.types.ts +0 -40
  92. package/src/basket/index.ts +0 -12
  93. package/src/basket/state.initial.ts +0 -11
  94. package/src/basket/state.validations.ts +0 -12
  95. package/src/basket/utils.ts +0 -79
  96. package/src/campaign/consts.ts +0 -1
  97. package/src/campaign/functions.types.ts +0 -90
  98. package/src/campaign/index.ts +0 -15
  99. package/src/campaign/qa.types.ts +0 -12
  100. package/src/campaign/state.initial.ts +0 -84
  101. package/src/campaign/state.validations.ts +0 -16
  102. package/src/campaign/utils.ts +0 -53
  103. package/src/common/LocalStorage.ts +0 -123
  104. package/src/common/browser.ts +0 -2
  105. package/src/common/color.ts +0 -9
  106. package/src/common/immutable.ts +0 -28
  107. package/src/common/index.ts +0 -22
  108. package/src/common/instances/Instance.ts +0 -13
  109. package/src/common/instances/consts.ts +0 -1
  110. package/src/common/instances/index.ts +0 -4
  111. package/src/common/json.ts +0 -25
  112. package/src/common/logger/Logger.ts +0 -70
  113. package/src/common/logger/index.ts +0 -5
  114. package/src/common/logger/types.ts +0 -7
  115. package/src/common/logger-datadog/LoggerDatadog.ts +0 -42
  116. package/src/common/misc.ts +0 -114
  117. package/src/common/promise.ts +0 -161
  118. package/src/common/proxy.ts +0 -77
  119. package/src/common/regExTest.ts +0 -12
  120. package/src/common/tree.ts +0 -148
  121. package/src/common/utm.ts +0 -19
  122. package/src/common/validators.ts +0 -21
  123. package/src/common/webComponents.ts +0 -26
  124. package/src/config/functions.types.ts +0 -23
  125. package/src/config/index.ts +0 -5
  126. package/src/config/state.initial.ts +0 -11
  127. package/src/config/state.types.ts +0 -15
  128. package/src/consts.ts +0 -980
  129. package/src/contract/consts.ts +0 -1
  130. package/src/contract/functions.types.ts +0 -112
  131. package/src/contract/index.ts +0 -14
  132. package/src/contract/state.initial.ts +0 -39
  133. package/src/contract/state.validations.ts +0 -21
  134. package/src/contract/utils.ts +0 -36
  135. package/src/debugging/functions.types.ts +0 -34
  136. package/src/debugging/index.ts +0 -6
  137. package/src/debugging/state.initial.ts +0 -10
  138. package/src/debugging/state.validations.ts +0 -10
  139. package/src/index.ts +0 -22
  140. package/src/language/consts.ts +0 -6
  141. package/src/language/en.ts +0 -530
  142. package/src/language/functions.types.ts +0 -29
  143. package/src/language/index.ts +0 -11
  144. package/src/language/state.initial.ts +0 -13
  145. package/src/language/state.validations.ts +0 -10
  146. package/src/language/utils.ts +0 -17
  147. package/src/modal/consts.ts +0 -6
  148. package/src/modal/functions.types.ts +0 -22
  149. package/src/modal/index.ts +0 -11
  150. package/src/modal/state.initial.ts +0 -9
  151. package/src/modal/state.validations.ts +0 -6
  152. package/src/modal/store.types.ts +0 -5
  153. package/src/orderJourney/consts.ts +0 -289
  154. package/src/orderJourney/functions.types.ts +0 -140
  155. package/src/orderJourney/index.ts +0 -13
  156. package/src/orderJourney/state.initial.ts +0 -401
  157. package/src/orderJourney/state.validations.ts +0 -78
  158. package/src/orderJourney/utils.ts +0 -7
  159. package/src/product/consts.ts +0 -1
  160. package/src/product/functions.types.ts +0 -156
  161. package/src/product/index.ts +0 -14
  162. package/src/product/state.initial.ts +0 -28
  163. package/src/product/state.validations.ts +0 -25
  164. package/src/routing/functions.types.ts +0 -48
  165. package/src/routing/index.ts +0 -5
  166. package/src/routing/state.initial.ts +0 -10
  167. package/src/theming/consts.ts +0 -7727
  168. package/src/theming/functions.types.ts +0 -13
  169. package/src/theming/index.ts +0 -11
  170. package/src/theming/state.initial.ts +0 -16
  171. package/src/theming/state.validations.ts +0 -8
  172. package/src/theming/utils.ts +0 -581
  173. package/src/types.ts +0 -229
  174. package/src/utils.ts +0 -3
  175. package/src/wallet/consts.ts +0 -3
  176. package/src/wallet/functions.types.ts +0 -58
  177. package/src/wallet/index.ts +0 -11
  178. package/src/wallet/state.initial.ts +0 -18
  179. package/src/wallet/state.validations.ts +0 -18
  180. /package/{src/_window → _window}/index.ts +0 -0
  181. /package/{src/alert → alert}/enums.ts +0 -0
  182. /package/{src/alert → alert}/types.ts +0 -0
  183. /package/{src/ats → ats}/types.ts +0 -0
  184. /package/{src/basket → basket}/types.ts +0 -0
  185. /package/{src/basket → basket}/validations.types.ts +0 -0
  186. /package/{src/campaign → campaign}/enums.ts +0 -0
  187. /package/{src/campaign → campaign}/types.ts +0 -0
  188. /package/{src/campaign → campaign}/validations.types.ts +0 -0
  189. /package/{src/common → common}/events/EventCommand/enums.ts +0 -0
  190. /package/{src/common → common}/events/EventCommand/index.ts +0 -0
  191. /package/{src/common → common}/events/EventCommand/types.ts +0 -0
  192. /package/{src/common → common}/events/index.ts +0 -0
  193. /package/{src/common → common}/logger/enums.ts +0 -0
  194. /package/{src/common → common}/validations.types.ts +0 -0
  195. /package/{src/contract → contract}/types.ts +0 -0
  196. /package/{src/contract → contract}/validations.types.ts +0 -0
  197. /package/{src/language → language}/validations.types.ts +0 -0
  198. /package/{src/modal → modal}/enums.ts +0 -0
  199. /package/{src/modal → modal}/types.ts +0 -0
  200. /package/{src/orderJourney → orderJourney}/enums.ts +0 -0
  201. /package/{src/orderJourney → orderJourney}/types.ts +0 -0
  202. /package/{src/orderJourney → orderJourney}/validations.types.ts +0 -0
  203. /package/{src/product → product}/enums.ts +0 -0
  204. /package/{src/product → product}/types.ts +0 -0
  205. /package/{src/product → product}/validations.types.ts +0 -0
  206. /package/{src/routing → routing}/state.types.ts +0 -0
  207. /package/{src/theming → theming}/validations.types.ts +0 -0
  208. /package/{src/ui → ui}/index.ts +0 -0
  209. /package/{src/wallet → wallet}/types.ts +0 -0
  210. /package/{src/wallet → wallet}/validations.types.ts +0 -0
@@ -1,28 +0,0 @@
1
- import { ProductStoreState } from "./state.types"
2
-
3
- export const initialProductStoreState: ProductStoreState = {
4
- /* Products */
5
- recommendedProducts: [],
6
- recommendedProductsAreLoading: false,
7
- productsWithContractsSupport: [],
8
- productsWithContractsSupportAreLoading: false,
9
- products: [],
10
- productsAreLoading: false,
11
- productsPaginationMeta: null,
12
- productNameInput: "",
13
- jobRegionsIdsSelected: [],
14
- /* Locations */
15
- jobRegions: [],
16
- /* Job Titles */
17
- jobTitles: [],
18
- jobTitlesIdsSelected: [],
19
- /* Job Functions */
20
- jobFunctions: [],
21
- jobFunctionsAreLoading: false,
22
- jobFunctionsInput: "",
23
- jobFunctionsIdsSelected: [],
24
- /* Industries */
25
- jobIndustries: [],
26
- jobIndustriesAreLoading: false,
27
- jobIndustriesIdsSelected: [],
28
- }
@@ -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,5 +0,0 @@
1
- // created from 'create-ts-index'
2
-
3
- export * from './functions.types';
4
- export * from './state.initial';
5
- export * from './state.types';
@@ -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
- }