one 2.12.0 → 2.13.0
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/cli-dev-memory.cjs +43 -0
- package/dist/cjs/cli-dev-memory.native.cjs +84 -0
- package/dist/cjs/cli-dev-memory.native.js +86 -0
- package/dist/cjs/cli-dev-memory.native.js.map +1 -0
- package/dist/cjs/platform/NavigationSplitView.native.cjs +1 -1
- package/dist/cjs/platform/NavigationSplitView.native.js +1 -1
- package/dist/cjs/platform/NavigationSplitView.native.js.map +1 -1
- package/dist/cjs/platform/NavigationStack.native.cjs +22 -2
- package/dist/cjs/platform/NavigationStack.native.js +22 -2
- package/dist/cjs/platform/NavigationStack.native.js.map +1 -1
- package/dist/cjs/platform/TabView.native.cjs +1 -0
- package/dist/cjs/platform/TabView.native.js +1 -0
- package/dist/cjs/platform/TabView.native.js.map +1 -1
- package/dist/cjs/platform/generated/swiftui.cjs +5 -0
- package/dist/cjs/platform/generated/swiftui.native.cjs +5 -0
- package/dist/cjs/platform/generated/swiftui.native.js +5 -0
- package/dist/cjs/platform/generated/swiftui.native.js.map +1 -1
- package/dist/cjs/platform/index.native.cjs +1 -0
- package/dist/cjs/platform/index.native.js +1 -0
- package/dist/cjs/platform/index.native.js.map +1 -1
- package/dist/cjs/platform/specs/OneNativeToolbarDefaultItemNativeComponent.cjs +33 -0
- package/dist/cjs/platform/specs/OneNativeToolbarDefaultItemNativeComponent.native.cjs +33 -0
- package/dist/cjs/platform/specs/OneNativeToolbarDefaultItemNativeComponent.native.js +34 -0
- package/dist/cjs/platform/specs/OneNativeToolbarDefaultItemNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/unsupported.cjs +4 -0
- package/dist/cjs/platform/unsupported.native.cjs +4 -0
- package/dist/cjs/platform/unsupported.native.js +4 -0
- package/dist/cjs/platform/unsupported.native.js.map +1 -1
- package/dist/esm/cli-dev-memory.mjs +23 -0
- package/dist/esm/cli-dev-memory.mjs.map +1 -0
- package/dist/esm/cli-dev-memory.native.js +62 -0
- package/dist/esm/cli-dev-memory.native.js.map +1 -0
- package/dist/esm/platform/NavigationSplitView.native.js +2 -2
- package/dist/esm/platform/NavigationSplitView.native.js.map +1 -1
- package/dist/esm/platform/NavigationStack.native.js +22 -3
- package/dist/esm/platform/NavigationStack.native.js.map +1 -1
- package/dist/esm/platform/TabView.native.js +1 -0
- package/dist/esm/platform/TabView.native.js.map +1 -1
- package/dist/esm/platform/generated/swiftui.mjs +5 -0
- package/dist/esm/platform/generated/swiftui.mjs.map +1 -1
- package/dist/esm/platform/generated/swiftui.native.js +5 -0
- package/dist/esm/platform/generated/swiftui.native.js.map +1 -1
- package/dist/esm/platform/index.native.js +2 -1
- package/dist/esm/platform/index.native.js.map +1 -1
- package/dist/esm/platform/specs/OneNativeToolbarDefaultItemNativeComponent.mjs +15 -0
- package/dist/esm/platform/specs/OneNativeToolbarDefaultItemNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneNativeToolbarDefaultItemNativeComponent.native.js +15 -0
- package/dist/esm/platform/specs/OneNativeToolbarDefaultItemNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/unsupported.mjs +4 -0
- package/dist/esm/platform/unsupported.mjs.map +1 -1
- package/dist/esm/platform/unsupported.native.js +4 -0
- package/dist/esm/platform/unsupported.native.js.map +1 -1
- package/ios/Generated/OneNativeNavigationStackComponentView.h +2 -0
- package/ios/Generated/OneNativeNavigationStackComponentView.mm +38 -4
- package/ios/Generated/OneNativeSwiftUI.swift +13 -0
- package/ios/Generated/OneNativeTabViewView.swift +23 -10
- package/ios/Generated/OneNativeToolbarView.swift +16 -5
- package/ios/OneNativeComposition.swift +14 -9
- package/package.json +17 -16
- package/run.mjs +5 -1
- package/schema.json +26 -0
- package/src/cli-dev-memory.ts +24 -0
- package/src/platform/NavigationSplitView.native.tsx +3 -1
- package/src/platform/NavigationStack.native.tsx +37 -2
- package/src/platform/README.md +5 -0
- package/src/platform/TabView.native.tsx +2 -0
- package/src/platform/generated/containerTypes.ts +5 -0
- package/src/platform/generated/swiftui.ts +6 -0
- package/src/platform/generated/types.ts +2 -0
- package/src/platform/index.native.ts +2 -0
- package/src/platform/specs/OneNativeToolbarDefaultItemNativeComponent.ts +9 -0
- package/src/platform/types.ts +4 -0
- package/src/platform/unsupported.ts +7 -0
- package/types/cli-dev-memory.d.ts +2 -0
- package/types/cli-dev-memory.d.ts.map +1 -0
- package/types/platform/NavigationSplitView.native.d.ts.map +1 -1
- package/types/platform/NavigationStack.native.d.ts +2 -1
- package/types/platform/NavigationStack.native.d.ts.map +1 -1
- package/types/platform/TabView.native.d.ts.map +1 -1
- package/types/platform/generated/containerTypes.d.ts +5 -1
- package/types/platform/generated/containerTypes.d.ts.map +1 -1
- package/types/platform/generated/swiftui.d.ts +6 -0
- package/types/platform/generated/swiftui.d.ts.map +1 -1
- package/types/platform/generated/types.d.ts +1 -1
- package/types/platform/generated/types.d.ts.map +1 -1
- package/types/platform/index.native.d.ts +2 -1
- package/types/platform/index.native.d.ts.map +1 -1
- package/types/platform/specs/OneNativeToolbarDefaultItemNativeComponent.d.ts +8 -0
- package/types/platform/specs/OneNativeToolbarDefaultItemNativeComponent.d.ts.map +1 -0
- package/types/platform/types.d.ts +1 -0
- package/types/platform/types.d.ts.map +1 -1
- package/types/platform/unsupported.d.ts +3 -1
- package/types/platform/unsupported.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":["AndroidMenu","IOSMenu","AndroidContextMenu","IOSContextMenu","MapWithControls","PickerWithChildren","UnsupportedSwift"],"sources":["esm/platform/index.native.js"],"sourcesContent":["import { Platform } from \"react-native\";\nimport { Swift as UnsupportedSwift } from \"./unsupported\";\nimport { Angle, Gradient, Path, Shading } from \"./canvas\";\nimport { Button, ControlGroup, DisclosureGroup, Divider, Form, Glass, GlassEffectContainer, GeometryReader, TimelineView, OutlineGroup, Table, Canvas, Group, GroupBox, ViewThatFits, HStack, LabeledContent, LazyHStack, LazyVStack, LazyHGrid, LazyVGrid, Grid, GridRow, Link, List, Overlay, ViewSlot, ScrollView, ScrollViewReader, Section, Slot, Spacer, SwipeActions, VStack, ZStack } from \"./Containers.native\";\nimport { ContextMenu as AndroidContextMenu, Menu as AndroidMenu } from \"./AndroidMenu\";\nimport { ContextMenu as IOSContextMenu, Menu as IOSMenu } from \"./Menu.native\";\nimport { Page, Pager } from \"./Pager.native\";\nimport { UIKitView } from \"./UIKitView.native\";\nimport { collectionCellSource, tableCellSource, UIKitContent } from \"./UIKitContent.native\";\nimport { Popover } from \"./Popover.native\";\nimport { NavigationStack, Toolbar, ToolbarItem, ToolbarItemGroup, ToolbarSpacer } from \"./NavigationStack.native\";\nimport { NavigationSplitView } from \"./NavigationSplitView.native\";\nimport { FullScreenCover, Sheet } from \"./Sheet.native\";\nimport { ArrangementView } from \"./ArrangementView.native\";\nimport { withAnimation } from \"./withAnimation.native\";\nimport { KeyframeAnimator, PhaseAnimator } from \"./Animators.native\";\nimport { CubicKeyframe, KeyframeTrack, LinearKeyframe, MoveKeyframe, SpringKeyframe } from \"./keyframes\";\nimport * as Controls from \"./generated/Controls.native\";\nimport { Map as MapWithControls } from \"./mapControls.native\";\nimport { Picker as PickerWithChildren } from \"./pickerChildren.native\";\nimport { Tab, TabView, TabSection, TabViewBottomAccessory, TabViewSlot } from \"./TabView.native\";\nimport { Compose } from \"./compose\";\nimport * as UI from \"./effects\";\nimport { Widgets, LiveActivities, WidgetUI } from \"./widgets/index\";\nexport * from \"./extras\";\nimport { Storage } from \"./storage/index.native\";\nimport { KeepAwake, useKeepAwake } from \"./keep-awake/index\";\nimport { Print } from \"./print/index\";\nimport { StoreReview } from \"./store-review/index\";\nimport { QuickActions } from \"./quick-actions/index\";\nimport { useSizeClass, getSizeClass, useHinge, getHinge, onHingeChange, ReservedRegions, useReservedRegions, useReservedRegionsReady, useWindowSegments, useSpanning } from \"./adaptive/index.native\";\nimport { Notifications } from \"./notifications\";\nimport { useNativeState } from \"./nativeState\";\nimport { TextInput } from \"./universal/TextInput/index\";\nimport { Haptics } from \"./haptics/index.native\";\nimport { LaunchScreen } from \"./launchScreen/index.native\";\nimport { LocalAuthentication } from \"./local-authentication/index\";\nimport { ProtectedStore } from \"./protected-store/index\";\nimport { Location } from \"./location/index\";\nimport { FileSystem } from \"./file-system/index.native\";\nimport { Audio } from \"./audio/index\";\nimport { CameraView } from \"./camera/index.native\";\nimport { Share } from \"./share/index\";\nimport { Open } from \"./open/index.native\";\nimport { PhotoLibrary } from \"./photo-library/index\";\nimport { MapServices } from \"./map-services/index\";\nimport { AppTracking } from \"./app-tracking/index\";\nimport { AppIcon } from \"./app-icon/index\";\nimport { ScreenOrientation } from \"./screen-orientation/index\";\nimport { ScreenCapture, usePreventScreenCapture } from \"./screen-capture/index\";\nimport { Purchases } from \"./purchases/index\";\nimport { ImageManipulator } from \"./image-manipulator/index.native\";\nimport { Device } from \"./device/index\";\nimport { Motion } from \"./motion/index.native\";\nimport { BackgroundTasks } from \"./background-tasks/index\";\nimport { AppIntents } from \"./app-intents/index\";\nimport { DeviceAttestation } from \"./device-attestation/index\";\nimport { Contacts } from \"./contacts/index\";\nimport { Calendar } from \"./calendar/index\";\nimport { AppInfo } from \"./app-info/index.native\";\nimport { ImagePicker } from \"./image-picker/index.native\";\nimport { DocumentPicker } from \"./document-picker/index.native\";\nimport { Database } from \"./database/index.native\";\nimport { VNDocumentCameraViewController } from \"./vision-kit/index\";\nimport { MFMailComposeViewController, MFMessageComposeViewController } from \"./message-ui/index\";\nimport { DataScannerViewController } from \"./data-scanner/index\";\nimport { CNContactViewController, CNMutableContact, CNContactStore } from \"./contact-ui/index\";\nvar Menu = Platform.OS === \"android\" ? AndroidMenu : IOSMenu;\nvar ContextMenu = Platform.OS === \"android\" ? AndroidContextMenu : IOSContextMenu;\nvar Swift = Platform.OS === \"ios\" ? {\n ArrangementView,\n TabView,\n Tab,\n TabSection,\n TabViewBottomAccessory,\n TabViewSlot,\n Menu,\n ContextMenu,\n Sheet,\n FullScreenCover,\n Popover,\n HStack,\n VStack,\n ZStack,\n Form,\n Section,\n Glass,\n GlassEffectContainer,\n GeometryReader,\n TimelineView,\n OutlineGroup,\n Table,\n Canvas,\n Angle,\n Path,\n Shading,\n Gradient,\n LabeledContent,\n Button,\n List,\n ScrollView,\n ScrollViewReader,\n LazyVStack,\n LazyHStack,\n LazyVGrid,\n LazyHGrid,\n Grid,\n GridRow,\n ControlGroup,\n DisclosureGroup,\n Divider,\n UIKitView,\n UIKitContent,\n collectionCellSource,\n tableCellSource,\n Link,\n Group,\n GroupBox,\n ViewThatFits,\n Overlay,\n ViewSlot,\n SwipeActions,\n Pager,\n Page,\n NavigationStack,\n NavigationSplitView,\n Toolbar,\n ToolbarItem,\n ToolbarItemGroup,\n ToolbarSpacer,\n Spacer,\n Slot,\n withAnimation,\n PhaseAnimator,\n KeyframeAnimator,\n KeyframeTrack,\n LinearKeyframe,\n SpringKeyframe,\n CubicKeyframe,\n MoveKeyframe,\n ...Controls,\n // the generated map takes no children; the wrapper validates and names\n // the map-controls slot while the native view composes it.\n Map: MapWithControls,\n // the generated picker takes no children; the wrapper validates the\n // tagged text options while the native view composes them.\n Picker: PickerWithChildren\n} : UnsupportedSwift;\nexport {\n AppIcon,\n AppInfo,\n AppIntents,\n AppTracking,\n Audio,\n BackgroundTasks,\n CNContactStore,\n CNContactViewController,\n CNMutableContact,\n Calendar,\n CameraView,\n Compose,\n Contacts,\n ContextMenu,\n DataScannerViewController,\n Database,\n Device,\n DeviceAttestation,\n DocumentPicker,\n FileSystem,\n Haptics,\n ImageManipulator,\n ImagePicker,\n KeepAwake,\n LaunchScreen,\n LiveActivities,\n LocalAuthentication,\n Location,\n MFMailComposeViewController,\n MFMessageComposeViewController,\n MapServices,\n Menu,\n Motion,\n Notifications,\n Open,\n PhotoLibrary,\n Print,\n ProtectedStore,\n Purchases,\n QuickActions,\n ReservedRegions,\n ScreenCapture,\n ScreenOrientation,\n Share,\n Storage,\n StoreReview,\n Swift,\n TextInput,\n UI,\n VNDocumentCameraViewController,\n WidgetUI,\n Widgets,\n getHinge,\n getSizeClass,\n onHingeChange,\n useHinge,\n useKeepAwake,\n useNativeState,\n usePreventScreenCapture,\n useReservedRegions,\n useReservedRegionsReady,\n useSizeClass,\n useSpanning,\n useWindowSegments\n};\n//# sourceMappingURL=index.native.js.map\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEA,IAAI,OAAO,SAAS,OAAO,YAAYA,SAAcC;AACrD,IAAI,cAAc,SAAS,OAAO,YAAYC,gBAAqBC;AACnE,IAAI,QAAQ,SAAS,OAAO,QAAQ;CAClC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,GAAG;CAGEC;CAGGC;AACV,IAAIC"}
|
|
1
|
+
{"version":3,"file":"index.native.js","names":["AndroidMenu","IOSMenu","AndroidContextMenu","IOSContextMenu","MapWithControls","PickerWithChildren","UnsupportedSwift"],"sources":["esm/platform/index.native.js"],"sourcesContent":["import { Platform } from \"react-native\";\nimport { Swift as UnsupportedSwift } from \"./unsupported\";\nimport { Angle, Gradient, Path, Shading } from \"./canvas\";\nimport { Button, ControlGroup, DisclosureGroup, Divider, Form, Glass, GlassEffectContainer, GeometryReader, TimelineView, OutlineGroup, Table, Canvas, Group, GroupBox, ViewThatFits, HStack, LabeledContent, LazyHStack, LazyVStack, LazyHGrid, LazyVGrid, Grid, GridRow, Link, List, Overlay, ViewSlot, ScrollView, ScrollViewReader, Section, Slot, Spacer, SwipeActions, VStack, ZStack } from \"./Containers.native\";\nimport { ContextMenu as AndroidContextMenu, Menu as AndroidMenu } from \"./AndroidMenu\";\nimport { ContextMenu as IOSContextMenu, Menu as IOSMenu } from \"./Menu.native\";\nimport { Page, Pager } from \"./Pager.native\";\nimport { UIKitView } from \"./UIKitView.native\";\nimport { collectionCellSource, tableCellSource, UIKitContent } from \"./UIKitContent.native\";\nimport { Popover } from \"./Popover.native\";\nimport { NavigationStack, Toolbar, ToolbarItem, ToolbarItemGroup, ToolbarSpacer, DefaultToolbarItem } from \"./NavigationStack.native\";\nimport { NavigationSplitView } from \"./NavigationSplitView.native\";\nimport { FullScreenCover, Sheet } from \"./Sheet.native\";\nimport { ArrangementView } from \"./ArrangementView.native\";\nimport { withAnimation } from \"./withAnimation.native\";\nimport { KeyframeAnimator, PhaseAnimator } from \"./Animators.native\";\nimport { CubicKeyframe, KeyframeTrack, LinearKeyframe, MoveKeyframe, SpringKeyframe } from \"./keyframes\";\nimport * as Controls from \"./generated/Controls.native\";\nimport { Map as MapWithControls } from \"./mapControls.native\";\nimport { Picker as PickerWithChildren } from \"./pickerChildren.native\";\nimport { Tab, TabView, TabSection, TabViewBottomAccessory, TabViewSlot } from \"./TabView.native\";\nimport { Compose } from \"./compose\";\nimport * as UI from \"./effects\";\nimport { Widgets, LiveActivities, WidgetUI } from \"./widgets/index\";\nexport * from \"./extras\";\nimport { Storage } from \"./storage/index.native\";\nimport { KeepAwake, useKeepAwake } from \"./keep-awake/index\";\nimport { Print } from \"./print/index\";\nimport { StoreReview } from \"./store-review/index\";\nimport { QuickActions } from \"./quick-actions/index\";\nimport { useSizeClass, getSizeClass, useHinge, getHinge, onHingeChange, ReservedRegions, useReservedRegions, useReservedRegionsReady, useWindowSegments, useSpanning } from \"./adaptive/index.native\";\nimport { Notifications } from \"./notifications\";\nimport { useNativeState } from \"./nativeState\";\nimport { TextInput } from \"./universal/TextInput/index\";\nimport { Haptics } from \"./haptics/index.native\";\nimport { LaunchScreen } from \"./launchScreen/index.native\";\nimport { LocalAuthentication } from \"./local-authentication/index\";\nimport { ProtectedStore } from \"./protected-store/index\";\nimport { Location } from \"./location/index\";\nimport { FileSystem } from \"./file-system/index.native\";\nimport { Audio } from \"./audio/index\";\nimport { CameraView } from \"./camera/index.native\";\nimport { Share } from \"./share/index\";\nimport { Open } from \"./open/index.native\";\nimport { PhotoLibrary } from \"./photo-library/index\";\nimport { MapServices } from \"./map-services/index\";\nimport { AppTracking } from \"./app-tracking/index\";\nimport { AppIcon } from \"./app-icon/index\";\nimport { ScreenOrientation } from \"./screen-orientation/index\";\nimport { ScreenCapture, usePreventScreenCapture } from \"./screen-capture/index\";\nimport { Purchases } from \"./purchases/index\";\nimport { ImageManipulator } from \"./image-manipulator/index.native\";\nimport { Device } from \"./device/index\";\nimport { Motion } from \"./motion/index.native\";\nimport { BackgroundTasks } from \"./background-tasks/index\";\nimport { AppIntents } from \"./app-intents/index\";\nimport { DeviceAttestation } from \"./device-attestation/index\";\nimport { Contacts } from \"./contacts/index\";\nimport { Calendar } from \"./calendar/index\";\nimport { AppInfo } from \"./app-info/index.native\";\nimport { ImagePicker } from \"./image-picker/index.native\";\nimport { DocumentPicker } from \"./document-picker/index.native\";\nimport { Database } from \"./database/index.native\";\nimport { VNDocumentCameraViewController } from \"./vision-kit/index\";\nimport { MFMailComposeViewController, MFMessageComposeViewController } from \"./message-ui/index\";\nimport { DataScannerViewController } from \"./data-scanner/index\";\nimport { CNContactViewController, CNMutableContact, CNContactStore } from \"./contact-ui/index\";\nvar Menu = Platform.OS === \"android\" ? AndroidMenu : IOSMenu;\nvar ContextMenu = Platform.OS === \"android\" ? AndroidContextMenu : IOSContextMenu;\nvar Swift = Platform.OS === \"ios\" ? {\n ArrangementView,\n TabView,\n Tab,\n TabSection,\n TabViewBottomAccessory,\n TabViewSlot,\n Menu,\n ContextMenu,\n Sheet,\n FullScreenCover,\n Popover,\n HStack,\n VStack,\n ZStack,\n Form,\n Section,\n Glass,\n GlassEffectContainer,\n GeometryReader,\n TimelineView,\n OutlineGroup,\n Table,\n Canvas,\n Angle,\n Path,\n Shading,\n Gradient,\n LabeledContent,\n Button,\n List,\n ScrollView,\n ScrollViewReader,\n LazyVStack,\n LazyHStack,\n LazyVGrid,\n LazyHGrid,\n Grid,\n GridRow,\n ControlGroup,\n DisclosureGroup,\n Divider,\n UIKitView,\n UIKitContent,\n collectionCellSource,\n tableCellSource,\n Link,\n Group,\n GroupBox,\n ViewThatFits,\n Overlay,\n ViewSlot,\n SwipeActions,\n Pager,\n Page,\n NavigationStack,\n NavigationSplitView,\n Toolbar,\n ToolbarItem,\n ToolbarItemGroup,\n ToolbarSpacer,\n DefaultToolbarItem,\n Spacer,\n Slot,\n withAnimation,\n PhaseAnimator,\n KeyframeAnimator,\n KeyframeTrack,\n LinearKeyframe,\n SpringKeyframe,\n CubicKeyframe,\n MoveKeyframe,\n ...Controls,\n // the generated map takes no children; the wrapper validates and names\n // the map-controls slot while the native view composes it.\n Map: MapWithControls,\n // the generated picker takes no children; the wrapper validates the\n // tagged text options while the native view composes them.\n Picker: PickerWithChildren\n} : UnsupportedSwift;\nexport {\n AppIcon,\n AppInfo,\n AppIntents,\n AppTracking,\n Audio,\n BackgroundTasks,\n CNContactStore,\n CNContactViewController,\n CNMutableContact,\n Calendar,\n CameraView,\n Compose,\n Contacts,\n ContextMenu,\n DataScannerViewController,\n Database,\n Device,\n DeviceAttestation,\n DocumentPicker,\n FileSystem,\n Haptics,\n ImageManipulator,\n ImagePicker,\n KeepAwake,\n LaunchScreen,\n LiveActivities,\n LocalAuthentication,\n Location,\n MFMailComposeViewController,\n MFMessageComposeViewController,\n MapServices,\n Menu,\n Motion,\n Notifications,\n Open,\n PhotoLibrary,\n Print,\n ProtectedStore,\n Purchases,\n QuickActions,\n ReservedRegions,\n ScreenCapture,\n ScreenOrientation,\n Share,\n Storage,\n StoreReview,\n Swift,\n TextInput,\n UI,\n VNDocumentCameraViewController,\n WidgetUI,\n Widgets,\n getHinge,\n getSizeClass,\n onHingeChange,\n useHinge,\n useKeepAwake,\n useNativeState,\n usePreventScreenCapture,\n useReservedRegions,\n useReservedRegionsReady,\n useSizeClass,\n useSpanning,\n useWindowSegments\n};\n//# sourceMappingURL=index.native.js.map\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEA,IAAI,OAAO,SAAS,OAAO,YAAYA,SAAcC;AACrD,IAAI,cAAc,SAAS,OAAO,YAAYC,gBAAqBC;AACnE,IAAI,QAAQ,SAAS,OAAO,QAAQ;CAClC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,GAAG;CAGEC;CAGGC;AACV,IAAIC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const e = require("react-native/Libraries/NativeComponent/NativeComponentRegistry");
|
|
2
|
+
let t = "OneNativeToolbarDefaultItem";
|
|
3
|
+
const i = {
|
|
4
|
+
uiViewClassName: "OneNativeToolbarDefaultItem",
|
|
5
|
+
validAttributes: {
|
|
6
|
+
kind: true,
|
|
7
|
+
placement: true
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
var r = e.get(t, () => i);
|
|
11
|
+
export {
|
|
12
|
+
i as __INTERNAL_VIEW_CONFIG,
|
|
13
|
+
r as default
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=OneNativeToolbarDefaultItemNativeComponent.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/platform/specs/OneNativeToolbarDefaultItemNativeComponent.ts"],
|
|
4
|
+
"sourcesContent": ["// generated by bun run generate from the SwiftUI SDK and codegen/catalog.ts.\n// edit the generator or catalog, then regenerate.\nimport type { ViewProps } from 'react-native';\nimport codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\ninterface NativeProps extends ViewProps {\n kind: string;\n placement: string;\n}\nconst NativeComponentRegistry = require('react-native/Libraries/NativeComponent/NativeComponentRegistry');\nlet nativeComponentName = 'OneNativeToolbarDefaultItem';\nexport const __INTERNAL_VIEW_CONFIG = {\n uiViewClassName: \"OneNativeToolbarDefaultItem\",\n validAttributes: {\n kind: true,\n placement: true\n }\n};\nexport default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);"],
|
|
5
|
+
"mappings": "AAQA,MAAMA,IAA0B,QAAQ,gEAAgE;AACxG,IAAIC,IAAsB;AACnB,MAAMC,IAAyB;AAAA,EACpC,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF;AACA,IAAOC,IAAQH,EAAwB,IAAIC,GAAqB,MAAMC,CAAsB;",
|
|
6
|
+
"names": ["NativeComponentRegistry", "nativeComponentName", "__INTERNAL_VIEW_CONFIG", "OneNativeToolbarDefaultItemNativeComponent_default"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const e = require("react-native/Libraries/NativeComponent/NativeComponentRegistry");
|
|
2
|
+
let t = "OneNativeToolbarDefaultItem";
|
|
3
|
+
const i = {
|
|
4
|
+
uiViewClassName: "OneNativeToolbarDefaultItem",
|
|
5
|
+
validAttributes: {
|
|
6
|
+
kind: true,
|
|
7
|
+
placement: true
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
var r = e.get(t, () => i);
|
|
11
|
+
export {
|
|
12
|
+
i as __INTERNAL_VIEW_CONFIG,
|
|
13
|
+
r as default
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=OneNativeToolbarDefaultItemNativeComponent.native.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/platform/specs/OneNativeToolbarDefaultItemNativeComponent.ts"],
|
|
4
|
+
"sourcesContent": ["// generated by bun run generate from the SwiftUI SDK and codegen/catalog.ts.\n// edit the generator or catalog, then regenerate.\nimport type { ViewProps } from 'react-native';\nimport codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\ninterface NativeProps extends ViewProps {\n kind: string;\n placement: string;\n}\nconst NativeComponentRegistry = require('react-native/Libraries/NativeComponent/NativeComponentRegistry');\nlet nativeComponentName = 'OneNativeToolbarDefaultItem';\nexport const __INTERNAL_VIEW_CONFIG = {\n uiViewClassName: \"OneNativeToolbarDefaultItem\",\n validAttributes: {\n kind: true,\n placement: true\n }\n};\nexport default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);"],
|
|
5
|
+
"mappings": "AAQA,MAAMA,IAA0B,QAAQ,gEAAgE;AACxG,IAAIC,IAAsB;AACnB,MAAMC,IAAyB;AAAA,EACpC,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,WAAW;AAAA,EACb;AACF;AACA,IAAOC,IAAQH,EAAwB,IAAIC,GAAqB,MAAMC,CAAsB;",
|
|
6
|
+
"names": ["NativeComponentRegistry", "nativeComponentName", "__INTERNAL_VIEW_CONFIG", "OneNativeToolbarDefaultItemNativeComponent_default"]
|
|
7
|
+
}
|
|
@@ -201,6 +201,9 @@ function ToolbarItemGroup(_props) {
|
|
|
201
201
|
function ToolbarSpacer(_props) {
|
|
202
202
|
throw new Error("Swift.ToolbarSpacer requires an iOS native build");
|
|
203
203
|
}
|
|
204
|
+
function DefaultToolbarItem(_props) {
|
|
205
|
+
throw new Error("Swift.DefaultToolbarItem requires an iOS native build");
|
|
206
|
+
}
|
|
204
207
|
function MapWithControlsStub(_props) {
|
|
205
208
|
throw new Error("Swift.Map requires an iOS native build");
|
|
206
209
|
}
|
|
@@ -276,6 +279,7 @@ const Swift = {
|
|
|
276
279
|
ToolbarItem,
|
|
277
280
|
ToolbarItemGroup,
|
|
278
281
|
ToolbarSpacer,
|
|
282
|
+
DefaultToolbarItem,
|
|
279
283
|
PhaseAnimator,
|
|
280
284
|
KeyframeAnimator,
|
|
281
285
|
KeyframeTrack,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsupported.js","names":[],"sources":["esm/platform/unsupported.js"],"sourcesContent":["import { Angle, Gradient, Path, Shading } from \"./canvas\";\nimport { unsupportedControls } from \"./generated/unsupportedControls\";\nimport { ArrangementView } from \"./ArrangementView\";\nimport { CubicKeyframe, KeyframeTrack, LinearKeyframe, MoveKeyframe, SpringKeyframe } from \"./keyframes\";\nfunction TabView(_props) {\n throw new Error(\"Swift.TabView requires an iOS native build\");\n}\nfunction Tab(_props) {\n throw new Error(\"Swift.Tab requires an iOS native build\");\n}\nfunction TabSection(_props) {\n throw new Error(\"Swift.TabSection requires an iOS native build\");\n}\nfunction TabViewBottomAccessory(_props) {\n throw new Error(\"Swift.TabViewBottomAccessory requires an iOS native build\");\n}\nfunction TabViewSlot(_props) {\n throw new Error(\"Swift.TabViewSlot requires an iOS native build\");\n}\nfunction Menu(_props) {\n throw new Error(\"Swift.Menu requires an iOS native build\");\n}\nfunction ContextMenu(_props) {\n throw new Error(\n \"Swift.ContextMenu requires an iOS native build\"\n );\n}\nfunction Sheet(_props) {\n throw new Error(\"Swift.Sheet requires an iOS native build\");\n}\nfunction FullScreenCover(_props) {\n throw new Error(\n \"Swift.FullScreenCover requires an iOS native build\"\n );\n}\nfunction Popover(_props) {\n throw new Error(\"Swift.Popover requires an iOS native build\");\n}\nfunction HStack(_props) {\n throw new Error(\"Swift.HStack requires an iOS native build\");\n}\nfunction VStack(_props) {\n throw new Error(\"Swift.VStack requires an iOS native build\");\n}\nfunction ZStack(_props) {\n throw new Error(\"Swift.ZStack requires an iOS native build\");\n}\nfunction Spacer(_props) {\n throw new Error(\"Swift.Spacer requires an iOS native build\");\n}\nfunction Form(_props) {\n throw new Error(\"Swift.Form requires an iOS native build\");\n}\nfunction Section(_props) {\n throw new Error(\"Swift.Section requires an iOS native build\");\n}\nfunction LabeledContent(_props) {\n throw new Error(\n \"Swift.LabeledContent requires an iOS native build\"\n );\n}\nfunction GroupBox(_props) {\n throw new Error(\"Swift.GroupBox requires an iOS native build\");\n}\nfunction ViewThatFits(_props) {\n throw new Error(\"Swift.ViewThatFits requires an iOS native build\");\n}\nfunction Button(_props) {\n throw new Error(\"Swift.Button requires an iOS native build\");\n}\nfunction Glass(_props) {\n throw new Error(\"Swift.Glass requires an iOS native build\");\n}\nfunction GlassEffectContainer(_props) {\n throw new Error(\"Swift.GlassEffectContainer requires an iOS native build\");\n}\nfunction GeometryReader(_props) {\n throw new Error(\n \"Swift.GeometryReader requires an iOS native build\"\n );\n}\nfunction TimelineView(_props) {\n throw new Error(\"Swift.TimelineView requires an iOS native build\");\n}\nfunction OutlineGroup(_props) {\n throw new Error(\"Swift.OutlineGroup requires an iOS native build\");\n}\nfunction Table(_props) {\n throw new Error(\"Swift.Table requires an iOS native build\");\n}\nfunction Canvas(_props) {\n throw new Error(\"Swift.Canvas requires an iOS native build\");\n}\nfunction Slot(_props) {\n throw new Error(\"Swift.Slot requires an iOS native build\");\n}\nfunction List(_props) {\n throw new Error(\"Swift.List requires an iOS native build\");\n}\nfunction ScrollViewReader(_props) {\n throw new Error(\"Swift.ScrollViewReader requires an iOS native build\");\n}\nfunction ScrollView(_props) {\n throw new Error(\n \"Swift.ScrollView requires an iOS native build\"\n );\n}\nfunction LazyVStack(_props) {\n throw new Error(\n \"Swift.LazyVStack requires an iOS native build\"\n );\n}\nfunction LazyHStack(_props) {\n throw new Error(\n \"Swift.LazyHStack requires an iOS native build\"\n );\n}\nfunction LazyVGrid(_props) {\n throw new Error(\"Swift.LazyVGrid requires an iOS native build\");\n}\nfunction LazyHGrid(_props) {\n throw new Error(\"Swift.LazyHGrid requires an iOS native build\");\n}\nfunction Grid(_props) {\n throw new Error(\"Swift.Grid requires an iOS native build\");\n}\nfunction GridRow(_props) {\n throw new Error(\"Swift.GridRow requires an iOS native build\");\n}\nfunction ControlGroup(_props) {\n throw new Error(\n \"Swift.ControlGroup requires an iOS native build\"\n );\n}\nfunction DisclosureGroup(_props) {\n throw new Error(\n \"Swift.DisclosureGroup requires an iOS native build\"\n );\n}\nfunction Divider(_props) {\n throw new Error(\"Swift.Divider requires an iOS native build\");\n}\nfunction UIKitView(_props) {\n throw new Error(\"Swift.UIKitView requires an iOS native build\");\n}\nfunction UIKitContent(_props) {\n throw new Error(\"Swift.UIKitContent requires an iOS native build\");\n}\nfunction collectionCellSource(_view) {\n return Promise.reject(new Error(\"Swift.collectionCellSource requires an iOS native build\"));\n}\nfunction tableCellSource(_view) {\n return Promise.reject(new Error(\"Swift.tableCellSource requires an iOS native build\"));\n}\nfunction Link(_props) {\n throw new Error(\"Swift.Link requires an iOS native build\");\n}\nfunction Group(_props) {\n throw new Error(\"Swift.Group requires an iOS native build\");\n}\nfunction OverlayContent(_props) {\n throw new Error(\n \"Swift.Overlay.Content requires an iOS native build\"\n );\n}\nfunction OverlayFn(_props) {\n throw new Error(\"Swift.Overlay requires an iOS native build\");\n}\nconst Overlay = Object.assign(OverlayFn, { Content: OverlayContent });\nfunction ViewSlotFn(_props) {\n throw new Error(\"Swift.ViewSlot requires an iOS native build\");\n}\nconst ViewSlot = Object.assign(ViewSlotFn, { Content: OverlayContent });\nfunction SwipeActionsActions(_props) {\n throw new Error(\n \"Swift.SwipeActions.Actions requires an iOS native build\"\n );\n}\nfunction SwipeActionsFn(_props) {\n throw new Error(\n \"Swift.SwipeActions requires an iOS native build\"\n );\n}\nconst SwipeActions = Object.assign(SwipeActionsFn, { Actions: SwipeActionsActions });\nfunction Page(_props) {\n throw new Error(\"Swift.Page requires an iOS native build\");\n}\nfunction Pager(_props) {\n throw new Error(\"Swift.Pager requires an iOS native build\");\n}\nfunction NavigationStack(_props) {\n throw new Error(\n \"Swift.NavigationStack requires an iOS native build\"\n );\n}\nfunction NavigationSplitViewFn(_props) {\n throw new Error(\"Swift.NavigationSplitView requires an iOS native build\");\n}\nfunction NavigationSplitViewSidebar(_props) {\n throw new Error(\"Swift.NavigationSplitView.Sidebar requires an iOS native build\");\n}\nfunction NavigationSplitViewContent(_props) {\n throw new Error(\"Swift.NavigationSplitView.Content requires an iOS native build\");\n}\nfunction NavigationSplitViewDetail(_props) {\n throw new Error(\"Swift.NavigationSplitView.Detail requires an iOS native build\");\n}\nconst NavigationSplitView = Object.assign(NavigationSplitViewFn, {\n Sidebar: NavigationSplitViewSidebar,\n Content: NavigationSplitViewContent,\n Detail: NavigationSplitViewDetail\n});\nfunction ToolbarMarker(_props) {\n throw new Error(\"Swift.Toolbar requires an iOS native build\");\n}\nfunction ToolbarContent(_props) {\n throw new Error(\"Swift.Toolbar.Content requires an iOS native build\");\n}\nconst Toolbar = Object.assign(ToolbarMarker, { Content: ToolbarContent });\nfunction ToolbarItem(_props) {\n throw new Error(\n \"Swift.ToolbarItem requires an iOS native build\"\n );\n}\nfunction ToolbarItemGroup(_props) {\n throw new Error(\n \"Swift.ToolbarItemGroup requires an iOS native build\"\n );\n}\nfunction ToolbarSpacer(_props) {\n throw new Error(\n \"Swift.ToolbarSpacer requires an iOS native build\"\n );\n}\nfunction MapWithControlsStub(_props) {\n throw new Error(\"Swift.Map requires an iOS native build\");\n}\nfunction PickerWithChildrenStub(_props) {\n throw new Error(\"Swift.Picker requires an iOS native build\");\n}\nfunction PhaseAnimator(_props) {\n throw new Error(\"Swift.PhaseAnimator requires an iOS native build\");\n}\nfunction KeyframeAnimator(_props) {\n throw new Error(\"Swift.KeyframeAnimator requires an iOS native build\");\n}\nconst Swift = {\n ArrangementView,\n TabView,\n Tab,\n TabSection,\n TabViewBottomAccessory,\n TabViewSlot,\n Menu,\n ContextMenu,\n Sheet,\n FullScreenCover,\n Popover,\n HStack,\n VStack,\n ZStack,\n Form,\n Section,\n Glass,\n GlassEffectContainer,\n GeometryReader,\n TimelineView,\n OutlineGroup,\n Table,\n Canvas,\n Angle,\n Path,\n Shading,\n Gradient,\n LabeledContent,\n Button,\n Spacer,\n Slot,\n List,\n ScrollView,\n ScrollViewReader,\n LazyVStack,\n LazyHStack,\n LazyVGrid,\n LazyHGrid,\n Grid,\n GridRow,\n ControlGroup,\n DisclosureGroup,\n Divider,\n UIKitView,\n UIKitContent,\n collectionCellSource,\n tableCellSource,\n Link,\n Group,\n GroupBox,\n ViewThatFits,\n Overlay,\n ViewSlot,\n SwipeActions,\n Pager,\n Page,\n NavigationStack,\n NavigationSplitView,\n Toolbar,\n ToolbarItem,\n ToolbarItemGroup,\n ToolbarSpacer,\n PhaseAnimator,\n KeyframeAnimator,\n KeyframeTrack,\n LinearKeyframe,\n SpringKeyframe,\n CubicKeyframe,\n MoveKeyframe,\n withAnimation(_animation, _body, _completion, _completionCriteria) {\n throw new Error(\"Swift.withAnimation requires an iOS native build\");\n },\n ...unsupportedControls,\n Map: MapWithControlsStub,\n Picker: PickerWithChildrenStub\n};\nexport {\n Swift\n};\n//# sourceMappingURL=unsupported.js.map\n"],"mappings":";;;;;;AAIA,SAAS,QAAQ,QAAQ;CACvB,MAAM,IAAI,MAAM,4CAA4C;AAC9D;AACA,SAAS,IAAI,QAAQ;CACnB,MAAM,IAAI,MAAM,wCAAwC;AAC1D;AACA,SAAS,WAAW,QAAQ;CAC1B,MAAM,IAAI,MAAM,+CAA+C;AACjE;AACA,SAAS,uBAAuB,QAAQ;CACtC,MAAM,IAAI,MAAM,2DAA2D;AAC7E;AACA,SAAS,YAAY,QAAQ;CAC3B,MAAM,IAAI,MAAM,gDAAgD;AAClE;AACA,SAAS,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4C;AAC9D;AACA,SAAS,eAAe,QAAQ;CAC9B,MAAM,IAAI,MAAM,oDAAoD;AACtE;AACA,MAAM,UAAU,OAAO,OAAO,eAAe,EAAE,SAAS,eAAe,CAAC;AACxE,SAAS,YAAY,QAAQ;CAC3B,MAAM,IAAI,MACR,gDACF;AACF;AACA,SAAS,iBAAiB,QAAQ;CAChC,MAAM,IAAI,MACR,qDACF;AACF;AACA,SAAS,cAAc,QAAQ;CAC7B,MAAM,IAAI,MACR,kDACF;AACF;AACA,SAAS,oBAAoB,QAAQ;CACnC,MAAM,IAAI,MAAM,wCAAwC;AAC1D;AACA,SAAS,uBAAuB,QAAQ;CACtC,MAAM,IAAI,MAAM,2CAA2C;AAC7D;AACA,SAAS,cAAc,QAAQ;CAC7B,MAAM,IAAI,MAAM,kDAAkD;AACpE;AACA,SAAS,iBAAiB,QAAQ;CAChC,MAAM,IAAI,MAAM,qDAAqD;AACvE;AACA,MAAM,QAAQ;CACZ;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,cAAc,YAAY,OAAO,aAAa,qBAAqB;EACjE,MAAM,IAAI,MAAM,kDAAkD;CACpE;CACA,GAAG;CACH,KAAK;CACL,QAAQ;AACV"}
|
|
1
|
+
{"version":3,"file":"unsupported.js","names":[],"sources":["esm/platform/unsupported.js"],"sourcesContent":["import { Angle, Gradient, Path, Shading } from \"./canvas\";\nimport { unsupportedControls } from \"./generated/unsupportedControls\";\nimport { ArrangementView } from \"./ArrangementView\";\nimport { CubicKeyframe, KeyframeTrack, LinearKeyframe, MoveKeyframe, SpringKeyframe } from \"./keyframes\";\nfunction TabView(_props) {\n throw new Error(\"Swift.TabView requires an iOS native build\");\n}\nfunction Tab(_props) {\n throw new Error(\"Swift.Tab requires an iOS native build\");\n}\nfunction TabSection(_props) {\n throw new Error(\"Swift.TabSection requires an iOS native build\");\n}\nfunction TabViewBottomAccessory(_props) {\n throw new Error(\"Swift.TabViewBottomAccessory requires an iOS native build\");\n}\nfunction TabViewSlot(_props) {\n throw new Error(\"Swift.TabViewSlot requires an iOS native build\");\n}\nfunction Menu(_props) {\n throw new Error(\"Swift.Menu requires an iOS native build\");\n}\nfunction ContextMenu(_props) {\n throw new Error(\n \"Swift.ContextMenu requires an iOS native build\"\n );\n}\nfunction Sheet(_props) {\n throw new Error(\"Swift.Sheet requires an iOS native build\");\n}\nfunction FullScreenCover(_props) {\n throw new Error(\n \"Swift.FullScreenCover requires an iOS native build\"\n );\n}\nfunction Popover(_props) {\n throw new Error(\"Swift.Popover requires an iOS native build\");\n}\nfunction HStack(_props) {\n throw new Error(\"Swift.HStack requires an iOS native build\");\n}\nfunction VStack(_props) {\n throw new Error(\"Swift.VStack requires an iOS native build\");\n}\nfunction ZStack(_props) {\n throw new Error(\"Swift.ZStack requires an iOS native build\");\n}\nfunction Spacer(_props) {\n throw new Error(\"Swift.Spacer requires an iOS native build\");\n}\nfunction Form(_props) {\n throw new Error(\"Swift.Form requires an iOS native build\");\n}\nfunction Section(_props) {\n throw new Error(\"Swift.Section requires an iOS native build\");\n}\nfunction LabeledContent(_props) {\n throw new Error(\n \"Swift.LabeledContent requires an iOS native build\"\n );\n}\nfunction GroupBox(_props) {\n throw new Error(\"Swift.GroupBox requires an iOS native build\");\n}\nfunction ViewThatFits(_props) {\n throw new Error(\"Swift.ViewThatFits requires an iOS native build\");\n}\nfunction Button(_props) {\n throw new Error(\"Swift.Button requires an iOS native build\");\n}\nfunction Glass(_props) {\n throw new Error(\"Swift.Glass requires an iOS native build\");\n}\nfunction GlassEffectContainer(_props) {\n throw new Error(\"Swift.GlassEffectContainer requires an iOS native build\");\n}\nfunction GeometryReader(_props) {\n throw new Error(\n \"Swift.GeometryReader requires an iOS native build\"\n );\n}\nfunction TimelineView(_props) {\n throw new Error(\"Swift.TimelineView requires an iOS native build\");\n}\nfunction OutlineGroup(_props) {\n throw new Error(\"Swift.OutlineGroup requires an iOS native build\");\n}\nfunction Table(_props) {\n throw new Error(\"Swift.Table requires an iOS native build\");\n}\nfunction Canvas(_props) {\n throw new Error(\"Swift.Canvas requires an iOS native build\");\n}\nfunction Slot(_props) {\n throw new Error(\"Swift.Slot requires an iOS native build\");\n}\nfunction List(_props) {\n throw new Error(\"Swift.List requires an iOS native build\");\n}\nfunction ScrollViewReader(_props) {\n throw new Error(\"Swift.ScrollViewReader requires an iOS native build\");\n}\nfunction ScrollView(_props) {\n throw new Error(\n \"Swift.ScrollView requires an iOS native build\"\n );\n}\nfunction LazyVStack(_props) {\n throw new Error(\n \"Swift.LazyVStack requires an iOS native build\"\n );\n}\nfunction LazyHStack(_props) {\n throw new Error(\n \"Swift.LazyHStack requires an iOS native build\"\n );\n}\nfunction LazyVGrid(_props) {\n throw new Error(\"Swift.LazyVGrid requires an iOS native build\");\n}\nfunction LazyHGrid(_props) {\n throw new Error(\"Swift.LazyHGrid requires an iOS native build\");\n}\nfunction Grid(_props) {\n throw new Error(\"Swift.Grid requires an iOS native build\");\n}\nfunction GridRow(_props) {\n throw new Error(\"Swift.GridRow requires an iOS native build\");\n}\nfunction ControlGroup(_props) {\n throw new Error(\n \"Swift.ControlGroup requires an iOS native build\"\n );\n}\nfunction DisclosureGroup(_props) {\n throw new Error(\n \"Swift.DisclosureGroup requires an iOS native build\"\n );\n}\nfunction Divider(_props) {\n throw new Error(\"Swift.Divider requires an iOS native build\");\n}\nfunction UIKitView(_props) {\n throw new Error(\"Swift.UIKitView requires an iOS native build\");\n}\nfunction UIKitContent(_props) {\n throw new Error(\"Swift.UIKitContent requires an iOS native build\");\n}\nfunction collectionCellSource(_view) {\n return Promise.reject(new Error(\"Swift.collectionCellSource requires an iOS native build\"));\n}\nfunction tableCellSource(_view) {\n return Promise.reject(new Error(\"Swift.tableCellSource requires an iOS native build\"));\n}\nfunction Link(_props) {\n throw new Error(\"Swift.Link requires an iOS native build\");\n}\nfunction Group(_props) {\n throw new Error(\"Swift.Group requires an iOS native build\");\n}\nfunction OverlayContent(_props) {\n throw new Error(\n \"Swift.Overlay.Content requires an iOS native build\"\n );\n}\nfunction OverlayFn(_props) {\n throw new Error(\"Swift.Overlay requires an iOS native build\");\n}\nconst Overlay = Object.assign(OverlayFn, { Content: OverlayContent });\nfunction ViewSlotFn(_props) {\n throw new Error(\"Swift.ViewSlot requires an iOS native build\");\n}\nconst ViewSlot = Object.assign(ViewSlotFn, { Content: OverlayContent });\nfunction SwipeActionsActions(_props) {\n throw new Error(\n \"Swift.SwipeActions.Actions requires an iOS native build\"\n );\n}\nfunction SwipeActionsFn(_props) {\n throw new Error(\n \"Swift.SwipeActions requires an iOS native build\"\n );\n}\nconst SwipeActions = Object.assign(SwipeActionsFn, { Actions: SwipeActionsActions });\nfunction Page(_props) {\n throw new Error(\"Swift.Page requires an iOS native build\");\n}\nfunction Pager(_props) {\n throw new Error(\"Swift.Pager requires an iOS native build\");\n}\nfunction NavigationStack(_props) {\n throw new Error(\n \"Swift.NavigationStack requires an iOS native build\"\n );\n}\nfunction NavigationSplitViewFn(_props) {\n throw new Error(\"Swift.NavigationSplitView requires an iOS native build\");\n}\nfunction NavigationSplitViewSidebar(_props) {\n throw new Error(\"Swift.NavigationSplitView.Sidebar requires an iOS native build\");\n}\nfunction NavigationSplitViewContent(_props) {\n throw new Error(\"Swift.NavigationSplitView.Content requires an iOS native build\");\n}\nfunction NavigationSplitViewDetail(_props) {\n throw new Error(\"Swift.NavigationSplitView.Detail requires an iOS native build\");\n}\nconst NavigationSplitView = Object.assign(NavigationSplitViewFn, {\n Sidebar: NavigationSplitViewSidebar,\n Content: NavigationSplitViewContent,\n Detail: NavigationSplitViewDetail\n});\nfunction ToolbarMarker(_props) {\n throw new Error(\"Swift.Toolbar requires an iOS native build\");\n}\nfunction ToolbarContent(_props) {\n throw new Error(\"Swift.Toolbar.Content requires an iOS native build\");\n}\nconst Toolbar = Object.assign(ToolbarMarker, { Content: ToolbarContent });\nfunction ToolbarItem(_props) {\n throw new Error(\n \"Swift.ToolbarItem requires an iOS native build\"\n );\n}\nfunction ToolbarItemGroup(_props) {\n throw new Error(\n \"Swift.ToolbarItemGroup requires an iOS native build\"\n );\n}\nfunction ToolbarSpacer(_props) {\n throw new Error(\n \"Swift.ToolbarSpacer requires an iOS native build\"\n );\n}\nfunction DefaultToolbarItem(_props) {\n throw new Error(\n \"Swift.DefaultToolbarItem requires an iOS native build\"\n );\n}\nfunction MapWithControlsStub(_props) {\n throw new Error(\"Swift.Map requires an iOS native build\");\n}\nfunction PickerWithChildrenStub(_props) {\n throw new Error(\"Swift.Picker requires an iOS native build\");\n}\nfunction PhaseAnimator(_props) {\n throw new Error(\"Swift.PhaseAnimator requires an iOS native build\");\n}\nfunction KeyframeAnimator(_props) {\n throw new Error(\"Swift.KeyframeAnimator requires an iOS native build\");\n}\nconst Swift = {\n ArrangementView,\n TabView,\n Tab,\n TabSection,\n TabViewBottomAccessory,\n TabViewSlot,\n Menu,\n ContextMenu,\n Sheet,\n FullScreenCover,\n Popover,\n HStack,\n VStack,\n ZStack,\n Form,\n Section,\n Glass,\n GlassEffectContainer,\n GeometryReader,\n TimelineView,\n OutlineGroup,\n Table,\n Canvas,\n Angle,\n Path,\n Shading,\n Gradient,\n LabeledContent,\n Button,\n Spacer,\n Slot,\n List,\n ScrollView,\n ScrollViewReader,\n LazyVStack,\n LazyHStack,\n LazyVGrid,\n LazyHGrid,\n Grid,\n GridRow,\n ControlGroup,\n DisclosureGroup,\n Divider,\n UIKitView,\n UIKitContent,\n collectionCellSource,\n tableCellSource,\n Link,\n Group,\n GroupBox,\n ViewThatFits,\n Overlay,\n ViewSlot,\n SwipeActions,\n Pager,\n Page,\n NavigationStack,\n NavigationSplitView,\n Toolbar,\n ToolbarItem,\n ToolbarItemGroup,\n ToolbarSpacer,\n DefaultToolbarItem,\n PhaseAnimator,\n KeyframeAnimator,\n KeyframeTrack,\n LinearKeyframe,\n SpringKeyframe,\n CubicKeyframe,\n MoveKeyframe,\n withAnimation(_animation, _body, _completion, _completionCriteria) {\n throw new Error(\"Swift.withAnimation requires an iOS native build\");\n },\n ...unsupportedControls,\n Map: MapWithControlsStub,\n Picker: PickerWithChildrenStub\n};\nexport {\n Swift\n};\n//# sourceMappingURL=unsupported.js.map\n"],"mappings":";;;;;;AAIA,SAAS,QAAQ,QAAQ;CACvB,MAAM,IAAI,MAAM,4CAA4C;AAC9D;AACA,SAAS,IAAI,QAAQ;CACnB,MAAM,IAAI,MAAM,wCAAwC;AAC1D;AACA,SAAS,WAAW,QAAQ;CAC1B,MAAM,IAAI,MAAM,+CAA+C;AACjE;AACA,SAAS,uBAAuB,QAAQ;CACtC,MAAM,IAAI,MAAM,2DAA2D;AAC7E;AACA,SAAS,YAAY,QAAQ;CAC3B,MAAM,IAAI,MAAM,gDAAgD;AAClE;AACA,SAAS,KAAK,QAAQ;CACpB,MAAM,IAAI,MAAM,yCAAyC;AAC3D;AACA,SAAS,YAAY,QAAQ;CAC3B,MAAM,IAAI,MACR,gDACF;AACF;AACA,SAAS,MAAM,QAAQ;CACrB,MAAM,IAAI,MAAM,0CAA0C;AAC5D;AACA,SAAS,gBAAgB,QAAQ;CAC/B,MAAM,IAAI,MACR,oDACF;AACF;AACA,SAAS,QAAQ,QAAQ;CACvB,MAAM,IAAI,MAAM,4CAA4C;AAC9D;AACA,SAAS,OAAO,QAAQ;CACtB,MAAM,IAAI,MAAM,2CAA2C;AAC7D;AACA,SAAS,OAAO,QAAQ;CACtB,MAAM,IAAI,MAAM,2CAA2C;AAC7D;AACA,SAAS,OAAO,QAAQ;CACtB,MAAM,IAAI,MAAM,2CAA2C;AAC7D;AACA,S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AC7D;AACA,SAAS,cAAc,QAAQ;CAC7B,MAAM,IAAI,MAAM,kDAAkD;AACpE;AACA,SAAS,iBAAiB,QAAQ;CAChC,MAAM,IAAI,MAAM,qDAAqD;AACvE;AACA,MAAM,QAAQ;CACZ;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,cAAc,YAAY,OAAO,aAAa,qBAAqB;EACjE,MAAM,IAAI,MAAM,kDAAkD;CACpE;CACA,GAAG;CACH,KAAK;CACL,QAAQ;AACV"}
|
|
@@ -201,6 +201,9 @@ function ToolbarItemGroup(_props) {
|
|
|
201
201
|
function ToolbarSpacer(_props) {
|
|
202
202
|
throw new Error("Swift.ToolbarSpacer requires an iOS native build");
|
|
203
203
|
}
|
|
204
|
+
function DefaultToolbarItem(_props) {
|
|
205
|
+
throw new Error("Swift.DefaultToolbarItem requires an iOS native build");
|
|
206
|
+
}
|
|
204
207
|
function MapWithControlsStub(_props) {
|
|
205
208
|
throw new Error("Swift.Map requires an iOS native build");
|
|
206
209
|
}
|
|
@@ -276,6 +279,7 @@ var Swift = {
|
|
|
276
279
|
ToolbarItem,
|
|
277
280
|
ToolbarItemGroup,
|
|
278
281
|
ToolbarSpacer,
|
|
282
|
+
DefaultToolbarItem,
|
|
279
283
|
PhaseAnimator,
|
|
280
284
|
KeyframeAnimator,
|
|
281
285
|
KeyframeTrack,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsupported.native.js","names":[],"sources":["esm/platform/unsupported.native.js"],"sourcesContent":["import { Angle, Gradient, Path, Shading } from \"./canvas\";\nimport { unsupportedControls } from \"./generated/unsupportedControls\";\nimport { ArrangementView } from \"./ArrangementView\";\nimport { CubicKeyframe, KeyframeTrack, LinearKeyframe, MoveKeyframe, SpringKeyframe } from \"./keyframes\";\nfunction TabView(_props) {\n throw new Error(\"Swift.TabView requires an iOS native build\");\n}\nfunction Tab(_props) {\n throw new Error(\"Swift.Tab requires an iOS native build\");\n}\nfunction TabSection(_props) {\n throw new Error(\"Swift.TabSection requires an iOS native build\");\n}\nfunction TabViewBottomAccessory(_props) {\n throw new Error(\"Swift.TabViewBottomAccessory requires an iOS native build\");\n}\nfunction TabViewSlot(_props) {\n throw new Error(\"Swift.TabViewSlot requires an iOS native build\");\n}\nfunction Menu(_props) {\n throw new Error(\"Swift.Menu requires an iOS native build\");\n}\nfunction ContextMenu(_props) {\n throw new Error(\"Swift.ContextMenu requires an iOS native build\");\n}\nfunction Sheet(_props) {\n throw new Error(\"Swift.Sheet requires an iOS native build\");\n}\nfunction FullScreenCover(_props) {\n throw new Error(\"Swift.FullScreenCover requires an iOS native build\");\n}\nfunction Popover(_props) {\n throw new Error(\"Swift.Popover requires an iOS native build\");\n}\nfunction HStack(_props) {\n throw new Error(\"Swift.HStack requires an iOS native build\");\n}\nfunction VStack(_props) {\n throw new Error(\"Swift.VStack requires an iOS native build\");\n}\nfunction ZStack(_props) {\n throw new Error(\"Swift.ZStack requires an iOS native build\");\n}\nfunction Spacer(_props) {\n throw new Error(\"Swift.Spacer requires an iOS native build\");\n}\nfunction Form(_props) {\n throw new Error(\"Swift.Form requires an iOS native build\");\n}\nfunction Section(_props) {\n throw new Error(\"Swift.Section requires an iOS native build\");\n}\nfunction LabeledContent(_props) {\n throw new Error(\"Swift.LabeledContent requires an iOS native build\");\n}\nfunction GroupBox(_props) {\n throw new Error(\"Swift.GroupBox requires an iOS native build\");\n}\nfunction ViewThatFits(_props) {\n throw new Error(\"Swift.ViewThatFits requires an iOS native build\");\n}\nfunction Button(_props) {\n throw new Error(\"Swift.Button requires an iOS native build\");\n}\nfunction Glass(_props) {\n throw new Error(\"Swift.Glass requires an iOS native build\");\n}\nfunction GlassEffectContainer(_props) {\n throw new Error(\"Swift.GlassEffectContainer requires an iOS native build\");\n}\nfunction GeometryReader(_props) {\n throw new Error(\"Swift.GeometryReader requires an iOS native build\");\n}\nfunction TimelineView(_props) {\n throw new Error(\"Swift.TimelineView requires an iOS native build\");\n}\nfunction OutlineGroup(_props) {\n throw new Error(\"Swift.OutlineGroup requires an iOS native build\");\n}\nfunction Table(_props) {\n throw new Error(\"Swift.Table requires an iOS native build\");\n}\nfunction Canvas(_props) {\n throw new Error(\"Swift.Canvas requires an iOS native build\");\n}\nfunction Slot(_props) {\n throw new Error(\"Swift.Slot requires an iOS native build\");\n}\nfunction List(_props) {\n throw new Error(\"Swift.List requires an iOS native build\");\n}\nfunction ScrollViewReader(_props) {\n throw new Error(\"Swift.ScrollViewReader requires an iOS native build\");\n}\nfunction ScrollView(_props) {\n throw new Error(\"Swift.ScrollView requires an iOS native build\");\n}\nfunction LazyVStack(_props) {\n throw new Error(\"Swift.LazyVStack requires an iOS native build\");\n}\nfunction LazyHStack(_props) {\n throw new Error(\"Swift.LazyHStack requires an iOS native build\");\n}\nfunction LazyVGrid(_props) {\n throw new Error(\"Swift.LazyVGrid requires an iOS native build\");\n}\nfunction LazyHGrid(_props) {\n throw new Error(\"Swift.LazyHGrid requires an iOS native build\");\n}\nfunction Grid(_props) {\n throw new Error(\"Swift.Grid requires an iOS native build\");\n}\nfunction GridRow(_props) {\n throw new Error(\"Swift.GridRow requires an iOS native build\");\n}\nfunction ControlGroup(_props) {\n throw new Error(\"Swift.ControlGroup requires an iOS native build\");\n}\nfunction DisclosureGroup(_props) {\n throw new Error(\"Swift.DisclosureGroup requires an iOS native build\");\n}\nfunction Divider(_props) {\n throw new Error(\"Swift.Divider requires an iOS native build\");\n}\nfunction UIKitView(_props) {\n throw new Error(\"Swift.UIKitView requires an iOS native build\");\n}\nfunction UIKitContent(_props) {\n throw new Error(\"Swift.UIKitContent requires an iOS native build\");\n}\nfunction collectionCellSource(_view) {\n return Promise.reject(new Error(\"Swift.collectionCellSource requires an iOS native build\"));\n}\nfunction tableCellSource(_view) {\n return Promise.reject(new Error(\"Swift.tableCellSource requires an iOS native build\"));\n}\nfunction Link(_props) {\n throw new Error(\"Swift.Link requires an iOS native build\");\n}\nfunction Group(_props) {\n throw new Error(\"Swift.Group requires an iOS native build\");\n}\nfunction OverlayContent(_props) {\n throw new Error(\"Swift.Overlay.Content requires an iOS native build\");\n}\nfunction OverlayFn(_props) {\n throw new Error(\"Swift.Overlay requires an iOS native build\");\n}\nvar Overlay = Object.assign(OverlayFn, {\n Content: OverlayContent\n});\nfunction ViewSlotFn(_props) {\n throw new Error(\"Swift.ViewSlot requires an iOS native build\");\n}\nvar ViewSlot = Object.assign(ViewSlotFn, {\n Content: OverlayContent\n});\nfunction SwipeActionsActions(_props) {\n throw new Error(\"Swift.SwipeActions.Actions requires an iOS native build\");\n}\nfunction SwipeActionsFn(_props) {\n throw new Error(\"Swift.SwipeActions requires an iOS native build\");\n}\nvar SwipeActions = Object.assign(SwipeActionsFn, {\n Actions: SwipeActionsActions\n});\nfunction Page(_props) {\n throw new Error(\"Swift.Page requires an iOS native build\");\n}\nfunction Pager(_props) {\n throw new Error(\"Swift.Pager requires an iOS native build\");\n}\nfunction NavigationStack(_props) {\n throw new Error(\"Swift.NavigationStack requires an iOS native build\");\n}\nfunction NavigationSplitViewFn(_props) {\n throw new Error(\"Swift.NavigationSplitView requires an iOS native build\");\n}\nfunction NavigationSplitViewSidebar(_props) {\n throw new Error(\"Swift.NavigationSplitView.Sidebar requires an iOS native build\");\n}\nfunction NavigationSplitViewContent(_props) {\n throw new Error(\"Swift.NavigationSplitView.Content requires an iOS native build\");\n}\nfunction NavigationSplitViewDetail(_props) {\n throw new Error(\"Swift.NavigationSplitView.Detail requires an iOS native build\");\n}\nvar NavigationSplitView = Object.assign(NavigationSplitViewFn, {\n Sidebar: NavigationSplitViewSidebar,\n Content: NavigationSplitViewContent,\n Detail: NavigationSplitViewDetail\n});\nfunction ToolbarMarker(_props) {\n throw new Error(\"Swift.Toolbar requires an iOS native build\");\n}\nfunction ToolbarContent(_props) {\n throw new Error(\"Swift.Toolbar.Content requires an iOS native build\");\n}\nvar Toolbar = Object.assign(ToolbarMarker, {\n Content: ToolbarContent\n});\nfunction ToolbarItem(_props) {\n throw new Error(\"Swift.ToolbarItem requires an iOS native build\");\n}\nfunction ToolbarItemGroup(_props) {\n throw new Error(\"Swift.ToolbarItemGroup requires an iOS native build\");\n}\nfunction ToolbarSpacer(_props) {\n throw new Error(\"Swift.ToolbarSpacer requires an iOS native build\");\n}\nfunction MapWithControlsStub(_props) {\n throw new Error(\"Swift.Map requires an iOS native build\");\n}\nfunction PickerWithChildrenStub(_props) {\n throw new Error(\"Swift.Picker requires an iOS native build\");\n}\nfunction PhaseAnimator(_props) {\n throw new Error(\"Swift.PhaseAnimator requires an iOS native build\");\n}\nfunction KeyframeAnimator(_props) {\n throw new Error(\"Swift.KeyframeAnimator requires an iOS native build\");\n}\nvar Swift = {\n ArrangementView,\n TabView,\n Tab,\n TabSection,\n TabViewBottomAccessory,\n TabViewSlot,\n Menu,\n ContextMenu,\n Sheet,\n FullScreenCover,\n Popover,\n HStack,\n VStack,\n ZStack,\n Form,\n Section,\n Glass,\n GlassEffectContainer,\n GeometryReader,\n TimelineView,\n OutlineGroup,\n Table,\n Canvas,\n Angle,\n Path,\n Shading,\n Gradient,\n LabeledContent,\n Button,\n Spacer,\n Slot,\n List,\n ScrollView,\n ScrollViewReader,\n LazyVStack,\n LazyHStack,\n LazyVGrid,\n LazyHGrid,\n Grid,\n GridRow,\n ControlGroup,\n DisclosureGroup,\n Divider,\n UIKitView,\n UIKitContent,\n collectionCellSource,\n tableCellSource,\n Link,\n Group,\n GroupBox,\n ViewThatFits,\n Overlay,\n ViewSlot,\n SwipeActions,\n Pager,\n Page,\n NavigationStack,\n NavigationSplitView,\n Toolbar,\n ToolbarItem,\n ToolbarItemGroup,\n ToolbarSpacer,\n PhaseAnimator,\n KeyframeAnimator,\n KeyframeTrack,\n LinearKeyframe,\n SpringKeyframe,\n CubicKeyframe,\n MoveKeyframe,\n withAnimation(_animation, _body, _completion, _completionCriteria) {\n throw new Error(\"Swift.withAnimation requires an iOS native build\");\n },\n ...unsupportedControls,\n Map: MapWithControlsStub,\n Picker: PickerWithChildrenStub\n};\nexport {\n Swift\n};\n//# sourceMappingURL=unsupported.js.map\n"],"mappings":";;;;;;AAIA,SAAS,QAAQ,QAAQ;CACvB,MAAM,IAAI,MAAM,4CAA4C;AAC9D;AACA,SAAS,IAAI,QAAQ;CACnB,MAAM,IAAI,MAAM,wCAAwC;AAC1D;AACA,SAAS,WAAW,QAAQ;CAC1B,MAAM,IAAI,MAAM,+CAA+C;AACjE;AACA,SAAS,uBAAuB,QAAQ;CACtC,MAAM,IAAI,MAAM,2DAA2D;AAC7E;AACA,SAAS,YAAY,QAAQ;CAC3B,MAAM,IAAI,MAAM,gDAAgD;AAClE;AACA,SAAS,KAAK,QAAQ;CACpB,MAAM,IAAI,MAAM,yCAAyC;AAC3D;AACA,SAAS,YAAY,QAAQ;CAC3B,MAAM,IAAI,MAAM,gDAAgD;AAClE;AACA,SAAS,MAAM,QAAQ;CACrB,MAAM,IAAI,MAAM,0CAA0C;AAC5D;AACA,SAAS,gBAAgB,QAAQ;CAC/B,MAAM,IAAI,MAAM,oDAAoD;AACtE;AACA,SAAS,QAAQ,QAAQ;CACvB,MAAM,IAAI,MAAM,4CAA4C;AAC9D;AACA,SAAS,OAAO,QAAQ;CACtB,MAAM,IAAI,MAAM,2CAA2C;AAC7D;AACA,SAAS,OAAO,QAAQ;CACtB,MAAM,IAAI,MAAM,2CAA2C;AAC7D;AACA,SAAS,OAAO,QAAQ;CACtB,MAAM,IAAI,MAAM,2CAA2C;AAC7D;AACA,SAAS,OAAO,QAAQ;CACtB,MAAM,IAAI,M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AAM,IAAI,MAAM,kDAAkD;AACpE;AACA,SAAS,iBAAiB,QAAQ;CAChC,MAAM,IAAI,MAAM,qDAAqD;AACvE;AACA,IAAI,QAAQ;CACV;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,cAAc,YAAY,OAAO,aAAa,qBAAqB;EACjE,MAAM,IAAI,MAAM,kDAAkD;CACpE;CACA,GAAG;CACH,KAAK;CACL,QAAQ;AACV"}
|
|
1
|
+
{"version":3,"file":"unsupported.native.js","names":[],"sources":["esm/platform/unsupported.native.js"],"sourcesContent":["import { Angle, Gradient, Path, Shading } from \"./canvas\";\nimport { unsupportedControls } from \"./generated/unsupportedControls\";\nimport { ArrangementView } from \"./ArrangementView\";\nimport { CubicKeyframe, KeyframeTrack, LinearKeyframe, MoveKeyframe, SpringKeyframe } from \"./keyframes\";\nfunction TabView(_props) {\n throw new Error(\"Swift.TabView requires an iOS native build\");\n}\nfunction Tab(_props) {\n throw new Error(\"Swift.Tab requires an iOS native build\");\n}\nfunction TabSection(_props) {\n throw new Error(\"Swift.TabSection requires an iOS native build\");\n}\nfunction TabViewBottomAccessory(_props) {\n throw new Error(\"Swift.TabViewBottomAccessory requires an iOS native build\");\n}\nfunction TabViewSlot(_props) {\n throw new Error(\"Swift.TabViewSlot requires an iOS native build\");\n}\nfunction Menu(_props) {\n throw new Error(\"Swift.Menu requires an iOS native build\");\n}\nfunction ContextMenu(_props) {\n throw new Error(\"Swift.ContextMenu requires an iOS native build\");\n}\nfunction Sheet(_props) {\n throw new Error(\"Swift.Sheet requires an iOS native build\");\n}\nfunction FullScreenCover(_props) {\n throw new Error(\"Swift.FullScreenCover requires an iOS native build\");\n}\nfunction Popover(_props) {\n throw new Error(\"Swift.Popover requires an iOS native build\");\n}\nfunction HStack(_props) {\n throw new Error(\"Swift.HStack requires an iOS native build\");\n}\nfunction VStack(_props) {\n throw new Error(\"Swift.VStack requires an iOS native build\");\n}\nfunction ZStack(_props) {\n throw new Error(\"Swift.ZStack requires an iOS native build\");\n}\nfunction Spacer(_props) {\n throw new Error(\"Swift.Spacer requires an iOS native build\");\n}\nfunction Form(_props) {\n throw new Error(\"Swift.Form requires an iOS native build\");\n}\nfunction Section(_props) {\n throw new Error(\"Swift.Section requires an iOS native build\");\n}\nfunction LabeledContent(_props) {\n throw new Error(\"Swift.LabeledContent requires an iOS native build\");\n}\nfunction GroupBox(_props) {\n throw new Error(\"Swift.GroupBox requires an iOS native build\");\n}\nfunction ViewThatFits(_props) {\n throw new Error(\"Swift.ViewThatFits requires an iOS native build\");\n}\nfunction Button(_props) {\n throw new Error(\"Swift.Button requires an iOS native build\");\n}\nfunction Glass(_props) {\n throw new Error(\"Swift.Glass requires an iOS native build\");\n}\nfunction GlassEffectContainer(_props) {\n throw new Error(\"Swift.GlassEffectContainer requires an iOS native build\");\n}\nfunction GeometryReader(_props) {\n throw new Error(\"Swift.GeometryReader requires an iOS native build\");\n}\nfunction TimelineView(_props) {\n throw new Error(\"Swift.TimelineView requires an iOS native build\");\n}\nfunction OutlineGroup(_props) {\n throw new Error(\"Swift.OutlineGroup requires an iOS native build\");\n}\nfunction Table(_props) {\n throw new Error(\"Swift.Table requires an iOS native build\");\n}\nfunction Canvas(_props) {\n throw new Error(\"Swift.Canvas requires an iOS native build\");\n}\nfunction Slot(_props) {\n throw new Error(\"Swift.Slot requires an iOS native build\");\n}\nfunction List(_props) {\n throw new Error(\"Swift.List requires an iOS native build\");\n}\nfunction ScrollViewReader(_props) {\n throw new Error(\"Swift.ScrollViewReader requires an iOS native build\");\n}\nfunction ScrollView(_props) {\n throw new Error(\"Swift.ScrollView requires an iOS native build\");\n}\nfunction LazyVStack(_props) {\n throw new Error(\"Swift.LazyVStack requires an iOS native build\");\n}\nfunction LazyHStack(_props) {\n throw new Error(\"Swift.LazyHStack requires an iOS native build\");\n}\nfunction LazyVGrid(_props) {\n throw new Error(\"Swift.LazyVGrid requires an iOS native build\");\n}\nfunction LazyHGrid(_props) {\n throw new Error(\"Swift.LazyHGrid requires an iOS native build\");\n}\nfunction Grid(_props) {\n throw new Error(\"Swift.Grid requires an iOS native build\");\n}\nfunction GridRow(_props) {\n throw new Error(\"Swift.GridRow requires an iOS native build\");\n}\nfunction ControlGroup(_props) {\n throw new Error(\"Swift.ControlGroup requires an iOS native build\");\n}\nfunction DisclosureGroup(_props) {\n throw new Error(\"Swift.DisclosureGroup requires an iOS native build\");\n}\nfunction Divider(_props) {\n throw new Error(\"Swift.Divider requires an iOS native build\");\n}\nfunction UIKitView(_props) {\n throw new Error(\"Swift.UIKitView requires an iOS native build\");\n}\nfunction UIKitContent(_props) {\n throw new Error(\"Swift.UIKitContent requires an iOS native build\");\n}\nfunction collectionCellSource(_view) {\n return Promise.reject(new Error(\"Swift.collectionCellSource requires an iOS native build\"));\n}\nfunction tableCellSource(_view) {\n return Promise.reject(new Error(\"Swift.tableCellSource requires an iOS native build\"));\n}\nfunction Link(_props) {\n throw new Error(\"Swift.Link requires an iOS native build\");\n}\nfunction Group(_props) {\n throw new Error(\"Swift.Group requires an iOS native build\");\n}\nfunction OverlayContent(_props) {\n throw new Error(\"Swift.Overlay.Content requires an iOS native build\");\n}\nfunction OverlayFn(_props) {\n throw new Error(\"Swift.Overlay requires an iOS native build\");\n}\nvar Overlay = Object.assign(OverlayFn, {\n Content: OverlayContent\n});\nfunction ViewSlotFn(_props) {\n throw new Error(\"Swift.ViewSlot requires an iOS native build\");\n}\nvar ViewSlot = Object.assign(ViewSlotFn, {\n Content: OverlayContent\n});\nfunction SwipeActionsActions(_props) {\n throw new Error(\"Swift.SwipeActions.Actions requires an iOS native build\");\n}\nfunction SwipeActionsFn(_props) {\n throw new Error(\"Swift.SwipeActions requires an iOS native build\");\n}\nvar SwipeActions = Object.assign(SwipeActionsFn, {\n Actions: SwipeActionsActions\n});\nfunction Page(_props) {\n throw new Error(\"Swift.Page requires an iOS native build\");\n}\nfunction Pager(_props) {\n throw new Error(\"Swift.Pager requires an iOS native build\");\n}\nfunction NavigationStack(_props) {\n throw new Error(\"Swift.NavigationStack requires an iOS native build\");\n}\nfunction NavigationSplitViewFn(_props) {\n throw new Error(\"Swift.NavigationSplitView requires an iOS native build\");\n}\nfunction NavigationSplitViewSidebar(_props) {\n throw new Error(\"Swift.NavigationSplitView.Sidebar requires an iOS native build\");\n}\nfunction NavigationSplitViewContent(_props) {\n throw new Error(\"Swift.NavigationSplitView.Content requires an iOS native build\");\n}\nfunction NavigationSplitViewDetail(_props) {\n throw new Error(\"Swift.NavigationSplitView.Detail requires an iOS native build\");\n}\nvar NavigationSplitView = Object.assign(NavigationSplitViewFn, {\n Sidebar: NavigationSplitViewSidebar,\n Content: NavigationSplitViewContent,\n Detail: NavigationSplitViewDetail\n});\nfunction ToolbarMarker(_props) {\n throw new Error(\"Swift.Toolbar requires an iOS native build\");\n}\nfunction ToolbarContent(_props) {\n throw new Error(\"Swift.Toolbar.Content requires an iOS native build\");\n}\nvar Toolbar = Object.assign(ToolbarMarker, {\n Content: ToolbarContent\n});\nfunction ToolbarItem(_props) {\n throw new Error(\"Swift.ToolbarItem requires an iOS native build\");\n}\nfunction ToolbarItemGroup(_props) {\n throw new Error(\"Swift.ToolbarItemGroup requires an iOS native build\");\n}\nfunction ToolbarSpacer(_props) {\n throw new Error(\"Swift.ToolbarSpacer requires an iOS native build\");\n}\nfunction DefaultToolbarItem(_props) {\n throw new Error(\"Swift.DefaultToolbarItem requires an iOS native build\");\n}\nfunction MapWithControlsStub(_props) {\n throw new Error(\"Swift.Map requires an iOS native build\");\n}\nfunction PickerWithChildrenStub(_props) {\n throw new Error(\"Swift.Picker requires an iOS native build\");\n}\nfunction PhaseAnimator(_props) {\n throw new Error(\"Swift.PhaseAnimator requires an iOS native build\");\n}\nfunction KeyframeAnimator(_props) {\n throw new Error(\"Swift.KeyframeAnimator requires an iOS native build\");\n}\nvar Swift = {\n ArrangementView,\n TabView,\n Tab,\n TabSection,\n TabViewBottomAccessory,\n TabViewSlot,\n Menu,\n ContextMenu,\n Sheet,\n FullScreenCover,\n Popover,\n HStack,\n VStack,\n ZStack,\n Form,\n Section,\n Glass,\n GlassEffectContainer,\n GeometryReader,\n TimelineView,\n OutlineGroup,\n Table,\n Canvas,\n Angle,\n Path,\n Shading,\n Gradient,\n LabeledContent,\n Button,\n Spacer,\n Slot,\n List,\n ScrollView,\n ScrollViewReader,\n LazyVStack,\n LazyHStack,\n LazyVGrid,\n LazyHGrid,\n Grid,\n GridRow,\n ControlGroup,\n DisclosureGroup,\n Divider,\n UIKitView,\n UIKitContent,\n collectionCellSource,\n tableCellSource,\n Link,\n Group,\n GroupBox,\n ViewThatFits,\n Overlay,\n ViewSlot,\n SwipeActions,\n Pager,\n Page,\n NavigationStack,\n NavigationSplitView,\n Toolbar,\n ToolbarItem,\n ToolbarItemGroup,\n ToolbarSpacer,\n DefaultToolbarItem,\n PhaseAnimator,\n KeyframeAnimator,\n KeyframeTrack,\n LinearKeyframe,\n SpringKeyframe,\n CubicKeyframe,\n MoveKeyframe,\n withAnimation(_animation, _body, _completion, _completionCriteria) {\n throw new Error(\"Swift.withAnimation requires an iOS native build\");\n },\n ...unsupportedControls,\n Map: MapWithControlsStub,\n Picker: PickerWithChildrenStub\n};\nexport {\n Swift\n};\n//# sourceMappingURL=unsupported.js.map\n"],"mappings":";;;;;;AAIA,SAAS,QAAQ,QAAQ;CACvB,MAAM,IAAI,MAAM,4CAA4C;AAC9D;AACA,SAAS,IAAI,QAAQ;CACnB,MAAM,IAAI,MAAM,wCAAwC;AAC1D;AACA,SAAS,WAAW,QAAQ;CAC1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;CACA;CACA,cAAc,YAAY,OAAO,aAAa,qBAAqB;EACjE,MAAM,IAAI,MAAM,kDAAkD;CACpE;CACA,GAAG;CACH,KAAK;CACL,QAAQ;AACV"}
|
|
@@ -155,7 +155,7 @@ using namespace facebook::react;
|
|
|
155
155
|
|
|
156
156
|
@end
|
|
157
157
|
|
|
158
|
-
// the
|
|
158
|
+
// the four markers are one Swift view configured by kind, so each component view only
|
|
159
159
|
// reads its own props into that shared shape.
|
|
160
160
|
@implementation OneNativeToolbarItemComponentView {
|
|
161
161
|
OneNativeToolbarMarkerView *_markerView;
|
|
@@ -188,7 +188,8 @@ using namespace facebook::react;
|
|
|
188
188
|
placement:RCTNSStringFromString(next.placement)
|
|
189
189
|
sizing:@"flexible"
|
|
190
190
|
label:@""
|
|
191
|
-
systemImage:@""
|
|
191
|
+
systemImage:@""
|
|
192
|
+
defaultItem:@""];
|
|
192
193
|
[_markerView configureStyle:OneNativeStyleDictionary(next.swiftStyle)];
|
|
193
194
|
[super updateProps:props oldProps:oldProps];
|
|
194
195
|
}
|
|
@@ -226,7 +227,8 @@ using namespace facebook::react;
|
|
|
226
227
|
placement:RCTNSStringFromString(next.placement)
|
|
227
228
|
sizing:@"flexible"
|
|
228
229
|
label:RCTNSStringFromString(next.label)
|
|
229
|
-
systemImage:RCTNSStringFromString(next.systemImage)
|
|
230
|
+
systemImage:RCTNSStringFromString(next.systemImage)
|
|
231
|
+
defaultItem:@""];
|
|
230
232
|
[_markerView configureStyle:OneNativeStyleDictionary(next.swiftStyle)];
|
|
231
233
|
[super updateProps:props oldProps:oldProps];
|
|
232
234
|
}
|
|
@@ -257,7 +259,39 @@ using namespace facebook::react;
|
|
|
257
259
|
placement:RCTNSStringFromString(next.placement)
|
|
258
260
|
sizing:RCTNSStringFromString(next.sizing)
|
|
259
261
|
label:@""
|
|
260
|
-
systemImage:@""
|
|
262
|
+
systemImage:@""
|
|
263
|
+
defaultItem:@""];
|
|
264
|
+
[super updateProps:props oldProps:oldProps];
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
@end
|
|
268
|
+
|
|
269
|
+
@implementation OneNativeToolbarDefaultItemComponentView {
|
|
270
|
+
OneNativeToolbarMarkerView *_markerView;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
+ (ComponentDescriptorProvider)componentDescriptorProvider {
|
|
274
|
+
return concreteComponentDescriptorProvider<OneNativeToolbarDefaultItemComponentDescriptor>();
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
- (instancetype)initWithFrame:(CGRect)frame {
|
|
278
|
+
if (self = [super initWithFrame:frame]) {
|
|
279
|
+
_props = std::make_shared<const OneNativeToolbarDefaultItemProps>();
|
|
280
|
+
_markerView = [OneNativeToolbarMarkerView new];
|
|
281
|
+
self.container = _markerView;
|
|
282
|
+
self.contentView = _markerView;
|
|
283
|
+
}
|
|
284
|
+
return self;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
- (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &)oldProps {
|
|
288
|
+
const auto &next = *std::static_pointer_cast<const OneNativeToolbarDefaultItemProps>(props);
|
|
289
|
+
[_markerView configureWithKind:@"defaultItem"
|
|
290
|
+
placement:RCTNSStringFromString(next.placement)
|
|
291
|
+
sizing:@"flexible"
|
|
292
|
+
label:@""
|
|
293
|
+
systemImage:@""
|
|
294
|
+
defaultItem:RCTNSStringFromString(next.kind)];
|
|
261
295
|
[super updateProps:props oldProps:oldProps];
|
|
262
296
|
}
|
|
263
297
|
|
|
@@ -379,6 +379,19 @@ enum OneNativeGenerated {
|
|
|
379
379
|
default: preconditionFailure("invalid SpacerSizing: \(value)")
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
+
static func toolbarDefaultItemKind(_ value: String) -> ToolbarDefaultItemKind {
|
|
383
|
+
switch value {
|
|
384
|
+
case "sidebarToggle":
|
|
385
|
+
return .sidebarToggle
|
|
386
|
+
case "title":
|
|
387
|
+
if #available(iOS 18, *) { return .title }
|
|
388
|
+
preconditionFailure("ToolbarDefaultItemKind.title requires iOS 18")
|
|
389
|
+
case "search":
|
|
390
|
+
if #available(iOS 26, *) { return .search }
|
|
391
|
+
preconditionFailure("ToolbarDefaultItemKind.search requires iOS 26")
|
|
392
|
+
default: preconditionFailure("invalid ToolbarDefaultItemKind: \(value)")
|
|
393
|
+
}
|
|
394
|
+
}
|
|
382
395
|
#if ONE_GROUP_WALLET
|
|
383
396
|
static func payWithApplePayButtonLabel(_ value: String) -> PayWithApplePayButtonLabel {
|
|
384
397
|
switch value {
|
|
@@ -19,6 +19,7 @@ struct OneNativeSectionAction: Decodable, Equatable, Identifiable {
|
|
|
19
19
|
struct OneNativeTabModifiers: Decodable, Equatable {
|
|
20
20
|
var image: String?
|
|
21
21
|
var labelStyle: String?
|
|
22
|
+
var navigationStack: Bool?
|
|
22
23
|
var section: String?
|
|
23
24
|
var disabled: Bool?
|
|
24
25
|
var hidden: Bool?
|
|
@@ -509,17 +510,22 @@ private struct TabViewContent: View {
|
|
|
509
510
|
@TabContentBuilder<String>
|
|
510
511
|
private func tab(_ page: OneNativeTabItem) -> some TabContent<String> {
|
|
511
512
|
Tab(value: page.id, role: OneNativeGenerated.tabRole(page.role)) {
|
|
512
|
-
|
|
513
|
-
slot(page)
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
513
|
+
if page.modifiers.navigationStack == false {
|
|
514
|
+
styled(slot(page).background(ActionTabHook(host: host, page: page.view)), page)
|
|
515
|
+
} else {
|
|
516
|
+
NavigationStack {
|
|
517
|
+
styled(
|
|
518
|
+
slot(page)
|
|
519
|
+
.background(ActionTabHook(host: host, page: page.view))
|
|
520
|
+
.containerBackground(.clear, for: .navigation),
|
|
521
|
+
page
|
|
522
|
+
)
|
|
523
|
+
.toolbar {
|
|
524
|
+
ForEach(model.toolbarEntries) { entry in
|
|
525
|
+
OneNativeToolbarEntryContent(entry: entry)
|
|
526
|
+
}
|
|
521
527
|
}
|
|
522
|
-
|
|
528
|
+
}
|
|
523
529
|
}
|
|
524
530
|
} label: {
|
|
525
531
|
if let image = page.modifiers.image {
|
|
@@ -534,6 +540,13 @@ private struct TabViewContent: View {
|
|
|
534
540
|
.oneNativeTabContent(page.modifiers)
|
|
535
541
|
}
|
|
536
542
|
|
|
543
|
+
@available(iOS 18.0, *)
|
|
544
|
+
private func styled(_ content: some View, _ page: OneNativeTabItem) -> some View {
|
|
545
|
+
content
|
|
546
|
+
.oneNativeStyle(page.style, emit: page.emit)
|
|
547
|
+
.toolbarVisibility(OneNativeGenerated.visibility(model.tabBarVisibility), for: .tabBar)
|
|
548
|
+
}
|
|
549
|
+
|
|
537
550
|
private var legacyTabView: some View {
|
|
538
551
|
TabView(selection: Binding(get: { model.controlled.value }, set: { model.select($0) })) {
|
|
539
552
|
ForEach(model.groups.flatMap(\.tabs)) { page in
|
|
@@ -7,7 +7,7 @@ import UIKit
|
|
|
7
7
|
// that is what .toolbar { } builds, and the hosting NavigationStack renders the entries
|
|
8
8
|
// with a ForEach the way SwiftUI itself composes toolbar content.
|
|
9
9
|
struct OneNativeToolbarEntry: Identifiable {
|
|
10
|
-
enum Kind { case item, group, spacer }
|
|
10
|
+
enum Kind { case item, group, spacer, defaultItem }
|
|
11
11
|
|
|
12
12
|
let id: ObjectIdentifier
|
|
13
13
|
let kind: Kind
|
|
@@ -15,6 +15,7 @@ struct OneNativeToolbarEntry: Identifiable {
|
|
|
15
15
|
let sizing: String
|
|
16
16
|
let label: String
|
|
17
17
|
let systemImage: String
|
|
18
|
+
let defaultItem: String
|
|
18
19
|
let content: AnyView?
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -51,6 +52,12 @@ struct OneNativeToolbarEntryContent: ToolbarContent {
|
|
|
51
52
|
OneNativeGenerated.spacerSizing(entry.sizing),
|
|
52
53
|
placement: OneNativeGenerated.toolbarItemPlacement(entry.placement))
|
|
53
54
|
}
|
|
55
|
+
case .defaultItem:
|
|
56
|
+
if #available(iOS 26.0, *) {
|
|
57
|
+
DefaultToolbarItem(
|
|
58
|
+
kind: OneNativeGenerated.toolbarDefaultItemKind(entry.defaultItem),
|
|
59
|
+
placement: OneNativeGenerated.toolbarItemPlacement(entry.placement))
|
|
60
|
+
}
|
|
54
61
|
}
|
|
55
62
|
}
|
|
56
63
|
}
|
|
@@ -61,6 +68,7 @@ final class OneNativeToolbarMarkerModel: ObservableObject {
|
|
|
61
68
|
@Published var sizing = "flexible"
|
|
62
69
|
@Published var label = ""
|
|
63
70
|
@Published var systemImage = ""
|
|
71
|
+
@Published var defaultItem = ""
|
|
64
72
|
@Published var swiftStyle = OneNativeStyle()
|
|
65
73
|
var onEntryChange: (() -> Void)?
|
|
66
74
|
var onSDKEvent: ((String, String) -> Void)?
|
|
@@ -77,7 +85,7 @@ private struct OneNativeToolbarMarkerContent: View {
|
|
|
77
85
|
}
|
|
78
86
|
}
|
|
79
87
|
|
|
80
|
-
// a ToolbarItem, a ToolbarItemGroup, or a
|
|
88
|
+
// a ToolbarItem, a ToolbarItemGroup, a ToolbarSpacer, or a DefaultToolbarItem. all four are the same marker:
|
|
81
89
|
// they compose their children and hand the hosting bar one entry to render, and they
|
|
82
90
|
// render nothing where they sit.
|
|
83
91
|
@objcMembers
|
|
@@ -94,13 +102,14 @@ public final class OneNativeToolbarMarkerView: OneNativeContainerView {
|
|
|
94
102
|
|
|
95
103
|
required init?(coder: NSCoder) { fatalError("init(coder:) is unavailable") }
|
|
96
104
|
|
|
97
|
-
public func configure(kind: String, placement: String, sizing: String, label: String, systemImage: String) {
|
|
105
|
+
public func configure(kind: String, placement: String, sizing: String, label: String, systemImage: String, defaultItem: String) {
|
|
98
106
|
var changed = false
|
|
99
107
|
if model.kind != kind { model.kind = kind; changed = true }
|
|
100
108
|
if model.placement != placement { model.placement = placement; changed = true }
|
|
101
109
|
if model.sizing != sizing { model.sizing = sizing; changed = true }
|
|
102
110
|
if model.label != label { model.label = label; changed = true }
|
|
103
111
|
if model.systemImage != systemImage { model.systemImage = systemImage; changed = true }
|
|
112
|
+
if model.defaultItem != defaultItem { model.defaultItem = defaultItem; changed = true }
|
|
104
113
|
if changed { model.onEntryChange?() }
|
|
105
114
|
}
|
|
106
115
|
|
|
@@ -114,7 +123,8 @@ public final class OneNativeToolbarMarkerView: OneNativeContainerView {
|
|
|
114
123
|
|
|
115
124
|
func entry() -> OneNativeToolbarEntry {
|
|
116
125
|
let kind: OneNativeToolbarEntry.Kind =
|
|
117
|
-
model.kind == "group" ? .group : model.kind == "spacer" ? .spacer
|
|
126
|
+
model.kind == "group" ? .group : model.kind == "spacer" ? .spacer
|
|
127
|
+
: model.kind == "defaultItem" ? .defaultItem : .item
|
|
118
128
|
return OneNativeToolbarEntry(
|
|
119
129
|
id: ObjectIdentifier(self),
|
|
120
130
|
kind: kind,
|
|
@@ -122,6 +132,7 @@ public final class OneNativeToolbarMarkerView: OneNativeContainerView {
|
|
|
122
132
|
sizing: model.sizing,
|
|
123
133
|
label: model.label,
|
|
124
134
|
systemImage: model.systemImage,
|
|
135
|
+
defaultItem: model.defaultItem,
|
|
125
136
|
content: compositionContent()
|
|
126
137
|
)
|
|
127
138
|
}
|
|
@@ -165,7 +176,7 @@ public final class OneNativeToolbarView: OneNativeContainerView {
|
|
|
165
176
|
public override func insertChild(_ child: UIView, at index: Int) {
|
|
166
177
|
guard let marker = child as? OneNativeToolbarMarkerView else {
|
|
167
178
|
preconditionFailure(
|
|
168
|
-
"Swift.Toolbar takes Swift.ToolbarItem, Swift.ToolbarItemGroup, and Swift.
|
|
179
|
+
"Swift.Toolbar takes Swift.ToolbarItem, Swift.ToolbarItemGroup, Swift.ToolbarSpacer, and Swift.DefaultToolbarItem children")
|
|
169
180
|
}
|
|
170
181
|
marker.setOnEntryChange { [weak self] in self?.entryChanged() }
|
|
171
182
|
super.insertChild(child, at: index)
|
|
@@ -64,17 +64,22 @@ struct OneNativeMeasuredStandalone<Content: View>: View {
|
|
|
64
64
|
// update pass; a UIKit-side measurement would need explicit scheduling. composed, the
|
|
65
65
|
// parent measures it instead.
|
|
66
66
|
extension View {
|
|
67
|
-
|
|
67
|
+
// composed, no measuring wrapper at all: any modifier outside the row's own style
|
|
68
|
+
// hides its list tag from the enclosing List, so a tagged row would never select.
|
|
69
|
+
@ViewBuilder func oneNativeMeasured(
|
|
68
70
|
_ standalone: Bool, _ onHeight: ((CGFloat) -> Void)?
|
|
69
71
|
) -> some View {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
if standalone {
|
|
73
|
+
self
|
|
74
|
+
.fixedSize(horizontal: false, vertical: true)
|
|
75
|
+
.onGeometryChange(for: CGFloat.self) { proxy in
|
|
76
|
+
proxy.size.height
|
|
77
|
+
} action: { height in
|
|
78
|
+
onHeight?(height)
|
|
79
|
+
}
|
|
80
|
+
} else {
|
|
81
|
+
self
|
|
82
|
+
}
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
@ViewBuilder func oneNativeScheme(_ standalone: Bool, _ scheme: ColorScheme) -> some View {
|