@fluentui/react-popover 9.4.11 → 9.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. package/CHANGELOG.json +117 -1
  2. package/CHANGELOG.md +37 -2
  3. package/dist/index.d.ts +12 -5
  4. package/lib/components/Popover/Popover.js.map +1 -1
  5. package/lib/components/Popover/Popover.types.js.map +1 -1
  6. package/lib/components/Popover/renderPopover.js +2 -2
  7. package/lib/components/Popover/renderPopover.js.map +1 -1
  8. package/lib/components/Popover/usePopover.js.map +1 -1
  9. package/lib/components/PopoverSurface/PopoverSurface.js +5 -0
  10. package/lib/components/PopoverSurface/PopoverSurface.js.map +1 -1
  11. package/lib/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  12. package/lib/components/PopoverSurface/usePopoverSurface.js +2 -2
  13. package/lib/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  14. package/lib/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  15. package/lib/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  16. package/lib/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  17. package/lib/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  18. package/lib/index.js.map +1 -1
  19. package/lib/popoverContext.js.map +1 -1
  20. package/lib-amd/components/Popover/Popover.types.js.map +1 -1
  21. package/lib-amd/components/Popover/renderPopover.js +2 -2
  22. package/lib-amd/components/Popover/renderPopover.js.map +1 -1
  23. package/lib-amd/components/PopoverSurface/PopoverSurface.js +3 -1
  24. package/lib-amd/components/PopoverSurface/PopoverSurface.js.map +1 -1
  25. package/lib-amd/components/PopoverSurface/usePopoverSurface.js +6 -2
  26. package/lib-amd/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  27. package/lib-amd/popoverContext.js.map +1 -1
  28. package/lib-commonjs/Popover.js.map +1 -1
  29. package/lib-commonjs/PopoverSurface.js.map +1 -1
  30. package/lib-commonjs/PopoverTrigger.js.map +1 -1
  31. package/lib-commonjs/components/Popover/Popover.js.map +1 -1
  32. package/lib-commonjs/components/Popover/Popover.types.js.map +1 -1
  33. package/lib-commonjs/components/Popover/constants.js.map +1 -1
  34. package/lib-commonjs/components/Popover/index.js.map +1 -1
  35. package/lib-commonjs/components/Popover/renderPopover.js +2 -2
  36. package/lib-commonjs/components/Popover/renderPopover.js.map +1 -1
  37. package/lib-commonjs/components/Popover/usePopover.js.map +1 -1
  38. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js +5 -0
  39. package/lib-commonjs/components/PopoverSurface/PopoverSurface.js.map +1 -1
  40. package/lib-commonjs/components/PopoverSurface/PopoverSurface.types.js.map +1 -1
  41. package/lib-commonjs/components/PopoverSurface/index.js.map +1 -1
  42. package/lib-commonjs/components/PopoverSurface/renderPopoverSurface.js.map +1 -1
  43. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js +2 -2
  44. package/lib-commonjs/components/PopoverSurface/usePopoverSurface.js.map +1 -1
  45. package/lib-commonjs/components/PopoverSurface/usePopoverSurfaceStyles.js.map +1 -1
  46. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.js.map +1 -1
  47. package/lib-commonjs/components/PopoverTrigger/PopoverTrigger.types.js.map +1 -1
  48. package/lib-commonjs/components/PopoverTrigger/index.js.map +1 -1
  49. package/lib-commonjs/components/PopoverTrigger/renderPopoverTrigger.js.map +1 -1
  50. package/lib-commonjs/components/PopoverTrigger/usePopoverTrigger.js.map +1 -1
  51. package/lib-commonjs/index.js.map +1 -1
  52. package/lib-commonjs/popoverContext.js.map +1 -1
  53. package/package.json +8 -8
@@ -1 +1 @@
1
- {"version":3,"mappings":";;;;;;AAAA;AAIaA,sBAAc,gBAAiCC,sCAAa,CACvEC,SAAS,CACsB;AACjC,MAAMC,0BAA0B,GAAwB;EACtDC,IAAI,EAAE,KAAK;EACXC,OAAO,EAAE,MAAM,IAAI;EACnBC,UAAU,EAAE,MAAM,IAAI;EACtBC,UAAU,EAAE;IAAEC,OAAO,EAAE;EAAI,CAAE;EAC7BC,UAAU,EAAE;IAAED,OAAO,EAAE;EAAI,CAAE;EAC7BE,QAAQ,EAAE;IAAEF,OAAO,EAAE;EAAI,CAAE;EAC3BG,aAAa,EAAE,KAAK;EACpBC,WAAW,EAAE,KAAK;EAClBC,IAAI,EAAE,QAAiB;EACvBC,SAAS,EAAE,KAAK;EAChBC,MAAM,EAAE;CACT;AAEYf,uBAAe,GAAGA,sBAAc,CAACgB,QAAQ;AAwB/C,MAAMC,0BAA0B,GAAOC,QAAiD,IAC7FjB,2CAAkB,CAACD,sBAAc,EAAE,CAACmB,GAAG,GAAGhB,0BAA0B,KAAKe,QAAQ,CAACC,GAAG,CAAC,CAAC;AAD5EnB,kCAA0B","names":["exports","react_context_selector_1","undefined","popoverContextDefaultValue","open","setOpen","toggleOpen","triggerRef","current","contentRef","arrowRef","openOnContext","openOnHover","size","trapFocus","inline","Provider","usePopoverContext_unstable","selector","ctx"],"sourceRoot":"../src/","sources":["packages/react-components/react-popover/src/popoverContext.ts"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { ContextSelector, Context } from '@fluentui/react-context-selector';\nimport type { PopoverState } from './components/Popover/index';\n\nexport const PopoverContext: Context<PopoverContextValue> = createContext<PopoverContextValue | undefined>(\n undefined,\n) as Context<PopoverContextValue>;\nconst popoverContextDefaultValue: PopoverContextValue = {\n open: false,\n setOpen: () => null,\n toggleOpen: () => null,\n triggerRef: { current: null },\n contentRef: { current: null },\n arrowRef: { current: null },\n openOnContext: false,\n openOnHover: false,\n size: 'medium' as const,\n trapFocus: false,\n inline: false,\n};\n\nexport const PopoverProvider = PopoverContext.Provider;\n\n/**\n * Context shared between Popover and its children components\n */\nexport type PopoverContextValue = Pick<\n PopoverState,\n | 'open'\n | 'toggleOpen'\n | 'setOpen'\n | 'triggerRef'\n | 'contentRef'\n | 'openOnHover'\n | 'openOnContext'\n | 'mountNode'\n | 'withArrow'\n | 'arrowRef'\n | 'size'\n | 'appearance'\n | 'trapFocus'\n | 'legacyTrapFocus'\n | 'inline'\n>;\n\nexport const usePopoverContext_unstable = <T>(selector: ContextSelector<PopoverContextValue, T>): T =>\n useContextSelector(PopoverContext, (ctx = popoverContextDefaultValue) => selector(ctx));\n"]}
1
+ {"version":3,"names":["react_context_selector_1","require","exports","PopoverContext","createContext","undefined","popoverContextDefaultValue","open","setOpen","toggleOpen","triggerRef","current","contentRef","arrowRef","openOnContext","openOnHover","size","trapFocus","inline","PopoverProvider","Provider","usePopoverContext_unstable","selector","useContextSelector","ctx"],"sources":["../src/packages/react-components/react-popover/src/popoverContext.ts"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { ContextSelector, Context } from '@fluentui/react-context-selector';\nimport type { PopoverState } from './components/Popover/index';\n\nexport const PopoverContext: Context<PopoverContextValue> = createContext<PopoverContextValue | undefined>(\n undefined,\n) as Context<PopoverContextValue>;\nconst popoverContextDefaultValue: PopoverContextValue = {\n open: false,\n setOpen: () => null,\n toggleOpen: () => null,\n triggerRef: { current: null },\n contentRef: { current: null },\n arrowRef: { current: null },\n openOnContext: false,\n openOnHover: false,\n size: 'medium' as const,\n trapFocus: false,\n inline: false,\n};\n\nexport const PopoverProvider = PopoverContext.Provider;\n\n/**\n * Context shared between Popover and its children components\n */\nexport type PopoverContextValue = Pick<\n PopoverState,\n | 'open'\n | 'toggleOpen'\n | 'setOpen'\n | 'triggerRef'\n | 'contentRef'\n | 'openOnHover'\n | 'openOnContext'\n | 'mountNode'\n | 'withArrow'\n | 'arrowRef'\n | 'size'\n | 'appearance'\n | 'trapFocus'\n | 'inertTrapFocus'\n | 'inline'\n>;\n\nexport const usePopoverContext_unstable = <T>(selector: ContextSelector<PopoverContextValue, T>): T =>\n useContextSelector(PopoverContext, (ctx = popoverContextDefaultValue) => selector(ctx));\n"],"mappings":";;;;;;AAAA,MAAAA,wBAAA,gBAAAC,OAAA;AAIaC,OAAA,CAAAC,cAAc,gBAAiCH,wBAAA,CAAAI,aAAa,CACvEC,SAAS,CACsB;AACjC,MAAMC,0BAA0B,GAAwB;EACtDC,IAAI,EAAE,KAAK;EACXC,OAAO,EAAEA,CAAA,KAAM,IAAI;EACnBC,UAAU,EAAEA,CAAA,KAAM,IAAI;EACtBC,UAAU,EAAE;IAAEC,OAAO,EAAE;EAAI,CAAE;EAC7BC,UAAU,EAAE;IAAED,OAAO,EAAE;EAAI,CAAE;EAC7BE,QAAQ,EAAE;IAAEF,OAAO,EAAE;EAAI,CAAE;EAC3BG,aAAa,EAAE,KAAK;EACpBC,WAAW,EAAE,KAAK;EAClBC,IAAI,EAAE,QAAiB;EACvBC,SAAS,EAAE,KAAK;EAChBC,MAAM,EAAE;CACT;AAEYhB,OAAA,CAAAiB,eAAe,GAAGjB,OAAA,CAAAC,cAAc,CAACiB,QAAQ;AAwB/C,MAAMC,0BAA0B,GAAOC,QAAiD,IAC7FtB,wBAAA,CAAAuB,kBAAkB,CAACrB,OAAA,CAAAC,cAAc,EAAE,CAACqB,GAAG,GAAGlB,0BAA0B,KAAKgB,QAAQ,CAACE,GAAG,CAAC,CAAC;AAD5EtB,OAAA,CAAAmB,0BAA0B,GAAAA,0BAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-popover",
3
- "version": "9.4.11",
3
+ "version": "9.5.1",
4
4
  "description": "Popover component for Fluent UI",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -36,14 +36,14 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@fluentui/keyboard-keys": "^9.0.1",
39
- "@fluentui/react-aria": "^9.3.10",
40
- "@fluentui/react-context-selector": "^9.1.10",
41
- "@fluentui/react-portal": "^9.1.9",
42
- "@fluentui/react-positioning": "^9.5.0",
43
- "@fluentui/react-shared-contexts": "^9.2.0",
44
- "@fluentui/react-tabster": "^9.5.3",
39
+ "@fluentui/react-aria": "^9.3.12",
40
+ "@fluentui/react-context-selector": "^9.1.12",
41
+ "@fluentui/react-portal": "^9.1.11",
42
+ "@fluentui/react-positioning": "^9.5.2",
43
+ "@fluentui/react-shared-contexts": "^9.3.0",
44
+ "@fluentui/react-tabster": "^9.5.5",
45
45
  "@fluentui/react-theme": "^9.1.5",
46
- "@fluentui/react-utilities": "^9.6.0",
46
+ "@fluentui/react-utilities": "^9.6.2",
47
47
  "@griffel/react": "^1.5.2",
48
48
  "tslib": "^2.1.0"
49
49
  },