@fluentui-react-native/callout 0.28.0 → 0.28.3
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 +39 -0
- package/lib/Callout.d.ts +2 -8
- package/lib/Callout.js +48 -50
- 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 +163 -210
- package/lib/Callout.types.d.ts.map +1 -1
- package/lib/Callout.types.js +1 -1
- package/lib/CalloutNativeComponent.d.ts +42 -2
- package/lib/CalloutNativeComponent.d.ts.map +1 -1
- package/lib/CalloutNativeComponent.js +2 -2
- package/lib/CalloutNativeComponent.js.map +1 -1
- package/lib/CalloutNativeComponent.macos.d.ts +42 -2
- package/lib/CalloutNativeComponent.macos.d.ts.map +1 -1
- package/lib/CalloutNativeComponent.macos.js +4 -6
- package/lib/CalloutNativeComponent.macos.js.map +1 -1
- package/lib/__tests__/Callout.test.d.ts +1 -1
- package/lib/__tests__/Callout.test.js +7 -7
- package/lib/index.d.ts +3 -12
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib-commonjs/Callout.d.ts +2 -8
- package/lib-commonjs/Callout.js +91 -112
- 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 +163 -210
- package/lib-commonjs/Callout.types.d.ts.map +1 -1
- package/lib-commonjs/Callout.types.js +3 -3
- package/lib-commonjs/CalloutNativeComponent.d.ts +42 -2
- package/lib-commonjs/CalloutNativeComponent.d.ts.map +1 -1
- package/lib-commonjs/CalloutNativeComponent.js +9 -11
- package/lib-commonjs/CalloutNativeComponent.js.map +1 -1
- package/lib-commonjs/CalloutNativeComponent.macos.d.ts +42 -2
- package/lib-commonjs/CalloutNativeComponent.macos.d.ts.map +1 -1
- package/lib-commonjs/CalloutNativeComponent.macos.js +10 -14
- package/lib-commonjs/CalloutNativeComponent.macos.js.map +1 -1
- package/lib-commonjs/__tests__/Callout.test.d.ts +1 -1
- package/lib-commonjs/__tests__/Callout.test.js +41 -58
- package/lib-commonjs/index.d.ts +3 -12
- package/lib-commonjs/index.d.ts.map +1 -1
- package/lib-commonjs/index.js +7 -17
- package/macos/FRNCalloutManager.m +2 -1
- package/package.json +26 -25
- package/src/Callout.types.ts +4 -36
- package/src/CalloutNativeComponent.macos.ts +62 -5
- package/src/CalloutNativeComponent.ts +60 -1
- package/src/index.ts +1 -1
- package/eslint.config.js +0 -3
- package/lib/CalloutNativeComponent.types.d.ts +0 -30
- package/lib/CalloutNativeComponent.types.d.ts.map +0 -1
- package/lib/CalloutNativeComponent.types.js +0 -2
- package/lib/CalloutNativeComponent.types.js.map +0 -1
- package/lib/CalloutNativeComponent.types.macos.d.ts +0 -29
- package/lib/CalloutNativeComponent.types.macos.d.ts.map +0 -1
- package/lib/CalloutNativeComponent.types.macos.js +0 -2
- package/lib/CalloutNativeComponent.types.macos.js.map +0 -1
- package/lib/CalloutNativeComponent.win32.d.ts +0 -5
- package/lib/CalloutNativeComponent.win32.d.ts.map +0 -1
- package/lib/CalloutNativeComponent.win32.js +0 -8
- package/lib/CalloutNativeComponent.win32.js.map +0 -1
- package/lib-commonjs/CalloutNativeComponent.types.d.ts +0 -30
- package/lib-commonjs/CalloutNativeComponent.types.d.ts.map +0 -1
- package/lib-commonjs/CalloutNativeComponent.types.js +0 -3
- package/lib-commonjs/CalloutNativeComponent.types.js.map +0 -1
- package/lib-commonjs/CalloutNativeComponent.types.macos.d.ts +0 -29
- package/lib-commonjs/CalloutNativeComponent.types.macos.d.ts.map +0 -1
- package/lib-commonjs/CalloutNativeComponent.types.macos.js +0 -3
- package/lib-commonjs/CalloutNativeComponent.types.macos.js.map +0 -1
- package/lib-commonjs/CalloutNativeComponent.win32.d.ts +0 -5
- package/lib-commonjs/CalloutNativeComponent.win32.d.ts.map +0 -1
- package/lib-commonjs/CalloutNativeComponent.win32.js +0 -16
- package/lib-commonjs/CalloutNativeComponent.win32.js.map +0 -1
- package/src/CalloutNativeComponent.types.macos.ts +0 -31
- package/src/CalloutNativeComponent.types.ts +0 -31
- package/src/CalloutNativeComponent.win32.ts +0 -11
- package/src/codegenTypes.d.ts +0 -2
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { HostComponent } from 'react-native';
|
|
2
|
-
import type { WithDefault, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
-
import type { NativePropsBase } from './Callout.types';
|
|
4
|
-
export interface NativeProps extends NativePropsBase {
|
|
5
|
-
directionalHint?: WithDefault<
|
|
6
|
-
| 'leftTopEdge'
|
|
7
|
-
| 'leftCenter'
|
|
8
|
-
| 'leftBottomEdge'
|
|
9
|
-
| 'topLeftEdge'
|
|
10
|
-
| 'topAutoEdge'
|
|
11
|
-
| 'topCenter'
|
|
12
|
-
| 'topRightEdge'
|
|
13
|
-
| 'rightTopEdge'
|
|
14
|
-
| 'rightCenter'
|
|
15
|
-
| 'rightBottomEdge'
|
|
16
|
-
| 'bottonLeftEdge'
|
|
17
|
-
| 'bottomAutoEdge'
|
|
18
|
-
| 'bottomCenter'
|
|
19
|
-
| 'bottomRightEdge',
|
|
20
|
-
'topLeftEdge'
|
|
21
|
-
>;
|
|
22
|
-
target?: Int32;
|
|
23
|
-
}
|
|
24
|
-
export type CalloutComponentType = HostComponent<NativeProps>;
|
|
25
|
-
export type CalloutNativeCommands = {
|
|
26
|
-
focusWindow: (viewRef: React.ElementRef<CalloutComponentType>) => void;
|
|
27
|
-
blurWindow: (viewRef: React.ElementRef<CalloutComponentType>) => void;
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=CalloutNativeComponent.types.macos.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutNativeComponent.types.macos.d.ts","sourceRoot":"","sources":["../src/CalloutNativeComponent.types.macos.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD,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,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;AAGD,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAC9D,MAAM,MAAM,qBAAqB,GAAG;IAClC,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,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutNativeComponent.types.macos.js","sourceRoot":"","sources":["../src/CalloutNativeComponent.types.macos.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { CalloutComponentType, CalloutNativeCommands } from './CalloutNativeComponent.types';
|
|
2
|
-
export declare const Commands: CalloutNativeCommands;
|
|
3
|
-
declare const _default: CalloutComponentType;
|
|
4
|
-
export default _default;
|
|
5
|
-
//# sourceMappingURL=CalloutNativeComponent.win32.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutNativeComponent.win32.d.ts","sourceRoot":"","sources":["../src/CalloutNativeComponent.win32.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAe,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE/G,eAAO,MAAM,QAAQ,EAAE,qBAErB,CAAC;;AAGH,wBAAyF"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
var __importDefault =
|
|
3
|
-
(this && this.__importDefault) ||
|
|
4
|
-
function (mod) {
|
|
5
|
-
return mod && mod.__esModule ? mod : { default: mod };
|
|
6
|
-
};
|
|
7
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
-
exports.Commands = void 0;
|
|
9
|
-
const codegenNativeCommands_1 = __importDefault(require('react-native/Libraries/Utilities/codegenNativeCommands'));
|
|
10
|
-
const react_native_1 = require('react-native');
|
|
11
|
-
exports.Commands = (0, codegenNativeCommands_1.default)({
|
|
12
|
-
supportedCommands: ['blurWindow', 'focusWindow'],
|
|
13
|
-
});
|
|
14
|
-
// no fabric for Win32, just use requireNativeComponent
|
|
15
|
-
exports.default = (0, react_native_1.requireNativeComponent)('RCTCallout');
|
|
16
|
-
//# sourceMappingURL=CalloutNativeComponent.win32.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutNativeComponent.win32.js","sourceRoot":"","sources":["../src/CalloutNativeComponent.win32.ts"],"names":[],"mappings":";;;;;;AAAA,mHAA2F;AAC3F,+CAAsD;AAIzC,QAAA,QAAQ,GAA0B,IAAA,+BAAqB,EAAwB;IAC1F,iBAAiB,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;CACjD,CAAC,CAAC;AAEH,uDAAuD;kBACxC,IAAA,qCAAsB,EAAc,YAAY,CAAyB"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { HostComponent } from 'react-native';
|
|
2
|
-
import type { WithDefault, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
-
import type { NativePropsBase } from './Callout.types';
|
|
4
|
-
|
|
5
|
-
export interface NativeProps extends NativePropsBase {
|
|
6
|
-
directionalHint?: WithDefault<
|
|
7
|
-
| 'leftTopEdge'
|
|
8
|
-
| 'leftCenter'
|
|
9
|
-
| 'leftBottomEdge'
|
|
10
|
-
| 'topLeftEdge'
|
|
11
|
-
| 'topAutoEdge'
|
|
12
|
-
| 'topCenter'
|
|
13
|
-
| 'topRightEdge'
|
|
14
|
-
| 'rightTopEdge'
|
|
15
|
-
| 'rightCenter'
|
|
16
|
-
| 'rightBottomEdge'
|
|
17
|
-
| 'bottonLeftEdge'
|
|
18
|
-
| 'bottomAutoEdge'
|
|
19
|
-
| 'bottomCenter'
|
|
20
|
-
| 'bottomRightEdge',
|
|
21
|
-
'topLeftEdge'
|
|
22
|
-
>;
|
|
23
|
-
target?: Int32;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// making these explicit as codegen can't always handle complex typescript types and fails silently
|
|
27
|
-
export type CalloutComponentType = HostComponent<NativeProps>;
|
|
28
|
-
export type CalloutNativeCommands = {
|
|
29
|
-
focusWindow: (viewRef: React.ElementRef<CalloutComponentType>) => void;
|
|
30
|
-
blurWindow: (viewRef: React.ElementRef<CalloutComponentType>) => void;
|
|
31
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { HostComponent } from 'react-native';
|
|
2
|
-
import type { WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
-
import type { UnsafeMixed } from './codegenTypes';
|
|
4
|
-
import type { NativePropsBase } from './Callout.types';
|
|
5
|
-
|
|
6
|
-
export interface NativeProps extends NativePropsBase {
|
|
7
|
-
directionalHint?: WithDefault<
|
|
8
|
-
| 'leftTopEdge'
|
|
9
|
-
| 'leftCenter'
|
|
10
|
-
| 'leftBottomEdge'
|
|
11
|
-
| 'topLeftEdge'
|
|
12
|
-
| 'topAutoEdge'
|
|
13
|
-
| 'topCenter'
|
|
14
|
-
| 'topRightEdge'
|
|
15
|
-
| 'rightTopEdge'
|
|
16
|
-
| 'rightCenter'
|
|
17
|
-
| 'rightBottomEdge'
|
|
18
|
-
| 'bottonLeftEdge'
|
|
19
|
-
| 'bottomAutoEdge'
|
|
20
|
-
| 'bottomCenter'
|
|
21
|
-
| 'bottomRightEdge',
|
|
22
|
-
'bottonLeftEdge'
|
|
23
|
-
>;
|
|
24
|
-
target?: UnsafeMixed;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type CalloutComponentType = HostComponent<NativeProps>;
|
|
28
|
-
export type CalloutNativeCommands = {
|
|
29
|
-
focusWindow: (viewRef: React.ElementRef<CalloutComponentType>) => void;
|
|
30
|
-
blurWindow: (viewRef: React.ElementRef<CalloutComponentType>) => void;
|
|
31
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
2
|
-
import { requireNativeComponent } from 'react-native';
|
|
3
|
-
|
|
4
|
-
import type { NativeProps, CalloutComponentType, CalloutNativeCommands } from './CalloutNativeComponent.types';
|
|
5
|
-
|
|
6
|
-
export const Commands: CalloutNativeCommands = codegenNativeCommands<CalloutNativeCommands>({
|
|
7
|
-
supportedCommands: ['blurWindow', 'focusWindow'],
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
// no fabric for Win32, just use requireNativeComponent
|
|
11
|
-
export default requireNativeComponent<NativeProps>('RCTCallout') as CalloutComponentType;
|
package/src/codegenTypes.d.ts
DELETED