@fluentui-react-native/callout 0.28.0 → 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.
Files changed (79) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/lib/Callout.d.ts +2 -8
  3. package/lib/Callout.js +48 -50
  4. package/lib/Callout.settings.d.ts +1 -1
  5. package/lib/Callout.settings.js +12 -12
  6. package/lib/Callout.settings.macos.d.ts +1 -1
  7. package/lib/Callout.settings.macos.js +15 -15
  8. package/lib/Callout.types.d.ts +163 -210
  9. package/lib/Callout.types.d.ts.map +1 -1
  10. package/lib/Callout.types.js +1 -1
  11. package/lib/CalloutNativeComponent.d.ts +42 -2
  12. package/lib/CalloutNativeComponent.d.ts.map +1 -1
  13. package/lib/CalloutNativeComponent.js +2 -2
  14. package/lib/CalloutNativeComponent.js.map +1 -1
  15. package/lib/CalloutNativeComponent.macos.d.ts +42 -2
  16. package/lib/CalloutNativeComponent.macos.d.ts.map +1 -1
  17. package/lib/CalloutNativeComponent.macos.js +4 -6
  18. package/lib/CalloutNativeComponent.macos.js.map +1 -1
  19. package/lib/__tests__/Callout.test.d.ts +1 -1
  20. package/lib/__tests__/Callout.test.js +7 -7
  21. package/lib/index.d.ts +3 -12
  22. package/lib/index.d.ts.map +1 -1
  23. package/lib/index.js +1 -1
  24. package/lib-commonjs/Callout.d.ts +2 -8
  25. package/lib-commonjs/Callout.js +91 -112
  26. package/lib-commonjs/Callout.settings.d.ts +1 -1
  27. package/lib-commonjs/Callout.settings.js +15 -15
  28. package/lib-commonjs/Callout.settings.macos.d.ts +1 -1
  29. package/lib-commonjs/Callout.settings.macos.js +18 -18
  30. package/lib-commonjs/Callout.types.d.ts +163 -210
  31. package/lib-commonjs/Callout.types.d.ts.map +1 -1
  32. package/lib-commonjs/Callout.types.js +3 -3
  33. package/lib-commonjs/CalloutNativeComponent.d.ts +42 -2
  34. package/lib-commonjs/CalloutNativeComponent.d.ts.map +1 -1
  35. package/lib-commonjs/CalloutNativeComponent.js +9 -11
  36. package/lib-commonjs/CalloutNativeComponent.js.map +1 -1
  37. package/lib-commonjs/CalloutNativeComponent.macos.d.ts +42 -2
  38. package/lib-commonjs/CalloutNativeComponent.macos.d.ts.map +1 -1
  39. package/lib-commonjs/CalloutNativeComponent.macos.js +10 -14
  40. package/lib-commonjs/CalloutNativeComponent.macos.js.map +1 -1
  41. package/lib-commonjs/__tests__/Callout.test.d.ts +1 -1
  42. package/lib-commonjs/__tests__/Callout.test.js +41 -58
  43. package/lib-commonjs/index.d.ts +3 -12
  44. package/lib-commonjs/index.d.ts.map +1 -1
  45. package/lib-commonjs/index.js +7 -17
  46. package/macos/FRNCalloutManager.m +2 -1
  47. package/package.json +18 -17
  48. package/src/Callout.types.ts +4 -36
  49. package/src/CalloutNativeComponent.macos.ts +62 -5
  50. package/src/CalloutNativeComponent.ts +60 -1
  51. package/src/index.ts +1 -1
  52. package/lib/CalloutNativeComponent.types.d.ts +0 -30
  53. package/lib/CalloutNativeComponent.types.d.ts.map +0 -1
  54. package/lib/CalloutNativeComponent.types.js +0 -2
  55. package/lib/CalloutNativeComponent.types.js.map +0 -1
  56. package/lib/CalloutNativeComponent.types.macos.d.ts +0 -29
  57. package/lib/CalloutNativeComponent.types.macos.d.ts.map +0 -1
  58. package/lib/CalloutNativeComponent.types.macos.js +0 -2
  59. package/lib/CalloutNativeComponent.types.macos.js.map +0 -1
  60. package/lib/CalloutNativeComponent.win32.d.ts +0 -5
  61. package/lib/CalloutNativeComponent.win32.d.ts.map +0 -1
  62. package/lib/CalloutNativeComponent.win32.js +0 -8
  63. package/lib/CalloutNativeComponent.win32.js.map +0 -1
  64. package/lib-commonjs/CalloutNativeComponent.types.d.ts +0 -30
  65. package/lib-commonjs/CalloutNativeComponent.types.d.ts.map +0 -1
  66. package/lib-commonjs/CalloutNativeComponent.types.js +0 -3
  67. package/lib-commonjs/CalloutNativeComponent.types.js.map +0 -1
  68. package/lib-commonjs/CalloutNativeComponent.types.macos.d.ts +0 -29
  69. package/lib-commonjs/CalloutNativeComponent.types.macos.d.ts.map +0 -1
  70. package/lib-commonjs/CalloutNativeComponent.types.macos.js +0 -3
  71. package/lib-commonjs/CalloutNativeComponent.types.macos.js.map +0 -1
  72. package/lib-commonjs/CalloutNativeComponent.win32.d.ts +0 -5
  73. package/lib-commonjs/CalloutNativeComponent.win32.d.ts.map +0 -1
  74. package/lib-commonjs/CalloutNativeComponent.win32.js +0 -16
  75. package/lib-commonjs/CalloutNativeComponent.win32.js.map +0 -1
  76. package/src/CalloutNativeComponent.types.macos.ts +0 -31
  77. package/src/CalloutNativeComponent.types.ts +0 -31
  78. package/src/CalloutNativeComponent.win32.ts +0 -11
  79. package/src/codegenTypes.d.ts +0 -2
@@ -1,3 +0,0 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
3
- //# sourceMappingURL=CalloutNativeComponent.types.macos.js.map
@@ -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;
@@ -1,2 +0,0 @@
1
- // Separate .d.ts file to fool codegen, since UnsafeMixed does not existing in the TS types of RN currently.
2
- export type UnsafeMixed = any;