@dgui/react-native-web 0.3.2-beta.1 → 0.3.3

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.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const SceneSwiperSlide: import("react").NamedExoticComponent<SceneProps>;
3
3
  export type SceneProps = {
4
- drawerId: string;
5
- tabId: string;
4
+ readonly drawerId: string;
5
+ readonly tabId: string;
6
6
  };
7
7
  export default SceneSwiperSlide;
@@ -11,7 +11,7 @@ const Scene = ({ tabId, drawerId }) => {
11
11
  const gatewayId = (0, react_1.useMemo)(() => {
12
12
  return `drawer-${drawerId}-${tabId}`;
13
13
  }, []);
14
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseHorse, Object.assign({ swipe: swipe }, { children: (0, jsx_runtime_1.jsx)(NativeWebGateway_1.NativeWebGatewayDest, { gatewayId: gatewayId }) })));
14
+ return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseHorse, { swipe: swipe, children: (0, jsx_runtime_1.jsx)(NativeWebGateway_1.NativeWebGatewayDest, { gatewayId: gatewayId }) }));
15
15
  };
16
16
  Scene.displayName = 'NativeWebDrawersTabsSceneContextScene';
17
17
  const SceneSwiperSlide = (0, react_1.memo)(Scene);
@@ -3,5 +3,5 @@ import { type WebBaseCarouselProps } from '@dgui/react-web-shared';
3
3
  declare const _default: import("react").NamedExoticComponent<ContextProps>;
4
4
  export default _default;
5
5
  export type ContextProps = WebBaseCarouselProps & {
6
- drawerId: string;
6
+ readonly drawerId: string;
7
7
  };
@@ -19,7 +19,7 @@ const Context = ({ drawerId }) => {
19
19
  drawerId,
20
20
  tabOrder
21
21
  ]);
22
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseCarousel, Object.assign({ onSelectTab: selectTab, swipe: false, tabIndex: tabIndex }, { children: tabs })));
22
+ return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseCarousel, { onSelectTab: selectTab, swipe: false, tabIndex: tabIndex, children: tabs }));
23
23
  };
24
24
  Context.displayName = 'NativeWebDrawersTabsSceneContext';
25
25
  exports.default = (0, react_1.memo)(Context);
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const SceneSwiperSlide: import("react").NamedExoticComponent<SceneProps>;
3
3
  export type SceneProps = {
4
- drawerId: string;
4
+ readonly drawerId: string;
5
5
  };
6
6
  export default SceneSwiperSlide;
@@ -15,9 +15,9 @@ const Scene = ({ drawerId }) => {
15
15
  const gatewayId = (0, react_1.useMemo)(() => {
16
16
  return `drawer-${drawerId}`;
17
17
  }, []);
18
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseHorse, Object.assign({ swipe: swipe }, { children: tabs ?
18
+ return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseHorse, { swipe: swipe, children: tabs ?
19
19
  ((0, jsx_runtime_1.jsx)(Context_1.default, { drawerId: drawerId })) :
20
- ((0, jsx_runtime_1.jsx)(NativeWebGateway_1.NativeWebGatewayDest, { gatewayId: gatewayId })) })));
20
+ ((0, jsx_runtime_1.jsx)(NativeWebGateway_1.NativeWebGatewayDest, { gatewayId: gatewayId })) }));
21
21
  };
22
22
  Scene.displayName = 'NativeWebDrawersTabsScene';
23
23
  const SceneSwiperSlide = (0, react_1.memo)(Scene);
@@ -18,7 +18,7 @@ const Drawers = () => {
18
18
  }, [
19
19
  drawerOrder
20
20
  ]);
21
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseCarousel, Object.assign({ onSelectTab: selectDrawer, tabIndex: drawerIndex }, { children: drawers })));
21
+ return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseCarousel, { onSelectTab: selectDrawer, tabIndex: drawerIndex, children: drawers }));
22
22
  };
23
23
  Drawers.displayName = 'NativeWebDrawersTabs';
24
24
  exports.default = (0, react_1.memo)(Drawers);
@@ -14,7 +14,7 @@ const Drawers = ({ children }) => {
14
14
  const appBar = (0, react_1.useMemo)(() => {
15
15
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(NativeWebGateway_1.NativeWebGatewayDest, { gatewayId: 'ReactNativeWebDigestDrawerBar' }), (0, jsx_runtime_1.jsx)(Tabs_1.default, {})] }));
16
16
  }, []);
17
- return ((0, jsx_runtime_1.jsx)(react_native_shared_1.NativeBaseDrawers, Object.assign({ drawerContent: appBar, open: drawerOpen }, { children: children })));
17
+ return ((0, jsx_runtime_1.jsx)(react_native_shared_1.NativeBaseDrawers, { drawerContent: appBar, open: drawerOpen, children: children }));
18
18
  };
19
19
  Drawers.displayName = 'NativeWebDrawers';
20
20
  exports.default = Drawers;
@@ -4,7 +4,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  const react_native_shared_1 = require("@dgui/react-native-shared");
5
5
  const react_web_shared_1 = require("@dgui/react-web-shared");
6
6
  const NativeWebAppBar = ({ children }) => {
7
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGateway, Object.assign({ gatewayId: 'ReactNativeWebDigestAppBar' }, { children: children !== null && children !== void 0 ? children : (0, jsx_runtime_1.jsx)(react_native_shared_1.AppBar, {}) })));
7
+ return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGateway, { gatewayId: 'ReactNativeWebDigestAppBar', children: children !== null && children !== void 0 ? children : (0, jsx_runtime_1.jsx)(react_native_shared_1.AppBar, {}) }));
8
8
  };
9
9
  NativeWebAppBar.displayName = 'NativeWebAppBar';
10
10
  exports.default = NativeWebAppBar;
@@ -32,7 +32,7 @@ const NativeWebDrawer = (_a) => {
32
32
  removeDrawer(drawerId);
33
33
  };
34
34
  }, []);
35
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGateway, Object.assign({ gatewayId: gatewayId }, { children: children })));
35
+ return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGateway, { gatewayId: gatewayId, children: children }));
36
36
  };
37
37
  NativeWebDrawer.displayName = 'NativeWebDrawer';
38
38
  exports.default = NativeWebDrawer;
@@ -4,7 +4,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  const react_native_shared_1 = require("@dgui/react-native-shared");
5
5
  const react_web_shared_1 = require("@dgui/react-web-shared");
6
6
  const NativeWebDrawerBar = ({ children }) => {
7
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGateway, Object.assign({ gatewayId: 'ReactNativeWebDigestDrawerBar' }, { children: children !== null && children !== void 0 ? children : (0, jsx_runtime_1.jsx)(react_native_shared_1.DrawerBar, {}) })));
7
+ return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGateway, { gatewayId: 'ReactNativeWebDigestDrawerBar', children: children !== null && children !== void 0 ? children : (0, jsx_runtime_1.jsx)(react_native_shared_1.DrawerBar, {}) }));
8
8
  };
9
9
  NativeWebDrawerBar.displayName = 'NativeWebDrawerBar';
10
10
  exports.default = NativeWebDrawerBar;
@@ -30,7 +30,7 @@ const NativeWebTab = (_a) => {
30
30
  removeTab(tabId);
31
31
  };
32
32
  }, []);
33
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGateway, Object.assign({ gatewayId: gatewayId }, { children: children })));
33
+ return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGateway, { gatewayId: gatewayId, children: children }));
34
34
  };
35
35
  NativeWebTab.displayName = 'NativeWebTab';
36
36
  exports.default = NativeWebTab;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const SceneSwiperSlide: import("react").NamedExoticComponent<SceneProps>;
3
3
  export type SceneProps = {
4
- tabId: string;
4
+ readonly tabId: string;
5
5
  };
6
6
  export default SceneSwiperSlide;
@@ -11,7 +11,7 @@ const Scene = ({ tabId }) => {
11
11
  const gatewayId = (0, react_1.useMemo)(() => {
12
12
  return `tab-${tabId}`;
13
13
  }, []);
14
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseHorse, Object.assign({ swipe: swipe }, { children: (0, jsx_runtime_1.jsx)(NativeWebGateway_1.NativeWebGatewayDest, { gatewayId: gatewayId }) })));
14
+ return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseHorse, { swipe: swipe, children: (0, jsx_runtime_1.jsx)(NativeWebGateway_1.NativeWebGatewayDest, { gatewayId: gatewayId }) }));
15
15
  };
16
16
  const SceneSwiperSlide = (0, react_1.memo)(Scene);
17
17
  SceneSwiperSlide.displayName = 'SceneSwiperSlide';
@@ -19,6 +19,6 @@ const Tabs = () => {
19
19
  }, [
20
20
  tabOrder
21
21
  ]);
22
- return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseCarousel, Object.assign({ onSelectTab: selectTab, tabIndex: tabIndex }, { children: tabs })));
22
+ return ((0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseCarousel, { onSelectTab: selectTab, tabIndex: tabIndex, children: tabs }));
23
23
  };
24
24
  exports.default = (0, react_1.memo)(Tabs);
@@ -4,5 +4,5 @@ import { type ViewStyle } from 'react-native';
4
4
  declare const NativeWebGatewayDest: FunctionComponent<NativeWebGatewayDestProps>;
5
5
  export default NativeWebGatewayDest;
6
6
  export type NativeWebGatewayDestProps = GatewayDestProps & {
7
- style?: ViewStyle;
7
+ readonly style?: ViewStyle;
8
8
  };
@@ -4,7 +4,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  const react_shared_1 = require("@dgui/react-shared");
5
5
  const react_web_shared_1 = require("@dgui/react-web-shared");
6
6
  const Providers = ({ children, drawerIndex, drawerOpen, onDrawerToggle, onSelectDrawer, onSelectTab, tabIndex }) => {
7
- return ((0, jsx_runtime_1.jsx)(react_shared_1.Providers, Object.assign({ drawerIndex: drawerIndex, drawerOpen: drawerOpen, onDrawerToggle: onDrawerToggle, onSelectDrawer: onSelectDrawer, onSelectTab: onSelectTab, tabIndex: tabIndex }, { children: (0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGatewayProvider, { children: children }) })));
7
+ return ((0, jsx_runtime_1.jsx)(react_shared_1.Providers, { drawerIndex: drawerIndex, drawerOpen: drawerOpen, onDrawerToggle: onDrawerToggle, onSelectDrawer: onSelectDrawer, onSelectTab: onSelectTab, tabIndex: tabIndex, children: (0, jsx_runtime_1.jsx)(react_web_shared_1.WebBaseGatewayProvider, { children: children }) }));
8
8
  };
9
9
  Providers.displayName = 'NativeWebProviders';
10
10
  exports.default = Providers;
@@ -15,7 +15,7 @@ const styles = react_native_1.StyleSheet.create({
15
15
  }
16
16
  });
17
17
  const ReactNativeWebDigest = ({ children, drawerIndex, drawerOpen, onDrawerToggle, onSelectDrawer, onSelectTab, tabIndex }) => {
18
- return ((0, jsx_runtime_1.jsxs)(Providers_1.default, Object.assign({ drawerIndex: drawerIndex, drawerOpen: drawerOpen, onDrawerToggle: onDrawerToggle, onSelectDrawer: onSelectDrawer, onSelectTab: onSelectTab, tabIndex: tabIndex }, { children: [(0, jsx_runtime_1.jsx)(NativeWebGateway_1.NativeWebGatewayDest, { gatewayId: 'ReactNativeWebDigestAppBar', style: styles.appbar }), (0, jsx_runtime_1.jsx)(Drawers_1.default, { children: (0, jsx_runtime_1.jsx)(Tabs_1.default, {}) }), children] })));
18
+ return ((0, jsx_runtime_1.jsxs)(Providers_1.default, { drawerIndex: drawerIndex, drawerOpen: drawerOpen, onDrawerToggle: onDrawerToggle, onSelectDrawer: onSelectDrawer, onSelectTab: onSelectTab, tabIndex: tabIndex, children: [(0, jsx_runtime_1.jsx)(NativeWebGateway_1.NativeWebGatewayDest, { gatewayId: 'ReactNativeWebDigestAppBar', style: styles.appbar }), (0, jsx_runtime_1.jsx)(Drawers_1.default, { children: (0, jsx_runtime_1.jsx)(Tabs_1.default, {}) }), children] }));
19
19
  };
20
20
  ReactNativeWebDigest.displayName = 'ReactNativeWebDigest';
21
21
  exports.default = ReactNativeWebDigest;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dgui/react-native-web",
3
3
  "title": "Digested React GUI Native Web Components",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "0.3.2-beta.1",
5
+ "version": "0.3.3",
6
6
  "private": false,
7
7
  "description": "Native Web Components for a boilerplate React GUI",
8
8
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
@@ -43,37 +43,37 @@
43
43
  "set:version": "npm version --allow-same-version --no-commit-hooks --no-git-tag-version --no-workspaces-update $(npm --silent view $(node -p \"require('./package.json').name\") version)"
44
44
  },
45
45
  "devDependencies": {
46
- "@digest/eslint-config-jest": "^4.2.2",
47
- "@digest/eslint-config-react": "^4.2.2",
48
- "@digest/eslint-config-typescript": "^4.2.2",
49
- "@digest/jest-junit": "^4.2.2",
50
- "@digest/jest-react": "^4.2.2",
51
- "@digest/jest-typescript": "^4.2.2",
52
- "@digest/typescript": "^4.2.2",
53
- "@types/jest": "^29.5.1",
54
- "@types/react": "^18.0.38",
55
- "@types/react-native": "^0.71.6",
46
+ "@digest/eslint-config-jest": "^4.2.5",
47
+ "@digest/eslint-config-react": "^4.2.5",
48
+ "@digest/eslint-config-typescript": "^4.2.5",
49
+ "@digest/jest-junit": "^4.2.5",
50
+ "@digest/jest-react": "^4.2.5",
51
+ "@digest/jest-typescript": "^4.2.5",
52
+ "@digest/typescript": "^4.2.5",
53
+ "@types/jest": "^29.5.3",
54
+ "@types/react": "^18.2.18",
55
+ "@types/react-native": "^0.72.2",
56
56
  "@types/react-test-renderer": "^18.0.0",
57
57
  "cross-env": "^7.0.3",
58
- "jest-environment-jsdom": "^29.5.0",
58
+ "jest-environment-jsdom": "^29.6.2",
59
59
  "jest-environment-jsdom-global": "^4.0.0",
60
60
  "npm-run-all": "^4.1.5",
61
61
  "react": "^18.2.0",
62
62
  "react-dom": "^18.2.0",
63
- "react-native": "^0.71.7",
64
- "react-native-web": "^0.19.4",
63
+ "react-native": "^0.72.3",
64
+ "react-native-web": "^0.19.7",
65
65
  "react-test-renderer": "^18.2.0",
66
- "rimraf": "^5.0.0"
66
+ "rimraf": "^5.0.1"
67
67
  },
68
68
  "dependencies": {
69
- "@dgui/react-native-shared": "^0.3.2-beta.1",
70
- "@dgui/react-shared": "^0.3.2-beta.1",
71
- "@dgui/react-web-shared": "^0.3.2-beta.1"
69
+ "@dgui/react-native-shared": "^0.3.3",
70
+ "@dgui/react-shared": "^0.3.3",
71
+ "@dgui/react-web-shared": "^0.3.3"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "react": "^16.0.0 || ^17.0.0 || ^18.0.0",
75
75
  "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0",
76
- "react-native": "^0.71.0",
76
+ "react-native": "^0.72.0",
77
77
  "react-native-web": "^0.19.0",
78
78
  "swiper": "^8.0.0 || ^9.0.0"
79
79
  },
@@ -87,5 +87,5 @@
87
87
  "react-native-web",
88
88
  "typescript"
89
89
  ],
90
- "gitHead": "d7041d722670220288a98743c02810b000cf8020"
90
+ "gitHead": "8b5845c4bd7c8d05e64acc59718379b956c8a446"
91
91
  }