@fluentui/react-portal 0.0.0-nightlyf3ce1fbe1d20211110.1 → 0.0.0-nightlyf8be6a7c6520220106.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/CHANGELOG.json +133 -21
  2. package/CHANGELOG.md +38 -10
  3. package/lib/components/Portal/Portal.js +3 -2
  4. package/lib/components/Portal/Portal.js.map +1 -1
  5. package/lib/components/Portal/renderPortal.js +6 -2
  6. package/lib/components/Portal/renderPortal.js.map +1 -1
  7. package/lib/components/Portal/usePortal.js +22 -16
  8. package/lib/components/Portal/usePortal.js.map +1 -1
  9. package/lib/components/Portal/usePortalMountNode.js +27 -21
  10. package/lib/components/Portal/usePortalMountNode.js.map +1 -1
  11. package/lib/virtualParent/elementContains.js +18 -14
  12. package/lib/virtualParent/elementContains.js.map +1 -1
  13. package/lib/virtualParent/getParent.js +2 -1
  14. package/lib/virtualParent/getParent.js.map +1 -1
  15. package/lib/virtualParent/getVirtualParent.js +8 -5
  16. package/lib/virtualParent/getVirtualParent.js.map +1 -1
  17. package/lib/virtualParent/isVirtualElement.js +1 -1
  18. package/lib/virtualParent/isVirtualElement.js.map +1 -1
  19. package/lib/virtualParent/setVirtualParent.js +11 -8
  20. package/lib/virtualParent/setVirtualParent.js.map +1 -1
  21. package/lib-commonjs/Portal.js +7 -2
  22. package/lib-commonjs/Portal.js.map +1 -1
  23. package/lib-commonjs/components/Portal/Portal.js +13 -5
  24. package/lib-commonjs/components/Portal/Portal.js.map +1 -1
  25. package/lib-commonjs/components/Portal/Portal.types.js +4 -1
  26. package/lib-commonjs/components/Portal/Portal.types.js.map +1 -1
  27. package/lib-commonjs/components/Portal/index.js +10 -2
  28. package/lib-commonjs/components/Portal/index.js.map +1 -1
  29. package/lib-commonjs/components/Portal/renderPortal.js +16 -5
  30. package/lib-commonjs/components/Portal/renderPortal.js.map +1 -1
  31. package/lib-commonjs/components/Portal/usePortal.js +36 -21
  32. package/lib-commonjs/components/Portal/usePortal.js.map +1 -1
  33. package/lib-commonjs/components/Portal/usePortalMountNode.js +41 -26
  34. package/lib-commonjs/components/Portal/usePortalMountNode.js.map +1 -1
  35. package/lib-commonjs/index.js +22 -5
  36. package/lib-commonjs/index.js.map +1 -1
  37. package/lib-commonjs/virtualParent/elementContains.js +26 -16
  38. package/lib-commonjs/virtualParent/elementContains.js.map +1 -1
  39. package/lib-commonjs/virtualParent/getParent.js +10 -3
  40. package/lib-commonjs/virtualParent/getParent.js.map +1 -1
  41. package/lib-commonjs/virtualParent/getVirtualParent.js +16 -7
  42. package/lib-commonjs/virtualParent/getVirtualParent.js.map +1 -1
  43. package/lib-commonjs/virtualParent/index.js +11 -2
  44. package/lib-commonjs/virtualParent/index.js.map +1 -1
  45. package/lib-commonjs/virtualParent/isVirtualElement.js +7 -2
  46. package/lib-commonjs/virtualParent/isVirtualElement.js.map +1 -1
  47. package/lib-commonjs/virtualParent/setVirtualParent.js +17 -9
  48. package/lib-commonjs/virtualParent/setVirtualParent.js.map +1 -1
  49. package/lib-commonjs/virtualParent/types.js +4 -1
  50. package/lib-commonjs/virtualParent/types.js.map +1 -1
  51. package/package.json +11 -10
  52. package/lib/common/isConformant.d.ts +0 -4
  53. package/lib/common/isConformant.js +0 -9
  54. package/lib/common/isConformant.js.map +0 -1
  55. package/lib-commonjs/common/isConformant.d.ts +0 -4
  56. package/lib-commonjs/common/isConformant.js +0 -13
  57. package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -1,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -1,9 +0,0 @@
1
- import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
2
- export function isConformant(testInfo) {
3
- const defaultOptions = {
4
- asPropHandlesRef: true,
5
- componentPath: module.parent.filename.replace('.test', ''),
6
- };
7
- baseIsConformant(defaultOptions, testInfo);
8
- }
9
- //# sourceMappingURL=isConformant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isConformant.js","sourceRoot":"","sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/E,MAAM,UAAU,YAAY,CAC1B,QAAyF;IAEzF,MAAM,cAAc,GAAyC;QAC3D,gBAAgB,EAAE,IAAI;QACtB,aAAa,EAAE,MAAO,CAAC,MAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;KAC7D,CAAC;IAEF,gBAAgB,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isConformant = void 0;
4
- const react_conformance_1 = require("@fluentui/react-conformance");
5
- function isConformant(testInfo) {
6
- const defaultOptions = {
7
- asPropHandlesRef: true,
8
- componentPath: module.parent.filename.replace('.test', ''),
9
- };
10
- react_conformance_1.isConformant(defaultOptions, testInfo);
11
- }
12
- exports.isConformant = isConformant;
13
- //# sourceMappingURL=isConformant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isConformant.js","sourceRoot":"","sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;AAAA,mEAA+E;AAG/E,SAAgB,YAAY,CAC1B,QAAyF;IAEzF,MAAM,cAAc,GAAyC;QAC3D,gBAAgB,EAAE,IAAI;QACtB,aAAa,EAAE,MAAO,CAAC,MAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;KAC7D,CAAC;IAEF,gCAAgB,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC;AATD,oCASC"}