@swiftbrowser/react 0.17.8 → 0.18.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/README.md +243 -14
- package/dist/appStorage.d.ts +43 -0
- package/dist/appStorage.d.ts.map +1 -0
- package/dist/attributedText.d.ts +76 -0
- package/dist/attributedText.d.ts.map +1 -0
- package/dist/audioRecorder.d.ts +52 -0
- package/dist/audioRecorder.d.ts.map +1 -0
- package/dist/bridge.d.ts.map +1 -1
- package/dist/components/charts.d.ts +5 -0
- package/dist/components/charts.d.ts.map +1 -1
- package/dist/components/containers.d.ts +5 -0
- package/dist/components/containers.d.ts.map +1 -1
- package/dist/components/controls.d.ts +84 -8
- package/dist/components/controls.d.ts.map +1 -1
- package/dist/components/geometry.d.ts +18 -0
- package/dist/components/geometry.d.ts.map +1 -1
- package/dist/components/images.d.ts.map +1 -1
- package/dist/components/lists.d.ts.map +1 -1
- package/dist/components/media.d.ts +18 -10
- package/dist/components/media.d.ts.map +1 -1
- package/dist/components/stacks.d.ts +70 -4
- package/dist/components/stacks.d.ts.map +1 -1
- package/dist/environment.d.ts +2 -1
- package/dist/environment.d.ts.map +1 -1
- package/dist/fileManager.d.ts +58 -0
- package/dist/fileManager.d.ts.map +1 -0
- package/dist/host/root.d.ts +16 -2
- package/dist/host/root.d.ts.map +1 -1
- package/dist/host/tree.d.ts +9 -0
- package/dist/host/tree.d.ts.map +1 -1
- package/dist/index.d.ts +9 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1200 -369
- package/dist/index.js.map +1 -1
- package/dist/measureText.d.ts +32 -0
- package/dist/measureText.d.ts.map +1 -0
- package/dist/modifiers.d.ts +81 -5
- package/dist/modifiers.d.ts.map +1 -1
- package/dist/mount.d.ts +5 -0
- package/dist/mount.d.ts.map +1 -1
- package/dist/presentation.d.ts +5 -1
- package/dist/presentation.d.ts.map +1 -1
- package/dist/scrollReader.d.ts +34 -8
- package/dist/scrollReader.d.ts.map +1 -1
- package/dist/undo.d.ts +108 -0
- package/dist/undo.d.ts.map +1 -0
- package/dist/visualEffect.d.ts +10 -14
- package/dist/visualEffect.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* SwiftBrowser's render ops; `createSwiftUIRoot` hands them to the renderer
|
|
4
4
|
* of @swiftbrowser/web, which draws them with its iOS layout engine.
|
|
5
5
|
*/
|
|
6
|
-
export { createSwiftUIRoot, injectIntoDevTools, withAnimation, type SwiftUIRoot } from './host/root';
|
|
6
|
+
export { createSwiftUIRoot, injectIntoDevTools, withAnimation, type AnimationCompletionCriteria, type SwiftUIRoot, type WithAnimationOptions } from './host/root';
|
|
7
7
|
export { mount, type MountOptions, type Mounted } from './mount';
|
|
8
8
|
export { SwiftUIView, type SwiftUIViewProps } from './island';
|
|
9
9
|
export { useContextBridge } from './bridge';
|
|
@@ -11,15 +11,21 @@ export type { Binding, BindingValue } from './binding';
|
|
|
11
11
|
export { readBinding } from './binding';
|
|
12
12
|
export { useColorScheme, useDynamicTypeSize, useHorizontalSizeClass, useRedacted, type HorizontalSizeClass, useDismiss, useViewEnvironment, type ControlSize, type SymbolRenderingMode, type KeyboardType, type TextContentType, type TextInputHints, type Environment, type ViewEnvironment, } from './environment';
|
|
13
13
|
export { useNavigation } from './navigation-context';
|
|
14
|
-
export type { ViewModifiers, ForegroundLayers, BackgroundValue, SearchableModifier, ToolbarItemPlacementName, ToolbarRole, DragGestureModifier, DragValue, MagnifyGestureModifier, RotateGestureModifier, PinchValue, SwipeActionsModifier, AlignmentGuideName, DropDestinationModifier, InspectorModifier, ContainerAxes, ContainerRelativeFrameValue, } from './modifiers';
|
|
14
|
+
export type { ViewModifiers, ForegroundLayers, BackgroundValue, SearchableModifier, ToolbarItemPlacementName, ToolbarRole, CoordinateSpaceValue, DragGestureModifier, DragValue, GestureValue, TapGestureModifier, MagnifyGestureModifier, RotateGestureModifier, PinchValue, SwipeActionsModifier, AlignmentGuideName, DropDestinationModifier, InspectorModifier, ContainerAxes, ContainerRelativeFrameValue, } from './modifiers';
|
|
15
15
|
export { VisualEffect, type ScrollTransitionClosure, type ScrollTransitionPhase, type ScrollTransitionSpec, type VisualEffectClosure, } from './visualEffect';
|
|
16
16
|
export type { ContentMarginsValue, ScrollEdgeEffectHiddenValue, ScrollEdgeEffectStyle, ScrollEdgeEffectStyleValue, ScrollEdges } from './scrollEnvironment';
|
|
17
17
|
export type { SheetModifier, AlertModifier, DetentValue } from './presentation';
|
|
18
18
|
export type { FileImporterModifier } from './fileImporter';
|
|
19
19
|
export * from './values';
|
|
20
20
|
export { Path, type CGRect, type Point } from './path';
|
|
21
|
-
export {
|
|
21
|
+
export { AttributedText, type AttributedRun, type RunFont, type TextAttributes, type TextSelection } from './attributedText';
|
|
22
|
+
export { measureText, canMeasureText, installTextMeasurer, type TextMeasurement, type TextMeasurerFunction } from './measureText';
|
|
23
|
+
export { ScrollViewReader, type ScrollPoint, type ScrollPositionBinding, type ScrollViewProxy, type ScrollPositionValue } from './scrollReader';
|
|
24
|
+
export { useAudioRecorder, type AudioRange, type AudioRecorder, type AudioRecorderOptions, type AudioRecorderStatus, type AudioRecording } from './audioRecorder';
|
|
22
25
|
export { useCoordinateSpaces } from './coordinateSpace';
|
|
26
|
+
export { useAppStorage, appStorage, type AppStorageOptions, type AppStorageSetter, type AppStorageStore } from './appStorage';
|
|
27
|
+
export { fileManager, createFileManager, type FileAttributes, type FileContents, type FileDirectories, type FileManager } from './fileManager';
|
|
28
|
+
export { UndoManager, UndoManagerContext, useUndoManager, type UndoHost, type UndoManagerOptions, type UndoOptions, type UndoState } from './undo';
|
|
23
29
|
export * from './components/stacks';
|
|
24
30
|
export * from './components/text';
|
|
25
31
|
export * from './components/controls';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;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