@qontinui/ui-bridge-native 0.2.1 → 0.3.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/{useUIBridgeToast-BPIEbsEc.d.mts → StateAnnotation-D8reaRcS.d.mts} +31 -2
- package/dist/{useUIBridgeToast-DD13oF3k.d.ts → StateAnnotation-WmK1YjwP.d.ts} +31 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.d.mts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +8 -0
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +8 -2
- package/dist/react/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React$1 from 'react';
|
|
2
|
+
import React$1, { ReactNode, ReactElement } from 'react';
|
|
3
3
|
import { p as NativeModalInfo, t as NativeSnapshotModalContext, f as NativeCapturedToast, u as NativeSnapshotToastContext, v as NativeSnapshotUndoContext, y as NativeUIBridgeFeatures, x as NativeUIBridgeConfig, z as RegisteredNativeElement, R as RegisteredNativeComponent, e as NativeBridgeSnapshot, b as BridgeEventType, a as BridgeEventListener, l as NativeElementType, w as NativeStandardAction, h as NativeCustomAction, k as NativeElementState, j as NativeElementRef, i as NativeElementIdentifier, E as Workflow, N as NativeActionRequest, d as NativeActionResponse, m as NativeFindRequest, n as NativeFindResponse } from './types-BwdPNpII.mjs';
|
|
4
4
|
import { a as NativeUIBridgeRegistry } from './registry-KdUW_koV.mjs';
|
|
5
5
|
import { N as NativeActionExecutor } from './types-DjB0zJJH.mjs';
|
|
@@ -723,4 +723,33 @@ declare function useToastRecorder(): {
|
|
|
723
723
|
dismissToast: (id: string) => void;
|
|
724
724
|
};
|
|
725
725
|
|
|
726
|
-
|
|
726
|
+
interface StateAnnotationRequiredElement {
|
|
727
|
+
role?: string;
|
|
728
|
+
text?: string;
|
|
729
|
+
testID?: string;
|
|
730
|
+
[key: string]: unknown;
|
|
731
|
+
}
|
|
732
|
+
interface StateProps {
|
|
733
|
+
id: string;
|
|
734
|
+
name?: string;
|
|
735
|
+
description?: string;
|
|
736
|
+
requiredElements?: StateAnnotationRequiredElement[];
|
|
737
|
+
blocking?: boolean;
|
|
738
|
+
children?: ReactNode;
|
|
739
|
+
[key: string]: unknown;
|
|
740
|
+
}
|
|
741
|
+
declare function State(props: StateProps): ReactElement;
|
|
742
|
+
interface TransitionToProps {
|
|
743
|
+
id: string;
|
|
744
|
+
name?: string;
|
|
745
|
+
fromStates?: string[];
|
|
746
|
+
activateStates?: string[];
|
|
747
|
+
exitStates?: string[];
|
|
748
|
+
effect?: string;
|
|
749
|
+
description?: string;
|
|
750
|
+
children?: ReactNode;
|
|
751
|
+
[key: string]: unknown;
|
|
752
|
+
}
|
|
753
|
+
declare function TransitionTo(props: TransitionToProps): ReactElement;
|
|
754
|
+
|
|
755
|
+
export { type ActionRecord as A, useUIBridge as B, CloudRelayClient as C, type DeclaredUndoState as D, useUIBridgeModal as E, useUIBridgeNative as F, useUIBridgeNativeOptional as G, useUIBridgeNativeRequired as H, useUIBridgeRequired as I, useUIBridgeToast as J, useUIComponent as K, useUIComponentAction as L, ModalDetector as M, useUIElement as N, useUIElementWithProps as O, State as S, ToastCapture as T, type UIBridgeNativeContextValue as U, type CloudRelayConfig as a, type ComponentActionDef as b, type ComponentActionRequest as c, type ComponentActionResponse as d, type ModalPushInput as e, type StateAnnotationRequiredElement as f, type StateProps as g, type ToastCaptureConfig as h, type ToastRecordInput as i, type ToastRecorderInput as j, TransitionTo as k, type TransitionToProps as l, UIBridgeNativeProvider as m, type UIBridgeNativeProviderProps as n, type UIBridgeProps as o, UndoTracker as p, type UndoTrackerConfig as q, type UseUIBridgeModalOptions as r, type UseUIBridgeReturn as s, type UseUIBridgeToastOptions as t, type UseUIComponentOptions as u, type UseUIComponentReturn as v, type UseUIElementOptions as w, type UseUIElementReturn as x, type UseUIElementWithPropsReturn as y, useToastRecorder as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React$1 from 'react';
|
|
2
|
+
import React$1, { ReactNode, ReactElement } from 'react';
|
|
3
3
|
import { p as NativeModalInfo, t as NativeSnapshotModalContext, f as NativeCapturedToast, u as NativeSnapshotToastContext, v as NativeSnapshotUndoContext, y as NativeUIBridgeFeatures, x as NativeUIBridgeConfig, z as RegisteredNativeElement, R as RegisteredNativeComponent, e as NativeBridgeSnapshot, b as BridgeEventType, a as BridgeEventListener, l as NativeElementType, w as NativeStandardAction, h as NativeCustomAction, k as NativeElementState, j as NativeElementRef, i as NativeElementIdentifier, E as Workflow, N as NativeActionRequest, d as NativeActionResponse, m as NativeFindRequest, n as NativeFindResponse } from './types-BwdPNpII.js';
|
|
4
4
|
import { a as NativeUIBridgeRegistry } from './registry-BxXaxmsT.js';
|
|
5
5
|
import { N as NativeActionExecutor } from './types-DCEv5qb6.js';
|
|
@@ -723,4 +723,33 @@ declare function useToastRecorder(): {
|
|
|
723
723
|
dismissToast: (id: string) => void;
|
|
724
724
|
};
|
|
725
725
|
|
|
726
|
-
|
|
726
|
+
interface StateAnnotationRequiredElement {
|
|
727
|
+
role?: string;
|
|
728
|
+
text?: string;
|
|
729
|
+
testID?: string;
|
|
730
|
+
[key: string]: unknown;
|
|
731
|
+
}
|
|
732
|
+
interface StateProps {
|
|
733
|
+
id: string;
|
|
734
|
+
name?: string;
|
|
735
|
+
description?: string;
|
|
736
|
+
requiredElements?: StateAnnotationRequiredElement[];
|
|
737
|
+
blocking?: boolean;
|
|
738
|
+
children?: ReactNode;
|
|
739
|
+
[key: string]: unknown;
|
|
740
|
+
}
|
|
741
|
+
declare function State(props: StateProps): ReactElement;
|
|
742
|
+
interface TransitionToProps {
|
|
743
|
+
id: string;
|
|
744
|
+
name?: string;
|
|
745
|
+
fromStates?: string[];
|
|
746
|
+
activateStates?: string[];
|
|
747
|
+
exitStates?: string[];
|
|
748
|
+
effect?: string;
|
|
749
|
+
description?: string;
|
|
750
|
+
children?: ReactNode;
|
|
751
|
+
[key: string]: unknown;
|
|
752
|
+
}
|
|
753
|
+
declare function TransitionTo(props: TransitionToProps): ReactElement;
|
|
754
|
+
|
|
755
|
+
export { type ActionRecord as A, useUIBridge as B, CloudRelayClient as C, type DeclaredUndoState as D, useUIBridgeModal as E, useUIBridgeNative as F, useUIBridgeNativeOptional as G, useUIBridgeNativeRequired as H, useUIBridgeRequired as I, useUIBridgeToast as J, useUIComponent as K, useUIComponentAction as L, ModalDetector as M, useUIElement as N, useUIElementWithProps as O, State as S, ToastCapture as T, type UIBridgeNativeContextValue as U, type CloudRelayConfig as a, type ComponentActionDef as b, type ComponentActionRequest as c, type ComponentActionResponse as d, type ModalPushInput as e, type StateAnnotationRequiredElement as f, type StateProps as g, type ToastCaptureConfig as h, type ToastRecordInput as i, type ToastRecorderInput as j, TransitionTo as k, type TransitionToProps as l, UIBridgeNativeProvider as m, type UIBridgeNativeProviderProps as n, type UIBridgeProps as o, UndoTracker as p, type UndoTrackerConfig as q, type UseUIBridgeModalOptions as r, type UseUIBridgeReturn as s, type UseUIBridgeToastOptions as t, type UseUIComponentOptions as u, type UseUIComponentReturn as v, type UseUIElementOptions as w, type UseUIElementReturn as x, type UseUIElementWithPropsReturn as y, useToastRecorder as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { A as ActionHandler, B as BridgeEvent, a as BridgeEventListener, b as BridgeEventType, C as ComponentAction, c as CustomAction, D as DiscoveredNativeElement, N as NativeActionRequest, d as NativeActionResponse, e as NativeBridgeSnapshot, f as NativeCapturedToast, g as NativeComponentAction, h as NativeCustomAction, i as NativeElementIdentifier, j as NativeElementRef, k as NativeElementState, l as NativeElementType, m as NativeFindRequest, n as NativeFindResponse, o as NativeLayout, p as NativeModalInfo, q as NativeRegistrationCoverage, r as NativeSnapshotEnricher, s as NativeSnapshotEnrichers, t as NativeSnapshotModalContext, u as NativeSnapshotToastContext, v as NativeSnapshotUndoContext, w as NativeStandardAction, x as NativeUIBridgeConfig, y as NativeUIBridgeFeatures, R as RegisteredNativeComponent, z as RegisteredNativeElement, W as WaitOptions, E as Workflow, F as WorkflowStep, G as WorkflowStepType } from './types-BwdPNpII.mjs';
|
|
2
2
|
export { N as NativeRegistryConfig, a as NativeUIBridgeRegistry, R as RegisterComponentOptions, b as RegisterElementOptions, e as extractHandlerNames, g as getGlobalRegistry, r as resetGlobalRegistry, s as setGlobalRegistry } from './registry-KdUW_koV.mjs';
|
|
3
3
|
export { buildTreePath, createNativeElementIdentifier, findAllByPattern, findElementByIdentifier, matchesIdentifier, parseTreePath } from './core/index.mjs';
|
|
4
|
-
export { A as ActionRecord, C as CloudRelayClient, a as CloudRelayConfig, b as ComponentActionDef, c as ComponentActionRequest, d as ComponentActionResponse, D as DeclaredUndoState, M as ModalDetector, e as ModalPushInput, T as ToastCapture,
|
|
4
|
+
export { A as ActionRecord, C as CloudRelayClient, a as CloudRelayConfig, b as ComponentActionDef, c as ComponentActionRequest, d as ComponentActionResponse, D as DeclaredUndoState, M as ModalDetector, e as ModalPushInput, S as State, f as StateAnnotationRequiredElement, g as StateProps, T as ToastCapture, h as ToastCaptureConfig, i as ToastRecordInput, j as ToastRecorderInput, k as TransitionTo, l as TransitionToProps, U as UIBridgeNativeContextValue, m as UIBridgeNativeProvider, n as UIBridgeNativeProviderProps, o as UIBridgeProps, p as UndoTracker, q as UndoTrackerConfig, r as UseUIBridgeModalOptions, s as UseUIBridgeReturn, t as UseUIBridgeToastOptions, u as UseUIComponentOptions, v as UseUIComponentReturn, w as UseUIElementOptions, x as UseUIElementReturn, y as UseUIElementWithPropsReturn, z as useToastRecorder, B as useUIBridge, E as useUIBridgeModal, F as useUIBridgeNative, G as useUIBridgeNativeOptional, H as useUIBridgeNativeRequired, I as useUIBridgeRequired, J as useUIBridgeToast, K as useUIComponent, L as useUIComponentAction, N as useUIElement, O as useUIElementWithProps } from './StateAnnotation-D8reaRcS.mjs';
|
|
5
5
|
export { A as ActionExecutionOptions, C as ControlActionRequest, a as ControlActionResponse, b as ControlComponentActionRequest, c as ControlComponentActionResponse, N as NativeActionExecutor, P as PressActionParams, S as ScrollActionParams, d as SwipeActionParams, T as TypeActionParams, W as WaitResult } from './types-DjB0zJJH.mjs';
|
|
6
6
|
export { DefaultNativeActionExecutor, createNativeActionExecutor } from './control/index.mjs';
|
|
7
7
|
export { A as APIResponse, F as FillFormFieldInput, a as FillFormFieldResult, b as FillFormRequest, c as FillFormResponse, H as HTTPRequest, d as HTTPResponse, e as HandlerContext, f as HandlerFunction, J as JsonRpcBatchRequest, g as JsonRpcBatchResponse, h as JsonRpcEvent, i as JsonRpcRequest, j as JsonRpcResponse, N as NativeServerConfig, k as NativeServerHandlers, l as NativeUIBridgeServer, m as NavigationProvider, R as RequestHandler, n as RouteDefinition, o as RouteProvider, S as ScreenshotProvider, p as ServerAdapter, U as UI_BRIDGE_NATIVE_ROUTES, W as WebSocketConnection, q as WebSocketEventBridge, r as WebSocketMessageHandler, s as WebSocketServerAdapter, t as createNativeServer } from './http-server-D2U1k48d.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { A as ActionHandler, B as BridgeEvent, a as BridgeEventListener, b as BridgeEventType, C as ComponentAction, c as CustomAction, D as DiscoveredNativeElement, N as NativeActionRequest, d as NativeActionResponse, e as NativeBridgeSnapshot, f as NativeCapturedToast, g as NativeComponentAction, h as NativeCustomAction, i as NativeElementIdentifier, j as NativeElementRef, k as NativeElementState, l as NativeElementType, m as NativeFindRequest, n as NativeFindResponse, o as NativeLayout, p as NativeModalInfo, q as NativeRegistrationCoverage, r as NativeSnapshotEnricher, s as NativeSnapshotEnrichers, t as NativeSnapshotModalContext, u as NativeSnapshotToastContext, v as NativeSnapshotUndoContext, w as NativeStandardAction, x as NativeUIBridgeConfig, y as NativeUIBridgeFeatures, R as RegisteredNativeComponent, z as RegisteredNativeElement, W as WaitOptions, E as Workflow, F as WorkflowStep, G as WorkflowStepType } from './types-BwdPNpII.js';
|
|
2
2
|
export { N as NativeRegistryConfig, a as NativeUIBridgeRegistry, R as RegisterComponentOptions, b as RegisterElementOptions, e as extractHandlerNames, g as getGlobalRegistry, r as resetGlobalRegistry, s as setGlobalRegistry } from './registry-BxXaxmsT.js';
|
|
3
3
|
export { buildTreePath, createNativeElementIdentifier, findAllByPattern, findElementByIdentifier, matchesIdentifier, parseTreePath } from './core/index.js';
|
|
4
|
-
export { A as ActionRecord, C as CloudRelayClient, a as CloudRelayConfig, b as ComponentActionDef, c as ComponentActionRequest, d as ComponentActionResponse, D as DeclaredUndoState, M as ModalDetector, e as ModalPushInput, T as ToastCapture,
|
|
4
|
+
export { A as ActionRecord, C as CloudRelayClient, a as CloudRelayConfig, b as ComponentActionDef, c as ComponentActionRequest, d as ComponentActionResponse, D as DeclaredUndoState, M as ModalDetector, e as ModalPushInput, S as State, f as StateAnnotationRequiredElement, g as StateProps, T as ToastCapture, h as ToastCaptureConfig, i as ToastRecordInput, j as ToastRecorderInput, k as TransitionTo, l as TransitionToProps, U as UIBridgeNativeContextValue, m as UIBridgeNativeProvider, n as UIBridgeNativeProviderProps, o as UIBridgeProps, p as UndoTracker, q as UndoTrackerConfig, r as UseUIBridgeModalOptions, s as UseUIBridgeReturn, t as UseUIBridgeToastOptions, u as UseUIComponentOptions, v as UseUIComponentReturn, w as UseUIElementOptions, x as UseUIElementReturn, y as UseUIElementWithPropsReturn, z as useToastRecorder, B as useUIBridge, E as useUIBridgeModal, F as useUIBridgeNative, G as useUIBridgeNativeOptional, H as useUIBridgeNativeRequired, I as useUIBridgeRequired, J as useUIBridgeToast, K as useUIComponent, L as useUIComponentAction, N as useUIElement, O as useUIElementWithProps } from './StateAnnotation-WmK1YjwP.js';
|
|
5
5
|
export { A as ActionExecutionOptions, C as ControlActionRequest, a as ControlActionResponse, b as ControlComponentActionRequest, c as ControlComponentActionResponse, N as NativeActionExecutor, P as PressActionParams, S as ScrollActionParams, d as SwipeActionParams, T as TypeActionParams, W as WaitResult } from './types-DCEv5qb6.js';
|
|
6
6
|
export { DefaultNativeActionExecutor, createNativeActionExecutor } from './control/index.js';
|
|
7
7
|
export { A as APIResponse, F as FillFormFieldInput, a as FillFormFieldResult, b as FillFormRequest, c as FillFormResponse, H as HTTPRequest, d as HTTPResponse, e as HandlerContext, f as HandlerFunction, J as JsonRpcBatchRequest, g as JsonRpcBatchResponse, h as JsonRpcEvent, i as JsonRpcRequest, j as JsonRpcResponse, N as NativeServerConfig, k as NativeServerHandlers, l as NativeUIBridgeServer, m as NavigationProvider, R as RequestHandler, n as RouteDefinition, o as RouteProvider, S as ScreenshotProvider, p as ServerAdapter, U as UI_BRIDGE_NATIVE_ROUTES, W as WebSocketConnection, q as WebSocketEventBridge, r as WebSocketMessageHandler, s as WebSocketServerAdapter, t as createNativeServer } from './http-server-ck8clUsZ.js';
|
package/dist/index.js
CHANGED
|
@@ -4972,6 +4972,12 @@ function useToastRecorder() {
|
|
|
4972
4972
|
const dismissToast = react.useCallback((id) => toastCapture.dismissToast(id), [toastCapture]);
|
|
4973
4973
|
return { recordToast, dismissToast };
|
|
4974
4974
|
}
|
|
4975
|
+
function State(props) {
|
|
4976
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: props.children });
|
|
4977
|
+
}
|
|
4978
|
+
function TransitionTo(props) {
|
|
4979
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: props.children });
|
|
4980
|
+
}
|
|
4975
4981
|
|
|
4976
4982
|
// src/server/types.ts
|
|
4977
4983
|
var UI_BRIDGE_NATIVE_ROUTES = {
|
|
@@ -5898,7 +5904,9 @@ exports.DeviceAnnouncer = DeviceAnnouncer;
|
|
|
5898
5904
|
exports.ModalDetector = ModalDetector;
|
|
5899
5905
|
exports.NativeUIBridgeRegistry = NativeUIBridgeRegistry;
|
|
5900
5906
|
exports.NativeUIBridgeServer = NativeUIBridgeServer;
|
|
5907
|
+
exports.State = State;
|
|
5901
5908
|
exports.ToastCapture = ToastCapture;
|
|
5909
|
+
exports.TransitionTo = TransitionTo;
|
|
5902
5910
|
exports.UIBridgeInspector = UIBridgeInspector;
|
|
5903
5911
|
exports.UIBridgeNativeProvider = UIBridgeNativeProvider;
|
|
5904
5912
|
exports.UI_BRIDGE_NATIVE_ROUTES = UI_BRIDGE_NATIVE_ROUTES;
|