UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

523 lines (522 loc) • 20.5 kB
{ "name": "one", "version": "2.7.6", "description": "One is a React framework for web, iOS, and Android apps.", "license": "BSD-3-Clause", "sideEffects": [ "metro-entry.js", "setup.mjs", "setup.js", "**/polyfills-mobile.*", "web-streams-polyfill/polyfill/es5", "@azure/core-asynciterator-polyfill", "core-js/internals/inspect-source", "core-js/actual/array/to-sorted", "core-js/actual/array/to-reversed", "core-js/actual/array/to-spliced", "core-js/actual/array/with", "core-js/actual/url", "core-js/actual/url-search-params" ], "type": "module", "exports": { "./package.json": "./package.json", ".": { "react-native": "./dist/esm/index.native.js", "types": "./types/index.d.ts", "import": "./dist/esm/index.mjs", "require": "./dist/cjs/index.cjs" }, "./ui": { "react-native": { "types": "./types/ui/index.native.d.ts", "default": "./dist/esm/ui/index.native.js" }, "types": "./types/ui/index.d.ts", "import": "./dist/esm/ui/index.mjs", "require": "./dist/cjs/ui/index.cjs" }, "./vite": { "types": "./types/vite.d.ts", "import": "./dist/esm/vite.mjs", "require": "./dist/cjs/vite.cjs" }, "./vite-auto-warm": { "types": "./types/vite-auto-warm.d.ts", "import": "./dist/esm/vite-auto-warm.mjs", "require": "./dist/cjs/vite-auto-warm.cjs" }, "./serve": { "types": "./types/serve.d.ts", "import": "./dist/esm/serve.mjs", "require": "./dist/cjs/serve.cjs" }, "./serve-worker": { "types": "./types/serve-worker.d.ts", "import": "./dist/esm/serve-worker.mjs", "require": "./dist/cjs/serve-worker.cjs" }, "./setup": { "types": "./types/setup.d.ts", "import": "./dist/esm/setup.mjs", "require": "./dist/cjs/setup.cjs" }, "./zero": { "types": "./types/zero.d.ts", "import": "./dist/esm/zero.mjs", "require": "./dist/cjs/zero.cjs" }, "./react-18": { "require": "./vendor/react/cjs/react.development.js", "import": "./vendor/react/cjs/react.development.js" }, "./react-dom-18": { "require": "./vendor/react-dom/cjs/react-dom.development.js", "import": "./vendor/react-dom/cjs/react-dom.development.js" }, "./react-native-config": "./react-native-config.cjs", "./babel-plugin-one-router-metro": { "types": "./types/babel-plugins/one-router-metro.d.ts", "import": "./dist/esm/babel-plugins/one-router-metro.mjs", "require": "./dist/cjs/babel-plugins/one-router-metro.cjs" }, "./babel-plugin-remove-server-code": { "types": "./types/babel-plugins/remove-server-code.d.ts", "import": "./dist/esm/babel-plugins/remove-server-code.mjs", "require": "./dist/cjs/babel-plugins/remove-server-code.cjs" }, "./babel-plugin-environment-guard": { "types": "./types/babel-plugins/environment-guard.d.ts", "import": "./dist/esm/babel-plugins/environment-guard.mjs", "require": "./dist/cjs/babel-plugins/environment-guard.cjs" }, "./babel-plugin-inline-one-server-url": { "types": "./types/babel-plugins/inline-one-server-url.d.ts", "import": "./dist/esm/babel-plugins/inline-one-server-url.mjs", "require": "./dist/cjs/babel-plugins/inline-one-server-url.cjs" }, "./babel-preset": { "types": "./types/babel-preset/index.d.ts", "import": "./dist/esm/babel-preset/index.mjs", "require": "./dist/cjs/babel-preset/index.cjs" }, "./native": { "types": "./types/native/index.d.ts", "import": "./dist/esm/native/index.mjs", "require": "./dist/cjs/native/index.cjs" }, "./native-transforms": { "types": "./types/native-transforms.d.ts", "import": "./dist/esm/native-transforms.mjs", "require": "./dist/cjs/native-transforms.cjs" }, "./metro-config": { "types": "./types/metro-config/withOne.d.ts", "import": "./dist/esm/metro-config/withOne.mjs", "require": "./dist/cjs/metro-config/withOne.cjs" }, "./getViteMetroPluginOptions": { "types": "./types/metro-config/getViteMetroPluginOptions.d.ts", "import": "./dist/esm/metro-config/getViteMetroPluginOptions.mjs", "require": "./dist/cjs/metro-config/getViteMetroPluginOptions.cjs" }, "./metro-entry": { "require": "./metro-entry.js", "import": "./metro-entry.js" }, "./env": { "types": "./env.d.ts" }, "./image": { "types": "./types/image.d.ts", "import": "./dist/esm/image.mjs", "require": "./dist/cjs/image.cjs" }, "./drawer": { "react-native": "./dist/esm/drawer.native.js", "types": "./types/drawer.d.ts", "import": "./dist/esm/drawer.mjs", "require": "./dist/cjs/drawer.cjs" }, "./headless": { "types": "./types/headless.d.ts", "import": "./dist/esm/headless.mjs", "require": "./dist/cjs/headless.cjs" }, "./headless-server": { "types": "./types/headless-server.d.ts", "import": "./dist/esm/headless-server.mjs", "require": "./dist/cjs/headless-server.cjs" }, "./devtools/*": "./devtools/*", "./schema.json": "./schema.json", "./tamagui": { "react-native": { "types": "./types/tamagui.native.d.ts", "default": "./dist/esm/tamagui.native.js" }, "types": "./types/tamagui.d.ts", "import": "./dist/esm/tamagui.mjs", "require": "./dist/cjs/tamagui.cjs" }, "./background": { "react-native": { "types": "./types/background.native.d.ts", "default": "./dist/esm/background.native.js" }, "types": "./types/background.d.ts", "import": "./dist/esm/background.mjs", "require": "./dist/cjs/background.cjs" } }, "main": "dist/cjs", "module": "dist/esm", "source": "src/index.ts", "types": "./types/index.d.ts", "bin": { "one": "run.mjs" }, "files": [ "src", "types", "dist", "devtools", "vendor", "run.mjs", "env.d.ts", "server.js", "metro-entry.js", "metro-entry-ctx.js", "react-native-config.cjs", "LICENSE", "README.md", "ios", "android/build.gradle", "android/CMakeLists.txt", "android/portal", "android/src", "cpp", "nitrogen", "One.podspec", "react-native.config.cjs", "schema.json" ], "scripts": { "build": "tamagui-build && bun codegen/staticSpecs.ts", "check": "depcheck", "clean": "tamagui-build clean", "clean:build": "tamagui-build clean:build", "lint": "oxlint src", "lint:fix": "oxlint --fix --fix-suggestions src", "test": "bun run vitest --run", "typecheck": "tsc --noEmit", "watch": "tamagui-build --watch", "generate": "bun codegen/generate.ts", "generate:check": "bun codegen/generate.ts --check", "nitrogen": "nitrogen", "coverage": "bun codegen/coverage.ts", "measure": "bun codegen/measure.ts" }, "dependencies": { "@azure/core-asynciterator-polyfill": "^1.0.2", "@babel/core": "^7.28.5", "@babel/generator": "7.29.7", "@babel/parser": "^7.28.5", "@babel/plugin-transform-export-namespace-from": "^7.27.1", "@babel/traverse": "^7.28.5", "@babel/types": "^7.28.5", "@bacons/text-decoder": "^0.0.0", "@cloudflare/vite-plugin": "^1.33.1", "@op-engineering/op-sqlite": "18.2.5", "@react-native-community/cli-platform-android": "^20.2.0", "@react-native-community/cli-platform-ios": "^20.2.0", "@radix-ui/react-slot": "^1.0.2", "@react-navigation/bottom-tabs": "8.0.0-alpha.57", "@react-navigation/elements": "3.0.0-alpha.55", "@react-navigation/native-stack": "8.0.0-alpha.59", "@react-navigation/routers": "8.0.0-alpha.21", "@ungap/structured-clone": "^1.2.0", "@vxrn/color-scheme": "2.7.6", "@vxrn/compiler": "2.7.6", "@vxrn/resolve": "2.7.6", "@vxrn/tslib-lite": "2.7.6", "@vxrn/use-isomorphic-layout-effect": "2.7.6", "@vxrn/utils": "2.7.6", "@vxrn/vite-plugin-metro": "2.7.6", "babel-dead-code-elimination": "1.0.10", "babel-plugin-module-resolver": "^5.0.2", "citty": "^0.1.6", "core-js": "^3.38.1", "create-vxrn": "2.7.6", "escape-string-regexp": "^5.0.0", "fast-deep-equal": "^3.1.3", "fast-glob": "^3.3.3", "fs-extra": "^11.2.0", "hono": "^4.12.8", "lightningcss": "^1.30.1", "magic-string": "^0.30.21", "micromatch": "^4.0.8", "nanoid": "^3.3.18", "oxc-parser": "^0.112.0", "perfect-debounce": "^1.0.0", "picocolors": "^1.0.0", "react-compiler-runtime": "^19.0.0-beta-201e55d-20241215", "react-native-css-interop": "^0.2.6", "react-native-nitro-image": "0.15.2", "react-native-nitro-modules": "0.37.1", "react-native-nitro-web-image": "0.15.2", "ts-pattern": "^5.6.2", "tsconfig-paths": "^4", "use-latest-callback": "^0.2.3", "vite": "^8.2.2", "vxrn": "2.7.6", "web-streams-polyfill": "^4.3.0", "ws": "^8.21.0", "xxhashjs": "^0.2.2" }, "peerDependencies": { "@callstack/liquid-glass": ">=0.6.0", "@react-native/babel-preset": "^0.87.1", "@react-navigation/core": "8.0.0-alpha.41", "@react-navigation/drawer": "8.0.0-alpha.58", "@react-navigation/native": "8.0.0-alpha.51", "react": "^19.2.3", "react-dom": "^19.2.3", "react-native": "^0.87.0", "react-native-gesture-handler": ">=3.0.0", "react-native-reanimated": ">=4.0.0", "react-native-screens": ">=4.30.0", "react-native-web": "^0.21.2", "react-native-worklets": ">=0.12.2", "sharp": "^0.35.5", "@tamagui/sheet": ">=3.0.0-beta.1537.1 <4 || >=3.0.0-0.canary <3.0.0-1", "@tamagui/web": ">=3.0.0-beta.1537.1 <4 || >=3.0.0-0.canary <3.0.0-1" }, "peerDependenciesMeta": { "@react-native/babel-preset": { "optional": true }, "@react-navigation/drawer": { "optional": true }, "react-native": { "optional": true }, "react-native-gesture-handler": { "optional": true }, "react-native-reanimated": { "optional": true }, "react-native-web": { "optional": true }, "react-native-worklets": { "optional": true }, "sharp": { "optional": true }, "@tamagui/sheet": { "optional": true }, "@tamagui/web": { "optional": true } }, "devDependencies": { "@tamagui/sheet": "3.0.15", "@callstack/liquid-glass": "^0.8.1", "@react-native/babel-plugin-codegen": "0.87.1", "@react-native/codegen": "^0.87.1", "@react-navigation/core": "8.0.0-alpha.41", "@react-navigation/drawer": "8.0.0-alpha.58", "@react-navigation/native": "8.0.0-alpha.51", "@tamagui/build": "3.0.15", "@types/node": "^24.10.0", "@types/react-dom": "^19.2.2", "@types/react-test-renderer": "^19.1.0", "@types/xxhashjs": "^0.2.4", "@vxrn/emitter": "2.7.6", "depcheck": "^1.4.7", "esbuild": "^0.25.12", "immer": "^10.1.1", "nitrogen": "0.37.1", "react": "19.2.3", "react-dom": "19.2.3", "react-native": "0.87.1", "react-native-gesture-handler": "~3.3.0", "react-native-reanimated": "~4.6.0", "react-native-screens": "~4.30.0", "react-native-web": "^0.21.2", "react-native-worklets": "~0.12.2", "react-test-renderer": "^19.2.0", "rolldown": "^1.2.8", "sharp": "^0.35.5", "typescript": "7.0.2", "vitest": "^4.1.0", "yoga-layout": "^3.2.1", "@tamagui/web": "3.0.15" }, "publishConfig": { "access": "public" }, "upgradeSets": { "takeout": [ "@take-out/*", "on-zero" ], "tamagui": [ "tamagui", "@tamagui/*" ], "one": [ "one", "vxrn", "@vxrn/*" ], "zero": [ "@rocicorp/zero" ], "better-auth": [ "better-auth", "@better-auth/*" ] }, "codegenConfig": { "name": "OneNativeSpec", "type": "components", "jsSrcsDir": "src/platform/specs", "android": { "javaPackageName": "dev.onejs.onenative" }, "ios": { "componentProvider": { "OneNativePager": "OneNativePagerComponentView", "OneSwiftHost": "OneSwiftHostComponentView", "OneNativeArrangementView": "OneNativeArrangementViewComponentView", "OneNativeArrangementSlot": "OneNativeArrangementSlotComponentView", "OneNativeCamera": "OneNativeCameraComponentView", "OneNativeMenu": "OneNativeMenuComponentView", "OneNativeTab": "OneNativeTabComponentView", "OneNativeList": "OneNativeListComponentView", "OneNativeScrollView": "OneNativeScrollViewComponentView", "OneNativeLazyVStack": "OneNativeLazyVStackComponentView", "OneNativeLazyHStack": "OneNativeLazyHStackComponentView", "OneNativeLazyVGrid": "OneNativeLazyVGridComponentView", "OneNativeLazyHGrid": "OneNativeLazyHGridComponentView", "OneNativeGrid": "OneNativeGridComponentView", "OneNativeGridRow": "OneNativeGridRowComponentView", "OneNativeControlGroup": "OneNativeControlGroupComponentView", "OneNativeDisclosureGroup": "OneNativeDisclosureGroupComponentView", "OneNativeDivider": "OneNativeDividerComponentView", "OneNativeLink": "OneNativeLinkComponentView", "OneNativeGroup": "OneNativeGroupComponentView", "OneNativeOverlay": "OneNativeOverlayComponentView", "OneNativeOverlayContent": "OneNativeOverlayContentComponentView", "OneNativeSwipeActions": "OneNativeSwipeActionsComponentView", "OneNativeSwipeActionsActions": "OneNativeSwipeActionsActionsComponentView", "OneNativeSwiftPager": "OneNativeSwiftPagerComponentView", "OneNativeSafeAreaProvider": "OneNativeSafeAreaProviderComponentView", "OneNativeReservedRegionsProvider": "OneNativeReservedRegionsProviderComponentView", "OneNativeEdgeFade": "OneNativeEdgeFadeComponentView", "OneNativeBlur": "OneNativeBlurComponentView", "OneNativeMask": "OneNativeMaskComponentView", "OneNativeUiMap": "OneNativeUiMapComponentView", "OneNativePictureInPicture": "OneNativePictureInPictureComponentView", "OneNativePortalView": "OneNativePortalViewComponentView", "OneNativePortalHostView": "OneNativePortalHostViewComponentView", "OneNativePicker": "OneNativePickerComponentView", "OneNativeDatePicker": "OneNativeDatePickerComponentView", "OneNativeColorPicker": "OneNativeColorPickerComponentView", "OneNativeMultiDatePicker": "OneNativeMultiDatePickerComponentView", "OneNativeToggle": "OneNativeToggleComponentView", "OneNativeSlider": "OneNativeSliderComponentView", "OneNativeStepper": "OneNativeStepperComponentView", "OneNativePasteButton": "OneNativePasteButtonComponentView", "OneNativeText": "OneNativeTextComponentView", "OneNativeLabel": "OneNativeLabelComponentView", "OneNativeProgressView": "OneNativeProgressViewComponentView", "OneNativeGauge": "OneNativeGaugeComponentView", "OneNativeImage": "OneNativeImageComponentView", "OneNativeShareLink": "OneNativeShareLinkComponentView", "OneNativeContentUnavailableView": "OneNativeContentUnavailableViewComponentView", "OneNativeCircle": "OneNativeCircleComponentView", "OneNativeCapsule": "OneNativeCapsuleComponentView", "OneNativeRectangle": "OneNativeRectangleComponentView", "OneNativeRoundedRectangle": "OneNativeRoundedRectangleComponentView", "OneNativeEllipse": "OneNativeEllipseComponentView", "OneNativeUnevenRoundedRectangle": "OneNativeUnevenRoundedRectangleComponentView", "OneNativeConcentricRectangle": "OneNativeConcentricRectangleComponentView", "OneNativeLinearGradient": "OneNativeLinearGradientComponentView", "OneNativeRadialGradient": "OneNativeRadialGradientComponentView", "OneNativeEllipticalGradient": "OneNativeEllipticalGradientComponentView", "OneNativeAngularGradient": "OneNativeAngularGradientComponentView", "OneNativeMeshGradient": "OneNativeMeshGradientComponentView", "OneNativeVideoPlayer": "OneNativeVideoPlayerComponentView", "OneNativeLivePhotoView": "OneNativeLivePhotoViewComponentView", "OneNativePhotosPicker": "OneNativePhotosPickerComponentView", "OneNativeWebView": "OneNativeWebViewComponentView", "OneNativeSignInWithAppleButton": "OneNativeSignInWithAppleButtonComponentView", "OneNativePayWithApplePayButton": "OneNativePayWithApplePayButtonComponentView", "OneNativeAddPassToWalletButton": "OneNativeAddPassToWalletButtonComponentView", "OneNativeMap": "OneNativeMapComponentView", "OneNativeMapCompass": "OneNativeMapCompassComponentView", "OneNativeMapPitchToggle": "OneNativeMapPitchToggleComponentView", "OneNativeMapUserLocationButton": "OneNativeMapUserLocationButtonComponentView", "OneNativeTextField": "OneNativeTextFieldComponentView", "OneNativeSecureField": "OneNativeSecureFieldComponentView", "OneNativeTextEditor": "OneNativeTextEditorComponentView", "OneNativeAlert": "OneNativeAlertComponentView", "OneNativeConfirmationDialog": "OneNativeConfirmationDialogComponentView", "OneNativeQuickLook": "OneNativeQuickLookComponentView", "OneNativeFileImporter": "OneNativeFileImporterComponentView", "OneNativeChart": "OneNativeChartComponentView", "OneNativeAsyncImage": "OneNativeAsyncImageComponentView", "OneNativeEditButton": "OneNativeEditButtonComponentView", "OneNativeEmptyView": "OneNativeEmptyViewComponentView", "OneNativeLocationButton": "OneNativeLocationButtonComponentView", "OneNativeProductView": "OneNativeProductViewComponentView", "OneNativeRenameButton": "OneNativeRenameButtonComponentView", "OneNativeShortcutsLink": "OneNativeShortcutsLinkComponentView", "OneNativeStoreView": "OneNativeStoreViewComponentView", "OneNativeSubscriptionStoreView": "OneNativeSubscriptionStoreViewComponentView", "OneNativeSheet": "OneNativeSheetComponentView", "OneNativeSheetContent": "OneNativeSheetContentComponentView", "OneNativeHost": "OneNativeHostComponentView", "OneNativeZStack": "OneNativeZStackComponentView", "OneNativeSpacer": "OneNativeSpacerComponentView", "OneNativeForm": "OneNativeFormComponentView", "OneNativeSection": "OneNativeSectionComponentView", "OneNativeLabeledContent": "OneNativeLabeledContentComponentView", "OneNativeGroupBox": "OneNativeGroupBoxComponentView", "OneNativeViewThatFits": "OneNativeViewThatFitsComponentView", "OneNativeGeometryReader": "OneNativeGeometryReaderComponentView", "OneNativeScrollViewReader": "OneNativeScrollViewReaderComponentView", "OneNativeGlassEffectContainer": "OneNativeGlassEffectContainerComponentView", "OneNativeButton": "OneNativeButtonComponentView", "OneNativeGlass": "OneNativeGlassComponentView", "OneNativeTabs": "OneNativeTabsComponentView", "OneNativeContainerSlot": "OneNativeContainerSlotComponentView", "OneNativeNavigationStack": "OneNativeNavigationStackComponentView", "OneNativeNavigationSplitView": "OneNativeNavigationSplitViewComponentView", "OneNativeToolbar": "OneNativeToolbarComponentView", "OneNativeToolbarItem": "OneNativeToolbarItemComponentView", "OneNativeToolbarItemGroup": "OneNativeToolbarItemGroupComponentView", "OneNativeToolbarSpacer": "OneNativeToolbarSpacerComponentView", "OneNativeNavigationStackContent": "OneNativeNavigationStackContentComponentView", "OneNativeNavigationSplitViewColumn": "OneNativeNavigationSplitViewColumnComponentView", "OneNativePopover": "OneNativePopoverComponentView", "OneNativePopoverContent": "OneNativePopoverContentComponentView", "OneNativePhaseAnimator": "OneNativePhaseAnimatorComponentView", "OneNativeKeyframeAnimator": "OneNativeKeyframeAnimatorComponentView" } } }, "releaseSourceCommit": "844022deda905e7838e1a39eea9a847d92a46de9", "repository": { "type": "git", "url": "git+https://github.com/onejs/one.git", "directory": "packages/one" } }