@mpxjs/webpack-plugin 2.10.14-beta.3 → 2.10.14-beta.5

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.
Files changed (92) hide show
  1. package/lib/platform/template/wx/component-config/index.js +3 -1
  2. package/lib/platform/template/wx/component-config/nav-container.js +27 -0
  3. package/lib/runtime/components/ali/mpx-nav-container.mpx +3 -0
  4. package/lib/runtime/components/react/context.ts +18 -6
  5. package/lib/runtime/components/react/dist/context.d.ts +79 -0
  6. package/lib/runtime/components/react/dist/context.js +1 -0
  7. package/lib/runtime/components/react/dist/event.config.d.ts +7 -0
  8. package/lib/runtime/components/react/dist/getInnerListeners.d.ts +7 -0
  9. package/lib/runtime/components/react/dist/mpx-async-suspense.d.ts +12 -0
  10. package/lib/runtime/components/react/dist/mpx-button.d.ts +68 -0
  11. package/lib/runtime/components/react/dist/mpx-canvas/Bus.d.ts +23 -0
  12. package/lib/runtime/components/react/dist/mpx-canvas/CanvasGradient.d.ts +7 -0
  13. package/lib/runtime/components/react/dist/mpx-canvas/CanvasRenderingContext2D.d.ts +6 -0
  14. package/lib/runtime/components/react/dist/mpx-canvas/Image.d.ts +20 -0
  15. package/lib/runtime/components/react/dist/mpx-canvas/ImageData.d.ts +8 -0
  16. package/lib/runtime/components/react/dist/mpx-canvas/constructorsRegistry.d.ts +10 -0
  17. package/lib/runtime/components/react/dist/mpx-canvas/html.d.ts +2 -0
  18. package/lib/runtime/components/react/dist/mpx-canvas/index.d.ts +32 -0
  19. package/lib/runtime/components/react/dist/mpx-canvas/utils.d.ts +52 -0
  20. package/lib/runtime/components/react/dist/mpx-checkbox-group.d.ts +20 -0
  21. package/lib/runtime/components/react/dist/mpx-checkbox.d.ts +32 -0
  22. package/lib/runtime/components/react/dist/mpx-form.d.ts +27 -0
  23. package/lib/runtime/components/react/dist/mpx-icon/index.d.ts +18 -0
  24. package/lib/runtime/components/react/dist/mpx-image.d.ts +21 -0
  25. package/lib/runtime/components/react/dist/mpx-inline-text.d.ts +7 -0
  26. package/lib/runtime/components/react/dist/mpx-input.d.ts +56 -0
  27. package/lib/runtime/components/react/dist/mpx-input.jsx +29 -10
  28. package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.d.ts +12 -0
  29. package/lib/runtime/components/react/dist/mpx-keyboard-avoiding-view.jsx +64 -46
  30. package/lib/runtime/components/react/dist/mpx-label.d.ts +20 -0
  31. package/lib/runtime/components/react/dist/mpx-movable-area.d.ts +20 -0
  32. package/lib/runtime/components/react/dist/mpx-movable-view.d.ts +63 -0
  33. package/lib/runtime/components/react/dist/mpx-nav-container.d.ts +9 -0
  34. package/lib/runtime/components/react/dist/mpx-nav-container.jsx +23 -0
  35. package/lib/runtime/components/react/dist/mpx-navigator.d.ts +9 -0
  36. package/lib/runtime/components/react/dist/mpx-picker/date.d.ts +6 -0
  37. package/lib/runtime/components/react/dist/mpx-picker/dateData.d.ts +7 -0
  38. package/lib/runtime/components/react/dist/mpx-picker/index.d.ts +6 -0
  39. package/lib/runtime/components/react/dist/mpx-picker/multiSelector.d.ts +6 -0
  40. package/lib/runtime/components/react/dist/mpx-picker/region.d.ts +6 -0
  41. package/lib/runtime/components/react/dist/mpx-picker/regionData.d.ts +2 -0
  42. package/lib/runtime/components/react/dist/mpx-picker/selector.d.ts +6 -0
  43. package/lib/runtime/components/react/dist/mpx-picker/time.d.ts +6 -0
  44. package/lib/runtime/components/react/dist/mpx-picker/type.d.ts +106 -0
  45. package/lib/runtime/components/react/dist/mpx-picker-view/index.d.ts +31 -0
  46. package/lib/runtime/components/react/dist/mpx-picker-view/pickerVIewContext.d.ts +8 -0
  47. package/lib/runtime/components/react/dist/mpx-picker-view-column/index.d.ts +22 -0
  48. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewColumnItem.d.ts +14 -0
  49. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewFaces.d.ts +16 -0
  50. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewIndicator.d.ts +12 -0
  51. package/lib/runtime/components/react/dist/mpx-picker-view-column/pickerViewMask.d.ts +11 -0
  52. package/lib/runtime/components/react/dist/mpx-popup/index.d.ts +22 -0
  53. package/lib/runtime/components/react/dist/mpx-popup/popupBase.d.ts +16 -0
  54. package/lib/runtime/components/react/dist/mpx-portal/index.d.ts +15 -0
  55. package/lib/runtime/components/react/dist/mpx-portal/portal-host.d.ts +29 -0
  56. package/lib/runtime/components/react/dist/mpx-portal/portal-manager.d.ts +9 -0
  57. package/lib/runtime/components/react/dist/mpx-radio-group.d.ts +20 -0
  58. package/lib/runtime/components/react/dist/mpx-radio.d.ts +26 -0
  59. package/lib/runtime/components/react/dist/mpx-rich-text/html.d.ts +1 -0
  60. package/lib/runtime/components/react/dist/mpx-rich-text/index.d.ts +24 -0
  61. package/lib/runtime/components/react/dist/mpx-root-portal.d.ts +14 -0
  62. package/lib/runtime/components/react/dist/mpx-scroll-view.d.ts +54 -0
  63. package/lib/runtime/components/react/dist/mpx-simple-text.d.ts +7 -0
  64. package/lib/runtime/components/react/dist/mpx-simple-view.d.ts +7 -0
  65. package/lib/runtime/components/react/dist/mpx-sticky-header.d.ts +17 -0
  66. package/lib/runtime/components/react/dist/mpx-sticky-section.d.ts +15 -0
  67. package/lib/runtime/components/react/dist/mpx-swiper-item.d.ts +18 -0
  68. package/lib/runtime/components/react/dist/mpx-swiper.d.ts +52 -0
  69. package/lib/runtime/components/react/dist/mpx-switch.d.ts +26 -0
  70. package/lib/runtime/components/react/dist/mpx-text.d.ts +21 -0
  71. package/lib/runtime/components/react/dist/mpx-textarea.d.ts +7 -0
  72. package/lib/runtime/components/react/dist/mpx-video.d.ts +101 -0
  73. package/lib/runtime/components/react/dist/mpx-view.d.ts +34 -0
  74. package/lib/runtime/components/react/dist/mpx-web-view.d.ts +22 -0
  75. package/lib/runtime/components/react/dist/nav.d.ts +11 -0
  76. package/lib/runtime/components/react/dist/nav.jsx +141 -0
  77. package/lib/runtime/components/react/dist/parser.d.ts +39 -0
  78. package/lib/runtime/components/react/dist/useAnimationHooks.d.ts +32 -0
  79. package/lib/runtime/components/react/dist/useNavShared.d.ts +2 -0
  80. package/lib/runtime/components/react/dist/useNavShared.js +6 -0
  81. package/lib/runtime/components/react/dist/useNodesRef.d.ts +11 -0
  82. package/lib/runtime/components/react/dist/utils.d.ts +122 -0
  83. package/lib/runtime/components/react/mpx-input.tsx +43 -16
  84. package/lib/runtime/components/react/mpx-keyboard-avoiding-view.tsx +74 -46
  85. package/lib/runtime/components/react/mpx-nav-container.tsx +33 -0
  86. package/lib/runtime/components/react/nav.tsx +172 -0
  87. package/lib/runtime/components/react/types/common.d.ts +19 -0
  88. package/lib/runtime/components/react/useNavShared.ts +8 -0
  89. package/lib/runtime/components/web/mpx-nav-container.vue +13 -0
  90. package/lib/runtime/components/wx/mpx-nav-container.mpx +9 -0
  91. package/lib/utils/dom-tag-config.js +2 -2
  92. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { ScrollView, View } from 'react-native';
3
+ import { HandlerRef } from '../useNodesRef';
4
+ interface ColumnProps {
5
+ columnIndex: number;
6
+ columnData: React.ReactNode[];
7
+ initialIndex: number;
8
+ onSelectChange: Function;
9
+ style: {
10
+ [key: string]: any;
11
+ };
12
+ 'enable-var'?: boolean;
13
+ 'external-var-context'?: Record<string, any>;
14
+ wrapperStyle: {
15
+ height: number;
16
+ itemHeight: number;
17
+ };
18
+ pickerMaskStyle: Record<string, any>;
19
+ pickerIndicatorStyle: Record<string, any>;
20
+ }
21
+ declare const _PickerViewColumn: React.ForwardRefExoticComponent<ColumnProps & React.RefAttributes<HandlerRef<ScrollView & View, ColumnProps>>>;
22
+ export default _PickerViewColumn;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { LayoutChangeEvent } from 'react-native';
3
+ interface PickerColumnItemProps {
4
+ item: React.ReactElement;
5
+ index: number;
6
+ itemHeight: number;
7
+ itemWidth?: number | '100%';
8
+ textStyle: Record<string, any>;
9
+ visibleCount: number;
10
+ textProps?: any;
11
+ onItemLayout?: (e: LayoutChangeEvent) => void;
12
+ }
13
+ declare const PickerViewColumnItem: React.FC<PickerColumnItemProps>;
14
+ export default PickerViewColumnItem;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Borrowed from open-source code: https://github.com/quidone/react-native-wheel-picker
3
+ * Special thanks to the authors for their contribution to the open-source community.
4
+ */
5
+ export type Faces = {
6
+ index: number;
7
+ deg: number;
8
+ offsetY: number;
9
+ opacity: number;
10
+ scale: number;
11
+ screenHeight: number;
12
+ };
13
+ export declare const degToRad: (deg: number) => number;
14
+ export declare const calcPickerHeight: (faces: Faces[], itemHeight: number) => number;
15
+ export declare const calcHeightOffsets: (itemHeight: number) => number[];
16
+ export declare const createFaces: (itemHeight: number, visibleCount: number) => Faces[];
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ type IndicatorProps = {
4
+ itemHeight: number;
5
+ indicatorItemStyle?: StyleProp<ViewStyle>;
6
+ indicatorContainerStyle?: StyleProp<ViewStyle>;
7
+ };
8
+ declare const _PickerViewIndicator: {
9
+ ({ itemHeight, indicatorItemStyle, indicatorContainerStyle }: IndicatorProps): React.JSX.Element;
10
+ displayName: string;
11
+ };
12
+ export default _PickerViewIndicator;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { StyleProp, ViewStyle } from 'react-native';
3
+ type MaskProps = {
4
+ itemHeight: number;
5
+ maskContainerStyle?: StyleProp<ViewStyle>;
6
+ };
7
+ declare const _PickerViewMask: {
8
+ ({ itemHeight, maskContainerStyle }: MaskProps): React.JSX.Element;
9
+ displayName: string;
10
+ };
11
+ export default _PickerViewMask;
@@ -0,0 +1,22 @@
1
+ import { ReactElement } from 'react';
2
+ import { PopupBaseProps } from './popupBase';
3
+ export declare const enum PopupType {
4
+ PICKER = "picker"
5
+ }
6
+ export interface IUsePopupOptions {
7
+ modal?: React.ComponentType<PopupBaseProps>;
8
+ type?: PopupType;
9
+ }
10
+ /**
11
+ * 基于 Portal 封装的 Popup 弹窗组件管理 Hooks
12
+ */
13
+ declare const createPopupManager: (options?: IUsePopupOptions) => {
14
+ open: (childComponent: React.ReactNode, pageId: number | undefined, options?: {
15
+ contentHeight?: number;
16
+ }) => void;
17
+ show: () => void;
18
+ hide: () => void;
19
+ update: (updatedChild: ReactElement | null) => void;
20
+ remove: () => void;
21
+ };
22
+ export { createPopupManager };
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ export interface PopupBaseProps {
3
+ children?: React.ReactNode;
4
+ hide?: () => void;
5
+ contentHeight?: number;
6
+ visible?: boolean;
7
+ }
8
+ /**
9
+ * 类似微信 picker 弹窗的动画效果都可以复用此类容器
10
+ * 其他特定类型的弹窗容器组件可以在此基础上封装,或者扩展实现
11
+ */
12
+ declare const PopupBase: {
13
+ (props?: PopupBaseProps): import("react").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ export default PopupBase;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ export type PortalProps = {
3
+ children?: ReactNode;
4
+ };
5
+ declare const Portal: {
6
+ ({ children }: PortalProps): null;
7
+ Host: ({ children }: {
8
+ children: ReactNode;
9
+ pageId: number;
10
+ }) => JSX.Element;
11
+ add: (e: ReactNode, id: number | null) => number;
12
+ remove: (key: number) => void;
13
+ update: (key: number, e: ReactNode) => void;
14
+ };
15
+ export default Portal;
@@ -0,0 +1,29 @@
1
+ import { ReactNode } from 'react';
2
+ type PortalHostProps = {
3
+ children: ReactNode;
4
+ pageId: number;
5
+ };
6
+ export type Operation = {
7
+ type: 'mount';
8
+ key: number;
9
+ children: ReactNode;
10
+ } | {
11
+ type: 'update';
12
+ key: number;
13
+ children: ReactNode;
14
+ } | {
15
+ type: 'unmount';
16
+ key: number;
17
+ };
18
+ declare class PortalGuard {
19
+ private nextKey;
20
+ add: (e: ReactNode, id: number | null) => number;
21
+ remove: (key: number) => void;
22
+ update: (key: number, e: ReactNode) => void;
23
+ }
24
+ /**
25
+ * portal
26
+ */
27
+ export declare const portal: PortalGuard;
28
+ declare const PortalHost: ({ children }: PortalHostProps) => JSX.Element;
29
+ export default PortalHost;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export type State = {
3
+ portals: Array<{
4
+ key: number;
5
+ children: ReactNode;
6
+ }>;
7
+ };
8
+ declare const _PortalManager: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
9
+ export default _PortalManager;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * ✔ bindchange
3
+ */
4
+ import { ReactNode } from 'react';
5
+ import { View, NativeSyntheticEvent, ViewStyle } from 'react-native';
6
+ import { HandlerRef } from './useNodesRef';
7
+ export interface RadioGroupProps {
8
+ name: string;
9
+ style?: ViewStyle & Record<string, any>;
10
+ 'enable-offset'?: boolean;
11
+ 'enable-var'?: boolean;
12
+ 'external-var-context'?: Record<string, any>;
13
+ 'parent-font-size'?: number;
14
+ 'parent-width'?: number;
15
+ 'parent-height'?: number;
16
+ children: ReactNode;
17
+ bindchange?: (evt: NativeSyntheticEvent<TouchEvent> | unknown) => void;
18
+ }
19
+ declare const radioGroup: import("react").ForwardRefExoticComponent<RadioGroupProps & import("react").RefAttributes<HandlerRef<View, RadioGroupProps>>>;
20
+ export default radioGroup;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * ✔ value
3
+ * ✔ disabled
4
+ * ✔ checked
5
+ * ✔ color
6
+ */
7
+ import { ReactNode } from 'react';
8
+ import { View, ViewStyle, NativeSyntheticEvent } from 'react-native';
9
+ import { HandlerRef } from './useNodesRef';
10
+ export interface RadioProps {
11
+ value?: string;
12
+ checked?: boolean;
13
+ disabled?: boolean;
14
+ color?: string;
15
+ style?: ViewStyle & Record<string, any>;
16
+ 'enable-offset'?: boolean;
17
+ 'enable-var'?: boolean;
18
+ 'external-var-context'?: Record<string, any>;
19
+ 'parent-font-size'?: number;
20
+ 'parent-width'?: number;
21
+ 'parent-height'?: number;
22
+ children: ReactNode;
23
+ bindtap?: (evt: NativeSyntheticEvent<TouchEvent> | unknown) => void;
24
+ }
25
+ declare const Radio: import("react").ForwardRefExoticComponent<RadioProps & import("react").RefAttributes<HandlerRef<View, RadioProps>>>;
26
+ export default Radio;
@@ -0,0 +1 @@
1
+ export declare const generateHTML: (html: string) => string;
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * ✔ nodes
4
+ */
5
+ import { View, ViewProps, ViewStyle } from 'react-native';
6
+ import { HandlerRef } from '../useNodesRef';
7
+ type Node = {
8
+ type: 'node' | 'text';
9
+ name?: string;
10
+ attrs?: any;
11
+ children?: Array<Node>;
12
+ text: string;
13
+ };
14
+ interface _RichTextProps extends ViewProps {
15
+ style?: ViewStyle;
16
+ nodes: string | Array<Node>;
17
+ 'enable-var'?: boolean;
18
+ 'external-var-context'?: Record<string, any>;
19
+ 'parent-font-size'?: number;
20
+ 'parent-width'?: number;
21
+ 'parent-height'?: number;
22
+ }
23
+ declare const _RichText: import("react").ForwardRefExoticComponent<_RichTextProps & import("react").RefAttributes<HandlerRef<View, _RichTextProps>>>;
24
+ export default _RichText;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * ✔ enable
3
+ */
4
+ import { ReactNode } from 'react';
5
+ interface RootPortalProps {
6
+ enable?: boolean;
7
+ children: ReactNode;
8
+ [x: string]: any;
9
+ }
10
+ declare const _RootPortal: {
11
+ (props: RootPortalProps): import("react").FunctionComponentElement<import("./mpx-portal/index").PortalProps>;
12
+ displayName: string;
13
+ };
14
+ export default _RootPortal;
@@ -0,0 +1,54 @@
1
+ import { View, NativeSyntheticEvent, NativeScrollEvent, ViewStyle } from 'react-native';
2
+ import { ReactNode } from 'react';
3
+ import { HandlerRef } from './useNodesRef';
4
+ import { GestureHandler } from './utils';
5
+ interface ScrollViewProps {
6
+ children?: ReactNode;
7
+ enhanced?: boolean;
8
+ bounces?: boolean;
9
+ style?: ViewStyle;
10
+ 'scroll-x'?: boolean;
11
+ 'scroll-y'?: boolean;
12
+ 'enable-back-to-top'?: boolean;
13
+ 'show-scrollbar'?: boolean;
14
+ 'paging-enabled'?: boolean;
15
+ 'upper-threshold'?: number;
16
+ 'lower-threshold'?: number;
17
+ 'scroll-with-animation'?: boolean;
18
+ 'refresher-triggered'?: boolean;
19
+ 'refresher-enabled'?: boolean;
20
+ 'refresher-default-style'?: 'black' | 'white' | 'none';
21
+ 'refresher-background'?: string;
22
+ 'refresher-threshold'?: number;
23
+ 'scroll-top'?: number;
24
+ 'scroll-left'?: number;
25
+ 'enable-offset'?: boolean;
26
+ 'scroll-into-view'?: string;
27
+ 'enable-trigger-intersection-observer'?: boolean;
28
+ 'enable-var'?: boolean;
29
+ 'external-var-context'?: Record<string, any>;
30
+ 'parent-font-size'?: number;
31
+ 'parent-width'?: number;
32
+ 'parent-height'?: number;
33
+ 'enable-sticky'?: boolean;
34
+ 'wait-for'?: Array<GestureHandler>;
35
+ 'simultaneous-handlers'?: Array<GestureHandler>;
36
+ 'scroll-event-throttle'?: number;
37
+ 'scroll-into-view-offset'?: number;
38
+ bindscrolltoupper?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
39
+ bindscrolltolower?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
40
+ bindscroll?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
41
+ bindrefresherrefresh?: (event: NativeSyntheticEvent<unknown>) => void;
42
+ binddragstart?: (event: NativeSyntheticEvent<DragEvent>) => void;
43
+ binddragging?: (event: NativeSyntheticEvent<DragEvent>) => void;
44
+ binddragend?: (event: NativeSyntheticEvent<DragEvent>) => void;
45
+ bindtouchstart?: (event: NativeSyntheticEvent<TouchEvent>) => void;
46
+ bindtouchmove?: (event: NativeSyntheticEvent<TouchEvent>) => void;
47
+ bindtouchend?: (event: NativeSyntheticEvent<TouchEvent>) => void;
48
+ bindscrollend?: (event: NativeSyntheticEvent<TouchEvent>) => void;
49
+ __selectRef?: (selector: string, nodeType: 'node' | 'component', all?: boolean) => HandlerRef<any, any>;
50
+ }
51
+ declare const _ScrollView: import("react").ForwardRefExoticComponent<ScrollViewProps & import("react").RefAttributes<HandlerRef<import("react").ForwardRefExoticComponent<import("react-native").ScrollViewProps & {
52
+ children?: ReactNode;
53
+ } & import("react-native-gesture-handler").NativeViewGestureHandlerProps & import("react").RefAttributes<import("react").ComponentType<any>>> & import("react-native").ScrollView & View, ScrollViewProps>>>;
54
+ export default _ScrollView;
@@ -0,0 +1,7 @@
1
+ import { TextProps } from 'react-native';
2
+ import { JSX } from 'react';
3
+ declare const SimpleText: {
4
+ (props: TextProps): JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default SimpleText;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ViewProps } from 'react-native';
3
+ declare const SimpleView: {
4
+ (simpleViewProps: ViewProps): JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default SimpleView;
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from 'react';
2
+ import { View, NativeSyntheticEvent, ViewStyle } from 'react-native';
3
+ import { HandlerRef } from './useNodesRef';
4
+ interface StickyHeaderProps {
5
+ children?: ReactNode;
6
+ style?: ViewStyle;
7
+ padding?: [number, number, number, number];
8
+ 'offset-top'?: number;
9
+ 'enable-var'?: boolean;
10
+ 'external-var-context'?: Record<string, any>;
11
+ 'parent-font-size'?: number;
12
+ 'parent-width'?: number;
13
+ 'parent-height'?: number;
14
+ bindstickontopchange?: (e: NativeSyntheticEvent<unknown>) => void;
15
+ }
16
+ declare const _StickyHeader: import("react").ForwardRefExoticComponent<StickyHeaderProps & import("react").RefAttributes<HandlerRef<View, StickyHeaderProps>>>;
17
+ export default _StickyHeader;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { View, ViewStyle } from 'react-native';
3
+ import { HandlerRef } from './useNodesRef';
4
+ interface StickySectionProps {
5
+ children?: ReactNode;
6
+ style?: ViewStyle;
7
+ 'offset-top'?: number;
8
+ 'enable-var'?: boolean;
9
+ 'external-var-context'?: Record<string, any>;
10
+ 'parent-font-size'?: number;
11
+ 'parent-width'?: number;
12
+ 'parent-height'?: number;
13
+ }
14
+ declare const _StickySection: import("react").ForwardRefExoticComponent<StickySectionProps & import("react").RefAttributes<HandlerRef<View, StickySectionProps>>>;
15
+ export default _StickySection;
@@ -0,0 +1,18 @@
1
+ import { View } from 'react-native';
2
+ import { ReactNode } from 'react';
3
+ import { HandlerRef } from './useNodesRef';
4
+ interface SwiperItemProps {
5
+ 'item-id'?: string;
6
+ 'enable-offset'?: boolean;
7
+ 'enable-var': boolean;
8
+ 'external-var-context'?: Record<string, any>;
9
+ 'parent-font-size'?: number;
10
+ 'parent-width'?: number;
11
+ 'parent-height'?: number;
12
+ children?: ReactNode;
13
+ style?: Object;
14
+ customStyle: Object;
15
+ itemIndex: number;
16
+ }
17
+ declare const _SwiperItem: import("react").ForwardRefExoticComponent<SwiperItemProps & import("react").RefAttributes<HandlerRef<View, SwiperItemProps>>>;
18
+ export default _SwiperItem;
@@ -0,0 +1,52 @@
1
+ import { View, NativeSyntheticEvent } from 'react-native';
2
+ import React, { ReactNode } from 'react';
3
+ import { HandlerRef } from './useNodesRef';
4
+ import { GestureHandler } from './utils';
5
+ /**
6
+ * ✔ indicator-dots
7
+ * ✔ indicator-color
8
+ * ✔ indicator-active-color
9
+ * ✔ autoplay
10
+ * ✔ current
11
+ * ✔ interval
12
+ * ✔ duration
13
+ * ✔ circular
14
+ * ✔ vertical
15
+ * ✔ previous-margin
16
+ * ✔ next-margin
17
+ * ✔ easing-function ="easeOutCubic"
18
+ * ✘ display-multiple-items
19
+ * ✘ snap-to-edge
20
+ */
21
+ type EaseType = 'default' | 'linear' | 'easeInCubic' | 'easeOutCubic' | 'easeInOutCubic';
22
+ interface SwiperProps {
23
+ children?: ReactNode;
24
+ circular?: boolean;
25
+ current?: number;
26
+ interval?: number;
27
+ autoplay?: boolean;
28
+ duration?: number;
29
+ scale?: boolean;
30
+ 'indicator-dots'?: boolean;
31
+ 'indicator-color'?: string;
32
+ 'indicator-active-color'?: string;
33
+ vertical?: boolean;
34
+ style: {
35
+ [key: string]: any;
36
+ };
37
+ 'easing-function'?: EaseType;
38
+ 'previous-margin'?: string;
39
+ 'next-margin'?: string;
40
+ 'enable-offset'?: boolean;
41
+ 'enable-var': boolean;
42
+ 'parent-font-size'?: number;
43
+ 'parent-width'?: number;
44
+ 'parent-height'?: number;
45
+ 'external-var-context'?: Record<string, any>;
46
+ 'wait-for'?: Array<GestureHandler>;
47
+ 'simultaneous-handlers'?: Array<GestureHandler>;
48
+ disableGesture?: boolean;
49
+ bindchange?: (event: NativeSyntheticEvent<TouchEvent> | unknown) => void;
50
+ }
51
+ declare const SwiperWrapper: React.ForwardRefExoticComponent<SwiperProps & React.RefAttributes<HandlerRef<View, SwiperProps>>>;
52
+ export default SwiperWrapper;
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * ✔ checked
4
+ * ✔ type
5
+ * ✔ disabled
6
+ * ✔ color
7
+ */
8
+ import { Switch, SwitchProps, ViewStyle, NativeSyntheticEvent } from 'react-native';
9
+ import { HandlerRef } from './useNodesRef';
10
+ interface _SwitchProps extends SwitchProps {
11
+ style?: ViewStyle;
12
+ name?: string;
13
+ checked?: boolean;
14
+ type: 'switch' | 'checkbox';
15
+ disabled: boolean;
16
+ color: string;
17
+ 'enable-var'?: boolean;
18
+ 'parent-font-size'?: number;
19
+ 'parent-width'?: number;
20
+ 'parent-height'?: number;
21
+ 'external-var-context'?: Record<string, any>;
22
+ bindchange?: (event: NativeSyntheticEvent<TouchEvent> | unknown) => void;
23
+ catchchange?: (event: NativeSyntheticEvent<TouchEvent> | unknown) => void;
24
+ }
25
+ declare const _Switch: import("react").ForwardRefExoticComponent<_SwitchProps & import("react").RefAttributes<HandlerRef<Switch, _SwitchProps>>>;
26
+ export default _Switch;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * ✔ selectable
3
+ * ✘ space
4
+ * ✘ decode
5
+ */
6
+ import { Text, TextStyle, TextProps } from 'react-native';
7
+ import { ReactNode } from 'react';
8
+ import { HandlerRef } from './useNodesRef';
9
+ interface _TextProps extends TextProps {
10
+ style?: TextStyle;
11
+ children?: ReactNode;
12
+ selectable?: boolean;
13
+ 'user-select'?: boolean;
14
+ 'enable-var'?: boolean;
15
+ 'external-var-context'?: Record<string, any>;
16
+ 'parent-font-size'?: number;
17
+ 'parent-width'?: number;
18
+ 'parent-height'?: number;
19
+ }
20
+ declare const _Text: import("react").ForwardRefExoticComponent<_TextProps & import("react").RefAttributes<HandlerRef<Text, _TextProps>>>;
21
+ export default _Text;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { TextInput } from 'react-native';
3
+ import { InputProps, PrivateInputProps } from './mpx-input';
4
+ import { HandlerRef } from './useNodesRef';
5
+ export type TextareProps = Omit<InputProps & PrivateInputProps, 'type' | 'password' | 'multiline' | 'confirm-hold'>;
6
+ declare const Textarea: import("react").ForwardRefExoticComponent<TextareProps & import("react").RefAttributes<HandlerRef<TextInput, TextareProps>>>;
7
+ export default Textarea;
@@ -0,0 +1,101 @@
1
+ /**
2
+ * ✔ src
3
+ * ✘ duration
4
+ * ✔ controls
5
+ * ✘ danmu-list
6
+ * ✘ danmu-btn
7
+ * ✘ enable-danmu
8
+ * ✔ autoplay
9
+ * ✔ loop
10
+ * ✔ muted
11
+ * ✔ initial-time
12
+ * ✘ page-gesture
13
+ * ✘ direction
14
+ * ✘ show-progress
15
+ * ✘ show-fullscreen-btn
16
+ * ✘ show-play-btn
17
+ * ✘ show-center-play-btn
18
+ * ✘ enable-progress-gesture
19
+ * ✔ object-fit
20
+ * ✔ poster
21
+ * ✘ show-mute-btn
22
+ * ✘ title
23
+ * ✘ play-btn-position
24
+ * ✘ enable-play-gesture
25
+ * ✘ auto-pause-if-navigate
26
+ * ✘ auto-pause-if-open-native
27
+ * ✘ vslide-gesture
28
+ * ✘ vslide-gesture-in-fullscreen
29
+ * ✘ show-bottom-progress(use show-progress)
30
+ * ✘ ad-unit-id
31
+ * ✘ poster-for-crawler
32
+ * ✘ show-casting-button
33
+ * ✘ picture-in-picture-mode
34
+ * ✘ picture-in-picture-show-progress
35
+ * ✘ picture-in-picture-init-position
36
+ * ✔ enable-auto-rotation (only ios)
37
+ * ✘ show-screen-lock-button
38
+ * ✘ show-snapshot-button
39
+ * ✘ show-background-playback-button
40
+ * ✘ background-poster
41
+ * ✘ referrer-policy
42
+ * ✔ is-drm
43
+ * ✘ is-live
44
+ * ✔ provision-url(android)
45
+ * ✔ certificate-url(ios)
46
+ * ✔ license-url
47
+ * ✔ preferred-peak-bit-rate
48
+ * ✔ bindplay
49
+ * ✔ bindpause
50
+ * ✔ bindended
51
+ * ✘ bindtimeupdate
52
+ * ✔ bindfullscreenchange
53
+ * ✔ bindwaiting
54
+ * ✔ binderror
55
+ * ✘ bindprogress
56
+ * ✔ bindloadedmetadata
57
+ * ✔ bindcontrolstoggle(only android)
58
+ * ✘ bindenterpictureinpicture
59
+ * ✘ bindleavepictureinpicture
60
+ * ✔ bindseekcomplete
61
+ * ✘ bindcastinguserselect
62
+ * ✘ bindcastingstatechange
63
+ * ✘ bindcastinginterrupt
64
+ */
65
+ /// <reference types="react" />
66
+ import { View, ViewStyle } from 'react-native';
67
+ import { HandlerRef } from './useNodesRef';
68
+ interface VideoProps {
69
+ src: string;
70
+ autoplay?: boolean;
71
+ loop?: boolean;
72
+ muted?: boolean;
73
+ controls?: boolean;
74
+ poster?: string;
75
+ style?: ViewStyle;
76
+ 'initial-time'?: number;
77
+ 'object-fit'?: null | 'contain' | 'fill' | 'cover';
78
+ 'is-drm'?: boolean;
79
+ 'provision-url'?: string;
80
+ 'certificate-url'?: string;
81
+ 'license-url'?: string;
82
+ 'preferred-peak-bit-rate'?: number;
83
+ 'enable-auto-rotation'?: number;
84
+ 'enable-var'?: boolean;
85
+ 'external-var-context'?: Record<string, any>;
86
+ 'parent-font-size'?: number;
87
+ 'parent-width'?: number;
88
+ 'parent-height'?: number;
89
+ bindplay?: (event: Record<string, any>) => void;
90
+ bindpause?: (event: Record<string, any>) => void;
91
+ bindended?: (event: Record<string, any>) => void;
92
+ bindtimeupdate?: (event: Record<string, any>) => void;
93
+ bindfullscreenchange?: (event: Record<string, any>) => void;
94
+ bindwaiting?: (event: Record<string, any>) => void;
95
+ binderror?: (event: Record<string, any>) => void;
96
+ bindloadedmetadata?: (event: Record<string, any>) => void;
97
+ bindcontrolstoggle?: (event: Record<string, any>) => void;
98
+ bindseekcomplete?: (event: Record<string, any>) => void;
99
+ }
100
+ declare const MpxVideo: import("react").ForwardRefExoticComponent<VideoProps & import("react").RefAttributes<HandlerRef<View, VideoProps>>>;
101
+ export default MpxVideo;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * ✔ hover-class
3
+ * ✘ hover-stop-propagation
4
+ * ✔ hover-start-time
5
+ * ✔ hover-stay-time
6
+ */
7
+ import { View, NativeSyntheticEvent, ViewProps } from 'react-native';
8
+ import { ReactNode } from 'react';
9
+ import type { AnimationProp } from './useAnimationHooks';
10
+ import { ExtendedViewStyle } from './types/common';
11
+ import { HandlerRef } from './useNodesRef';
12
+ export interface _ViewProps extends ViewProps {
13
+ style?: ExtendedViewStyle;
14
+ animation?: AnimationProp;
15
+ children?: ReactNode | ReactNode[];
16
+ 'hover-style'?: ExtendedViewStyle;
17
+ 'hover-start-time'?: number;
18
+ 'hover-stay-time'?: number;
19
+ 'enable-background'?: boolean;
20
+ 'enable-var'?: boolean;
21
+ 'enable-fast-image'?: boolean;
22
+ 'external-var-context'?: Record<string, any>;
23
+ 'parent-font-size'?: number;
24
+ 'parent-width'?: number;
25
+ 'parent-height'?: number;
26
+ 'enable-animation'?: boolean;
27
+ bindtouchstart?: (event: NativeSyntheticEvent<TouchEvent> | unknown) => void;
28
+ bindtouchmove?: (event: NativeSyntheticEvent<TouchEvent> | unknown) => void;
29
+ bindtouchend?: (event: NativeSyntheticEvent<TouchEvent> | unknown) => void;
30
+ bindtransitionend?: (event: NativeSyntheticEvent<TouchEvent> | unknown) => void;
31
+ catchtransitionend?: (event: NativeSyntheticEvent<TouchEvent> | unknown) => void;
32
+ }
33
+ declare const _View: import("react").ForwardRefExoticComponent<_ViewProps & import("react").RefAttributes<HandlerRef<View, _ViewProps>>>;
34
+ export default _View;