@openmrs/esm-styleguide 3.4.1-pre.117 → 3.4.1-pre.120
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/.turbo/turbo-build.log +216 -15
- package/__mocks__/react-i18next.js +54 -0
- package/dist/openmrs-esm-styleguide.css +1 -1
- package/dist/openmrs-esm-styleguide.css.map +1 -1
- package/dist/openmrs-esm-styleguide.js +2 -1
- package/dist/openmrs-esm-styleguide.js.LICENSE.txt +14 -0
- package/dist/openmrs-esm-styleguide.js.map +1 -1
- package/jest.config.json +34 -0
- package/package.json +17 -6
- package/setupTests.ts +13 -0
- package/src/error-state/error-state.component.tsx +36 -0
- package/src/error-state/error-state.module.scss +50 -0
- package/src/error-state/error-state.test.tsx +32 -0
- package/src/error-state/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/public.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
[35m@openmrs/esm-styleguide:build: [0mcache hit, replaying output [
|
|
1
|
+
[35m@openmrs/esm-styleguide:build: [0mcache hit, replaying output [2m6c5d8fb64e6822c5[0m
|
|
2
2
|
[35m@openmrs/esm-styleguide:build: [0m$ webpack --mode=production
|
|
3
|
-
[35m@openmrs/esm-styleguide:build: [0masset [1m[33mopenmrs-esm-styleguide.css[39m[22m [1m[
|
|
4
|
-
[35m@openmrs/esm-styleguide:build: [0masset [1m[
|
|
5
|
-
[35m@openmrs/esm-styleguide:build: [0mEntrypoint [1mmain[39m[22m [1m[33m[big][39m[22m
|
|
6
|
-
[35m@openmrs/esm-styleguide:build: [0morphan modules
|
|
7
|
-
[35m@openmrs/esm-styleguide:build: [0mruntime modules
|
|
8
|
-
[35m@openmrs/esm-styleguide:build: [0mbuilt modules
|
|
9
|
-
[35m@openmrs/esm-styleguide:build: [0m modules
|
|
10
|
-
[35m@openmrs/esm-styleguide:build: [0m
|
|
11
|
-
[35m@openmrs/esm-styleguide:build: [0m modules
|
|
12
|
-
[35m@openmrs/esm-styleguide:build: [0m [1m../../../node_modules/systemjs-webpack-interop/public-path.js[39m[22m 2.3 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
13
|
-
[35m@openmrs/esm-styleguide:build: [0m [1m../esm-config/dist/openmrs-esm-module-config.js[39m[22m 62.9 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
3
|
+
[35m@openmrs/esm-styleguide:build: [0masset [1m[33mopenmrs-esm-styleguide.css[39m[22m [1m[33m491 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (name: main) 1 related asset
|
|
4
|
+
[35m@openmrs/esm-styleguide:build: [0masset [1m[33mopenmrs-esm-styleguide.js[39m[22m [1m[33m378 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (name: main) 2 related assets
|
|
5
|
+
[35m@openmrs/esm-styleguide:build: [0mEntrypoint [1mmain[39m[22m [1m[33m[big][39m[22m 869 KiB (2.82 MiB) = [1m[32mopenmrs-esm-styleguide.css[39m[22m 491 KiB [1m[32mopenmrs-esm-styleguide.js[39m[22m 378 KiB 2 auxiliary assets
|
|
6
|
+
[35m@openmrs/esm-styleguide:build: [0morphan modules 13 MiB (javascript) 2.75 KiB (runtime) [1m[33m[orphan][39m[22m 1135 modules
|
|
7
|
+
[35m@openmrs/esm-styleguide:build: [0mruntime modules 2.14 KiB 8 modules
|
|
8
|
+
[35m@openmrs/esm-styleguide:build: [0mbuilt modules 1.42 MiB (javascript) 507 KiB (css/mini-extract) [1m[33m[built][39m[22m
|
|
9
|
+
[35m@openmrs/esm-styleguide:build: [0m cacheable modules 1.42 MiB (javascript) 507 KiB (css/mini-extract)
|
|
10
|
+
[35m@openmrs/esm-styleguide:build: [0m modules by layer 1.42 MiB 56 modules
|
|
11
|
+
[35m@openmrs/esm-styleguide:build: [0m css modules 507 KiB 3 modules
|
|
14
12
|
[35m@openmrs/esm-styleguide:build: [0m modules by path [1mexternal "@openmrs/[39m[22m 126 bytes
|
|
15
13
|
[35m@openmrs/esm-styleguide:build: [0m [1mexternal "@openmrs/esm-extensions"[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
16
14
|
[35m@openmrs/esm-styleguide:build: [0m [1mexternal "@openmrs/esm-state"[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
@@ -18,6 +16,8 @@
|
|
|
18
16
|
[35m@openmrs/esm-styleguide:build: [0m [1mexternal "react"[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
19
17
|
[35m@openmrs/esm-styleguide:build: [0m [1mexternal "react-dom"[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
20
18
|
[35m@openmrs/esm-styleguide:build: [0m [1mexternal "rxjs"[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
19
|
+
[35m@openmrs/esm-styleguide:build: [0m [1mexternal "react-i18next"[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
20
|
+
[35m@openmrs/esm-styleguide:build: [0m [1mexternal "i18next"[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
21
21
|
[35m@openmrs/esm-styleguide:build: [0m
|
|
22
22
|
[35m@openmrs/esm-styleguide:build: [0m[1mLOG from ../../../node_modules/sass-loader/dist/cjs.js sass-loader ../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./src/_all.scss[39m[22m
|
|
23
23
|
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
@@ -133,14 +133,215 @@
|
|
|
133
133
|
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33msrc/left-nav/left-nav.module.scss 2:9 root stylesheet[39m[22m
|
|
134
134
|
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
135
135
|
[35m@openmrs/esm-styleguide:build: [0m
|
|
136
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mLOG from ../../../node_modules/sass-loader/dist/cjs.js sass-loader ../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./src/error-state/error-state.module.scss[39m[22m
|
|
137
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
138
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
139
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mRecommendation: math.div($px, $carbon--base-font-size) or calc($px / $carbon--base-font-size)[39m[22m
|
|
140
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
141
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
142
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
143
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/layout/_convert.scss 25:12 carbon--rem()[39m[22m
|
|
144
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 16:23 @import[39m[22m
|
|
145
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 8:9 @import[39m[22m
|
|
146
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import[39m[22m
|
|
147
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import[39m[22m
|
|
148
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import[39m[22m
|
|
149
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import[39m[22m
|
|
150
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33msrc/error-state/error-state.module.scss 3:9 root stylesheet[39m[22m
|
|
151
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
152
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
153
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
154
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mRecommendation: math.div($step - 2, 4) or calc(($step - 2) / 4)[39m[22m
|
|
155
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
156
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
157
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
158
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 20:53 carbon--get-type-size()[39m[22m
|
|
159
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 31:17 @import[39m[22m
|
|
160
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 10:9 @import[39m[22m
|
|
161
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import[39m[22m
|
|
162
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import[39m[22m
|
|
163
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import[39m[22m
|
|
164
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m../../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import[39m[22m
|
|
165
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33msrc/error-state/error-state.module.scss 3:9 root stylesheet[39m[22m
|
|
166
|
+
[35m@openmrs/esm-styleguide:build: [0m<w> [1m[33m[39m[22m
|
|
167
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
168
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-config/src/public.ts[39m[22m [1m[32m7:0-68[39m[22m
|
|
169
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'ConfigStore' (reexported as 'ConfigStore') was [1m[31mnot found[39m[22m[1m in './module-config/state' (possible exports: [1m[32mconfigExtensionStore, configInternalStore, getConfigStore, getExtensionConfig, getExtensionConfigFromStore, getExtensionSlotConfig, getExtensionSlotConfigFromStore, getExtensionSlotsConfigStore, getExtensionsConfigStore, implementerToolsConfigStore, temporaryConfigStore[39m[22m[1m)[39m[22m
|
|
170
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 3:0-47 3:0-47
|
|
171
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
172
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
173
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
174
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
175
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-extensions/src/public.ts[39m[22m [1m[32m2:0-58[39m[22m
|
|
176
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'CancelLoading' (reexported as 'CancelLoading') was [1m[31mnot found[39m[22m[1m in './render' (possible exports: [1m[32mrenderExtension[39m[22m[1m)[39m[22m
|
|
177
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 5:0-51 5:0-51
|
|
178
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
179
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
180
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
181
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
182
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-extensions/src/public.ts[39m[22m [1m[32m3:0-157[39m[22m
|
|
183
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'ExtensionMeta' (reexported as 'ExtensionMeta') was [1m[31mnot found[39m[22m[1m in './store' (possible exports: [1m[32mgetExtensionInternalStore, getExtensionStore, updateInternalExtensionStore[39m[22m[1m)[39m[22m
|
|
184
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 5:0-51 5:0-51
|
|
185
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
186
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
187
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
188
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
189
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-extensions/src/public.ts[39m[22m [1m[32m3:0-157[39m[22m
|
|
190
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'ExtensionRegistration' (reexported as 'ExtensionRegistration') was [1m[31mnot found[39m[22m[1m in './store' (possible exports: [1m[32mgetExtensionInternalStore, getExtensionStore, updateInternalExtensionStore[39m[22m[1m)[39m[22m
|
|
191
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 5:0-51 5:0-51
|
|
192
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
193
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
194
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
195
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
196
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-extensions/src/public.ts[39m[22m [1m[32m3:0-157[39m[22m
|
|
197
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'AssignedExtension' (reexported as 'AssignedExtension') was [1m[31mnot found[39m[22m[1m in './store' (possible exports: [1m[32mgetExtensionInternalStore, getExtensionStore, updateInternalExtensionStore[39m[22m[1m)[39m[22m
|
|
198
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 5:0-51 5:0-51
|
|
199
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
200
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
201
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
202
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
203
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-extensions/src/public.ts[39m[22m [1m[32m3:0-157[39m[22m
|
|
204
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'ConnectedExtension' (reexported as 'ConnectedExtension') was [1m[31mnot found[39m[22m[1m in './store' (possible exports: [1m[32mgetExtensionInternalStore, getExtensionStore, updateInternalExtensionStore[39m[22m[1m)[39m[22m
|
|
205
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 5:0-51 5:0-51
|
|
206
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
207
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
208
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
209
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
210
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-extensions/src/public.ts[39m[22m [1m[32m3:0-157[39m[22m
|
|
211
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'ExtensionStore' (reexported as 'ExtensionStore') was [1m[31mnot found[39m[22m[1m in './store' (possible exports: [1m[32mgetExtensionInternalStore, getExtensionStore, updateInternalExtensionStore[39m[22m[1m)[39m[22m
|
|
212
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 5:0-51 5:0-51
|
|
213
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
214
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
215
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
216
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
217
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-extensions/src/public.ts[39m[22m [1m[32m3:0-157[39m[22m
|
|
218
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'ExtensionSlotState' (reexported as 'ExtensionSlotState') was [1m[31mnot found[39m[22m[1m in './store' (possible exports: [1m[32mgetExtensionInternalStore, getExtensionStore, updateInternalExtensionStore[39m[22m[1m)[39m[22m
|
|
219
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 5:0-51 5:0-51
|
|
220
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
221
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
222
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
223
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
224
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-globals/src/public.ts[39m[22m [1m[32m1:0-263[39m[22m
|
|
225
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'ConnectivityChangedEvent' (reexported as 'ConnectivityChangedEvent') was [1m[31mnot found[39m[22m[1m in './events' (possible exports: [1m[32mdispatchConnectivityChanged, dispatchNotificationShown, dispatchPrecacheStaticDependencies, subscribeConnectivity, subscribeConnectivityChanged, subscribeNotificationShown, subscribePrecacheStaticDependencies, subscribeToastShown[39m[22m[1m)[39m[22m
|
|
226
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 6:0-48 6:0-48
|
|
227
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
228
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
229
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
230
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
231
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-globals/src/public.ts[39m[22m [1m[32m1:0-263[39m[22m
|
|
232
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'PrecacheStaticDependenciesEvent' (reexported as 'PrecacheStaticDependenciesEvent') was [1m[31mnot found[39m[22m[1m in './events' (possible exports: [1m[32mdispatchConnectivityChanged, dispatchNotificationShown, dispatchPrecacheStaticDependencies, subscribeConnectivity, subscribeConnectivityChanged, subscribeNotificationShown, subscribePrecacheStaticDependencies, subscribeToastShown[39m[22m[1m)[39m[22m
|
|
233
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 6:0-48 6:0-48
|
|
234
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
235
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
236
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
237
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
238
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-globals/src/public.ts[39m[22m [1m[32m1:0-263[39m[22m
|
|
239
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'ShowNotificationEvent' (reexported as 'ShowNotificationEvent') was [1m[31mnot found[39m[22m[1m in './events' (possible exports: [1m[32mdispatchConnectivityChanged, dispatchNotificationShown, dispatchPrecacheStaticDependencies, subscribeConnectivity, subscribeConnectivityChanged, subscribeNotificationShown, subscribePrecacheStaticDependencies, subscribeToastShown[39m[22m[1m)[39m[22m
|
|
240
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 6:0-48 6:0-48
|
|
241
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
242
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
243
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
244
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
245
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-globals/src/public.ts[39m[22m [1m[32m1:0-263[39m[22m
|
|
246
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'ShowToastEvent' (reexported as 'ShowToastEvent') was [1m[31mnot found[39m[22m[1m in './events' (possible exports: [1m[32mdispatchConnectivityChanged, dispatchNotificationShown, dispatchPrecacheStaticDependencies, subscribeConnectivity, subscribeConnectivityChanged, subscribeNotificationShown, subscribePrecacheStaticDependencies, subscribeToastShown[39m[22m[1m)[39m[22m
|
|
247
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 6:0-48 6:0-48
|
|
248
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
249
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
250
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
251
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
252
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-offline/src/public.ts[39m[22m [1m[32m1:0-79[39m[22m
|
|
253
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'OfflineMode' (reexported as 'OfflineMode') was [1m[31mnot found[39m[22m[1m in './mode' (possible exports: [1m[32mactivateOfflineCapability, getCurrentOfflineMode, setCurrentOfflineMode[39m[22m[1m)[39m[22m
|
|
254
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 7:0-48 7:0-48
|
|
255
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
256
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
257
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
258
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
259
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-offline/src/public.ts[39m[22m [1m[32m1:0-79[39m[22m
|
|
260
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'OfflineModeResult' (reexported as 'OfflineModeResult') was [1m[31mnot found[39m[22m[1m in './mode' (possible exports: [1m[32mactivateOfflineCapability, getCurrentOfflineMode, setCurrentOfflineMode[39m[22m[1m)[39m[22m
|
|
261
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 7:0-48 7:0-48
|
|
262
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
263
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
264
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
265
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
266
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-offline/src/public.ts[39m[22m [1m[32m6:0-326[39m[22m
|
|
267
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'QueueItemDescriptor' (reexported as 'QueueItemDescriptor') was [1m[31mnot found[39m[22m[1m in './sync' (possible exports: [1m[32mbeginEditSynchronizationItem, canBeginEditSynchronizationItemsOfType, deleteSynchronizationItem, getFullSynchronizationItems, getFullSynchronizationItemsFor, getOfflineSynchronizationStore, getSynchronizationItem, getSynchronizationItems, getSynchronizationItemsFor, queueSynchronizationItem, queueSynchronizationItemFor, runSynchronization, setupOfflineSync[39m[22m[1m)[39m[22m
|
|
268
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 7:0-48 7:0-48
|
|
269
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
270
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
271
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
272
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
273
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-offline/src/public.ts[39m[22m [1m[32m6:0-326[39m[22m
|
|
274
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'SyncItem' (reexported as 'SyncItem') was [1m[31mnot found[39m[22m[1m in './sync' (possible exports: [1m[32mbeginEditSynchronizationItem, canBeginEditSynchronizationItemsOfType, deleteSynchronizationItem, getFullSynchronizationItems, getFullSynchronizationItemsFor, getOfflineSynchronizationStore, getSynchronizationItem, getSynchronizationItems, getSynchronizationItemsFor, queueSynchronizationItem, queueSynchronizationItemFor, runSynchronization, setupOfflineSync[39m[22m[1m)[39m[22m
|
|
275
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 7:0-48 7:0-48
|
|
276
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
277
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
278
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
279
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
280
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-offline/src/public.ts[39m[22m [1m[32m6:0-326[39m[22m
|
|
281
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'SyncProcessOptions' (reexported as 'SyncProcessOptions') was [1m[31mnot found[39m[22m[1m in './sync' (possible exports: [1m[32mbeginEditSynchronizationItem, canBeginEditSynchronizationItemsOfType, deleteSynchronizationItem, getFullSynchronizationItems, getFullSynchronizationItemsFor, getOfflineSynchronizationStore, getSynchronizationItem, getSynchronizationItems, getSynchronizationItemsFor, queueSynchronizationItem, queueSynchronizationItemFor, runSynchronization, setupOfflineSync[39m[22m[1m)[39m[22m
|
|
282
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 7:0-48 7:0-48
|
|
283
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
284
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
285
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
286
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
287
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-react-utils/src/public.ts[39m[22m [1m[32m1:0-51[39m[22m
|
|
288
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'ExtensionData' (reexported as 'ExtensionData') was [1m[31mnot found[39m[22m[1m in './ComponentContext' (possible exports: [1m[32mComponentContext[39m[22m[1m)[39m[22m
|
|
289
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 8:0-52 8:0-52
|
|
290
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
291
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
292
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
293
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
294
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m../esm-state/src/public.ts[39m[22m [1m[32m1:0-96[39m[22m
|
|
295
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'AppState' (reexported as 'AppState') was [1m[31mnot found[39m[22m[1m in './state' (possible exports: [1m[32mcreateAppState, createGlobalStore, getAppState, getGlobalStore, subscribeTo[39m[22m[1m)[39m[22m
|
|
296
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 9:0-46 9:0-46
|
|
297
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
298
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
299
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
300
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
301
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m./src/public.ts[39m[22m [1m[32m2:0-104[39m[22m
|
|
302
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'NotificationDescriptor' (reexported as 'NotificationDescriptor') was [1m[31mnot found[39m[22m[1m in './notifications/notification.component' (possible exports: [1m[32mNotification[39m[22m[1m)[39m[22m
|
|
303
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 10:0-51 10:0-51
|
|
304
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
305
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
306
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
307
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
308
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m./src/public.ts[39m[22m [1m[32m2:0-104[39m[22m
|
|
309
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'InlineNotificationType' (reexported as 'InlineNotificationType') was [1m[31mnot found[39m[22m[1m in './notifications/notification.component' (possible exports: [1m[32mNotification[39m[22m[1m)[39m[22m
|
|
310
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 10:0-51 10:0-51
|
|
311
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
312
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
313
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
314
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
315
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m./src/public.ts[39m[22m [1m[32m5:0-93[39m[22m
|
|
316
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'ToastDescriptor' (reexported as 'ToastDescriptor') was [1m[31mnot found[39m[22m[1m in './toasts/toast.component' (possible exports: [1m[32mToast[39m[22m[1m)[39m[22m
|
|
317
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 10:0-51 10:0-51
|
|
318
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
319
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
320
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
321
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
322
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m./src/public.ts[39m[22m [1m[32m5:0-93[39m[22m
|
|
323
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'ToastType' (reexported as 'ToastType') was [1m[31mnot found[39m[22m[1m in './toasts/toast.component' (possible exports: [1m[32mToast[39m[22m[1m)[39m[22m
|
|
324
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 10:0-51 10:0-51
|
|
325
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
326
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
327
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
328
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
329
|
+
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1m./src/public.ts[39m[22m [1m[32m5:0-93[39m[22m
|
|
330
|
+
[35m@openmrs/esm-styleguide:build: [0m[1mexport 'ToastNotificationMeta' (reexported as 'ToastNotificationMeta') was [1m[31mnot found[39m[22m[1m in './toasts/toast.component' (possible exports: [1m[32mToast[39m[22m[1m)[39m[22m
|
|
331
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ../esm-framework/src/index.ts 10:0-51 10:0-51
|
|
332
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/error-state.component.tsx 5:0-55 10:19-32
|
|
333
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/error-state/index.ts 1:0-40 1:0-40
|
|
334
|
+
[35m@openmrs/esm-styleguide:build: [0m @ ./src/index.ts 10:0-30 10:0-30
|
|
335
|
+
[35m@openmrs/esm-styleguide:build: [0m
|
|
136
336
|
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1masset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
137
337
|
[35m@openmrs/esm-styleguide:build: [0mThis can impact web performance.
|
|
138
338
|
[35m@openmrs/esm-styleguide:build: [0mAssets:
|
|
139
|
-
[35m@openmrs/esm-styleguide:build: [0m openmrs-esm-styleguide.css (
|
|
339
|
+
[35m@openmrs/esm-styleguide:build: [0m openmrs-esm-styleguide.css (491 KiB)
|
|
340
|
+
[35m@openmrs/esm-styleguide:build: [0m openmrs-esm-styleguide.js (378 KiB)[39m[22m
|
|
140
341
|
[35m@openmrs/esm-styleguide:build: [0m
|
|
141
342
|
[35m@openmrs/esm-styleguide:build: [0m[1m[33mWARNING[39m[22m in [1mentrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
|
|
142
343
|
[35m@openmrs/esm-styleguide:build: [0mEntrypoints:
|
|
143
|
-
[35m@openmrs/esm-styleguide:build: [0m main (
|
|
344
|
+
[35m@openmrs/esm-styleguide:build: [0m main (869 KiB)
|
|
144
345
|
[35m@openmrs/esm-styleguide:build: [0m openmrs-esm-styleguide.css
|
|
145
346
|
[35m@openmrs/esm-styleguide:build: [0m openmrs-esm-styleguide.js
|
|
146
347
|
[35m@openmrs/esm-styleguide:build: [0m[39m[22m
|
|
@@ -149,4 +350,4 @@
|
|
|
149
350
|
[35m@openmrs/esm-styleguide:build: [0mYou can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
|
|
150
351
|
[35m@openmrs/esm-styleguide:build: [0mFor more info visit https://webpack.js.org/guides/code-splitting/[39m[22m
|
|
151
352
|
[35m@openmrs/esm-styleguide:build: [0m
|
|
152
|
-
[35m@openmrs/esm-styleguide:build: [0mwebpack 5.70.0 compiled with [1m[
|
|
353
|
+
[35m@openmrs/esm-styleguide:build: [0mwebpack 5.70.0 compiled with [1m[33m27 warnings[39m[22m in 81719 ms
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const React = require("react");
|
|
2
|
+
const reactI18next = require("react-i18next");
|
|
3
|
+
|
|
4
|
+
const hasChildren = (node) =>
|
|
5
|
+
node && (node.children || (node.props && node.props.children));
|
|
6
|
+
|
|
7
|
+
const getChildren = (node) =>
|
|
8
|
+
node && node.children ? node.children : node.props && node.props.children;
|
|
9
|
+
|
|
10
|
+
const renderNodes = (reactNodes) => {
|
|
11
|
+
if (typeof reactNodes === "string") {
|
|
12
|
+
return reactNodes;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return Object.keys(reactNodes).map((key, i) => {
|
|
16
|
+
const child = reactNodes[key];
|
|
17
|
+
const isElement = React.isValidElement(child);
|
|
18
|
+
|
|
19
|
+
if (typeof child === "string") {
|
|
20
|
+
return child;
|
|
21
|
+
}
|
|
22
|
+
if (hasChildren(child)) {
|
|
23
|
+
const inner = renderNodes(getChildren(child));
|
|
24
|
+
return React.cloneElement(child, { ...child.props, key: i }, inner);
|
|
25
|
+
}
|
|
26
|
+
if (typeof child === "object" && !isElement) {
|
|
27
|
+
return Object.keys(child).reduce(
|
|
28
|
+
(str, childKey) => `${str}${child[childKey]}`,
|
|
29
|
+
""
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return child;
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const useMock = [(k) => k, {}];
|
|
38
|
+
useMock.t = (k, o) => (o && o.defaultValue) || (typeof o === "string" ? o : k);
|
|
39
|
+
useMock.i18n = { language: "en_US" };
|
|
40
|
+
|
|
41
|
+
module.exports = {
|
|
42
|
+
// this mock makes sure any components using the translate HoC receive the t function as a prop
|
|
43
|
+
Trans: ({ children }) => renderNodes(children),
|
|
44
|
+
Translation: ({ children }) => children((k) => k, { i18n: {} }),
|
|
45
|
+
useTranslation: () => useMock,
|
|
46
|
+
|
|
47
|
+
// mock if needed
|
|
48
|
+
I18nextProvider: reactI18next.I18nextProvider,
|
|
49
|
+
initReactI18next: reactI18next.initReactI18next,
|
|
50
|
+
setDefaults: reactI18next.setDefaults,
|
|
51
|
+
getDefaults: reactI18next.getDefaults,
|
|
52
|
+
setI18n: reactI18next.setI18n,
|
|
53
|
+
getI18n: reactI18next.getI18n,
|
|
54
|
+
};
|