@fluentui-react-native/callout 0.27.17 → 0.28.1
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 +64 -2
- package/lib/Callout.d.ts.map +1 -1
- package/lib/Callout.js +3 -8
- package/lib/Callout.js.map +1 -1
- package/lib/Callout.types.d.ts +2 -2
- package/lib/Callout.types.d.ts.map +1 -1
- package/lib/CalloutNativeComponent.d.ts +8 -11
- package/lib/CalloutNativeComponent.d.ts.map +1 -1
- package/lib/CalloutNativeComponent.js +0 -5
- package/lib/CalloutNativeComponent.js.map +1 -1
- package/lib/{MacOSCalloutNativeComponent.d.ts → CalloutNativeComponent.macos.d.ts} +9 -11
- package/lib/CalloutNativeComponent.macos.d.ts.map +1 -0
- package/lib/{MacOSCalloutNativeComponent.js → CalloutNativeComponent.macos.js} +1 -6
- package/lib/CalloutNativeComponent.macos.js.map +1 -0
- package/lib/__tests__/Callout.test.js +7 -3
- package/lib/__tests__/Callout.test.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib-commonjs/Callout.d.ts.map +1 -1
- package/lib-commonjs/Callout.js +21 -16
- package/lib-commonjs/Callout.js.map +1 -1
- package/lib-commonjs/Callout.types.d.ts +2 -2
- package/lib-commonjs/Callout.types.d.ts.map +1 -1
- package/lib-commonjs/CalloutNativeComponent.d.ts +8 -11
- package/lib-commonjs/CalloutNativeComponent.d.ts.map +1 -1
- package/lib-commonjs/CalloutNativeComponent.js +0 -5
- package/lib-commonjs/CalloutNativeComponent.js.map +1 -1
- package/lib-commonjs/{MacOSCalloutNativeComponent.d.ts → CalloutNativeComponent.macos.d.ts} +9 -11
- package/lib-commonjs/CalloutNativeComponent.macos.d.ts.map +1 -0
- package/lib-commonjs/{MacOSCalloutNativeComponent.js → CalloutNativeComponent.macos.js} +1 -6
- package/lib-commonjs/CalloutNativeComponent.macos.js.map +1 -0
- package/lib-commonjs/__tests__/Callout.test.js +24 -10
- package/lib-commonjs/__tests__/Callout.test.js.map +1 -1
- package/lib-commonjs/index.d.ts +1 -1
- package/lib-commonjs/index.d.ts.map +1 -1
- package/lib-commonjs/index.js +2 -2
- package/lib-commonjs/index.js.map +1 -1
- package/macos/FRNCalloutManager.m +2 -1
- package/package.json +63 -61
- package/src/Callout.tsx +3 -11
- package/src/Callout.types.ts +3 -2
- package/src/{MacOSCalloutNativeComponent.ts → CalloutNativeComponent.macos.ts} +29 -26
- package/src/CalloutNativeComponent.ts +26 -28
- 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.map +0 -1
- 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.map +0 -1
- package/lib-commonjs/MacOSCalloutNativeComponent.js.map +0 -1
- package/src/CalloutNativeCommands.types.ts +0 -4
- package/src/codegenTypes.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/callout
|
|
2
2
|
|
|
3
|
+
## 0.28.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f72b43a: Fix codegen definitions for native components in repo
|
|
8
|
+
- 0d6e9c1: chore: migrate to `oxfmt`
|
|
9
|
+
- ac6e7af: Ensure packages have a default export that references the typescript entrypoint and clean up build dependency ordering
|
|
10
|
+
- Updated dependencies [0d6e9c1]
|
|
11
|
+
- Updated dependencies [ac6e7af]
|
|
12
|
+
- @uifabricshared/foundation-composable@0.14.1
|
|
13
|
+
- @uifabricshared/foundation-settings@0.16.1
|
|
14
|
+
- @uifabricshared/foundation-compose@1.16.1
|
|
15
|
+
- @fluentui-react-native/adapters@0.14.1
|
|
16
|
+
- @fluentui-react-native/tokens@0.24.1
|
|
17
|
+
|
|
18
|
+
## 0.28.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- d7adbdd: # Migration from Beachball to Changesets
|
|
23
|
+
|
|
24
|
+
This changeset represents the migration from Beachball to Changesets for version management and consolidates all changes from 440+ beachball change files that were in the `change/` directory.
|
|
25
|
+
|
|
26
|
+
All 75 affected packages receive a minor version bump to acknowledge the accumulated changes from the beachball era.
|
|
27
|
+
|
|
28
|
+
## What Changed
|
|
29
|
+
|
|
30
|
+
Going forward, all version management uses Changesets via `yarn changeset`. The following beachball infrastructure has been removed:
|
|
31
|
+
|
|
32
|
+
- ❌ 440+ beachball change files from `change/` directory
|
|
33
|
+
- ❌ `beachball` package dependency
|
|
34
|
+
- ❌ Beachball scripts from `package.json`
|
|
35
|
+
- ❌ `beachball.config.js` configuration file
|
|
36
|
+
- ❌ Beachball publish steps from Azure Pipelines
|
|
37
|
+
|
|
38
|
+
## New Workflow
|
|
39
|
+
|
|
40
|
+
✅ **Create changes**: Run `yarn changeset` to document changes
|
|
41
|
+
✅ **Version bump PRs**: Automatically created by GitHub Actions
|
|
42
|
+
✅ **Publishing**: Handled by Azure Pipelines using `changeset publish`
|
|
43
|
+
✅ **Validation**: CI validates changesets and blocks major version bumps
|
|
44
|
+
|
|
45
|
+
For details, see `CHANGESETS_SETUP.md` and `CONTRIBUTING.md`.
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- d1d8c26: We were pinning @types/react and react-native-macos via resolutions. This fixes that which uncovered a bunch of type inconsistencies that needed to be addressed.
|
|
50
|
+
- Updated dependencies [d7adbdd]
|
|
51
|
+
- Updated dependencies [d1d8c26]
|
|
52
|
+
- @fluentui-react-native/adapters@0.14.0
|
|
53
|
+
- @fluentui-react-native/tokens@0.24.0
|
|
54
|
+
- @uifabricshared/foundation-composable@0.14.0
|
|
55
|
+
- @uifabricshared/foundation-compose@1.16.0
|
|
56
|
+
- @uifabricshared/foundation-settings@0.16.0
|
|
57
|
+
|
|
3
58
|
<!-- This log was last generated on Tue, 05 Aug 2025 18:50:44 GMT and should not be manually modified. -->
|
|
4
59
|
|
|
5
60
|
<!-- Start content -->
|
|
@@ -1604,7 +1659,7 @@ Thu, 16 Dec 2021 19:10:30 GMT
|
|
|
1604
1659
|
|
|
1605
1660
|
- Add up/down arrow key support to macOS ContextualMenu (sanajmi@microsoft.com)
|
|
1606
1661
|
- remove focus style overrides for macOS contextual menu items (sanajmi@microsoft.com)
|
|
1607
|
-
- Rename Jest snapshots to be platform agnostic
|
|
1662
|
+
- Rename Jest snapshots to be platform agnostic (sanajmi@microsoft.com)
|
|
1608
1663
|
- Bump @fluentui-react-native/adapters to v0.8.1
|
|
1609
1664
|
- Bump @fluentui-react-native/interactive-hooks to v0.11.1
|
|
1610
1665
|
- Bump @fluentui-react-native/tokens to v0.11.1
|
|
@@ -2187,7 +2242,7 @@ Fri, 24 Apr 2020 17:13:37 GMT
|
|
|
2187
2242
|
|
|
2188
2243
|
### Patches
|
|
2189
2244
|
|
|
2190
|
-
- Dont import
|
|
2245
|
+
- Dont import \* from react-native (acoates@microsoft.com)
|
|
2191
2246
|
|
|
2192
2247
|
## 0.4.1
|
|
2193
2248
|
|
|
@@ -2214,24 +2269,31 @@ Thu, 16 Apr 2020 23:57:38 GMT
|
|
|
2214
2269
|
- publish with correct main/module references (jasonmo@microsoft.com)
|
|
2215
2270
|
|
|
2216
2271
|
## 0.3.0
|
|
2272
|
+
|
|
2217
2273
|
Thu, 09 Apr 2020 18:39:15 GMT
|
|
2218
2274
|
|
|
2219
2275
|
### Minor changes
|
|
2220
2276
|
|
|
2221
2277
|
- Add ondismiss and onshow callbacks (ppatboyd@outlook.com)
|
|
2278
|
+
|
|
2222
2279
|
## 0.2.3
|
|
2280
|
+
|
|
2223
2281
|
Fri, 03 Apr 2020 20:40:51 GMT
|
|
2224
2282
|
|
|
2225
2283
|
### Patches
|
|
2226
2284
|
|
|
2227
2285
|
- add some configuration versatility (jasonmo@microsoft.com)
|
|
2286
|
+
|
|
2228
2287
|
## 0.2.1
|
|
2288
|
+
|
|
2229
2289
|
Mon, 30 Mar 2020 16:27:00 GMT
|
|
2230
2290
|
|
|
2231
2291
|
### Patches
|
|
2232
2292
|
|
|
2233
2293
|
- Update main attribute to specify TypeScript index file. (kinhln@microsoft.com)
|
|
2294
|
+
|
|
2234
2295
|
## 0.2.0
|
|
2296
|
+
|
|
2235
2297
|
Fri, 27 Mar 2020 04:10:56 GMT
|
|
2236
2298
|
|
|
2237
2299
|
### Minor changes
|
package/lib/Callout.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callout.d.ts","sourceRoot":"","sources":["../src/Callout.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"Callout.d.ts","sourceRoot":"","sources":["../src/Callout.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAgB,MAAM,iBAAiB,CAAC;AAMtF,eAAO,MAAM,OAAO,6JAqDlB,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
package/lib/Callout.js
CHANGED
|
@@ -4,19 +4,14 @@
|
|
|
4
4
|
* @format
|
|
5
5
|
*/
|
|
6
6
|
import * as React from 'react';
|
|
7
|
-
import { findNodeHandle
|
|
7
|
+
import { findNodeHandle } from 'react-native';
|
|
8
8
|
import { backgroundColorTokens, borderTokens } from '@fluentui-react-native/tokens';
|
|
9
9
|
import { compose } from '@uifabricshared/foundation-compose';
|
|
10
10
|
import { mergeSettings } from '@uifabricshared/foundation-settings';
|
|
11
11
|
import { settings } from './Callout.settings';
|
|
12
12
|
import { calloutName } from './Callout.types';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { Commands } from './MacOSCalloutNativeComponent';
|
|
16
|
-
const NativeCalloutView = Platform.select({
|
|
17
|
-
macos: FRNCalloutNativeComponent,
|
|
18
|
-
default: CalloutNativeComponent, // win32
|
|
19
|
-
});
|
|
13
|
+
import NativeCalloutView from './CalloutNativeComponent';
|
|
14
|
+
import { Commands } from './CalloutNativeComponent';
|
|
20
15
|
export const Callout = compose({
|
|
21
16
|
displayName: calloutName,
|
|
22
17
|
usePrepareProps: (props, useStyling) => {
|
package/lib/Callout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callout.js","sourceRoot":"","sources":["../src/Callout.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"Callout.js","sourceRoot":"","sources":["../src/Callout.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAEpF,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAe;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AU,CAAC,KAAK,CAAC,EAAE;YACpE,IAAI,EAAE;gBACJ,GAAG,EAAE,kBAAkB;gBACvB,GAAG,CAAC,YAAY,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;gBAC7C,GAAG,IAAI;aACR;SACF,CAAC,CAAC;QAEH,OAAO,EAAE,SAAS,EAAE,CAAC;IAAA,CACtB;IACD,QAAQ,EAAE,QAAQ;IAClB,KAAK,EAAE;QACL,IAAI,EAAE,iBAAiB;KACxB;IACD,MAAM,EAAE;QACN,IAAI,EAAE,CAAC,qBAAqB,EAAE,YAAY,CAAC;KAC5C;CACF,CAAC,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
package/lib/Callout.types.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ import type { KeyboardMetrics, ViewStyle } from 'react-native';
|
|
|
3
3
|
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
4
4
|
import type { IBackgroundColorTokens, IBorderTokens } from '@fluentui-react-native/tokens';
|
|
5
5
|
import type { IRenderData } from '@uifabricshared/foundation-composable';
|
|
6
|
-
import type { CalloutNativeCommands } from './
|
|
6
|
+
import type { CalloutNativeCommands } from './CalloutNativeComponent';
|
|
7
7
|
export declare const calloutName = "Callout";
|
|
8
8
|
/**
|
|
9
9
|
* Properties and Tokens for FluentUI React Native Callout
|
|
10
10
|
*/
|
|
11
|
-
export type DirectionalHint = 'leftTopEdge' | 'leftCenter' | 'leftBottomEdge' | 'topLeftEdge' | 'topAutoEdge' | 'topCenter' | 'topRightEdge' | 'rightTopEdge' | 'rightCenter' | 'rightBottomEdge' | 'bottonLeftEdge' | 'bottomAutoEdge' | 'bottomCenter' | 'bottomRightEdge';
|
|
11
|
+
export type DirectionalHint = 'leftTopEdge' | 'leftCenter' | 'leftBottomEdge' | 'topLeftEdge' | 'topAutoEdge' | 'topCenter' | 'topRightEdge' | 'rightTopEdge' | 'rightCenter' | 'rightBottomEdge' | 'bottomLeftEdge' | 'bottonLeftEdge' | 'bottomAutoEdge' | 'bottomCenter' | 'bottomRightEdge';
|
|
12
12
|
export type DismissBehaviors = 'preventDismissOnKeyDown' | 'preventDismissOnClickOutside';
|
|
13
13
|
export interface RestoreFocusEvent {
|
|
14
14
|
nativeEvent: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callout.types.d.ts","sourceRoot":"","sources":["../src/Callout.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"Callout.types.d.ts","sourceRoot":"","sources":["../src/Callout.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,eAAO,MAAM,WAAW,YAAY,CAAC;AAErC;;GAEG;AAEH,MAAM,MAAM,eAAe,GACvB,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,WAAW,GACX,cAAc,GACd,cAAc,GACd,aAAa,GACb,iBAAiB,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;;;;;;;;;;OA+CG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAEhE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC;CACpD;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,iBAAiB,CAAC,CAAC;AAEhE,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,MAAM,EAAE,cAAc,CAAC;CACxB"}
|
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
5
|
-
*/
|
|
6
1
|
import type { HostComponent, ViewProps } from 'react-native';
|
|
7
|
-
import type { WithDefault, DirectEventHandler, Double
|
|
8
|
-
|
|
9
|
-
type AnchorRect = {
|
|
2
|
+
import type { WithDefault, UnsafeMixed, Int32, DirectEventHandler, Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
interface AnchorRect {
|
|
10
4
|
screenX: Double;
|
|
11
5
|
screenY: Double;
|
|
12
6
|
width: Double;
|
|
13
7
|
height: Double;
|
|
14
|
-
}
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Shared native props specific to Callout native component
|
|
11
|
+
*/
|
|
15
12
|
export interface NativeProps extends ViewProps {
|
|
16
13
|
accessibilityLabel?: string;
|
|
17
14
|
accessibilityOnShowAnnouncement?: string;
|
|
18
15
|
anchorRect?: AnchorRect;
|
|
19
|
-
directionalHint?: WithDefault<'leftTopEdge' | 'leftCenter' | 'leftBottomEdge' | 'topLeftEdge' | 'topAutoEdge' | 'topCenter' | 'topRightEdge' | 'rightTopEdge' | 'rightCenter' | 'rightBottomEdge' | 'bottonLeftEdge' | 'bottomAutoEdge' | 'bottomCenter' | 'bottomRightEdge', 'bottonLeftEdge'>;
|
|
20
16
|
dismissBehaviors?: string[];
|
|
21
17
|
doNotTakePointerCapture?: boolean;
|
|
22
18
|
focusable?: boolean;
|
|
@@ -24,7 +20,6 @@ export interface NativeProps extends ViewProps {
|
|
|
24
20
|
maxHeight?: Int32;
|
|
25
21
|
maxWidth?: Int32;
|
|
26
22
|
setInitialFocus?: boolean;
|
|
27
|
-
target?: UnsafeMixed;
|
|
28
23
|
testID?: string;
|
|
29
24
|
onRestoreFocus?: DirectEventHandler<{
|
|
30
25
|
target: Int32;
|
|
@@ -36,6 +31,8 @@ export interface NativeProps extends ViewProps {
|
|
|
36
31
|
onShow?: DirectEventHandler<{
|
|
37
32
|
target: Int32;
|
|
38
33
|
}>;
|
|
34
|
+
directionalHint?: WithDefault<'leftTopEdge' | 'leftCenter' | 'leftBottomEdge' | 'topLeftEdge' | 'topAutoEdge' | 'topCenter' | 'topRightEdge' | 'rightTopEdge' | 'rightCenter' | 'rightBottomEdge' | 'bottomLeftEdge' | 'bottonLeftEdge' | 'bottomAutoEdge' | 'bottomCenter' | 'bottomRightEdge', 'bottonLeftEdge'>;
|
|
35
|
+
target?: UnsafeMixed;
|
|
39
36
|
}
|
|
40
37
|
export type CalloutComponentType = HostComponent<NativeProps>;
|
|
41
38
|
export interface CalloutNativeCommands {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutNativeComponent.d.ts","sourceRoot":"","sources":["../src/CalloutNativeComponent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CalloutNativeComponent.d.ts","sourceRoot":"","sources":["../src/CalloutNativeComponent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAE7H,UAAU,UAAU;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB,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;IAG1B,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;IAE/C,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,gBAAgB,GAChB,cAAc,GACd,iBAAiB,EACnB,gBAAgB,CACjB,CAAC;IACF,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAE9D,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,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
5
|
-
*/
|
|
6
1
|
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
7
2
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
8
3
|
export const Commands = codegenNativeCommands({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutNativeComponent.js","sourceRoot":"","sources":["../src/CalloutNativeComponent.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"CalloutNativeComponent.js","sourceRoot":"","sources":["../src/CalloutNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,wDAAwD,CAAC;AAC3F,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AA+D7F,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,21 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
5
|
-
*/
|
|
6
1
|
import type { HostComponent, ViewProps } from 'react-native';
|
|
7
|
-
import type {
|
|
8
|
-
|
|
2
|
+
import type { WithDefault, UnsafeMixed, Int32, DirectEventHandler, Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
interface AnchorRect {
|
|
9
4
|
screenX: Double;
|
|
10
5
|
screenY: Double;
|
|
11
6
|
width: Double;
|
|
12
7
|
height: Double;
|
|
13
|
-
}
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Shared native props specific to Callout native component
|
|
11
|
+
*/
|
|
14
12
|
export interface NativeProps extends ViewProps {
|
|
15
13
|
accessibilityLabel?: string;
|
|
16
14
|
accessibilityOnShowAnnouncement?: string;
|
|
17
15
|
anchorRect?: AnchorRect;
|
|
18
|
-
directionalHint?: WithDefault<'leftTopEdge' | 'leftCenter' | 'leftBottomEdge' | 'topLeftEdge' | 'topAutoEdge' | 'topCenter' | 'topRightEdge' | 'rightTopEdge' | 'rightCenter' | 'rightBottomEdge' | 'bottonLeftEdge' | 'bottomAutoEdge' | 'bottomCenter' | 'bottomRightEdge', 'topLeftEdge'>;
|
|
19
16
|
dismissBehaviors?: string[];
|
|
20
17
|
doNotTakePointerCapture?: boolean;
|
|
21
18
|
focusable?: boolean;
|
|
@@ -23,7 +20,6 @@ export interface NativeProps extends ViewProps {
|
|
|
23
20
|
maxHeight?: Int32;
|
|
24
21
|
maxWidth?: Int32;
|
|
25
22
|
setInitialFocus?: boolean;
|
|
26
|
-
target?: Int32;
|
|
27
23
|
testID?: string;
|
|
28
24
|
onRestoreFocus?: DirectEventHandler<{
|
|
29
25
|
target: Int32;
|
|
@@ -35,6 +31,8 @@ export interface NativeProps extends ViewProps {
|
|
|
35
31
|
onShow?: DirectEventHandler<{
|
|
36
32
|
target: Int32;
|
|
37
33
|
}>;
|
|
34
|
+
directionalHint?: WithDefault<'leftTopEdge' | 'leftCenter' | 'leftBottomEdge' | 'topLeftEdge' | 'topAutoEdge' | 'topCenter' | 'topRightEdge' | 'rightTopEdge' | 'rightCenter' | 'rightBottomEdge' | 'bottomLeftEdge' | 'bottonLeftEdge' | 'bottomAutoEdge' | 'bottomCenter' | 'bottomRightEdge', 'topleftEdge'>;
|
|
35
|
+
target?: UnsafeMixed;
|
|
38
36
|
}
|
|
39
37
|
export type CalloutComponentType = HostComponent<NativeProps>;
|
|
40
38
|
export interface CalloutNativeCommands {
|
|
@@ -44,4 +42,4 @@ export interface CalloutNativeCommands {
|
|
|
44
42
|
export declare const Commands: CalloutNativeCommands;
|
|
45
43
|
declare const _default: CalloutComponentType;
|
|
46
44
|
export default _default;
|
|
47
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=CalloutNativeComponent.macos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalloutNativeComponent.macos.d.ts","sourceRoot":"","sources":["../src/CalloutNativeComponent.macos.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAE7H,UAAU,UAAU;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAA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AAU,CAAC,oBAAoB,CAAC,KAAK,IAAI,CAAC;CACvE;AAED,eAAO,MAAM,QAAQ,EAAE,qBAErB,CAAC;;AAEH,wBAAyF"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
5
|
-
*/
|
|
6
1
|
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
7
2
|
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
8
3
|
export const Commands = codegenNativeCommands({
|
|
9
4
|
supportedCommands: ['blurWindow', 'focusWindow'],
|
|
10
5
|
});
|
|
11
6
|
export default codegenNativeComponent('FRNCallout');
|
|
12
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=CalloutNativeComponent.macos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalloutNativeComponent.macos.js","sourceRoot":"","sources":["../src/CalloutNativeComponent.macos.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,wDAAwD,CAAC;AAC3F,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AA+D7F,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,8 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { act } from 'react';
|
|
2
3
|
import * as renderer from 'react-test-renderer';
|
|
3
4
|
import { Callout } from '..';
|
|
4
5
|
it('Callout default props', () => {
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
let component;
|
|
7
|
+
act(() => {
|
|
8
|
+
component = renderer.create(_jsx(Callout, {}));
|
|
9
|
+
});
|
|
10
|
+
expect(component.toJSON()).toMatchSnapshot();
|
|
7
11
|
});
|
|
8
12
|
//# sourceMappingURL=Callout.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callout.test.js","sourceRoot":"","sources":["../../src/__tests__/Callout.test.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Callout.test.js","sourceRoot":"","sources":["../../src/__tests__/Callout.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAE7B,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE,CAAC;IAChC,IAAI,SAAqC,CAAC;IAC1C,GAAG,CAAC,GAAG,EAAE,CAAC;QACR,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAC,OAAO,KAAG,CAAC,CAAC;IAAA,CAC1C,CAAC,CAAC;IACH,MAAM,CAAC,SAAU,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;AAAA,CAC/C,CAAC,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { calloutName } from './Callout.types';
|
|
2
2
|
export type { DirectionalHint, DismissBehaviors, ICalloutProps, ICalloutRenderData, ICalloutSlotProps, ICalloutTokens, ICalloutType, RestoreFocusEvent, } from './Callout.types';
|
|
3
|
-
export type { CalloutNativeCommands } from './
|
|
3
|
+
export type { CalloutNativeCommands } from './CalloutNativeComponent';
|
|
4
4
|
export { Callout } from './Callout';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,qBAAqB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callout.d.ts","sourceRoot":"","sources":["../src/Callout.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"Callout.d.ts","sourceRoot":"","sources":["../src/Callout.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAgB,MAAM,iBAAiB,CAAC;AAMtF,eAAO,MAAM,OAAO,6JAqDlB,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
package/lib-commonjs/Callout.js
CHANGED
|
@@ -20,13 +20,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
20
20
|
}) : function(o, v) {
|
|
21
21
|
o["default"] = v;
|
|
22
22
|
});
|
|
23
|
-
var __importStar = (this && this.__importStar) || function (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
23
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
24
|
+
var ownKeys = function(o) {
|
|
25
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
26
|
+
var ar = [];
|
|
27
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
28
|
+
return ar;
|
|
29
|
+
};
|
|
30
|
+
return ownKeys(o);
|
|
31
|
+
};
|
|
32
|
+
return function (mod) {
|
|
33
|
+
if (mod && mod.__esModule) return mod;
|
|
34
|
+
var result = {};
|
|
35
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
36
|
+
__setModuleDefault(result, mod);
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
})();
|
|
30
40
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
31
41
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32
42
|
};
|
|
@@ -40,12 +50,7 @@ const foundation_settings_1 = require("@uifabricshared/foundation-settings");
|
|
|
40
50
|
const Callout_settings_1 = require("./Callout.settings");
|
|
41
51
|
const Callout_types_1 = require("./Callout.types");
|
|
42
52
|
const CalloutNativeComponent_1 = __importDefault(require("./CalloutNativeComponent"));
|
|
43
|
-
const
|
|
44
|
-
const MacOSCalloutNativeComponent_2 = require("./MacOSCalloutNativeComponent");
|
|
45
|
-
const NativeCalloutView = react_native_1.Platform.select({
|
|
46
|
-
macos: MacOSCalloutNativeComponent_1.default,
|
|
47
|
-
default: CalloutNativeComponent_1.default, // win32
|
|
48
|
-
});
|
|
53
|
+
const CalloutNativeComponent_2 = require("./CalloutNativeComponent");
|
|
49
54
|
exports.Callout = (0, foundation_compose_1.compose)({
|
|
50
55
|
displayName: Callout_types_1.calloutName,
|
|
51
56
|
usePrepareProps: (props, useStyling) => {
|
|
@@ -53,12 +58,12 @@ exports.Callout = (0, foundation_compose_1.compose)({
|
|
|
53
58
|
React.useImperativeHandle(componentRef, () => ({
|
|
54
59
|
blurWindow() {
|
|
55
60
|
if (componentRef.current != null) {
|
|
56
|
-
|
|
61
|
+
CalloutNativeComponent_2.Commands.blurWindow(nativeComponentRef.current);
|
|
57
62
|
}
|
|
58
63
|
},
|
|
59
64
|
focusWindow() {
|
|
60
65
|
if (componentRef.current != null) {
|
|
61
|
-
|
|
66
|
+
CalloutNativeComponent_2.Commands.focusWindow(nativeComponentRef.current);
|
|
62
67
|
}
|
|
63
68
|
},
|
|
64
69
|
}), [componentRef]);
|
|
@@ -89,7 +94,7 @@ exports.Callout = (0, foundation_compose_1.compose)({
|
|
|
89
94
|
},
|
|
90
95
|
settings: Callout_settings_1.settings,
|
|
91
96
|
slots: {
|
|
92
|
-
root:
|
|
97
|
+
root: CalloutNativeComponent_1.default,
|
|
93
98
|
},
|
|
94
99
|
styles: {
|
|
95
100
|
root: [tokens_1.backgroundColorTokens, tokens_1.borderTokens],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callout.js","sourceRoot":"","sources":["../src/Callout.tsx"],"names":[],"mappings":";AAAA;;;;GAIG
|
|
1
|
+
{"version":3,"file":"Callout.js","sourceRoot":"","sources":["../src/Callout.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,MAAY,KAAK,kCAAc;AAC/B,+CAA8C;AAE9C,0DAAoF;AAEpF,2EAA6D;AAC7D,6EAAoE;AAEpE,yDAA8C;AAE9C,mDAA8C;AAE9C,sFAAyD;AACzD,qEAAoD;AAEvC,QAAA,OAAO,GAAG,IAAA,4BAAO,EAAe;IAC3C,WAAW,EAAE,2BAAW;IACxB,eAAe,EAAE,CAAC,KAAoB,EAAE,UAA4C,EAAE,EAAE,CAAC;QACvF,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;QAChD,KAAK,CAAC,mBAAmB,CACvB,YAAY,EACZ,GAAG,EAAE,CAAC,CAAC;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;IAAA,CACtB;IACD,QAAQ,EAAE,2BAAQ;IAClB,KAAK,EAAE;QACL,IAAI,EAAE,gCAAiB;KACxB;IACD,MAAM,EAAE;QACN,IAAI,EAAE,CAAC,8BAAqB,EAAE,qBAAY,CAAC;KAC5C;CACF,CAAC,CAAC;kBAEY,QAAA,OAAO"}
|
|
@@ -3,12 +3,12 @@ import type { KeyboardMetrics, ViewStyle } from 'react-native';
|
|
|
3
3
|
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
4
4
|
import type { IBackgroundColorTokens, IBorderTokens } from '@fluentui-react-native/tokens';
|
|
5
5
|
import type { IRenderData } from '@uifabricshared/foundation-composable';
|
|
6
|
-
import type { CalloutNativeCommands } from './
|
|
6
|
+
import type { CalloutNativeCommands } from './CalloutNativeComponent';
|
|
7
7
|
export declare const calloutName = "Callout";
|
|
8
8
|
/**
|
|
9
9
|
* Properties and Tokens for FluentUI React Native Callout
|
|
10
10
|
*/
|
|
11
|
-
export type DirectionalHint = 'leftTopEdge' | 'leftCenter' | 'leftBottomEdge' | 'topLeftEdge' | 'topAutoEdge' | 'topCenter' | 'topRightEdge' | 'rightTopEdge' | 'rightCenter' | 'rightBottomEdge' | 'bottonLeftEdge' | 'bottomAutoEdge' | 'bottomCenter' | 'bottomRightEdge';
|
|
11
|
+
export type DirectionalHint = 'leftTopEdge' | 'leftCenter' | 'leftBottomEdge' | 'topLeftEdge' | 'topAutoEdge' | 'topCenter' | 'topRightEdge' | 'rightTopEdge' | 'rightCenter' | 'rightBottomEdge' | 'bottomLeftEdge' | 'bottonLeftEdge' | 'bottomAutoEdge' | 'bottomCenter' | 'bottomRightEdge';
|
|
12
12
|
export type DismissBehaviors = 'preventDismissOnKeyDown' | 'preventDismissOnClickOutside';
|
|
13
13
|
export interface RestoreFocusEvent {
|
|
14
14
|
nativeEvent: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callout.types.d.ts","sourceRoot":"","sources":["../src/Callout.types.ts"],"names":[],"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AI,CAAC;IAEhE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC;CACpD;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,iBAAiB,CAAC,CAAC;AAEhE,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,MAAM,EAAE,cAAc,CAAC;CACxB"}
|
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
5
|
-
*/
|
|
6
1
|
import type { HostComponent, ViewProps } from 'react-native';
|
|
7
|
-
import type { WithDefault, DirectEventHandler, Double
|
|
8
|
-
|
|
9
|
-
type AnchorRect = {
|
|
2
|
+
import type { WithDefault, UnsafeMixed, Int32, DirectEventHandler, Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
interface AnchorRect {
|
|
10
4
|
screenX: Double;
|
|
11
5
|
screenY: Double;
|
|
12
6
|
width: Double;
|
|
13
7
|
height: Double;
|
|
14
|
-
}
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Shared native props specific to Callout native component
|
|
11
|
+
*/
|
|
15
12
|
export interface NativeProps extends ViewProps {
|
|
16
13
|
accessibilityLabel?: string;
|
|
17
14
|
accessibilityOnShowAnnouncement?: string;
|
|
18
15
|
anchorRect?: AnchorRect;
|
|
19
|
-
directionalHint?: WithDefault<'leftTopEdge' | 'leftCenter' | 'leftBottomEdge' | 'topLeftEdge' | 'topAutoEdge' | 'topCenter' | 'topRightEdge' | 'rightTopEdge' | 'rightCenter' | 'rightBottomEdge' | 'bottonLeftEdge' | 'bottomAutoEdge' | 'bottomCenter' | 'bottomRightEdge', 'bottonLeftEdge'>;
|
|
20
16
|
dismissBehaviors?: string[];
|
|
21
17
|
doNotTakePointerCapture?: boolean;
|
|
22
18
|
focusable?: boolean;
|
|
@@ -24,7 +20,6 @@ export interface NativeProps extends ViewProps {
|
|
|
24
20
|
maxHeight?: Int32;
|
|
25
21
|
maxWidth?: Int32;
|
|
26
22
|
setInitialFocus?: boolean;
|
|
27
|
-
target?: UnsafeMixed;
|
|
28
23
|
testID?: string;
|
|
29
24
|
onRestoreFocus?: DirectEventHandler<{
|
|
30
25
|
target: Int32;
|
|
@@ -36,6 +31,8 @@ export interface NativeProps extends ViewProps {
|
|
|
36
31
|
onShow?: DirectEventHandler<{
|
|
37
32
|
target: Int32;
|
|
38
33
|
}>;
|
|
34
|
+
directionalHint?: WithDefault<'leftTopEdge' | 'leftCenter' | 'leftBottomEdge' | 'topLeftEdge' | 'topAutoEdge' | 'topCenter' | 'topRightEdge' | 'rightTopEdge' | 'rightCenter' | 'rightBottomEdge' | 'bottomLeftEdge' | 'bottonLeftEdge' | 'bottomAutoEdge' | 'bottomCenter' | 'bottomRightEdge', 'bottonLeftEdge'>;
|
|
35
|
+
target?: UnsafeMixed;
|
|
39
36
|
}
|
|
40
37
|
export type CalloutComponentType = HostComponent<NativeProps>;
|
|
41
38
|
export interface CalloutNativeCommands {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutNativeComponent.d.ts","sourceRoot":"","sources":["../src/CalloutNativeComponent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CalloutNativeComponent.d.ts","sourceRoot":"","sources":["../src/CalloutNativeComponent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,K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B,CAAC;IACF,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;AAE9D,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutNativeComponent.js","sourceRoot":"","sources":["../src/CalloutNativeComponent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CalloutNativeComponent.js","sourceRoot":"","sources":["../src/CalloutNativeComponent.ts"],"names":[],"mappings":";;;;;;AAAA,mHAA2F;AAC3F,qHAA6F;AA+DhF,QAAA,QAAQ,GAA0B,IAAA,+BAAqB,EAAwB;IAC1F,iBAAiB,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;CACjD,CAAC,CAAC;kBAEY,IAAA,gCAAsB,EAAc,YAAY,CAAyB"}
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* @format
|
|
5
|
-
*/
|
|
6
1
|
import type { HostComponent, ViewProps } from 'react-native';
|
|
7
|
-
import type {
|
|
8
|
-
|
|
2
|
+
import type { WithDefault, UnsafeMixed, Int32, DirectEventHandler, Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
interface AnchorRect {
|
|
9
4
|
screenX: Double;
|
|
10
5
|
screenY: Double;
|
|
11
6
|
width: Double;
|
|
12
7
|
height: Double;
|
|
13
|
-
}
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Shared native props specific to Callout native component
|
|
11
|
+
*/
|
|
14
12
|
export interface NativeProps extends ViewProps {
|
|
15
13
|
accessibilityLabel?: string;
|
|
16
14
|
accessibilityOnShowAnnouncement?: string;
|
|
17
15
|
anchorRect?: AnchorRect;
|
|
18
|
-
directionalHint?: WithDefault<'leftTopEdge' | 'leftCenter' | 'leftBottomEdge' | 'topLeftEdge' | 'topAutoEdge' | 'topCenter' | 'topRightEdge' | 'rightTopEdge' | 'rightCenter' | 'rightBottomEdge' | 'bottonLeftEdge' | 'bottomAutoEdge' | 'bottomCenter' | 'bottomRightEdge', 'topLeftEdge'>;
|
|
19
16
|
dismissBehaviors?: string[];
|
|
20
17
|
doNotTakePointerCapture?: boolean;
|
|
21
18
|
focusable?: boolean;
|
|
@@ -23,7 +20,6 @@ export interface NativeProps extends ViewProps {
|
|
|
23
20
|
maxHeight?: Int32;
|
|
24
21
|
maxWidth?: Int32;
|
|
25
22
|
setInitialFocus?: boolean;
|
|
26
|
-
target?: Int32;
|
|
27
23
|
testID?: string;
|
|
28
24
|
onRestoreFocus?: DirectEventHandler<{
|
|
29
25
|
target: Int32;
|
|
@@ -35,6 +31,8 @@ export interface NativeProps extends ViewProps {
|
|
|
35
31
|
onShow?: DirectEventHandler<{
|
|
36
32
|
target: Int32;
|
|
37
33
|
}>;
|
|
34
|
+
directionalHint?: WithDefault<'leftTopEdge' | 'leftCenter' | 'leftBottomEdge' | 'topLeftEdge' | 'topAutoEdge' | 'topCenter' | 'topRightEdge' | 'rightTopEdge' | 'rightCenter' | 'rightBottomEdge' | 'bottomLeftEdge' | 'bottonLeftEdge' | 'bottomAutoEdge' | 'bottomCenter' | 'bottomRightEdge', 'topleftEdge'>;
|
|
35
|
+
target?: UnsafeMixed;
|
|
38
36
|
}
|
|
39
37
|
export type CalloutComponentType = HostComponent<NativeProps>;
|
|
40
38
|
export interface CalloutNativeCommands {
|
|
@@ -44,4 +42,4 @@ export interface CalloutNativeCommands {
|
|
|
44
42
|
export declare const Commands: CalloutNativeCommands;
|
|
45
43
|
declare const _default: CalloutComponentType;
|
|
46
44
|
export default _default;
|
|
47
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=CalloutNativeComponent.macos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalloutNativeComponent.macos.d.ts","sourceRoot":"","sources":["../src/CalloutNativeComponent.macos.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAE7H,UAAU,UAAU;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB,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;IAG1B,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,MA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