@fluentui-react-native/focus-trap-zone 0.9.66 → 0.9.67

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.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@fluentui-react-native/focus-trap-zone",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 14 Mar 2023 20:46:38 GMT",
5
+ "date": "Sat, 18 Mar 2023 17:18:20 GMT",
6
+ "tag": "@fluentui-react-native/focus-trap-zone_v0.9.67",
7
+ "version": "0.9.67",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@fluentui-react-native/focus-trap-zone",
13
+ "comment": "Bump @fluentui-react-native/interactive-hooks to v0.22.26",
14
+ "commit": "601309349ca2bc18780a3fb71c59337f7c26f9bf"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Tue, 14 Mar 2023 20:50:45 GMT",
6
21
  "tag": "@fluentui-react-native/focus-trap-zone_v0.9.66",
7
22
  "version": "0.9.66",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - @fluentui-react-native/focus-trap-zone
2
2
 
3
- This log was last generated on Tue, 14 Mar 2023 20:46:38 GMT and should not be manually modified.
3
+ This log was last generated on Sat, 18 Mar 2023 17:18:20 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.9.67
8
+
9
+ Sat, 18 Mar 2023 17:18:20 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @fluentui-react-native/interactive-hooks to v0.22.26
14
+
7
15
  ## 0.9.66
8
16
 
9
- Tue, 14 Mar 2023 20:46:38 GMT
17
+ Tue, 14 Mar 2023 20:50:45 GMT
10
18
 
11
19
  ### Patches
12
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/focus-trap-zone",
3
- "version": "0.9.66",
3
+ "version": "0.9.67",
4
4
  "description": "A cross-platform FocusTrapZone component using the Fluent Design System",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "@fluentui-react-native/adapters": ">=0.10.2 <1.0.0",
26
26
  "@fluentui-react-native/component-cache": "^1.4.4",
27
- "@fluentui-react-native/interactive-hooks": ">=0.22.25 <1.0.0",
27
+ "@fluentui-react-native/interactive-hooks": ">=0.22.26 <1.0.0",
28
28
  "@uifabricshared/foundation-composable": ">=0.11.3 <1.0.0",
29
29
  "@uifabricshared/foundation-settings": ">=0.12.3 <1.0.0"
30
30
  },
@@ -1,4 +0,0 @@
1
- import type { IFocusTrapZoneProps, IFocusTrapZoneSlotProps } from './FocusTrapZone.types';
2
- export declare function filterOutComponentRef(propName: string): boolean;
3
- export declare const FocusTrapZone: import("@uifabricshared/foundation-composable").IWithComposable<import("react").FunctionComponent<IFocusTrapZoneProps<import("@fluentui-react-native/adapters").IViewProps>>, import("@uifabricshared/foundation-composable").IComposable<IFocusTrapZoneProps<import("@fluentui-react-native/adapters").IViewProps>, IFocusTrapZoneSlotProps<import("@fluentui-react-native/adapters").IViewProps>, object>>;
4
- //# sourceMappingURL=FocusTrapZone.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FocusTrapZone.d.ts","sourceRoot":"","sources":["../src/FocusTrapZone.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAsB,MAAM,uBAAuB,CAAC;AAI9G,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE/D;AAED,eAAO,MAAM,aAAa,8YAUxB,CAAC"}
@@ -1,31 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
13
- import { useViewCommandFocus } from '@fluentui-react-native/interactive-hooks';
14
- import { composable } from '@uifabricshared/foundation-composable';
15
- import { mergeSettings } from '@uifabricshared/foundation-settings';
16
- var RCTFocusTrapZone = ensureNativeComponent('RCTFocusTrapZone');
17
- export function filterOutComponentRef(propName) {
18
- return propName !== 'componentRef';
19
- }
20
- export var FocusTrapZone = composable({
21
- usePrepareProps: function (userProps, useStyling) {
22
- var ftzRef = useViewCommandFocus(userProps.componentRef);
23
- return {
24
- slotProps: mergeSettings(useStyling(userProps), { root: __assign(__assign({}, userProps), { ref: ftzRef }) }),
25
- };
26
- },
27
- slots: {
28
- root: { slotType: RCTFocusTrapZone, filter: filterOutComponentRef },
29
- },
30
- });
31
- //# sourceMappingURL=FocusTrapZone.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FocusTrapZone.js","sourceRoot":"","sources":["../src/FocusTrapZone.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAIpE,IAAM,gBAAgB,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;AAEnE,MAAM,UAAU,qBAAqB,CAAC,QAAgB;IACpD,OAAO,QAAQ,KAAK,cAAc,CAAC;AACrC,CAAC;AAED,MAAM,CAAC,IAAM,aAAa,GAAG,UAAU,CAAqB;IAC1D,eAAe,EAAE,UAAC,SAA8B,EAAE,UAA2C;QAC3F,IAAM,MAAM,GAAG,mBAAmB,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QAC3D,OAAO;YACL,SAAS,EAAE,aAAa,CAA0B,UAAU,CAAC,SAAS,CAAC,EAAE,EAAE,IAAI,wBAAO,SAAS,KAAE,GAAG,EAAE,MAAM,GAAE,EAAE,CAAC;SAClH,CAAC;IACJ,CAAC;IACD,KAAK,EAAE;QACL,IAAI,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,qBAAqB,EAAE;KACpE;CACF,CAAC,CAAC"}
@@ -1,42 +0,0 @@
1
- import type * as React from 'react';
2
- import type { IViewProps } from '@fluentui-react-native/adapters';
3
- import type { IFocusable } from '@fluentui-react-native/interactive-hooks';
4
- export type IFocusTrapZoneProps<TBase = IViewProps> = TBase & {
5
- /**
6
- * A RefObject to access the IFocusTrapZone interface. Use this to access the public methods and properties of the component.
7
- */
8
- componentRef?: React.RefObject<IFocusable>;
9
- /**
10
- * Specifies whether the FocusTrapZone's focus trapping behavior is disabled. True, if disabled.
11
- * @default false
12
- */
13
- disabled?: boolean;
14
- /**
15
- * Specifies whether the FocusTrapZone takes focus on render. True, if taking focus is disabled.
16
- * @default false
17
- */
18
- disableFirstFocus?: boolean;
19
- /**
20
- * Determines which element receives focus when focus moves into the FocusTrapZone. If false, the first focusable descendant gets focus.
21
- * If true, the element that was focused when the FocusTrapZone last had a focused descendant is chosen. If it has never had a focused
22
- * descendant before, then the first focusable descendant gets focus.
23
- * @default false
24
- */
25
- focusPreviouslyFocusedInnerElement?: boolean;
26
- /**
27
- * By default, when the FocusTrapZone is unmounted or disabled focus returns to the element outside the FocusTrapZone that last had
28
- * focus. Setting this to true disables this behavior, so the UI behaves as it normally would: If the FocusTrapZone is disabled, focus
29
- * remains on the control inside the FocusTrapZone. If the FocusTrapZone is unmounted, focus usually moves to the nearest focusable
30
- * control, but this can vary.
31
- * @default false
32
- */
33
- ignoreExternalFocusing?: boolean;
34
- };
35
- export type IFocusTrapZoneSlotProps<TBase = IViewProps> = {
36
- root: React.PropsWithRef<Omit<IFocusTrapZoneProps<TBase>, 'componentRef'>>;
37
- };
38
- export type IFocusTrapZoneType<TBase = IViewProps> = {
39
- props: IFocusTrapZoneProps<TBase>;
40
- slotProps: IFocusTrapZoneSlotProps<TBase>;
41
- };
42
- //# sourceMappingURL=FocusTrapZone.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FocusTrapZone.types.d.ts","sourceRoot":"","sources":["../src/FocusTrapZone.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAE3E,MAAM,MAAM,mBAAmB,CAAC,KAAK,GAAG,UAAU,IAAI,KAAK,GAAG;IAC5D;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC3C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;OAKG;IACH,kCAAkC,CAAC,EAAE,OAAO,CAAC;IAC7C;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,uBAAuB,CAAC,KAAK,GAAG,UAAU,IAAI;IACxD,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC;CAC5E,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,KAAK,GAAG,UAAU,IAAI;IACnD,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAClC,SAAS,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC;CAC3C,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=FocusTrapZone.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FocusTrapZone.types.js","sourceRoot":"","sources":["../src/FocusTrapZone.types.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=FocusTrapZone.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FocusTrapZone.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/FocusTrapZone.test.tsx"],"names":[],"mappings":""}
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import * as renderer from 'react-test-renderer';
3
- import { FocusTrapZone } from '..';
4
- it('FocusTrapZone default props', function () {
5
- var tree = renderer.create(React.createElement(FocusTrapZone, null)).toJSON();
6
- expect(tree).toMatchSnapshot();
7
- });
8
- it('FocusTrapZone all props props', function () {
9
- var ref = { current: null };
10
- var tree = renderer
11
- .create(React.createElement(FocusTrapZone, { componentRef: ref, disableFirstFocus: true, disabled: true, ignoreExternalFocusing: true, focusPreviouslyFocusedInnerElement: true }))
12
- .toJSON();
13
- expect(tree).toMatchSnapshot();
14
- });
15
- //# sourceMappingURL=FocusTrapZone.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FocusTrapZone.test.js","sourceRoot":"","sources":["../../src/__tests__/FocusTrapZone.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAEnC,EAAE,CAAC,6BAA6B,EAAE;IAChC,IAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,oBAAC,aAAa,OAAG,CAAC,CAAC,MAAM,EAAE,CAAC;IACzD,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjC,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,+BAA+B,EAAE;IAClC,IAAM,GAAG,GAAgC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3D,IAAM,IAAI,GAAG,QAAQ;SAClB,MAAM,CAAC,oBAAC,aAAa,IAAC,YAAY,EAAE,GAAG,EAAE,iBAAiB,QAAC,QAAQ,QAAC,sBAAsB,QAAC,kCAAkC,SAAG,CAAC;SACjI,MAAM,EAAE,CAAC;IACZ,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjC,CAAC,CAAC,CAAC"}
package/lib/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export type { IFocusTrapZoneProps, IFocusTrapZoneSlotProps, IFocusTrapZoneType } from './FocusTrapZone.types';
2
- export { FocusTrapZone, filterOutComponentRef } from './FocusTrapZone';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC9G,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC"}
package/lib/index.js DELETED
@@ -1,2 +0,0 @@
1
- export { FocusTrapZone, filterOutComponentRef } from './FocusTrapZone';
2
- //# sourceMappingURL=index.js.map
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC"}