@fluentui/react-portal 9.0.0-beta.1 → 9.0.0-beta.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/CHANGELOG.json +185 -1
  2. package/CHANGELOG.md +55 -2
  3. package/dist/react-portal.d.ts +2 -1
  4. package/lib/components/Portal/Portal.d.ts +2 -1
  5. package/lib/components/Portal/Portal.js +6 -4
  6. package/lib/components/Portal/Portal.js.map +1 -1
  7. package/lib/components/Portal/renderPortal.js +6 -2
  8. package/lib/components/Portal/renderPortal.js.map +1 -1
  9. package/lib/components/Portal/usePortal.js +22 -16
  10. package/lib/components/Portal/usePortal.js.map +1 -1
  11. package/lib/components/Portal/usePortalMountNode.js +27 -21
  12. package/lib/components/Portal/usePortalMountNode.js.map +1 -1
  13. package/lib/virtualParent/elementContains.js +18 -14
  14. package/lib/virtualParent/elementContains.js.map +1 -1
  15. package/lib/virtualParent/getParent.js +2 -1
  16. package/lib/virtualParent/getParent.js.map +1 -1
  17. package/lib/virtualParent/getVirtualParent.js +8 -5
  18. package/lib/virtualParent/getVirtualParent.js.map +1 -1
  19. package/lib/virtualParent/isVirtualElement.js +1 -1
  20. package/lib/virtualParent/isVirtualElement.js.map +1 -1
  21. package/lib/virtualParent/setVirtualParent.js +11 -8
  22. package/lib/virtualParent/setVirtualParent.js.map +1 -1
  23. package/lib-commonjs/Portal.js +7 -2
  24. package/lib-commonjs/Portal.js.map +1 -1
  25. package/lib-commonjs/components/Portal/Portal.d.ts +2 -1
  26. package/lib-commonjs/components/Portal/Portal.js +16 -7
  27. package/lib-commonjs/components/Portal/Portal.js.map +1 -1
  28. package/lib-commonjs/components/Portal/Portal.types.js +4 -1
  29. package/lib-commonjs/components/Portal/Portal.types.js.map +1 -1
  30. package/lib-commonjs/components/Portal/index.js +10 -2
  31. package/lib-commonjs/components/Portal/index.js.map +1 -1
  32. package/lib-commonjs/components/Portal/renderPortal.js +16 -5
  33. package/lib-commonjs/components/Portal/renderPortal.js.map +1 -1
  34. package/lib-commonjs/components/Portal/usePortal.js +36 -21
  35. package/lib-commonjs/components/Portal/usePortal.js.map +1 -1
  36. package/lib-commonjs/components/Portal/usePortalMountNode.js +41 -26
  37. package/lib-commonjs/components/Portal/usePortalMountNode.js.map +1 -1
  38. package/lib-commonjs/index.js +22 -5
  39. package/lib-commonjs/index.js.map +1 -1
  40. package/lib-commonjs/virtualParent/elementContains.js +26 -16
  41. package/lib-commonjs/virtualParent/elementContains.js.map +1 -1
  42. package/lib-commonjs/virtualParent/getParent.js +10 -3
  43. package/lib-commonjs/virtualParent/getParent.js.map +1 -1
  44. package/lib-commonjs/virtualParent/getVirtualParent.js +16 -7
  45. package/lib-commonjs/virtualParent/getVirtualParent.js.map +1 -1
  46. package/lib-commonjs/virtualParent/index.js +11 -2
  47. package/lib-commonjs/virtualParent/index.js.map +1 -1
  48. package/lib-commonjs/virtualParent/isVirtualElement.js +7 -2
  49. package/lib-commonjs/virtualParent/isVirtualElement.js.map +1 -1
  50. package/lib-commonjs/virtualParent/setVirtualParent.js +17 -9
  51. package/lib-commonjs/virtualParent/setVirtualParent.js.map +1 -1
  52. package/lib-commonjs/virtualParent/types.js +4 -1
  53. package/lib-commonjs/virtualParent/types.js.map +1 -1
  54. package/package.json +11 -10
  55. package/lib/common/isConformant.d.ts +0 -4
  56. package/lib/common/isConformant.js +0 -9
  57. package/lib/common/isConformant.js.map +0 -1
  58. package/lib-commonjs/common/isConformant.d.ts +0 -4
  59. package/lib-commonjs/common/isConformant.js +0 -13
  60. 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
- var 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,IAAM,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
- var react_conformance_1 = require("@fluentui/react-conformance");
5
- function isConformant(testInfo) {
6
- var 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,iEAA+E;AAG/E,SAAgB,YAAY,CAC1B,QAAyF;IAEzF,IAAM,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"}