@applicaster/zapp-react-dom-app 14.0.0-alpha.1235043154 → 14.0.0-alpha.1308901965
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.
|
@@ -139,14 +139,9 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
139
139
|
this.handleInputBlur = this.handleInputBlur.bind(this);
|
|
140
140
|
this.handleKeyboardInput = this.handleKeyboardInput.bind(this);
|
|
141
141
|
this.handleKeyboardDismiss = this.handleKeyboardDismiss.bind(this);
|
|
142
|
-
this.onKeyDownListener = this.onKeyDown.bind(this);
|
|
143
|
-
this.onKeyUp = this.onKeyUp.bind(this);
|
|
144
142
|
this.onMouseMoveListener = this.onMouseMove.bind(this);
|
|
145
143
|
this.onScrollListener = this.onScroll.bind(this);
|
|
146
144
|
this.onMouseDownListener = this.onMouseDown.bind(this);
|
|
147
|
-
this.onKeyboardStateChange = this.onKeyboardStateChange.bind(this);
|
|
148
|
-
this.onConfirmDialogOpen = this.onConfirmDialogOpen.bind(this);
|
|
149
|
-
this.onConfirmDialogClose = this.onConfirmDialogClose.bind(this);
|
|
150
145
|
|
|
151
146
|
this.handlePhysicalKeyboardDismiss =
|
|
152
147
|
this.handlePhysicalKeyboardDismiss.bind(this);
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import * as R from "ramda";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
getStorageModule,
|
|
4
|
+
applyNamespaceToKeyName,
|
|
5
|
+
STORAGE_TYPES,
|
|
6
|
+
DEFAULT_NAMESPACE,
|
|
7
|
+
} from "../";
|
|
3
8
|
|
|
4
9
|
import { StorageMock } from "./StorageMocks";
|
|
5
10
|
|
|
@@ -32,6 +37,7 @@ describe("storageObject", () => {
|
|
|
32
37
|
const value = "bar";
|
|
33
38
|
const namespaceValue = "baz";
|
|
34
39
|
const namespace = "baz";
|
|
40
|
+
const keyName = applyNamespaceToKeyName(key, namespace);
|
|
35
41
|
const failKey = "fail_key";
|
|
36
42
|
|
|
37
43
|
beforeEach(clearStorage);
|
|
@@ -48,11 +54,16 @@ describe("storageObject", () => {
|
|
|
48
54
|
it.each(storages)("sets a property in the storage", async (storage) => {
|
|
49
55
|
const result = await storage.setItem(key, value, null);
|
|
50
56
|
|
|
51
|
-
|
|
57
|
+
const keyWithDefaultNameSpace = applyNamespaceToKeyName(
|
|
58
|
+
key,
|
|
59
|
+
DEFAULT_NAMESPACE
|
|
60
|
+
);
|
|
52
61
|
|
|
53
|
-
|
|
62
|
+
expect(result).toBe(true);
|
|
54
63
|
|
|
55
|
-
expect(
|
|
64
|
+
expect(storage.getItem(keyWithDefaultNameSpace)).resolves.toEqual(
|
|
65
|
+
value
|
|
66
|
+
);
|
|
56
67
|
});
|
|
57
68
|
|
|
58
69
|
it.each(storages)(
|
|
@@ -62,9 +73,7 @@ describe("storageObject", () => {
|
|
|
62
73
|
|
|
63
74
|
expect(result).toBe(true);
|
|
64
75
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
expect(res).toEqual(namespaceValue);
|
|
76
|
+
expect(storage.getItem(keyName)).resolves.toEqual(namespaceValue);
|
|
68
77
|
}
|
|
69
78
|
);
|
|
70
79
|
|
|
@@ -99,7 +108,7 @@ describe("storageObject", () => {
|
|
|
99
108
|
"gets properties from the storage with a namespace",
|
|
100
109
|
(storage) => {
|
|
101
110
|
expect(storage.getItem(key, namespace)).resolves.toEqual(
|
|
102
|
-
namespaceValue
|
|
111
|
+
"namespaceValue"
|
|
103
112
|
);
|
|
104
113
|
}
|
|
105
114
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-dom-app",
|
|
3
|
-
"version": "14.0.0-alpha.
|
|
3
|
+
"version": "14.0.0-alpha.1308901965",
|
|
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": "14.0.0-alpha.
|
|
26
|
-
"@applicaster/zapp-react-native-bridge": "14.0.0-alpha.
|
|
27
|
-
"@applicaster/zapp-react-native-redux": "14.0.0-alpha.
|
|
28
|
-
"@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.
|
|
29
|
-
"@applicaster/zapp-react-native-utils": "14.0.0-alpha.
|
|
25
|
+
"@applicaster/zapp-react-dom-ui-components": "14.0.0-alpha.1308901965",
|
|
26
|
+
"@applicaster/zapp-react-native-bridge": "14.0.0-alpha.1308901965",
|
|
27
|
+
"@applicaster/zapp-react-native-redux": "14.0.0-alpha.1308901965",
|
|
28
|
+
"@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.1308901965",
|
|
29
|
+
"@applicaster/zapp-react-native-utils": "14.0.0-alpha.1308901965",
|
|
30
30
|
"abortcontroller-polyfill": "^1.7.5",
|
|
31
31
|
"typeface-montserrat": "^0.0.54",
|
|
32
32
|
"video.js": "7.14.3",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"react": "*",
|
|
42
42
|
"react-dom": "*",
|
|
43
43
|
"react-native": "*",
|
|
44
|
+
"react-native-safe-area-context": "*",
|
|
44
45
|
"react-native-svg": "*",
|
|
45
46
|
"react-native-web": "*",
|
|
46
47
|
"uglify-js": "*",
|