UNPKG

one

Version:

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

8 lines (7 loc) • 4.64 kB
{ "version": 3, "sources": ["src/platform/specs/OneNativeTextEditorNativeComponent.ts"], "sourcesContent": ["// generated by bun run generate from the SwiftUI SDK and codegen/catalog.ts.\n// edit the generator or catalog, then regenerate.\nimport type { ProcessedColorValue, ViewProps } from 'react-native';\nimport type { DirectEventHandler, Int32, Double, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';\nimport codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';\ntype OneNativeStyleNative = Readonly<{\n fontSize?: WithDefault<Double, -1>;\n fontWeight?: string;\n fontDesign?: string;\n textStyle?: string;\n foregroundStyle?: ProcessedColorValue;\n tint?: ProcessedColorValue;\n background?: ProcessedColorValue;\n padding?: WithDefault<Double, -1>;\n paddingTop?: WithDefault<Double, -1>;\n paddingLeading?: WithDefault<Double, -1>;\n paddingBottom?: WithDefault<Double, -1>;\n paddingTrailing?: WithDefault<Double, -1>;\n width?: WithDefault<Double, -1>;\n height?: WithDefault<Double, -1>;\n minWidth?: WithDefault<Double, -1>;\n idealWidth?: WithDefault<Double, -1>;\n maxWidth?: WithDefault<Double, -1>;\n minHeight?: WithDefault<Double, -1>;\n idealHeight?: WithDefault<Double, -1>;\n maxHeight?: WithDefault<Double, -1>;\n cornerRadius?: WithDefault<Double, -1>;\n opacity?: WithDefault<Double, -1>;\n borderColor?: ProcessedColorValue;\n borderWidth?: WithDefault<Double, -1>;\n glassEffect?: string;\n glassEffectInteractive?: boolean;\n glassEffectTint?: ProcessedColorValue;\n glassEffectShape?: string;\n material?: string;\n sdkModifiers?: string;\n}>;\ninterface NativeProps extends ViewProps {\n value: string;\n acknowledgedEvent: Int32;\n revision: Int32;\n syncStateId: Int32;\n focused: boolean;\n acknowledgedFocusEvent: Int32;\n focusRevision: Int32;\n disabled: boolean;\n textInputAutocapitalization: string;\n autocorrectionDisabled: boolean;\n keyboardType: string;\n textContentType: string;\n swiftStyle?: OneNativeStyleNative;\n onNativeSDKEvent?: DirectEventHandler<Readonly<{\n name: string;\n value: string;\n }>>;\n onNativeTextEditorValueChange?: DirectEventHandler<Readonly<{\n value: string;\n eventCount: Int32;\n revision: Int32;\n }>>;\n onNativeTextEditorFocusChange?: DirectEventHandler<Readonly<{\n value: boolean;\n eventCount: Int32;\n revision: Int32;\n }>>;\n}\nconst NativeComponentRegistry = require('react-native/Libraries/NativeComponent/NativeComponentRegistry');\nconst {\n ConditionallyIgnoredEventHandlers\n} = require('react-native/Libraries/NativeComponent/ViewConfigIgnore');\nlet nativeComponentName = 'OneNativeTextEditor';\nexport const __INTERNAL_VIEW_CONFIG = {\n uiViewClassName: \"OneNativeTextEditor\",\n directEventTypes: {\n topNativeSDKEvent: {\n registrationName: \"onNativeSDKEvent\"\n },\n topNativeTextEditorValueChange: {\n registrationName: \"onNativeTextEditorValueChange\"\n },\n topNativeTextEditorFocusChange: {\n registrationName: \"onNativeTextEditorFocusChange\"\n }\n },\n validAttributes: {\n value: true,\n acknowledgedEvent: true,\n revision: true,\n syncStateId: true,\n focused: true,\n acknowledgedFocusEvent: true,\n focusRevision: true,\n disabled: true,\n textInputAutocapitalization: true,\n autocorrectionDisabled: true,\n keyboardType: true,\n textContentType: true,\n swiftStyle: true,\n ...ConditionallyIgnoredEventHandlers({\n onNativeSDKEvent: true,\n onNativeTextEditorValueChange: true,\n onNativeTextEditorFocusChange: true\n })\n }\n};\nexport default NativeComponentRegistry.get(nativeComponentName, () => __INTERNAL_VIEW_CONFIG);"], "mappings": "AAkEA,MAAMA,IAA0B,QAAQ,gEAAgE;AACxG,MAAM;AAAA,EACJ,mCAAAC;AACF,IAAI,QAAQ,yDAAyD;AACrE,IAAIC,IAAsB;AACnB,MAAMC,IAAyB;AAAA,EACpC,iBAAiB;AAAA,EACjB,kBAAkB;AAAA,IAChB,mBAAmB;AAAA,MACjB,kBAAkB;AAAA,IACpB;AAAA,IACA,gCAAgC;AAAA,MAC9B,kBAAkB;AAAA,IACpB;AAAA,IACA,gCAAgC;AAAA,MAC9B,kBAAkB;AAAA,IACpB;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,OAAO;AAAA,IACP,mBAAmB;AAAA,IACnB,UAAU;AAAA,IACV,aAAa;AAAA,IACb,SAAS;AAAA,IACT,wBAAwB;AAAA,IACxB,eAAe;AAAA,IACf,UAAU;AAAA,IACV,6BAA6B;AAAA,IAC7B,wBAAwB;AAAA,IACxB,cAAc;AAAA,IACd,iBAAiB;AAAA,IACjB,YAAY;AAAA,IACZ,GAAGF,EAAkC;AAAA,MACnC,kBAAkB;AAAA,MAClB,+BAA+B;AAAA,MAC/B,+BAA+B;AAAA,IACjC,CAAC;AAAA,EACH;AACF;AACA,IAAOG,IAAQJ,EAAwB,IAAIE,GAAqB,MAAMC,CAAsB;", "names": ["NativeComponentRegistry", "ConditionallyIgnoredEventHandlers", "nativeComponentName", "__INTERNAL_VIEW_CONFIG", "OneNativeTextEditorNativeComponent_default"] }