@fluentui-react-native/callout 0.27.17 → 0.28.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/CHANGELOG.md +49 -2
- package/lib/Callout.d.ts +8 -2
- package/lib/Callout.d.ts.map +1 -1
- package/lib/Callout.js +53 -56
- package/lib/Callout.js.map +1 -1
- package/lib/Callout.settings.d.ts +1 -1
- package/lib/Callout.settings.js +12 -12
- package/lib/Callout.settings.macos.d.ts +1 -1
- package/lib/Callout.settings.macos.js +15 -15
- package/lib/Callout.types.d.ts +210 -163
- package/lib/Callout.types.d.ts.map +1 -1
- package/lib/Callout.types.js +1 -1
- package/lib/CalloutNativeComponent.d.ts +2 -45
- package/lib/CalloutNativeComponent.d.ts.map +1 -1
- package/lib/CalloutNativeComponent.js +2 -7
- package/lib/CalloutNativeComponent.js.map +1 -1
- package/lib/CalloutNativeComponent.macos.d.ts +5 -0
- package/lib/CalloutNativeComponent.macos.d.ts.map +1 -0
- package/lib/CalloutNativeComponent.macos.js +9 -0
- package/lib/CalloutNativeComponent.macos.js.map +1 -0
- package/lib/CalloutNativeComponent.types.d.ts +30 -0
- package/lib/CalloutNativeComponent.types.d.ts.map +1 -0
- package/lib/CalloutNativeComponent.types.js +2 -0
- package/lib/CalloutNativeComponent.types.js.map +1 -0
- package/lib/CalloutNativeComponent.types.macos.d.ts +29 -0
- package/lib/CalloutNativeComponent.types.macos.d.ts.map +1 -0
- package/lib/CalloutNativeComponent.types.macos.js +2 -0
- package/lib/CalloutNativeComponent.types.macos.js.map +1 -0
- package/lib/CalloutNativeComponent.win32.d.ts +5 -0
- package/lib/CalloutNativeComponent.win32.d.ts.map +1 -0
- package/lib/CalloutNativeComponent.win32.js +8 -0
- package/lib/CalloutNativeComponent.win32.js.map +1 -0
- package/lib/__tests__/Callout.test.d.ts +1 -1
- package/lib/__tests__/Callout.test.js +8 -4
- package/lib/__tests__/Callout.test.js.map +1 -1
- package/lib/index.d.ts +12 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib-commonjs/Callout.d.ts +8 -2
- package/lib-commonjs/Callout.d.ts.map +1 -1
- package/lib-commonjs/Callout.js +116 -90
- package/lib-commonjs/Callout.js.map +1 -1
- package/lib-commonjs/Callout.settings.d.ts +1 -1
- package/lib-commonjs/Callout.settings.js +15 -15
- package/lib-commonjs/Callout.settings.macos.d.ts +1 -1
- package/lib-commonjs/Callout.settings.macos.js +18 -18
- package/lib-commonjs/Callout.types.d.ts +210 -163
- package/lib-commonjs/Callout.types.d.ts.map +1 -1
- package/lib-commonjs/Callout.types.js +3 -3
- package/lib-commonjs/CalloutNativeComponent.d.ts +2 -45
- package/lib-commonjs/CalloutNativeComponent.d.ts.map +1 -1
- package/lib-commonjs/CalloutNativeComponent.js +11 -14
- package/lib-commonjs/CalloutNativeComponent.js.map +1 -1
- package/lib-commonjs/CalloutNativeComponent.macos.d.ts +5 -0
- package/lib-commonjs/CalloutNativeComponent.macos.d.ts.map +1 -0
- package/lib-commonjs/CalloutNativeComponent.macos.js +17 -0
- package/lib-commonjs/CalloutNativeComponent.macos.js.map +1 -0
- package/lib-commonjs/CalloutNativeComponent.types.d.ts +30 -0
- package/lib-commonjs/CalloutNativeComponent.types.d.ts.map +1 -0
- package/lib-commonjs/CalloutNativeComponent.types.js +3 -0
- package/lib-commonjs/CalloutNativeComponent.types.js.map +1 -0
- package/lib-commonjs/CalloutNativeComponent.types.macos.d.ts +29 -0
- package/lib-commonjs/CalloutNativeComponent.types.macos.d.ts.map +1 -0
- package/lib-commonjs/CalloutNativeComponent.types.macos.js +3 -0
- package/lib-commonjs/CalloutNativeComponent.types.macos.js.map +1 -0
- package/lib-commonjs/CalloutNativeComponent.win32.d.ts +5 -0
- package/lib-commonjs/CalloutNativeComponent.win32.d.ts.map +1 -0
- package/lib-commonjs/CalloutNativeComponent.win32.js +16 -0
- package/lib-commonjs/CalloutNativeComponent.win32.js.map +1 -0
- package/lib-commonjs/__tests__/Callout.test.d.ts +1 -1
- package/lib-commonjs/__tests__/Callout.test.js +62 -31
- package/lib-commonjs/__tests__/Callout.test.js.map +1 -1
- package/lib-commonjs/index.d.ts +12 -3
- package/lib-commonjs/index.d.ts.map +1 -1
- package/lib-commonjs/index.js +17 -7
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +63 -62
- package/src/Callout.tsx +3 -11
- package/src/Callout.types.ts +35 -2
- package/src/CalloutNativeComponent.macos.ts +12 -0
- package/src/CalloutNativeComponent.ts +1 -62
- package/src/CalloutNativeComponent.types.macos.ts +31 -0
- package/src/CalloutNativeComponent.types.ts +31 -0
- package/src/CalloutNativeComponent.win32.ts +11 -0
- package/src/__tests__/Callout.test.tsx +6 -3
- package/src/index.ts +1 -1
- package/lib/CalloutNativeCommands.types.d.ts +0 -5
- package/lib/CalloutNativeCommands.types.d.ts.map +0 -1
- package/lib/CalloutNativeCommands.types.js +0 -2
- package/lib/CalloutNativeCommands.types.js.map +0 -1
- package/lib/MacOSCalloutNativeComponent.d.ts +0 -47
- package/lib/MacOSCalloutNativeComponent.d.ts.map +0 -1
- package/lib/MacOSCalloutNativeComponent.js +0 -12
- package/lib/MacOSCalloutNativeComponent.js.map +0 -1
- package/lib-commonjs/CalloutNativeCommands.types.d.ts +0 -5
- package/lib-commonjs/CalloutNativeCommands.types.d.ts.map +0 -1
- package/lib-commonjs/CalloutNativeCommands.types.js +0 -3
- package/lib-commonjs/CalloutNativeCommands.types.js.map +0 -1
- package/lib-commonjs/MacOSCalloutNativeComponent.d.ts +0 -47
- package/lib-commonjs/MacOSCalloutNativeComponent.d.ts.map +0 -1
- package/lib-commonjs/MacOSCalloutNativeComponent.js +0 -18
- package/lib-commonjs/MacOSCalloutNativeComponent.js.map +0 -1
- package/src/CalloutNativeCommands.types.ts +0 -4
- package/src/MacOSCalloutNativeComponent.ts +0 -66
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutNativeCommands.types.d.ts","sourceRoot":"","sources":["../src/CalloutNativeCommands.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,WAAW,IAAI,IAAI,CAAC;IACpB,UAAU,IAAI,IAAI,CAAC;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutNativeCommands.types.js","sourceRoot":"","sources":["../src/CalloutNativeCommands.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
5
|
-
*/
|
|
6
|
-
import type { HostComponent, ViewProps } from 'react-native';
|
|
7
|
-
import type { DirectEventHandler, Double, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
8
|
-
type AnchorRect = {
|
|
9
|
-
screenX: Double;
|
|
10
|
-
screenY: Double;
|
|
11
|
-
width: Double;
|
|
12
|
-
height: Double;
|
|
13
|
-
};
|
|
14
|
-
export interface NativeProps extends ViewProps {
|
|
15
|
-
accessibilityLabel?: string;
|
|
16
|
-
accessibilityOnShowAnnouncement?: string;
|
|
17
|
-
anchorRect?: AnchorRect;
|
|
18
|
-
directionalHint?: WithDefault<'leftTopEdge' | 'leftCenter' | 'leftBottomEdge' | 'topLeftEdge' | 'topAutoEdge' | 'topCenter' | 'topRightEdge' | 'rightTopEdge' | 'rightCenter' | 'rightBottomEdge' | 'bottonLeftEdge' | 'bottomAutoEdge' | 'bottomCenter' | 'bottomRightEdge', 'topLeftEdge'>;
|
|
19
|
-
dismissBehaviors?: string[];
|
|
20
|
-
doNotTakePointerCapture?: boolean;
|
|
21
|
-
focusable?: boolean;
|
|
22
|
-
isBeakVisible?: boolean;
|
|
23
|
-
maxHeight?: Int32;
|
|
24
|
-
maxWidth?: Int32;
|
|
25
|
-
setInitialFocus?: boolean;
|
|
26
|
-
target?: Int32;
|
|
27
|
-
testID?: string;
|
|
28
|
-
onRestoreFocus?: DirectEventHandler<{
|
|
29
|
-
target: Int32;
|
|
30
|
-
containsFocus: boolean;
|
|
31
|
-
}>;
|
|
32
|
-
onDismiss?: DirectEventHandler<{
|
|
33
|
-
target: Int32;
|
|
34
|
-
}>;
|
|
35
|
-
onShow?: DirectEventHandler<{
|
|
36
|
-
target: Int32;
|
|
37
|
-
}>;
|
|
38
|
-
}
|
|
39
|
-
export type CalloutComponentType = HostComponent<NativeProps>;
|
|
40
|
-
export interface CalloutNativeCommands {
|
|
41
|
-
focusWindow: (viewRef: React.ElementRef<CalloutComponentType>) => void;
|
|
42
|
-
blurWindow: (viewRef: React.ElementRef<CalloutComponentType>) => void;
|
|
43
|
-
}
|
|
44
|
-
export declare const Commands: CalloutNativeCommands;
|
|
45
|
-
declare const _default: CalloutComponentType;
|
|
46
|
-
export default _default;
|
|
47
|
-
//# sourceMappingURL=MacOSCalloutNativeComponent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MacOSCalloutNativeComponent.d.ts","sourceRoot":"","sources":["../src/MacOSCalloutNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAIhH,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,eAAe,CAAC,EAAE,WAAW,CACzB,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,WAAW,GACX,cAAc,GACd,cAAc,GACd,aAAa,GACb,iBAAiB,GACjB,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,iBAAiB,EACnB,aAAa,CACd,CAAC;IACF,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,cAAc,CAAC,EAAE,kBAAkB,CAAC;QAAE,MAAM,EAAE,KAAK,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC/E,SAAS,CAAC,EAAE,kBAAkB,CAAC;QAAE,MAAM,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;IAClD,MAAM,CAAC,EAAE,kBAAkB,CAAC;QAAE,MAAM,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;CAChD;AAED,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAC9D,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAC;IACvE,UAAU,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAC;CACvE;AAED,eAAO,MAAM,QAAQ,EAAE,qBAErB,CAAC;;AAEH,wBAAyF"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
5
|
-
*/
|
|
6
|
-
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
7
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
8
|
-
export const Commands = codegenNativeCommands({
|
|
9
|
-
supportedCommands: ['blurWindow', 'focusWindow'],
|
|
10
|
-
});
|
|
11
|
-
export default codegenNativeComponent('FRNCallout');
|
|
12
|
-
//# sourceMappingURL=MacOSCalloutNativeComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MacOSCalloutNativeComponent.js","sourceRoot":"","sources":["../src/MacOSCalloutNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,qBAAqB,MAAM,wDAAwD,CAAC;AAC3F,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAmD7F,MAAM,CAAC,MAAM,QAAQ,GAA0B,qBAAqB,CAAwB;IAC1F,iBAAiB,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;CACjD,CAAC,CAAC;AAEH,eAAe,sBAAsB,CAAc,YAAY,CAAyB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutNativeCommands.types.d.ts","sourceRoot":"","sources":["../src/CalloutNativeCommands.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,WAAW,IAAI,IAAI,CAAC;IACpB,UAAU,IAAI,IAAI,CAAC;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutNativeCommands.types.js","sourceRoot":"","sources":["../src/CalloutNativeCommands.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
5
|
-
*/
|
|
6
|
-
import type { HostComponent, ViewProps } from 'react-native';
|
|
7
|
-
import type { DirectEventHandler, Double, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
8
|
-
type AnchorRect = {
|
|
9
|
-
screenX: Double;
|
|
10
|
-
screenY: Double;
|
|
11
|
-
width: Double;
|
|
12
|
-
height: Double;
|
|
13
|
-
};
|
|
14
|
-
export interface NativeProps extends ViewProps {
|
|
15
|
-
accessibilityLabel?: string;
|
|
16
|
-
accessibilityOnShowAnnouncement?: string;
|
|
17
|
-
anchorRect?: AnchorRect;
|
|
18
|
-
directionalHint?: WithDefault<'leftTopEdge' | 'leftCenter' | 'leftBottomEdge' | 'topLeftEdge' | 'topAutoEdge' | 'topCenter' | 'topRightEdge' | 'rightTopEdge' | 'rightCenter' | 'rightBottomEdge' | 'bottonLeftEdge' | 'bottomAutoEdge' | 'bottomCenter' | 'bottomRightEdge', 'topLeftEdge'>;
|
|
19
|
-
dismissBehaviors?: string[];
|
|
20
|
-
doNotTakePointerCapture?: boolean;
|
|
21
|
-
focusable?: boolean;
|
|
22
|
-
isBeakVisible?: boolean;
|
|
23
|
-
maxHeight?: Int32;
|
|
24
|
-
maxWidth?: Int32;
|
|
25
|
-
setInitialFocus?: boolean;
|
|
26
|
-
target?: Int32;
|
|
27
|
-
testID?: string;
|
|
28
|
-
onRestoreFocus?: DirectEventHandler<{
|
|
29
|
-
target: Int32;
|
|
30
|
-
containsFocus: boolean;
|
|
31
|
-
}>;
|
|
32
|
-
onDismiss?: DirectEventHandler<{
|
|
33
|
-
target: Int32;
|
|
34
|
-
}>;
|
|
35
|
-
onShow?: DirectEventHandler<{
|
|
36
|
-
target: Int32;
|
|
37
|
-
}>;
|
|
38
|
-
}
|
|
39
|
-
export type CalloutComponentType = HostComponent<NativeProps>;
|
|
40
|
-
export interface CalloutNativeCommands {
|
|
41
|
-
focusWindow: (viewRef: React.ElementRef<CalloutComponentType>) => void;
|
|
42
|
-
blurWindow: (viewRef: React.ElementRef<CalloutComponentType>) => void;
|
|
43
|
-
}
|
|
44
|
-
export declare const Commands: CalloutNativeCommands;
|
|
45
|
-
declare const _default: CalloutComponentType;
|
|
46
|
-
export default _default;
|
|
47
|
-
//# sourceMappingURL=MacOSCalloutNativeComponent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MacOSCalloutNativeComponent.d.ts","sourceRoot":"","sources":["../src/MacOSCalloutNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAIhH,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,eAAe,CAAC,EAAE,WAAW,CACzB,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,WAAW,GACX,cAAc,GACd,cAAc,GACd,aAAa,GACb,iBAAiB,GACjB,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,iBAAiB,EACnB,aAAa,CACd,CAAC;IACF,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,cAAc,CAAC,EAAE,kBAAkB,CAAC;QAAE,MAAM,EAAE,KAAK,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC/E,SAAS,CAAC,EAAE,kBAAkB,CAAC;QAAE,MAAM,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;IAClD,MAAM,CAAC,EAAE,kBAAkB,CAAC;QAAE,MAAM,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;CAChD;AAED,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAC9D,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAC;IACvE,UAAU,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAC;CACvE;AAED,eAAO,MAAM,QAAQ,EAAE,qBAErB,CAAC;;AAEH,wBAAyF"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
* @format
|
|
6
|
-
*/
|
|
7
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
-
};
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.Commands = void 0;
|
|
12
|
-
const codegenNativeCommands_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));
|
|
13
|
-
const codegenNativeComponent_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
14
|
-
exports.Commands = (0, codegenNativeCommands_1.default)({
|
|
15
|
-
supportedCommands: ['blurWindow', 'focusWindow'],
|
|
16
|
-
});
|
|
17
|
-
exports.default = (0, codegenNativeComponent_1.default)('FRNCallout');
|
|
18
|
-
//# sourceMappingURL=MacOSCalloutNativeComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MacOSCalloutNativeComponent.js","sourceRoot":"","sources":["../src/MacOSCalloutNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAKH,mHAA2F;AAC3F,qHAA6F;AAmDhF,QAAA,QAAQ,GAA0B,IAAA,+BAAqB,EAAwB;IAC1F,iBAAiB,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;CACjD,CAAC,CAAC;AAEH,kBAAe,IAAA,gCAAsB,EAAc,YAAY,CAAyB,CAAC"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import type { HostComponent, ViewProps } from 'react-native';
|
|
8
|
-
|
|
9
|
-
import type { DirectEventHandler, Double, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
10
|
-
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
11
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
12
|
-
|
|
13
|
-
type AnchorRect = {
|
|
14
|
-
screenX: Double;
|
|
15
|
-
screenY: Double;
|
|
16
|
-
width: Double;
|
|
17
|
-
height: Double;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export interface NativeProps extends ViewProps {
|
|
21
|
-
accessibilityLabel?: string;
|
|
22
|
-
accessibilityOnShowAnnouncement?: string;
|
|
23
|
-
anchorRect?: AnchorRect;
|
|
24
|
-
directionalHint?: WithDefault<
|
|
25
|
-
| 'leftTopEdge'
|
|
26
|
-
| 'leftCenter'
|
|
27
|
-
| 'leftBottomEdge'
|
|
28
|
-
| 'topLeftEdge'
|
|
29
|
-
| 'topAutoEdge'
|
|
30
|
-
| 'topCenter'
|
|
31
|
-
| 'topRightEdge'
|
|
32
|
-
| 'rightTopEdge'
|
|
33
|
-
| 'rightCenter'
|
|
34
|
-
| 'rightBottomEdge'
|
|
35
|
-
| 'bottonLeftEdge'
|
|
36
|
-
| 'bottomAutoEdge'
|
|
37
|
-
| 'bottomCenter'
|
|
38
|
-
| 'bottomRightEdge',
|
|
39
|
-
'topLeftEdge'
|
|
40
|
-
>;
|
|
41
|
-
dismissBehaviors?: string[];
|
|
42
|
-
doNotTakePointerCapture?: boolean;
|
|
43
|
-
focusable?: boolean;
|
|
44
|
-
isBeakVisible?: boolean;
|
|
45
|
-
maxHeight?: Int32;
|
|
46
|
-
maxWidth?: Int32;
|
|
47
|
-
setInitialFocus?: boolean;
|
|
48
|
-
target?: Int32;
|
|
49
|
-
testID?: string;
|
|
50
|
-
|
|
51
|
-
onRestoreFocus?: DirectEventHandler<{ target: Int32; containsFocus: boolean }>;
|
|
52
|
-
onDismiss?: DirectEventHandler<{ target: Int32 }>;
|
|
53
|
-
onShow?: DirectEventHandler<{ target: Int32 }>;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export type CalloutComponentType = HostComponent<NativeProps>;
|
|
57
|
-
export interface CalloutNativeCommands {
|
|
58
|
-
focusWindow: (viewRef: React.ElementRef<CalloutComponentType>) => void;
|
|
59
|
-
blurWindow: (viewRef: React.ElementRef<CalloutComponentType>) => void;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export const Commands: CalloutNativeCommands = codegenNativeCommands<CalloutNativeCommands>({
|
|
63
|
-
supportedCommands: ['blurWindow', 'focusWindow'],
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
export default codegenNativeComponent<NativeProps>('FRNCallout') as CalloutComponentType;
|