@applicaster/zapp-react-dom-app 12.0.0-rc.13 → 12.0.0-rc.130
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/App/InteractionManager/index.tsx +567 -478
- package/App/Loader/appLoader.js +2 -6
- package/App/Loader/setUpRTL.js +3 -3
- package/App/Loader/utils/__tests__/getLanguageCode.test.js +0 -1
- package/App/Loader/utils/const.js +3 -0
- package/App/Loader/utils/index.js +19 -18
- package/App/Loader/utils/platform.js +48 -0
- package/Polyfills/AnalyticsBridge/index.ts +5 -1
- package/Polyfills/AppLoaderBridge/utils/enums.ts +1 -0
- package/Polyfills/QuickBrickCommunicationModule/__tests__/index.test.js +225 -0
- package/Polyfills/QuickBrickCommunicationModule/index.js +115 -52
- package/index.js +5 -6
- package/main.css +2 -2
- package/package.json +6 -6
- package/App/Loader/utils/__tests__/getAvailableAppLanguages.test.js +0 -35
package/index.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
/// <reference types="@applicaster/applicaster-types" />
|
|
2
2
|
import * as R from "ramda";
|
|
3
|
-
import {
|
|
3
|
+
import { useHistory, useLocation } from "react-router-dom";
|
|
4
4
|
|
|
5
5
|
import { createQuickBrickApp } from "@applicaster/quick-brick-core";
|
|
6
6
|
import * as QuickBrickManager from "@applicaster/zapp-react-native-bridge/QuickBrick";
|
|
7
7
|
import * as Contexts from "@applicaster/zapp-react-native-ui-components/Contexts";
|
|
8
8
|
import { OfflineHandler } from "@applicaster/zapp-react-native-ui-components/Components/OfflineHandler";
|
|
9
9
|
import { getXray } from "@applicaster/zapp-react-native-utils/logger";
|
|
10
|
-
|
|
11
|
-
const { withXray } = getXray();
|
|
12
|
-
|
|
13
10
|
import { ZappDomRouter } from "./App/Router";
|
|
14
11
|
import { Layout } from "./App/Layout";
|
|
15
12
|
import { SplashLoader } from "./App/Loader/SplashLoader";
|
|
16
13
|
import { appLoader } from "./App/Loader";
|
|
17
14
|
|
|
18
|
-
import {
|
|
15
|
+
import { InteractionManager } from "./App/InteractionManager";
|
|
19
16
|
import "./main.css";
|
|
20
17
|
|
|
18
|
+
const { withXray } = getXray();
|
|
19
|
+
|
|
21
20
|
const contextProviders = R.map(R.prop("withProvider"), R.values(Contexts));
|
|
22
21
|
|
|
23
22
|
// Add DOM specific providers
|
|
@@ -33,7 +32,7 @@ export const ZappApp = createQuickBrickApp({
|
|
|
33
32
|
QuickBrickManager,
|
|
34
33
|
Layout,
|
|
35
34
|
OfflineHandler,
|
|
36
|
-
InteractionManager
|
|
35
|
+
InteractionManager,
|
|
37
36
|
appLoader,
|
|
38
37
|
SplashLoader,
|
|
39
38
|
ContextProviders: contextProviders,
|
package/main.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-dom-app",
|
|
3
|
-
"version": "12.0.0-rc.
|
|
3
|
+
"version": "12.0.0-rc.130",
|
|
4
4
|
"description": "Zapp App Component for Applicaster's Quick Brick React Native App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/applicaster/zapp-react-dom-app#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@applicaster/zapp-react-dom-ui-components": "12.0.0-rc.
|
|
26
|
-
"@applicaster/zapp-react-native-bridge": "12.0.0-rc.
|
|
27
|
-
"@applicaster/zapp-react-native-redux": "12.0.0-rc.
|
|
28
|
-
"@applicaster/zapp-react-native-ui-components": "12.0.0-rc.
|
|
29
|
-
"@applicaster/zapp-react-native-utils": "12.0.0-rc.
|
|
25
|
+
"@applicaster/zapp-react-dom-ui-components": "12.0.0-rc.130",
|
|
26
|
+
"@applicaster/zapp-react-native-bridge": "12.0.0-rc.130",
|
|
27
|
+
"@applicaster/zapp-react-native-redux": "12.0.0-rc.130",
|
|
28
|
+
"@applicaster/zapp-react-native-ui-components": "12.0.0-rc.130",
|
|
29
|
+
"@applicaster/zapp-react-native-utils": "12.0.0-rc.130",
|
|
30
30
|
"abortcontroller-polyfill": "^1.7.5",
|
|
31
31
|
"history": "^4.7.2",
|
|
32
32
|
"react-router-dom": "^5.1.2",
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { getAvailableAppLanguagesImpl as getAvailableAppLanguages } from "..";
|
|
2
|
-
|
|
3
|
-
describe("getAvailableAppLanguages", () => {
|
|
4
|
-
it("return list of languages", () => {
|
|
5
|
-
// setup
|
|
6
|
-
const appStore = {
|
|
7
|
-
get: () => ({
|
|
8
|
-
localizations: {
|
|
9
|
-
en: "en_value",
|
|
10
|
-
de: "de_value",
|
|
11
|
-
fr: "fr_value",
|
|
12
|
-
"en-UK": "en-UK_value",
|
|
13
|
-
"en-GB": "en-GB_value",
|
|
14
|
-
},
|
|
15
|
-
}),
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
// verify
|
|
19
|
-
expect(getAvailableAppLanguages(appStore)).toEqual([
|
|
20
|
-
"en",
|
|
21
|
-
"de",
|
|
22
|
-
"fr",
|
|
23
|
-
"en-UK",
|
|
24
|
-
"en-GB",
|
|
25
|
-
]);
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
it("return list of languages", () => {
|
|
29
|
-
// setup
|
|
30
|
-
const appStore = undefined;
|
|
31
|
-
|
|
32
|
-
// verify
|
|
33
|
-
expect(getAvailableAppLanguages(appStore)).toEqual([]);
|
|
34
|
-
});
|
|
35
|
-
});
|