one 2.0.0-beta.98.1 → 2.0.0-beta.99.1
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/dist/cjs/one.cjs +3 -1
- package/dist/cjs/one.native.cjs +3 -1
- package/dist/cjs/one.native.js +3 -1
- package/dist/cjs/one.native.js.map +1 -1
- package/dist/esm/one.mjs +4 -2
- package/dist/esm/one.mjs.map +1 -1
- package/dist/esm/one.native.js +4 -2
- package/dist/esm/one.native.js.map +1 -1
- package/package.json +12 -12
- package/src/one.test.ts +8 -4
- package/src/one.ts +7 -2
- package/types/one.d.ts +4 -2
- package/types/one.d.ts.map +1 -1
package/dist/cjs/one.cjs
CHANGED
|
@@ -43,6 +43,7 @@ const iOS = Object.freeze({
|
|
|
43
43
|
});
|
|
44
44
|
const Android = Object.freeze({
|
|
45
45
|
...import_native.Compose,
|
|
46
|
+
Color: import_native.Color.android,
|
|
46
47
|
Menu: import_native.Menu,
|
|
47
48
|
ContextMenu: import_native.ContextMenu
|
|
48
49
|
});
|
|
@@ -57,7 +58,6 @@ const UI = Object.freeze({
|
|
|
57
58
|
...import_native.UI,
|
|
58
59
|
Fonts: import_native.Fonts,
|
|
59
60
|
SafeArea,
|
|
60
|
-
Haptics: import_native.Haptics,
|
|
61
61
|
TextInput: import_native.TextInput,
|
|
62
62
|
useFonts: import_native.useFonts,
|
|
63
63
|
useNativeState: import_native.useNativeState,
|
|
@@ -79,8 +79,10 @@ const One = Object.freeze({
|
|
|
79
79
|
UI,
|
|
80
80
|
Notifications: import_native.Notifications,
|
|
81
81
|
Clipboard: import_native.Clipboard,
|
|
82
|
+
Haptics: import_native.Haptics,
|
|
82
83
|
Network: import_native.Network,
|
|
83
84
|
Browser: import_native.Browser,
|
|
84
85
|
ImagePicker: import_native.ImagePicker,
|
|
86
|
+
SecureStore: import_native.SecureStore,
|
|
85
87
|
useNetworkState: import_native.useNetworkState
|
|
86
88
|
});
|
package/dist/cjs/one.native.cjs
CHANGED
|
@@ -46,6 +46,7 @@ var iOS = Object.freeze({
|
|
|
46
46
|
});
|
|
47
47
|
var Android = Object.freeze({
|
|
48
48
|
...import_native.Compose,
|
|
49
|
+
Color: import_native.Color.android,
|
|
49
50
|
Menu: import_native.Menu,
|
|
50
51
|
ContextMenu: import_native.ContextMenu
|
|
51
52
|
});
|
|
@@ -60,7 +61,6 @@ var UI = Object.freeze({
|
|
|
60
61
|
...import_native.UI,
|
|
61
62
|
Fonts: import_native.Fonts,
|
|
62
63
|
SafeArea,
|
|
63
|
-
Haptics: import_native.Haptics,
|
|
64
64
|
TextInput: import_native.TextInput,
|
|
65
65
|
useFonts: import_native.useFonts,
|
|
66
66
|
useNativeState: import_native.useNativeState,
|
|
@@ -82,8 +82,10 @@ var One = Object.freeze({
|
|
|
82
82
|
UI,
|
|
83
83
|
Notifications: import_native.Notifications,
|
|
84
84
|
Clipboard: import_native.Clipboard,
|
|
85
|
+
Haptics: import_native.Haptics,
|
|
85
86
|
Network: import_native.Network,
|
|
86
87
|
Browser: import_native.Browser,
|
|
87
88
|
ImagePicker: import_native.ImagePicker,
|
|
89
|
+
SecureStore: import_native.SecureStore,
|
|
88
90
|
useNetworkState: import_native.useNetworkState
|
|
89
91
|
});
|
package/dist/cjs/one.native.js
CHANGED
|
@@ -46,6 +46,7 @@ var iOS = Object.freeze({
|
|
|
46
46
|
});
|
|
47
47
|
var Android = Object.freeze({
|
|
48
48
|
...import_native.Compose,
|
|
49
|
+
Color: import_native.Color.android,
|
|
49
50
|
Menu: import_native.Menu,
|
|
50
51
|
ContextMenu: import_native.ContextMenu
|
|
51
52
|
});
|
|
@@ -60,7 +61,6 @@ var UI = Object.freeze({
|
|
|
60
61
|
...import_native.UI,
|
|
61
62
|
Fonts: import_native.Fonts,
|
|
62
63
|
SafeArea,
|
|
63
|
-
Haptics: import_native.Haptics,
|
|
64
64
|
TextInput: import_native.TextInput,
|
|
65
65
|
useFonts: import_native.useFonts,
|
|
66
66
|
useNativeState: import_native.useNativeState,
|
|
@@ -82,9 +82,11 @@ var One = Object.freeze({
|
|
|
82
82
|
UI,
|
|
83
83
|
Notifications: import_native.Notifications,
|
|
84
84
|
Clipboard: import_native.Clipboard,
|
|
85
|
+
Haptics: import_native.Haptics,
|
|
85
86
|
Network: import_native.Network,
|
|
86
87
|
Browser: import_native.Browser,
|
|
87
88
|
ImagePicker: import_native.ImagePicker,
|
|
89
|
+
SecureStore: import_native.SecureStore,
|
|
88
90
|
useNetworkState: import_native.useNetworkState
|
|
89
91
|
});
|
|
90
92
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one.native.js","names":[],"sources":["cjs/one.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar one_exports = {};\n__export(one_exports, {\n One: () => One\n});\nmodule.exports = __toCommonJS(one_exports);\nvar import_native = require(\"@vxrn/native\");\nvar import_safe_area = require(\"@vxrn/safe-area\");\nfunction currentPlatform() {\n var _Reflect_get;\n var defined = (_Reflect_get = Reflect.get(globalThis, \"__ONE_PLATFORM__\")) !== null && _Reflect_get !== void 0 ? _Reflect_get : typeof process !== \"undefined\" ? process.env.ONE_PLATFORM : void 0;\n return defined === \"ios\" || defined === \"android\" || defined === \"rnx\" ? defined : \"web\";\n}\nvar iOS = Object.freeze({\n ...import_native.Swift,\n Widgets: import_native.Widgets,\n LiveActivities: import_native.LiveActivities,\n WidgetUI: import_native.WidgetUI,\n Color: import_native.Color.ios,\n MenuAction: import_native.MenuAction,\n SplitView: import_native.SplitView,\n ToolbarHost: import_native.ToolbarHost,\n ToolbarItem: import_native.ToolbarItem,\n ZoomTransitionAlignmentRectDetector: import_native.ZoomTransitionAlignmentRectDetector,\n ZoomTransitionEnabler: import_native.ZoomTransitionEnabler,\n ZoomTransitionSource: import_native.ZoomTransitionSource\n});\nvar Android = Object.freeze({\n ...import_native.Compose,\n Menu: import_native.Menu,\n ContextMenu: import_native.ContextMenu\n});\nvar SafeArea = Object.freeze({\n Provider: import_safe_area.SafeAreaProvider,\n View: import_safe_area.SafeAreaView,\n initialMetrics: import_safe_area.initialWindowMetrics,\n useFrame: import_safe_area.useSafeAreaFrame,\n useInsets: import_safe_area.useSafeAreaInsets\n});\nvar UI = Object.freeze({\n ...import_native.UI,\n Fonts: import_native.Fonts,\n SafeArea,\n
|
|
1
|
+
{"version":3,"file":"one.native.js","names":[],"sources":["cjs/one.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar one_exports = {};\n__export(one_exports, {\n One: () => One\n});\nmodule.exports = __toCommonJS(one_exports);\nvar import_native = require(\"@vxrn/native\");\nvar import_safe_area = require(\"@vxrn/safe-area\");\nfunction currentPlatform() {\n var _Reflect_get;\n var defined = (_Reflect_get = Reflect.get(globalThis, \"__ONE_PLATFORM__\")) !== null && _Reflect_get !== void 0 ? _Reflect_get : typeof process !== \"undefined\" ? process.env.ONE_PLATFORM : void 0;\n return defined === \"ios\" || defined === \"android\" || defined === \"rnx\" ? defined : \"web\";\n}\nvar iOS = Object.freeze({\n ...import_native.Swift,\n Widgets: import_native.Widgets,\n LiveActivities: import_native.LiveActivities,\n WidgetUI: import_native.WidgetUI,\n Color: import_native.Color.ios,\n MenuAction: import_native.MenuAction,\n SplitView: import_native.SplitView,\n ToolbarHost: import_native.ToolbarHost,\n ToolbarItem: import_native.ToolbarItem,\n ZoomTransitionAlignmentRectDetector: import_native.ZoomTransitionAlignmentRectDetector,\n ZoomTransitionEnabler: import_native.ZoomTransitionEnabler,\n ZoomTransitionSource: import_native.ZoomTransitionSource\n});\nvar Android = Object.freeze({\n ...import_native.Compose,\n Color: import_native.Color.android,\n Menu: import_native.Menu,\n ContextMenu: import_native.ContextMenu\n});\nvar SafeArea = Object.freeze({\n Provider: import_safe_area.SafeAreaProvider,\n View: import_safe_area.SafeAreaView,\n initialMetrics: import_safe_area.initialWindowMetrics,\n useFrame: import_safe_area.useSafeAreaFrame,\n useInsets: import_safe_area.useSafeAreaInsets\n});\nvar UI = Object.freeze({\n ...import_native.UI,\n Fonts: import_native.Fonts,\n SafeArea,\n TextInput: import_native.TextInput,\n useFonts: import_native.useFonts,\n useNativeState: import_native.useNativeState,\n useSizeClass: import_native.useSizeClass,\n getSizeClass: import_native.getSizeClass,\n useHinge: import_native.useHinge,\n getHinge: import_native.getHinge,\n onHingeChange: import_native.onHingeChange,\n ReservedRegions: import_native.ReservedRegions\n});\nvar One = Object.freeze({\n get platform() {\n return currentPlatform();\n },\n AppInfo: import_native.AppInfo,\n Database: import_native.Database,\n iOS,\n Android,\n UI,\n Notifications: import_native.Notifications,\n Clipboard: import_native.Clipboard,\n Haptics: import_native.Haptics,\n Network: import_native.Network,\n Browser: import_native.Browser,\n ImagePicker: import_native.ImagePicker,\n SecureStore: import_native.SecureStore,\n useNetworkState: import_native.useNetworkState\n});\n//# sourceMappingURL=one.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,cAAc,CAAC;AACnB,SAAS,aAAa,EACpB,WAAW,IACb,CAAC;AACD,OAAO,UAAU,aAAa,WAAW;AACzC,IAAI,gBAAgB,QAAQ,cAAc;AAC1C,IAAI,mBAAmB,QAAQ,iBAAiB;AAChD,SAAS,kBAAkB;CACzB,IAAI;CACJ,IAAI,WAAW,eAAe,QAAQ,IAAI,YAAY,kBAAkB,OAAO,QAAQ,iBAAiB,KAAK,IAAI,eAAe,OAAO,YAAY,cAAc,QAAQ,IAAI,eAAe,KAAK;CACjM,OAAO,YAAY,SAAS,YAAY,aAAa,YAAY,QAAQ,UAAU;AACrF;AACA,IAAI,MAAM,OAAO,OAAO;CACtB,GAAG,cAAc;CACjB,SAAS,cAAc;CACvB,gBAAgB,cAAc;CAC9B,UAAU,cAAc;CACxB,OAAO,cAAc,MAAM;CAC3B,YAAY,cAAc;CAC1B,WAAW,cAAc;CACzB,aAAa,cAAc;CAC3B,aAAa,cAAc;CAC3B,qCAAqC,cAAc;CACnD,uBAAuB,cAAc;CACrC,sBAAsB,cAAc;AACtC,CAAC;AACD,IAAI,UAAU,OAAO,OAAO;CAC1B,GAAG,cAAc;CACjB,OAAO,cAAc,MAAM;CAC3B,MAAM,cAAc;CACpB,aAAa,cAAc;AAC7B,CAAC;AACD,IAAI,WAAW,OAAO,OAAO;CAC3B,UAAU,iBAAiB;CAC3B,MAAM,iBAAiB;CACvB,gBAAgB,iBAAiB;CACjC,UAAU,iBAAiB;CAC3B,WAAW,iBAAiB;AAC9B,CAAC;AACD,IAAI,KAAK,OAAO,OAAO;CACrB,GAAG,cAAc;CACjB,OAAO,cAAc;CACrB;CACA,WAAW,cAAc;CACzB,UAAU,cAAc;CACxB,gBAAgB,cAAc;CAC9B,cAAc,cAAc;CAC5B,cAAc,cAAc;CAC5B,UAAU,cAAc;CACxB,UAAU,cAAc;CACxB,eAAe,cAAc;CAC7B,iBAAiB,cAAc;AACjC,CAAC;AACD,IAAI,MAAM,OAAO,OAAO;CACtB,IAAI,WAAW;EACb,OAAO,gBAAgB;CACzB;CACA,SAAS,cAAc;CACvB,UAAU,cAAc;CACxB;CACA;CACA;CACA,eAAe,cAAc;CAC7B,WAAW,cAAc;CACzB,SAAS,cAAc;CACvB,SAAS,cAAc;CACvB,SAAS,cAAc;CACvB,aAAa,cAAc;CAC3B,aAAa,cAAc;CAC3B,iBAAiB,cAAc;AACjC,CAAC"}
|
package/dist/esm/one.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppInfo, Browser, Clipboard, Color, Compose, ContextMenu, Database, Fonts, Haptics, ImagePicker, LiveActivities, Menu, MenuAction, Network, Notifications, ReservedRegions, SplitView, Swift, TextInput, ToolbarHost, ToolbarItem, UI, WidgetUI, Widgets, ZoomTransitionAlignmentRectDetector, ZoomTransitionEnabler, ZoomTransitionSource, getHinge, getSizeClass, onHingeChange, useFonts, useHinge, useNativeState, useNetworkState, useSizeClass } from "@vxrn/native";
|
|
1
|
+
import { AppInfo, Browser, Clipboard, Color, Compose, ContextMenu, Database, Fonts, Haptics, ImagePicker, LiveActivities, Menu, MenuAction, Network, Notifications, ReservedRegions, SecureStore, SplitView, Swift, TextInput, ToolbarHost, ToolbarItem, UI, WidgetUI, Widgets, ZoomTransitionAlignmentRectDetector, ZoomTransitionEnabler, ZoomTransitionSource, getHinge, getSizeClass, onHingeChange, useFonts, useHinge, useNativeState, useNetworkState, useSizeClass } from "@vxrn/native";
|
|
2
2
|
import { SafeAreaProvider, SafeAreaView, initialWindowMetrics, useSafeAreaFrame, useSafeAreaInsets } from "@vxrn/safe-area";
|
|
3
3
|
|
|
4
4
|
function currentPlatform() {
|
|
@@ -21,6 +21,7 @@ const iOS = Object.freeze({
|
|
|
21
21
|
});
|
|
22
22
|
const Android = Object.freeze({
|
|
23
23
|
...Compose,
|
|
24
|
+
Color: Color.android,
|
|
24
25
|
Menu,
|
|
25
26
|
ContextMenu
|
|
26
27
|
});
|
|
@@ -35,7 +36,6 @@ const UI$1 = Object.freeze({
|
|
|
35
36
|
...UI,
|
|
36
37
|
Fonts,
|
|
37
38
|
SafeArea,
|
|
38
|
-
Haptics,
|
|
39
39
|
TextInput,
|
|
40
40
|
useFonts,
|
|
41
41
|
useNativeState,
|
|
@@ -57,9 +57,11 @@ const One = Object.freeze({
|
|
|
57
57
|
UI: UI$1,
|
|
58
58
|
Notifications,
|
|
59
59
|
Clipboard,
|
|
60
|
+
Haptics,
|
|
60
61
|
Network,
|
|
61
62
|
Browser,
|
|
62
63
|
ImagePicker,
|
|
64
|
+
SecureStore,
|
|
63
65
|
useNetworkState
|
|
64
66
|
});
|
|
65
67
|
|
package/dist/esm/one.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one.js","names":["NativeMenu","NativeContextMenu","UI","NativeUI","NativeClipboard","NativeNetwork","NativeBrowser"],"sources":["esm/one.js"],"sourcesContent":["import {\n Browser as NativeBrowser,\n Widgets,\n LiveActivities,\n WidgetUI,\n Clipboard as NativeClipboard,\n AppInfo,\n Color,\n Database,\n Compose,\n Fonts,\n Haptics,\n ImagePicker,\n MenuAction,\n Menu as NativeMenu,\n ContextMenu as NativeContextMenu,\n Notifications,\n Network as NativeNetwork,\n SplitView,\n Swift,\n TextInput,\n ToolbarHost,\n ToolbarItem,\n UI as NativeUI,\n getHinge,\n getSizeClass,\n onHingeChange,\n ReservedRegions,\n useHinge,\n useSizeClass,\n ZoomTransitionAlignmentRectDetector,\n ZoomTransitionEnabler,\n ZoomTransitionSource,\n useFonts,\n useNativeState,\n useNetworkState\n} from \"@vxrn/native\";\nimport {\n SafeAreaProvider,\n SafeAreaView,\n initialWindowMetrics,\n useSafeAreaFrame,\n useSafeAreaInsets\n} from \"@vxrn/safe-area\";\nfunction currentPlatform() {\n const defined = Reflect.get(globalThis, \"__ONE_PLATFORM__\") ?? (typeof process !== \"undefined\" ? process.env.ONE_PLATFORM : void 0);\n return defined === \"ios\" || defined === \"android\" || defined === \"rnx\" ? defined : \"web\";\n}\nconst iOS = Object.freeze({\n ...Swift,\n Widgets,\n LiveActivities,\n WidgetUI,\n Color: Color.ios,\n MenuAction,\n SplitView,\n ToolbarHost,\n ToolbarItem,\n ZoomTransitionAlignmentRectDetector,\n ZoomTransitionEnabler,\n ZoomTransitionSource\n});\nconst Android = Object.freeze({\n ...Compose,\n Menu: NativeMenu,\n ContextMenu: NativeContextMenu\n});\nconst SafeArea = Object.freeze({\n Provider: SafeAreaProvider,\n View: SafeAreaView,\n initialMetrics: initialWindowMetrics,\n useFrame: useSafeAreaFrame,\n useInsets: useSafeAreaInsets\n});\nconst UI = Object.freeze({\n ...NativeUI,\n Fonts,\n SafeArea,\n
|
|
1
|
+
{"version":3,"file":"one.js","names":["NativeMenu","NativeContextMenu","UI","NativeUI","NativeClipboard","NativeNetwork","NativeBrowser","NativeSecureStore"],"sources":["esm/one.js"],"sourcesContent":["import {\n Browser as NativeBrowser,\n Widgets,\n LiveActivities,\n WidgetUI,\n Clipboard as NativeClipboard,\n AppInfo,\n Color,\n Database,\n Compose,\n Fonts,\n Haptics,\n ImagePicker,\n MenuAction,\n Menu as NativeMenu,\n ContextMenu as NativeContextMenu,\n Notifications,\n Network as NativeNetwork,\n SecureStore as NativeSecureStore,\n SplitView,\n Swift,\n TextInput,\n ToolbarHost,\n ToolbarItem,\n UI as NativeUI,\n getHinge,\n getSizeClass,\n onHingeChange,\n ReservedRegions,\n useHinge,\n useSizeClass,\n ZoomTransitionAlignmentRectDetector,\n ZoomTransitionEnabler,\n ZoomTransitionSource,\n useFonts,\n useNativeState,\n useNetworkState\n} from \"@vxrn/native\";\nimport {\n SafeAreaProvider,\n SafeAreaView,\n initialWindowMetrics,\n useSafeAreaFrame,\n useSafeAreaInsets\n} from \"@vxrn/safe-area\";\nfunction currentPlatform() {\n const defined = Reflect.get(globalThis, \"__ONE_PLATFORM__\") ?? (typeof process !== \"undefined\" ? process.env.ONE_PLATFORM : void 0);\n return defined === \"ios\" || defined === \"android\" || defined === \"rnx\" ? defined : \"web\";\n}\nconst iOS = Object.freeze({\n ...Swift,\n Widgets,\n LiveActivities,\n WidgetUI,\n Color: Color.ios,\n MenuAction,\n SplitView,\n ToolbarHost,\n ToolbarItem,\n ZoomTransitionAlignmentRectDetector,\n ZoomTransitionEnabler,\n ZoomTransitionSource\n});\nconst Android = Object.freeze({\n ...Compose,\n Color: Color.android,\n Menu: NativeMenu,\n ContextMenu: NativeContextMenu\n});\nconst SafeArea = Object.freeze({\n Provider: SafeAreaProvider,\n View: SafeAreaView,\n initialMetrics: initialWindowMetrics,\n useFrame: useSafeAreaFrame,\n useInsets: useSafeAreaInsets\n});\nconst UI = Object.freeze({\n ...NativeUI,\n Fonts,\n SafeArea,\n TextInput,\n useFonts,\n useNativeState,\n useSizeClass,\n getSizeClass,\n useHinge,\n getHinge,\n onHingeChange,\n ReservedRegions\n});\nconst One = Object.freeze({\n get platform() {\n return currentPlatform();\n },\n AppInfo,\n Database,\n iOS,\n Android,\n UI,\n Notifications,\n Clipboard: NativeClipboard,\n Haptics,\n Network: NativeNetwork,\n Browser: NativeBrowser,\n ImagePicker,\n SecureStore: NativeSecureStore,\n useNetworkState\n});\nexport {\n One\n};\n//# sourceMappingURL=one.js.map\n"],"mappings":";;;;AA6CA,SAAS,kBAAkB;CACzB,MAAM,UAAU,QAAQ,IAAI,YAAY,kBAAkB,MAAM,OAAO,YAAY,cAAc,QAAQ,IAAI,eAAe,KAAK;CACjI,OAAO,YAAY,SAAS,YAAY,aAAa,YAAY,QAAQ,UAAU;AACrF;AACA,MAAM,MAAM,OAAO,OAAO;CACxB,GAAG;CACH;CACA;CACA;CACA,OAAO,MAAM;CACb;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AACD,MAAM,UAAU,OAAO,OAAO;CAC5B,GAAG;CACH,OAAO,MAAM;CACPA;CACOC;AACf,CAAC;AACD,MAAM,WAAW,OAAO,OAAO;CAC7B,UAAU;CACV,MAAM;CACN,gBAAgB;CAChB,UAAU;CACV,WAAW;AACb,CAAC;AACD,MAAMC,OAAK,OAAO,OAAO;CACvB,GAAGC;CACH;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AACD,MAAM,MAAM,OAAO,OAAO;CACxB,IAAI,WAAW;EACb,OAAO,gBAAgB;CACzB;CACA;CACA;CACA;CACA;CACA;CACA;CACWC;CACX;CACSC;CACAC;CACT;CACaC;CACb;AACF,CAAC"}
|
package/dist/esm/one.native.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppInfo, Browser, Clipboard, Color, Compose, ContextMenu, Database, Fonts, Haptics, ImagePicker, LiveActivities, Menu, MenuAction, Network, Notifications, ReservedRegions, SplitView, Swift, TextInput, ToolbarHost, ToolbarItem, UI, WidgetUI, Widgets, ZoomTransitionAlignmentRectDetector, ZoomTransitionEnabler, ZoomTransitionSource, getHinge, getSizeClass, onHingeChange, useFonts, useHinge, useNativeState, useNetworkState, useSizeClass } from "@vxrn/native";
|
|
1
|
+
import { AppInfo, Browser, Clipboard, Color, Compose, ContextMenu, Database, Fonts, Haptics, ImagePicker, LiveActivities, Menu, MenuAction, Network, Notifications, ReservedRegions, SecureStore, SplitView, Swift, TextInput, ToolbarHost, ToolbarItem, UI, WidgetUI, Widgets, ZoomTransitionAlignmentRectDetector, ZoomTransitionEnabler, ZoomTransitionSource, getHinge, getSizeClass, onHingeChange, useFonts, useHinge, useNativeState, useNetworkState, useSizeClass } from "@vxrn/native";
|
|
2
2
|
import { SafeAreaProvider, SafeAreaView, initialWindowMetrics, useSafeAreaFrame, useSafeAreaInsets } from "@vxrn/safe-area";
|
|
3
3
|
|
|
4
4
|
function currentPlatform() {
|
|
@@ -22,6 +22,7 @@ var iOS = Object.freeze({
|
|
|
22
22
|
});
|
|
23
23
|
var Android = Object.freeze({
|
|
24
24
|
...Compose,
|
|
25
|
+
Color: Color.android,
|
|
25
26
|
Menu,
|
|
26
27
|
ContextMenu
|
|
27
28
|
});
|
|
@@ -36,7 +37,6 @@ var UI$1 = Object.freeze({
|
|
|
36
37
|
...UI,
|
|
37
38
|
Fonts,
|
|
38
39
|
SafeArea,
|
|
39
|
-
Haptics,
|
|
40
40
|
TextInput,
|
|
41
41
|
useFonts,
|
|
42
42
|
useNativeState,
|
|
@@ -58,9 +58,11 @@ var One = Object.freeze({
|
|
|
58
58
|
UI: UI$1,
|
|
59
59
|
Notifications,
|
|
60
60
|
Clipboard,
|
|
61
|
+
Haptics,
|
|
61
62
|
Network,
|
|
62
63
|
Browser,
|
|
63
64
|
ImagePicker,
|
|
65
|
+
SecureStore,
|
|
64
66
|
useNetworkState
|
|
65
67
|
});
|
|
66
68
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one.native.js","names":["NativeMenu","NativeContextMenu","UI","NativeUI","NativeClipboard","NativeNetwork","NativeBrowser"],"sources":["esm/one.native.js"],"sourcesContent":["import { Browser as NativeBrowser, Widgets, LiveActivities, WidgetUI, Clipboard as NativeClipboard, AppInfo, Color, Database, Compose, Fonts, Haptics, ImagePicker, MenuAction, Menu as NativeMenu, ContextMenu as NativeContextMenu, Notifications, Network as NativeNetwork, SplitView, Swift, TextInput, ToolbarHost, ToolbarItem, UI as NativeUI, getHinge, getSizeClass, onHingeChange, ReservedRegions, useHinge, useSizeClass, ZoomTransitionAlignmentRectDetector, ZoomTransitionEnabler, ZoomTransitionSource, useFonts, useNativeState, useNetworkState } from \"@vxrn/native\";\nimport { SafeAreaProvider, SafeAreaView, initialWindowMetrics, useSafeAreaFrame, useSafeAreaInsets } from \"@vxrn/safe-area\";\nfunction currentPlatform() {\n var _Reflect_get;\n var defined = (_Reflect_get = Reflect.get(globalThis, \"__ONE_PLATFORM__\")) !== null && _Reflect_get !== void 0 ? _Reflect_get : typeof process !== \"undefined\" ? process.env.ONE_PLATFORM : void 0;\n return defined === \"ios\" || defined === \"android\" || defined === \"rnx\" ? defined : \"web\";\n}\nvar iOS = Object.freeze({\n ...Swift,\n Widgets,\n LiveActivities,\n WidgetUI,\n Color: Color.ios,\n MenuAction,\n SplitView,\n ToolbarHost,\n ToolbarItem,\n ZoomTransitionAlignmentRectDetector,\n ZoomTransitionEnabler,\n ZoomTransitionSource\n});\nvar Android = Object.freeze({\n ...Compose,\n Menu: NativeMenu,\n ContextMenu: NativeContextMenu\n});\nvar SafeArea = Object.freeze({\n Provider: SafeAreaProvider,\n View: SafeAreaView,\n initialMetrics: initialWindowMetrics,\n useFrame: useSafeAreaFrame,\n useInsets: useSafeAreaInsets\n});\nvar UI = Object.freeze({\n ...NativeUI,\n Fonts,\n SafeArea,\n
|
|
1
|
+
{"version":3,"file":"one.native.js","names":["NativeMenu","NativeContextMenu","UI","NativeUI","NativeClipboard","NativeNetwork","NativeBrowser","NativeSecureStore"],"sources":["esm/one.native.js"],"sourcesContent":["import { Browser as NativeBrowser, Widgets, LiveActivities, WidgetUI, Clipboard as NativeClipboard, AppInfo, Color, Database, Compose, Fonts, Haptics, ImagePicker, MenuAction, Menu as NativeMenu, ContextMenu as NativeContextMenu, Notifications, Network as NativeNetwork, SecureStore as NativeSecureStore, SplitView, Swift, TextInput, ToolbarHost, ToolbarItem, UI as NativeUI, getHinge, getSizeClass, onHingeChange, ReservedRegions, useHinge, useSizeClass, ZoomTransitionAlignmentRectDetector, ZoomTransitionEnabler, ZoomTransitionSource, useFonts, useNativeState, useNetworkState } from \"@vxrn/native\";\nimport { SafeAreaProvider, SafeAreaView, initialWindowMetrics, useSafeAreaFrame, useSafeAreaInsets } from \"@vxrn/safe-area\";\nfunction currentPlatform() {\n var _Reflect_get;\n var defined = (_Reflect_get = Reflect.get(globalThis, \"__ONE_PLATFORM__\")) !== null && _Reflect_get !== void 0 ? _Reflect_get : typeof process !== \"undefined\" ? process.env.ONE_PLATFORM : void 0;\n return defined === \"ios\" || defined === \"android\" || defined === \"rnx\" ? defined : \"web\";\n}\nvar iOS = Object.freeze({\n ...Swift,\n Widgets,\n LiveActivities,\n WidgetUI,\n Color: Color.ios,\n MenuAction,\n SplitView,\n ToolbarHost,\n ToolbarItem,\n ZoomTransitionAlignmentRectDetector,\n ZoomTransitionEnabler,\n ZoomTransitionSource\n});\nvar Android = Object.freeze({\n ...Compose,\n Color: Color.android,\n Menu: NativeMenu,\n ContextMenu: NativeContextMenu\n});\nvar SafeArea = Object.freeze({\n Provider: SafeAreaProvider,\n View: SafeAreaView,\n initialMetrics: initialWindowMetrics,\n useFrame: useSafeAreaFrame,\n useInsets: useSafeAreaInsets\n});\nvar UI = Object.freeze({\n ...NativeUI,\n Fonts,\n SafeArea,\n TextInput,\n useFonts,\n useNativeState,\n useSizeClass,\n getSizeClass,\n useHinge,\n getHinge,\n onHingeChange,\n ReservedRegions\n});\nvar One = Object.freeze({\n get platform() {\n return currentPlatform();\n },\n AppInfo,\n Database,\n iOS,\n Android,\n UI,\n Notifications,\n Clipboard: NativeClipboard,\n Haptics,\n Network: NativeNetwork,\n Browser: NativeBrowser,\n ImagePicker,\n SecureStore: NativeSecureStore,\n useNetworkState\n});\nexport {\n One\n};\n//# sourceMappingURL=one.js.map\n"],"mappings":";;;;AAEA,SAAS,kBAAkB;CACzB,IAAI;CACJ,IAAI,WAAW,eAAe,QAAQ,IAAI,YAAY,kBAAkB,OAAO,QAAQ,iBAAiB,KAAK,IAAI,eAAe,OAAO,YAAY,cAAc,QAAQ,IAAI,eAAe,KAAK;CACjM,OAAO,YAAY,SAAS,YAAY,aAAa,YAAY,QAAQ,UAAU;AACrF;AACA,IAAI,MAAM,OAAO,OAAO;CACtB,GAAG;CACH;CACA;CACA;CACA,OAAO,MAAM;CACb;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AACD,IAAI,UAAU,OAAO,OAAO;CAC1B,GAAG;CACH,OAAO,MAAM;CACPA;CACOC;AACf,CAAC;AACD,IAAI,WAAW,OAAO,OAAO;CAC3B,UAAU;CACV,MAAM;CACN,gBAAgB;CAChB,UAAU;CACV,WAAW;AACb,CAAC;AACD,IAAIC,OAAK,OAAO,OAAO;CACrB,GAAGC;CACH;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AACD,IAAI,MAAM,OAAO,OAAO;CACtB,IAAI,WAAW;EACb,OAAO,gBAAgB;CACzB;CACA;CACA;CACA;CACA;CACA;CACA;CACWC;CACX;CACSC;CACAC;CACT;CACaC;CACb;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "one",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.99.1",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"setup.mjs",
|
|
@@ -190,20 +190,20 @@
|
|
|
190
190
|
"@react-navigation/routers": "~8.0.0-alpha.17",
|
|
191
191
|
"@cloudflare/vite-plugin": "^1.33.1",
|
|
192
192
|
"@ungap/structured-clone": "^1.2.0",
|
|
193
|
-
"@vxrn/color-scheme": "2.0.0-beta.
|
|
194
|
-
"@vxrn/compiler": "2.0.0-beta.
|
|
195
|
-
"@vxrn/native": "2.0.0-beta.
|
|
196
|
-
"@vxrn/resolve": "2.0.0-beta.
|
|
197
|
-
"@vxrn/safe-area": "2.0.0-beta.
|
|
198
|
-
"@vxrn/tslib-lite": "2.0.0-beta.
|
|
199
|
-
"@vxrn/use-isomorphic-layout-effect": "2.0.0-beta.
|
|
200
|
-
"@vxrn/utils": "2.0.0-beta.
|
|
201
|
-
"@vxrn/vite-plugin-metro": "2.0.0-beta.
|
|
193
|
+
"@vxrn/color-scheme": "2.0.0-beta.99.1",
|
|
194
|
+
"@vxrn/compiler": "2.0.0-beta.99.1",
|
|
195
|
+
"@vxrn/native": "2.0.0-beta.99.1",
|
|
196
|
+
"@vxrn/resolve": "2.0.0-beta.99.1",
|
|
197
|
+
"@vxrn/safe-area": "2.0.0-beta.99.1",
|
|
198
|
+
"@vxrn/tslib-lite": "2.0.0-beta.99.1",
|
|
199
|
+
"@vxrn/use-isomorphic-layout-effect": "2.0.0-beta.99.1",
|
|
200
|
+
"@vxrn/utils": "2.0.0-beta.99.1",
|
|
201
|
+
"@vxrn/vite-plugin-metro": "2.0.0-beta.99.1",
|
|
202
202
|
"babel-dead-code-elimination": "1.0.10",
|
|
203
203
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
204
204
|
"citty": "^0.1.6",
|
|
205
205
|
"core-js": "^3.38.1",
|
|
206
|
-
"create-vxrn": "2.0.0-beta.
|
|
206
|
+
"create-vxrn": "2.0.0-beta.99.1",
|
|
207
207
|
"escape-string-regexp": "^5.0.0",
|
|
208
208
|
"fast-deep-equal": "^3.1.3",
|
|
209
209
|
"fast-glob": "^3.3.3",
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
"tsconfig-paths": "^4",
|
|
223
223
|
"use-latest-callback": "^0.2.3",
|
|
224
224
|
"vite": "^8.2.2",
|
|
225
|
-
"vxrn": "2.0.0-beta.
|
|
225
|
+
"vxrn": "2.0.0-beta.99.1",
|
|
226
226
|
"web-streams-polyfill": "^4.3.0",
|
|
227
227
|
"ws": "^8.21.0",
|
|
228
228
|
"xxhashjs": "^0.2.2"
|
package/src/one.test.ts
CHANGED
|
@@ -10,7 +10,8 @@ describe('root One export', () => {
|
|
|
10
10
|
expect(One.platform).toBe('web')
|
|
11
11
|
expect(One.iOS.Button).toBeTypeOf('function')
|
|
12
12
|
expect(One.Android.Button).toBeTypeOf('function')
|
|
13
|
-
expect(
|
|
13
|
+
expect(One.Android.Color.material.primary).toBeNull()
|
|
14
|
+
expect(One.Android.Color.dynamic.onSurface).toBeNull()
|
|
14
15
|
expect(One.UI.Blur).toBeTypeOf('function')
|
|
15
16
|
expect(One.UI.EdgeFade).toBeTypeOf('function')
|
|
16
17
|
expect(One.UI.Icon).toBeTypeOf('function')
|
|
@@ -29,9 +30,12 @@ describe('root One export', () => {
|
|
|
29
30
|
expect(One.Browser.dismiss).toBeTypeOf('function')
|
|
30
31
|
expect(One.Browser.openAuthSession).toBeTypeOf('function')
|
|
31
32
|
expect(One.Browser.dismissAuthSession).toBeTypeOf('function')
|
|
32
|
-
expect(One.
|
|
33
|
-
expect(One.
|
|
34
|
-
expect(One.
|
|
33
|
+
expect(One.SecureStore.getItem).toBeTypeOf('function')
|
|
34
|
+
expect(One.SecureStore.setItem).toBeTypeOf('function')
|
|
35
|
+
expect(One.SecureStore.deleteItem).toBeTypeOf('function')
|
|
36
|
+
expect(One.Haptics.selection).toBeTypeOf('function')
|
|
37
|
+
expect(One.Haptics.impact).toBeTypeOf('function')
|
|
38
|
+
expect(One.Haptics.notification).toBeTypeOf('function')
|
|
35
39
|
// top-level One.AppInfo, not One.UI: application metadata is data, not UI
|
|
36
40
|
expect(Object.hasOwn(One, 'AppInfo')).toBe(true)
|
|
37
41
|
expect(Object.hasOwn(One.UI, 'AppInfo')).toBe(false)
|
package/src/one.ts
CHANGED
|
@@ -19,6 +19,7 @@ import {
|
|
|
19
19
|
ContextMenu as NativeContextMenu,
|
|
20
20
|
Notifications,
|
|
21
21
|
Network as NativeNetwork,
|
|
22
|
+
SecureStore as NativeSecureStore,
|
|
22
23
|
SplitView,
|
|
23
24
|
Swift,
|
|
24
25
|
TextInput,
|
|
@@ -66,6 +67,7 @@ export type OneIOS = Omit<typeof Swift, 'ToolbarItem'> & {
|
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
export type OneAndroid = typeof Compose & {
|
|
70
|
+
readonly Color: ColorType['android']
|
|
69
71
|
readonly Menu: typeof NativeMenu
|
|
70
72
|
readonly ContextMenu: typeof NativeContextMenu
|
|
71
73
|
}
|
|
@@ -81,7 +83,6 @@ export type OneSafeArea = {
|
|
|
81
83
|
export type OneUI = typeof NativeUI & {
|
|
82
84
|
readonly Fonts: typeof Fonts
|
|
83
85
|
readonly SafeArea: Readonly<OneSafeArea>
|
|
84
|
-
readonly Haptics: typeof Haptics
|
|
85
86
|
readonly TextInput: typeof TextInput
|
|
86
87
|
readonly useFonts: typeof useFonts
|
|
87
88
|
readonly useNativeState: typeof useNativeState
|
|
@@ -107,9 +108,11 @@ export type OneAPI = {
|
|
|
107
108
|
readonly UI: Readonly<OneUI>
|
|
108
109
|
readonly Notifications: Readonly<OneNotifications>
|
|
109
110
|
readonly Clipboard: typeof NativeClipboard
|
|
111
|
+
readonly Haptics: typeof Haptics
|
|
110
112
|
readonly Network: typeof NativeNetwork
|
|
111
113
|
readonly Browser: typeof NativeBrowser
|
|
112
114
|
readonly ImagePicker: typeof ImagePicker
|
|
115
|
+
readonly SecureStore: typeof NativeSecureStore
|
|
113
116
|
readonly useNetworkState: typeof useNetworkState
|
|
114
117
|
}
|
|
115
118
|
|
|
@@ -137,6 +140,7 @@ const iOS: Readonly<OneIOS> = Object.freeze({
|
|
|
137
140
|
|
|
138
141
|
const Android: Readonly<OneAndroid> = Object.freeze({
|
|
139
142
|
...Compose,
|
|
143
|
+
Color: Color.android,
|
|
140
144
|
Menu: NativeMenu,
|
|
141
145
|
ContextMenu: NativeContextMenu,
|
|
142
146
|
})
|
|
@@ -153,7 +157,6 @@ const UI: Readonly<OneUI> = Object.freeze({
|
|
|
153
157
|
...NativeUI,
|
|
154
158
|
Fonts,
|
|
155
159
|
SafeArea,
|
|
156
|
-
Haptics,
|
|
157
160
|
TextInput,
|
|
158
161
|
useFonts,
|
|
159
162
|
useNativeState,
|
|
@@ -176,8 +179,10 @@ export const One: OneAPI = Object.freeze({
|
|
|
176
179
|
UI,
|
|
177
180
|
Notifications,
|
|
178
181
|
Clipboard: NativeClipboard,
|
|
182
|
+
Haptics,
|
|
179
183
|
Network: NativeNetwork,
|
|
180
184
|
Browser: NativeBrowser,
|
|
181
185
|
ImagePicker,
|
|
186
|
+
SecureStore: NativeSecureStore,
|
|
182
187
|
useNetworkState,
|
|
183
188
|
})
|
package/types/one.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Browser as NativeBrowser, Widgets, LiveActivities, WidgetUI, Clipboard as NativeClipboard, AppInfo, Database, Compose, Fonts, Haptics, ImagePicker, MenuAction, Menu as NativeMenu, ContextMenu as NativeContextMenu, Notifications, Network as NativeNetwork, SplitView, Swift, TextInput, ToolbarHost, ToolbarItem, UI as NativeUI, getHinge, getSizeClass, onHingeChange, ReservedRegions, useHinge, useSizeClass, ZoomTransitionAlignmentRectDetector, ZoomTransitionEnabler, ZoomTransitionSource, type ColorType, useFonts, useNativeState, useNetworkState } from '@vxrn/native';
|
|
1
|
+
import { Browser as NativeBrowser, Widgets, LiveActivities, WidgetUI, Clipboard as NativeClipboard, AppInfo, Database, Compose, Fonts, Haptics, ImagePicker, MenuAction, Menu as NativeMenu, ContextMenu as NativeContextMenu, Notifications, Network as NativeNetwork, SecureStore as NativeSecureStore, SplitView, Swift, TextInput, ToolbarHost, ToolbarItem, UI as NativeUI, getHinge, getSizeClass, onHingeChange, ReservedRegions, useHinge, useSizeClass, ZoomTransitionAlignmentRectDetector, ZoomTransitionEnabler, ZoomTransitionSource, type ColorType, useFonts, useNativeState, useNetworkState } from '@vxrn/native';
|
|
2
2
|
import { SafeAreaProvider, SafeAreaView, initialWindowMetrics, useSafeAreaFrame, useSafeAreaInsets } from '@vxrn/safe-area';
|
|
3
3
|
export type OnePlatform = 'web' | 'ios' | 'android' | 'rnx';
|
|
4
4
|
export type OneIOS = Omit<typeof Swift, 'ToolbarItem'> & {
|
|
@@ -15,6 +15,7 @@ export type OneIOS = Omit<typeof Swift, 'ToolbarItem'> & {
|
|
|
15
15
|
readonly ZoomTransitionSource: typeof ZoomTransitionSource;
|
|
16
16
|
};
|
|
17
17
|
export type OneAndroid = typeof Compose & {
|
|
18
|
+
readonly Color: ColorType['android'];
|
|
18
19
|
readonly Menu: typeof NativeMenu;
|
|
19
20
|
readonly ContextMenu: typeof NativeContextMenu;
|
|
20
21
|
};
|
|
@@ -28,7 +29,6 @@ export type OneSafeArea = {
|
|
|
28
29
|
export type OneUI = typeof NativeUI & {
|
|
29
30
|
readonly Fonts: typeof Fonts;
|
|
30
31
|
readonly SafeArea: Readonly<OneSafeArea>;
|
|
31
|
-
readonly Haptics: typeof Haptics;
|
|
32
32
|
readonly TextInput: typeof TextInput;
|
|
33
33
|
readonly useFonts: typeof useFonts;
|
|
34
34
|
readonly useNativeState: typeof useNativeState;
|
|
@@ -49,9 +49,11 @@ export type OneAPI = {
|
|
|
49
49
|
readonly UI: Readonly<OneUI>;
|
|
50
50
|
readonly Notifications: Readonly<OneNotifications>;
|
|
51
51
|
readonly Clipboard: typeof NativeClipboard;
|
|
52
|
+
readonly Haptics: typeof Haptics;
|
|
52
53
|
readonly Network: typeof NativeNetwork;
|
|
53
54
|
readonly Browser: typeof NativeBrowser;
|
|
54
55
|
readonly ImagePicker: typeof ImagePicker;
|
|
56
|
+
readonly SecureStore: typeof NativeSecureStore;
|
|
55
57
|
readonly useNetworkState: typeof useNetworkState;
|
|
56
58
|
};
|
|
57
59
|
export declare const One: OneAPI;
|
package/types/one.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one.d.ts","sourceRoot":"","sources":["../src/one.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,OAAO,EACP,cAAc,EACd,QAAQ,EACR,SAAS,IAAI,eAAe,EAC5B,OAAO,EAEP,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,EACP,WAAW,EACX,UAAU,EACV,IAAI,IAAI,UAAU,EAClB,WAAW,IAAI,iBAAiB,EAChC,aAAa,EACb,OAAO,IAAI,aAAa,EACxB,SAAS,EACT,KAAK,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,EAAE,IAAI,QAAQ,EACd,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,mCAAmC,EACnC,qBAAqB,EACrB,oBAAoB,EACpB,KAAK,SAAS,EACd,QAAQ,EACR,cAAc,EACd,eAAe,EAChB,MAAM,cAAc,CAAA;AACrB,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AAExB,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,CAAA;AAE3D,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,KAAK,EAAE,aAAa,CAAC,GAAG;IACvD,QAAQ,CAAC,OAAO,EAAE,OAAO,OAAO,CAAA;IAChC,QAAQ,CAAC,cAAc,EAAE,OAAO,cAAc,CAAA;IAC9C,QAAQ,CAAC,QAAQ,EAAE,OAAO,QAAQ,CAAA;IAClC,QAAQ,CAAC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