@fluentui/react-utilities 0.0.0-nightly-20230529-0417.1 → 0.0.0-nightly-20230530-0415.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 (136) hide show
  1. package/CHANGELOG.json +5 -5
  2. package/CHANGELOG.md +5 -5
  3. package/lib/compose/constants.js +2 -1
  4. package/lib/compose/constants.js.map +1 -1
  5. package/lib/compose/getSlots.js +41 -35
  6. package/lib/compose/getSlots.js.map +1 -1
  7. package/lib/compose/getSlotsNext.js +30 -27
  8. package/lib/compose/getSlotsNext.js.map +1 -1
  9. package/lib/compose/index.js +1 -0
  10. package/lib/compose/index.js.map +1 -1
  11. package/lib/compose/isResolvedShorthand.js +3 -3
  12. package/lib/compose/isResolvedShorthand.js.map +1 -1
  13. package/lib/compose/resolveShorthand.js +22 -25
  14. package/lib/compose/resolveShorthand.js.map +1 -1
  15. package/lib/compose/types.js +1 -0
  16. package/lib/compose/types.js.map +1 -1
  17. package/lib/events/index.js +1 -0
  18. package/lib/events/index.js.map +1 -1
  19. package/lib/events/mouseTouchHelpers.js +28 -26
  20. package/lib/events/mouseTouchHelpers.js.map +1 -1
  21. package/lib/hooks/index.js +1 -0
  22. package/lib/hooks/index.js.map +1 -1
  23. package/lib/hooks/useControllableState.js +56 -41
  24. package/lib/hooks/useControllableState.js.map +1 -1
  25. package/lib/hooks/useEventCallback.js +16 -12
  26. package/lib/hooks/useEventCallback.js.map +1 -1
  27. package/lib/hooks/useFirstMount.js +8 -8
  28. package/lib/hooks/useFirstMount.js.map +1 -1
  29. package/lib/hooks/useForceUpdate.js +3 -3
  30. package/lib/hooks/useForceUpdate.js.map +1 -1
  31. package/lib/hooks/useId.js +33 -28
  32. package/lib/hooks/useId.js.map +1 -1
  33. package/lib/hooks/useIsomorphicLayoutEffect.js +2 -1
  34. package/lib/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  35. package/lib/hooks/useMergedRefs.js +18 -17
  36. package/lib/hooks/useMergedRefs.js.map +1 -1
  37. package/lib/hooks/useOnClickOutside.js +111 -113
  38. package/lib/hooks/useOnClickOutside.js.map +1 -1
  39. package/lib/hooks/useOnScrollOutside.js +26 -28
  40. package/lib/hooks/useOnScrollOutside.js.map +1 -1
  41. package/lib/hooks/usePrevious.js +9 -7
  42. package/lib/hooks/usePrevious.js.map +1 -1
  43. package/lib/hooks/useScrollbarWidth.js +25 -25
  44. package/lib/hooks/useScrollbarWidth.js.map +1 -1
  45. package/lib/hooks/useTimeout.js +23 -18
  46. package/lib/hooks/useTimeout.js.map +1 -1
  47. package/lib/index.js +1 -0
  48. package/lib/index.js.map +1 -1
  49. package/lib/ssr/SSRContext.js +41 -38
  50. package/lib/ssr/SSRContext.js.map +1 -1
  51. package/lib/ssr/canUseDOM.js +4 -4
  52. package/lib/ssr/canUseDOM.js.map +1 -1
  53. package/lib/ssr/index.js +1 -0
  54. package/lib/ssr/index.js.map +1 -1
  55. package/lib/trigger/applyTriggerPropsToChildren.js +21 -22
  56. package/lib/trigger/applyTriggerPropsToChildren.js.map +1 -1
  57. package/lib/trigger/getTriggerChild.js +8 -9
  58. package/lib/trigger/getTriggerChild.js.map +1 -1
  59. package/lib/trigger/index.js +1 -0
  60. package/lib/trigger/index.js.map +1 -1
  61. package/lib/trigger/isFluentTrigger.js +3 -3
  62. package/lib/trigger/isFluentTrigger.js.map +1 -1
  63. package/lib/trigger/types.js +1 -0
  64. package/lib/trigger/types.js.map +1 -1
  65. package/lib/utils/clamp.js +2 -1
  66. package/lib/utils/clamp.js.map +1 -1
  67. package/lib/utils/getNativeElementProps.js +39 -39
  68. package/lib/utils/getNativeElementProps.js.map +1 -1
  69. package/lib/utils/getRTLSafeKey.js +13 -12
  70. package/lib/utils/getRTLSafeKey.js.map +1 -1
  71. package/lib/utils/getReactCallbackName.js +17 -14
  72. package/lib/utils/getReactCallbackName.js.map +1 -1
  73. package/lib/utils/index.js +1 -0
  74. package/lib/utils/index.js.map +1 -1
  75. package/lib/utils/isHTMLElement.js +6 -5
  76. package/lib/utils/isHTMLElement.js.map +1 -1
  77. package/lib/utils/isInteractiveHTMLElement.js +14 -16
  78. package/lib/utils/isInteractiveHTMLElement.js.map +1 -1
  79. package/lib/utils/mergeCallbacks.js +6 -5
  80. package/lib/utils/mergeCallbacks.js.map +1 -1
  81. package/lib/utils/omit.js +8 -7
  82. package/lib/utils/omit.js.map +1 -1
  83. package/lib/utils/priorityQueue.js +86 -85
  84. package/lib/utils/priorityQueue.js.map +1 -1
  85. package/lib/utils/properties.js +291 -79
  86. package/lib/utils/properties.js.map +1 -1
  87. package/lib-commonjs/compose/constants.js +1 -1
  88. package/lib-commonjs/compose/constants.js.map +1 -1
  89. package/lib-commonjs/compose/getSlots.js.map +1 -1
  90. package/lib-commonjs/compose/getSlotsNext.js.map +1 -1
  91. package/lib-commonjs/compose/index.js.map +1 -1
  92. package/lib-commonjs/compose/isResolvedShorthand.js.map +1 -1
  93. package/lib-commonjs/compose/resolveShorthand.js.map +1 -1
  94. package/lib-commonjs/compose/types.js.map +1 -1
  95. package/lib-commonjs/events/index.js.map +1 -1
  96. package/lib-commonjs/events/mouseTouchHelpers.js.map +1 -1
  97. package/lib-commonjs/hooks/index.js.map +1 -1
  98. package/lib-commonjs/hooks/useControllableState.js.map +1 -1
  99. package/lib-commonjs/hooks/useEventCallback.js.map +1 -1
  100. package/lib-commonjs/hooks/useFirstMount.js.map +1 -1
  101. package/lib-commonjs/hooks/useForceUpdate.js.map +1 -1
  102. package/lib-commonjs/hooks/useId.js.map +1 -1
  103. package/lib-commonjs/hooks/useIsomorphicLayoutEffect.js +1 -1
  104. package/lib-commonjs/hooks/useIsomorphicLayoutEffect.js.map +1 -1
  105. package/lib-commonjs/hooks/useMergedRefs.js +1 -2
  106. package/lib-commonjs/hooks/useMergedRefs.js.map +1 -1
  107. package/lib-commonjs/hooks/useOnClickOutside.js.map +1 -1
  108. package/lib-commonjs/hooks/useOnScrollOutside.js.map +1 -1
  109. package/lib-commonjs/hooks/usePrevious.js.map +1 -1
  110. package/lib-commonjs/hooks/useScrollbarWidth.js +1 -1
  111. package/lib-commonjs/hooks/useScrollbarWidth.js.map +1 -1
  112. package/lib-commonjs/hooks/useTimeout.js.map +1 -1
  113. package/lib-commonjs/index.js.map +1 -1
  114. package/lib-commonjs/ssr/SSRContext.js.map +1 -1
  115. package/lib-commonjs/ssr/canUseDOM.js.map +1 -1
  116. package/lib-commonjs/ssr/index.js.map +1 -1
  117. package/lib-commonjs/trigger/applyTriggerPropsToChildren.js.map +1 -1
  118. package/lib-commonjs/trigger/getTriggerChild.js +1 -2
  119. package/lib-commonjs/trigger/getTriggerChild.js.map +1 -1
  120. package/lib-commonjs/trigger/index.js.map +1 -1
  121. package/lib-commonjs/trigger/isFluentTrigger.js.map +1 -1
  122. package/lib-commonjs/trigger/types.js.map +1 -1
  123. package/lib-commonjs/utils/clamp.js.map +1 -1
  124. package/lib-commonjs/utils/getNativeElementProps.js.map +1 -1
  125. package/lib-commonjs/utils/getRTLSafeKey.js.map +1 -1
  126. package/lib-commonjs/utils/getReactCallbackName.js.map +1 -1
  127. package/lib-commonjs/utils/index.js.map +1 -1
  128. package/lib-commonjs/utils/isHTMLElement.js.map +1 -1
  129. package/lib-commonjs/utils/isInteractiveHTMLElement.js.map +1 -1
  130. package/lib-commonjs/utils/mergeCallbacks.js.map +1 -1
  131. package/lib-commonjs/utils/omit.js.map +1 -1
  132. package/lib-commonjs/utils/priorityQueue.js +4 -4
  133. package/lib-commonjs/utils/priorityQueue.js.map +1 -1
  134. package/lib-commonjs/utils/properties.js +27 -28
  135. package/lib-commonjs/utils/properties.js.map +1 -1
  136. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../../lib/utils/mergeCallbacks.js"],"sourcesContent":["/**\n * @internal\n * Combine two event callbacks into a single callback function that calls each one in order.\n *\n * Usage example:\n * ```ts\n * state.slot.onChange = mergeCallbacks(state.slot.onChange, ev => {\n * // Handle onChange\n * });\n * ```\n *\n * The primary use is to avoid the need to capture an existing callback (`state.slot.onChange` in the example) to a\n * local variable before replacing with a new listener that calls the existing one. This helps avoid bugs like:\n * * Infinite recursion by calling the re-assigned state.slot.onChange if it's not captured to a local variable.\n * * Missing a call to the original onChange due to an early return or other conditional.\n *\n * If you need a callback that is stable between renders, wrap the result in {@link useEventCallback}.\n *\n * @param callback1 - The first callback to be called, or undefined\n * @param callback2 - The second callback to be called, or undefined\n *\n * @returns A function that that calls the provided functions in order\n */export function mergeCallbacks(callback1, callback2) {\n return (...args) => {\n callback1 === null || callback1 === void 0 ? void 0 : callback1(...args);\n callback2 === null || callback2 === void 0 ? void 0 : callback2(...args);\n };\n}\n//# sourceMappingURL=mergeCallbacks.js.map"],"names":["mergeCallbacks","callback1","callback2","args"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;CAsBC;;;;+BAAkBA;;aAAAA;;AAAT,SAASA,eAAeC,SAAS,EAAEC,SAAS,EAAE;IACtD,OAAO,CAAC,GAAGC,OAAS;QAClBF,cAAc,IAAI,IAAIA,cAAc,KAAK,IAAI,KAAK,IAAIA,aAAaE,KAAK;QACxED,cAAc,IAAI,IAAIA,cAAc,KAAK,IAAI,KAAK,IAAIA,aAAaC,KAAK;IAC1E;AACF,EACA,0CAA0C"}
1
+ {"version":3,"sources":["../../lib/utils/mergeCallbacks.js"],"sourcesContent":["/**\n * @internal\n * Combine two event callbacks into a single callback function that calls each one in order.\n *\n * Usage example:\n * ```ts\n * state.slot.onChange = mergeCallbacks(state.slot.onChange, ev => {\n * // Handle onChange\n * });\n * ```\n *\n * The primary use is to avoid the need to capture an existing callback (`state.slot.onChange` in the example) to a\n * local variable before replacing with a new listener that calls the existing one. This helps avoid bugs like:\n * * Infinite recursion by calling the re-assigned state.slot.onChange if it's not captured to a local variable.\n * * Missing a call to the original onChange due to an early return or other conditional.\n *\n * If you need a callback that is stable between renders, wrap the result in {@link useEventCallback}.\n *\n * @param callback1 - The first callback to be called, or undefined\n * @param callback2 - The second callback to be called, or undefined\n *\n * @returns A function that that calls the provided functions in order\n */ export function mergeCallbacks(callback1, callback2) {\n return (...args)=>{\n callback1 === null || callback1 === void 0 ? void 0 : callback1(...args);\n callback2 === null || callback2 === void 0 ? void 0 : callback2(...args);\n };\n}\n\n//# sourceMappingURL=mergeCallbacks.js.map"],"names":["mergeCallbacks","callback1","callback2","args"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;CAsBC;;;;+BAAmBA;;aAAAA;;AAAT,SAASA,eAAeC,SAAS,EAAEC,SAAS,EAAE;IACrD,OAAO,CAAC,GAAGC,OAAO;QACdF,cAAc,IAAI,IAAIA,cAAc,KAAK,IAAI,KAAK,IAAIA,aAAaE,KAAK;QACxED,cAAc,IAAI,IAAIA,cAAc,KAAK,IAAI,KAAK,IAAIA,aAAaC,KAAK;IAC5E;AACJ,EAEA,0CAA0C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../lib/utils/omit.js"],"sourcesContent":["/**\n * Tiny helper to do the minimal amount of work in duplicating an object but omitting some\n * props. This ends up faster than using object ...rest or reduce to filter.\n *\n * This behaves very much like filteredAssign, but does not merge many objects together,\n * uses an exclusion object map, and avoids spreads all for optimal performance.\n *\n * See perf test for background:\n * https://jsperf.com/omit-vs-rest-vs-reduce/1\n *\n * @param obj - The object to clone\n * @param exclusions - The array of keys to exclude\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function omit(obj, exclusions) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const result = {};\n for (const key in obj) {\n if (exclusions.indexOf(key) === -1 && obj.hasOwnProperty(key)) {\n result[key] = obj[key];\n }\n }\n return result;\n}\n//# sourceMappingURL=omit.js.map"],"names":["omit","obj","exclusions","result","key","indexOf","hasOwnProperty"],"mappings":"AAAA;;;;;;;;;;;;CAYC,GAAG,8DAA8D;;;;;+BAClDA;;aAAAA;;AAAT,SAASA,KAAKC,GAAG,EAAEC,UAAU,EAAE;IACpC,8DAA8D;IAC9D,MAAMC,SAAS,CAAC;IAChB,IAAK,MAAMC,OAAOH,IAAK;QACrB,IAAIC,WAAWG,OAAO,CAACD,SAAS,CAAC,KAAKH,IAAIK,cAAc,CAACF,MAAM;YAC7DD,MAAM,CAACC,IAAI,GAAGH,GAAG,CAACG,IAAI;QACxB,CAAC;IACH;IACA,OAAOD;AACT,EACA,gCAAgC"}
1
+ {"version":3,"sources":["../../lib/utils/omit.js"],"sourcesContent":["/**\n * Tiny helper to do the minimal amount of work in duplicating an object but omitting some\n * props. This ends up faster than using object ...rest or reduce to filter.\n *\n * This behaves very much like filteredAssign, but does not merge many objects together,\n * uses an exclusion object map, and avoids spreads all for optimal performance.\n *\n * See perf test for background:\n * https://jsperf.com/omit-vs-rest-vs-reduce/1\n *\n * @param obj - The object to clone\n * @param exclusions - The array of keys to exclude\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function omit(obj, exclusions) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const result = {};\n for(const key in obj){\n if (exclusions.indexOf(key) === -1 && obj.hasOwnProperty(key)) {\n result[key] = obj[key];\n }\n }\n return result;\n}\n\n//# sourceMappingURL=omit.js.map"],"names":["omit","obj","exclusions","result","key","indexOf","hasOwnProperty"],"mappings":"AAAA;;;;;;;;;;;;CAYC,GAAG,8DAA8D;;;;;+BAClDA;;aAAAA;;AAAT,SAASA,KAAKC,GAAG,EAAEC,UAAU,EAAE;IAClC,8DAA8D;IAC9D,MAAMC,SAAS,CAAC;IAChB,IAAI,MAAMC,OAAOH,IAAI;QACjB,IAAIC,WAAWG,OAAO,CAACD,SAAS,CAAC,KAAKH,IAAIK,cAAc,CAACF,MAAM;YAC3DD,MAAM,CAACC,IAAI,GAAGH,GAAG,CAACG,IAAI;QAC1B,CAAC;IACL;IACA,OAAOD;AACX,EAEA,gCAAgC"}
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @internal
3
3
  */ /**
4
- * @internal
5
- * @param compare - comparison function for items
6
- * @returns Priority queue implemented with a min heap
7
- */ "use strict";
4
+ * @internal
5
+ * @param compare - comparison function for items
6
+ * @returns Priority queue implemented with a min heap
7
+ */ "use strict";
8
8
  Object.defineProperty(exports, "__esModule", {
9
9
  value: true
10
10
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../lib/utils/priorityQueue.js"],"sourcesContent":["/**\n * @internal\n */ /**\n * @internal\n * @param compare - comparison function for items\n * @returns Priority queue implemented with a min heap\n */export function createPriorityQueue(compare) {\n const arr = [];\n let size = 0;\n const swap = (a, b) => {\n const tmp = arr[a];\n arr[a] = arr[b];\n arr[b] = tmp;\n };\n const heapify = i => {\n let smallest = i;\n const l = left(i);\n const r = right(i);\n if (l < size && compare(arr[l], arr[smallest]) < 0) {\n smallest = l;\n }\n if (r < size && compare(arr[r], arr[smallest]) < 0) {\n smallest = r;\n }\n if (smallest !== i) {\n swap(smallest, i);\n heapify(smallest);\n }\n };\n const dequeue = () => {\n if (size === 0) {\n throw new Error('Priority queue empty');\n }\n const res = arr[0];\n arr[0] = arr[--size];\n heapify(0);\n return res;\n };\n const peek = () => {\n if (size === 0) {\n return null;\n }\n return arr[0];\n };\n const enqueue = item => {\n arr[size++] = item;\n let i = size - 1;\n let p = parent(i);\n while (i > 0 && compare(arr[p], arr[i]) > 0) {\n swap(p, i);\n i = p;\n p = parent(i);\n }\n };\n const contains = item => {\n const index = arr.indexOf(item);\n return index >= 0 && index < size;\n };\n const remove = item => {\n const i = arr.indexOf(item);\n if (i === -1 || i >= size) {\n return;\n }\n arr[i] = arr[--size];\n heapify(i);\n };\n const clear = () => {\n size = 0;\n };\n const all = () => {\n return arr.slice(0, size);\n };\n return {\n all,\n clear,\n contains,\n dequeue,\n enqueue,\n peek,\n remove,\n size: () => size\n };\n}\nconst left = i => {\n return 2 * i + 1;\n};\nconst right = i => {\n return 2 * i + 2;\n};\nconst parent = i => {\n return Math.floor((i - 1) / 2);\n};\n//# sourceMappingURL=priorityQueue.js.map"],"names":["createPriorityQueue","compare","arr","size","swap","a","b","tmp","heapify","i","smallest","l","left","r","right","dequeue","Error","res","peek","enqueue","item","p","parent","contains","index","indexOf","remove","clear","all","slice","Math","floor"],"mappings":"AAAA;;CAEC,GAAG;;;;IAIA;;;;+BAAkBA;;aAAAA;;AAAT,SAASA,oBAAoBC,OAAO,EAAE;IACjD,MAAMC,MAAM,EAAE;IACd,IAAIC,OAAO;IACX,MAAMC,OAAO,CAACC,GAAGC,IAAM;QACrB,MAAMC,MAAML,GAAG,CAACG,EAAE;QAClBH,GAAG,CAACG,EAAE,GAAGH,GAAG,CAACI,EAAE;QACfJ,GAAG,CAACI,EAAE,GAAGC;IACX;IACA,MAAMC,UAAUC,CAAAA,IAAK;QACnB,IAAIC,WAAWD;QACf,MAAME,IAAIC,KAAKH;QACf,MAAMI,IAAIC,MAAML;QAChB,IAAIE,IAAIR,QAAQF,QAAQC,GAAG,CAACS,EAAE,EAAET,GAAG,CAACQ,SAAS,IAAI,GAAG;YAClDA,WAAWC;QACb,CAAC;QACD,IAAIE,IAAIV,QAAQF,QAAQC,GAAG,CAACW,EAAE,EAAEX,GAAG,CAACQ,SAAS,IAAI,GAAG;YAClDA,WAAWG;QACb,CAAC;QACD,IAAIH,aAAaD,GAAG;YAClBL,KAAKM,UAAUD;YACfD,QAAQE;QACV,CAAC;IACH;IACA,MAAMK,UAAU,IAAM;QACpB,IAAIZ,SAAS,GAAG;YACd,MAAM,IAAIa,MAAM,wBAAwB;QAC1C,CAAC;QACD,MAAMC,MAAMf,GAAG,CAAC,EAAE;QAClBA,GAAG,CAAC,EAAE,GAAGA,GAAG,CAAC,EAAEC,KAAK;QACpBK,QAAQ;QACR,OAAOS;IACT;IACA,MAAMC,OAAO,IAAM;QACjB,IAAIf,SAAS,GAAG;YACd,OAAO,IAAI;QACb,CAAC;QACD,OAAOD,GAAG,CAAC,EAAE;IACf;IACA,MAAMiB,UAAUC,CAAAA,OAAQ;QACtBlB,GAAG,CAACC,OAAO,GAAGiB;QACd,IAAIX,IAAIN,OAAO;QACf,IAAIkB,IAAIC,OAAOb;QACf,MAAOA,IAAI,KAAKR,QAAQC,GAAG,CAACmB,EAAE,EAAEnB,GAAG,CAACO,EAAE,IAAI,EAAG;YAC3CL,KAAKiB,GAAGZ;YACRA,IAAIY;YACJA,IAAIC,OAAOb;QACb;IACF;IACA,MAAMc,WAAWH,CAAAA,OAAQ;QACvB,MAAMI,QAAQtB,IAAIuB,OAAO,CAACL;QAC1B,OAAOI,SAAS,KAAKA,QAAQrB;IAC/B;IACA,MAAMuB,SAASN,CAAAA,OAAQ;QACrB,MAAMX,IAAIP,IAAIuB,OAAO,CAACL;QACtB,IAAIX,MAAM,CAAC,KAAKA,KAAKN,MAAM;YACzB;QACF,CAAC;QACDD,GAAG,CAACO,EAAE,GAAGP,GAAG,CAAC,EAAEC,KAAK;QACpBK,QAAQC;IACV;IACA,MAAMkB,QAAQ,IAAM;QAClBxB,OAAO;IACT;IACA,MAAMyB,MAAM,IAAM;QAChB,OAAO1B,IAAI2B,KAAK,CAAC,GAAG1B;IACtB;IACA,OAAO;QACLyB;QACAD;QACAJ;QACAR;QACAI;QACAD;QACAQ;QACAvB,MAAM,IAAMA;IACd;AACF;AACA,MAAMS,OAAOH,CAAAA,IAAK;IAChB,OAAO,IAAIA,IAAI;AACjB;AACA,MAAMK,QAAQL,CAAAA,IAAK;IACjB,OAAO,IAAIA,IAAI;AACjB;AACA,MAAMa,SAASb,CAAAA,IAAK;IAClB,OAAOqB,KAAKC,KAAK,CAAC,AAACtB,CAAAA,IAAI,CAAA,IAAK;AAC9B,GACA,yCAAyC"}
1
+ {"version":3,"sources":["../../lib/utils/priorityQueue.js"],"sourcesContent":["/**\n * @internal\n */ /**\n * @internal\n * @param compare - comparison function for items\n * @returns Priority queue implemented with a min heap\n */ export function createPriorityQueue(compare) {\n const arr = [];\n let size = 0;\n const swap = (a, b)=>{\n const tmp = arr[a];\n arr[a] = arr[b];\n arr[b] = tmp;\n };\n const heapify = (i)=>{\n let smallest = i;\n const l = left(i);\n const r = right(i);\n if (l < size && compare(arr[l], arr[smallest]) < 0) {\n smallest = l;\n }\n if (r < size && compare(arr[r], arr[smallest]) < 0) {\n smallest = r;\n }\n if (smallest !== i) {\n swap(smallest, i);\n heapify(smallest);\n }\n };\n const dequeue = ()=>{\n if (size === 0) {\n throw new Error('Priority queue empty');\n }\n const res = arr[0];\n arr[0] = arr[--size];\n heapify(0);\n return res;\n };\n const peek = ()=>{\n if (size === 0) {\n return null;\n }\n return arr[0];\n };\n const enqueue = (item)=>{\n arr[size++] = item;\n let i = size - 1;\n let p = parent(i);\n while(i > 0 && compare(arr[p], arr[i]) > 0){\n swap(p, i);\n i = p;\n p = parent(i);\n }\n };\n const contains = (item)=>{\n const index = arr.indexOf(item);\n return index >= 0 && index < size;\n };\n const remove = (item)=>{\n const i = arr.indexOf(item);\n if (i === -1 || i >= size) {\n return;\n }\n arr[i] = arr[--size];\n heapify(i);\n };\n const clear = ()=>{\n size = 0;\n };\n const all = ()=>{\n return arr.slice(0, size);\n };\n return {\n all,\n clear,\n contains,\n dequeue,\n enqueue,\n peek,\n remove,\n size: ()=>size\n };\n}\nconst left = (i)=>{\n return 2 * i + 1;\n};\nconst right = (i)=>{\n return 2 * i + 2;\n};\nconst parent = (i)=>{\n return Math.floor((i - 1) / 2);\n};\n\n//# sourceMappingURL=priorityQueue.js.map"],"names":["createPriorityQueue","compare","arr","size","swap","a","b","tmp","heapify","i","smallest","l","left","r","right","dequeue","Error","res","peek","enqueue","item","p","parent","contains","index","indexOf","remove","clear","all","slice","Math","floor"],"mappings":"AAAA;;CAEC,GAAG;;;;CAIH;;;;+BAAmBA;;aAAAA;;AAAT,SAASA,oBAAoBC,OAAO,EAAE;IAC7C,MAAMC,MAAM,EAAE;IACd,IAAIC,OAAO;IACX,MAAMC,OAAO,CAACC,GAAGC,IAAI;QACjB,MAAMC,MAAML,GAAG,CAACG,EAAE;QAClBH,GAAG,CAACG,EAAE,GAAGH,GAAG,CAACI,EAAE;QACfJ,GAAG,CAACI,E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,IAAIX,MAAM,CAAC,KAAKA,KAAKN,MAAM;YACvB;QACJ,CAAC;QACDD,GAAG,CAACO,EAAE,GAAGP,GAAG,CAAC,EAAEC,KAAK;QACpBK,QAAQC;IACZ;IACA,MAAMkB,QAAQ,IAAI;QACdxB,OAAO;IACX;IACA,MAAMyB,MAAM,IAAI;QACZ,OAAO1B,IAAI2B,KAAK,CAAC,GAAG1B;IACxB;IACA,OAAO;QACHyB;QACAD;QACAJ;QACAR;QACAI;QACAD;QACAQ;QACAvB,MAAM,IAAIA;IACd;AACJ;AACA,MAAMS,OAAO,CAACH,IAAI;IACd,OAAO,IAAIA,IAAI;AACnB;AACA,MAAMK,QAAQ,CAACL,IAAI;IACf,OAAO,IAAIA,IAAI;AACnB;AACA,MAAMa,SAAS,CAACb,IAAI;IAChB,OAAOqB,KAAKC,KAAK,CAAC,AAACtB,CAAAA,IAAI,CAAA,IAAK;AAChC,GAEA,yCAAyC"}
@@ -49,7 +49,7 @@ const toObjectMap = (...items)=>{
49
49
  }
50
50
  return result;
51
51
  };
52
- const baseElementEvents = /*#__PURE__*/ toObjectMap([
52
+ const baseElementEvents = toObjectMap([
53
53
  'onAuxClick',
54
54
  'onCopy',
55
55
  'onCut',
@@ -131,7 +131,7 @@ const baseElementEvents = /*#__PURE__*/ toObjectMap([
131
131
  'onGotPointerCapture',
132
132
  'onLostPointerCapture'
133
133
  ]);
134
- const baseElementProperties = /*#__PURE__*/ toObjectMap([
134
+ const baseElementProperties = toObjectMap([
135
135
  'accessKey',
136
136
  'children',
137
137
  'className',
@@ -151,18 +151,18 @@ const baseElementProperties = /*#__PURE__*/ toObjectMap([
151
151
  'spellCheck',
152
152
  'name'
153
153
  ]);
154
- const microdataProperties = /*#__PURE__*/ toObjectMap([
154
+ const microdataProperties = toObjectMap([
155
155
  'itemID',
156
156
  'itemProp',
157
157
  'itemRef',
158
158
  'itemScope',
159
159
  'itemType'
160
160
  ]);
161
- const htmlElementProperties = /*#__PURE__*/ toObjectMap(baseElementProperties, baseElementEvents, microdataProperties);
162
- const labelProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
161
+ const htmlElementProperties = toObjectMap(baseElementProperties, baseElementEvents, microdataProperties);
162
+ const labelProperties = toObjectMap(htmlElementProperties, [
163
163
  'form'
164
164
  ]);
165
- const audioProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
165
+ const audioProperties = toObjectMap(htmlElementProperties, [
166
166
  'height',
167
167
  'loop',
168
168
  'muted',
@@ -170,16 +170,16 @@ const audioProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
170
170
  'src',
171
171
  'width'
172
172
  ]);
173
- const videoProperties = /*#__PURE__*/ toObjectMap(audioProperties, [
173
+ const videoProperties = toObjectMap(audioProperties, [
174
174
  'poster'
175
175
  ]);
176
- const olProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
176
+ const olProperties = toObjectMap(htmlElementProperties, [
177
177
  'start'
178
178
  ]);
179
- const liProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
179
+ const liProperties = toObjectMap(htmlElementProperties, [
180
180
  'value'
181
181
  ]);
182
- const anchorProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
182
+ const anchorProperties = toObjectMap(htmlElementProperties, [
183
183
  'download',
184
184
  'href',
185
185
  'hrefLang',
@@ -188,10 +188,10 @@ const anchorProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
188
188
  'target',
189
189
  'type'
190
190
  ]);
191
- const timeProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
191
+ const timeProperties = toObjectMap(htmlElementProperties, [
192
192
  'dateTime'
193
193
  ]);
194
- const buttonProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
194
+ const buttonProperties = toObjectMap(htmlElementProperties, [
195
195
  'autoFocus',
196
196
  'disabled',
197
197
  'form',
@@ -203,7 +203,7 @@ const buttonProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
203
203
  'type',
204
204
  'value'
205
205
  ]);
206
- const inputProperties = /*#__PURE__*/ toObjectMap(buttonProperties, [
206
+ const inputProperties = toObjectMap(buttonProperties, [
207
207
  'accept',
208
208
  'alt',
209
209
  'autoCapitalize',
@@ -229,7 +229,7 @@ const inputProperties = /*#__PURE__*/ toObjectMap(buttonProperties, [
229
229
  'value',
230
230
  'width'
231
231
  ]);
232
- const textAreaProperties = /*#__PURE__*/ toObjectMap(buttonProperties, [
232
+ const textAreaProperties = toObjectMap(buttonProperties, [
233
233
  'autoCapitalize',
234
234
  'cols',
235
235
  'dirname',
@@ -241,42 +241,42 @@ const textAreaProperties = /*#__PURE__*/ toObjectMap(buttonProperties, [
241
241
  'rows',
242
242
  'wrap'
243
243
  ]);
244
- const selectProperties = /*#__PURE__*/ toObjectMap(buttonProperties, [
244
+ const selectProperties = toObjectMap(buttonProperties, [
245
245
  'form',
246
246
  'multiple',
247
247
  'required'
248
248
  ]);
249
- const optionProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
249
+ const optionProperties = toObjectMap(htmlElementProperties, [
250
250
  'selected',
251
251
  'value'
252
252
  ]);
253
- const tableProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
253
+ const tableProperties = toObjectMap(htmlElementProperties, [
254
254
  'cellPadding',
255
255
  'cellSpacing'
256
256
  ]);
257
257
  const trProperties = htmlElementProperties;
258
- const thProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
258
+ const thProperties = toObjectMap(htmlElementProperties, [
259
259
  'colSpan',
260
260
  'rowSpan',
261
261
  'scope'
262
262
  ]);
263
- const tdProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
263
+ const tdProperties = toObjectMap(htmlElementProperties, [
264
264
  'colSpan',
265
265
  'headers',
266
266
  'rowSpan',
267
267
  'scope'
268
268
  ]);
269
- const colGroupProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
269
+ const colGroupProperties = toObjectMap(htmlElementProperties, [
270
270
  'span'
271
271
  ]);
272
- const colProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
272
+ const colProperties = toObjectMap(htmlElementProperties, [
273
273
  'span'
274
274
  ]);
275
- const fieldsetProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
275
+ const fieldsetProperties = toObjectMap(htmlElementProperties, [
276
276
  'disabled',
277
277
  'form'
278
278
  ]);
279
- const formProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
279
+ const formProperties = toObjectMap(htmlElementProperties, [
280
280
  'acceptCharset',
281
281
  'action',
282
282
  'encType',
@@ -285,7 +285,7 @@ const formProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
285
285
  'noValidate',
286
286
  'target'
287
287
  ]);
288
- const iframeProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
288
+ const iframeProperties = toObjectMap(htmlElementProperties, [
289
289
  'allow',
290
290
  'allowFullScreen',
291
291
  'allowPaymentRequest',
@@ -299,7 +299,7 @@ const iframeProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
299
299
  'srcDoc',
300
300
  'width'
301
301
  ]);
302
- const imgProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
302
+ const imgProperties = toObjectMap(htmlElementProperties, [
303
303
  'alt',
304
304
  'crossOrigin',
305
305
  'height',
@@ -308,14 +308,13 @@ const imgProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
308
308
  'useMap',
309
309
  'width'
310
310
  ]);
311
- const dialogProperties = /*#__PURE__*/ toObjectMap(htmlElementProperties, [
311
+ const dialogProperties = toObjectMap(htmlElementProperties, [
312
312
  'open',
313
313
  'onCancel',
314
314
  'onClose'
315
315
  ]);
316
316
  const divProperties = htmlElementProperties;
317
- function getNativeProps(// eslint-disable-next-line @typescript-eslint/no-explicit-any
318
- props, allowedPropNames, excludedPropNames) {
317
+ function getNativeProps(props, allowedPropNames, excludedPropNames) {
319
318
  // It'd be great to properly type this while allowing 'aria-` and 'data-' attributes like TypeScript does for
320
319
  // JSX attributes, but that ability is hardcoded into the TS compiler with no analog in TypeScript typings.
321
320
  // Then we'd be able to enforce props extends native props (including aria- and data- attributes), and then
@@ -1 +1 @@
1
- {"version":3,"sources":["../../lib/utils/properties.js"],"sourcesContent":["const toObjectMap = (...items) => {\n const result = {};\n for (const item of items) {\n const keys = Array.isArray(item) ? item : Object.keys(item);\n for (const key of keys) {\n result[key] = 1;\n }\n }\n return result;\n};\n/**\n * An array of events that are allowed on every html element type.\n *\n * @public\n */\nexport const baseElementEvents = /*#__PURE__*/toObjectMap(['onAuxClick', 'onCopy', 'onCut', 'onPaste', 'onCompositionEnd', 'onCompositionStart', 'onCompositionUpdate', 'onFocus', 'onFocusCapture', 'onBlur', 'onBlurCapture', 'onChange', 'onInput', 'onSubmit', 'onLoad', 'onError', 'onKeyDown', 'onKeyDownCapture', 'onKeyPress', 'onKeyUp', 'onAbort', 'onCanPlay', 'onCanPlayThrough', 'onDurationChange', 'onEmptied', 'onEncrypted', 'onEnded', 'onLoadedData', 'onLoadedMetadata', 'onLoadStart', 'onPause', 'onPlay', 'onPlaying', 'onProgress', 'onRateChange', 'onSeeked', 'onSeeking', 'onStalled', 'onSuspend', 'onTimeUpdate', 'onVolumeChange', 'onWaiting', 'onClick', 'onClickCapture', 'onContextMenu', 'onDoubleClick', 'onDrag', 'onDragEnd', 'onDragEnter', 'onDragExit', 'onDragLeave', 'onDragOver', 'onDragStart', 'onDrop', 'onMouseDown', 'onMouseDownCapture', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseOut', 'onMouseOver', 'onMouseUp', 'onMouseUpCapture', 'onSelect', 'onTouchCancel', 'onTouchEnd', 'onTouchMove', 'onTouchStart', 'onScroll', 'onWheel', 'onPointerCancel', 'onPointerDown', 'onPointerEnter', 'onPointerLeave', 'onPointerMove', 'onPointerOut', 'onPointerOver', 'onPointerUp', 'onGotPointerCapture', 'onLostPointerCapture']);\n/**\n * An array of element attributes which are allowed on every html element type.\n *\n * @public\n */\nexport const baseElementProperties = /*#__PURE__*/toObjectMap(['accessKey', 'children', 'className', 'contentEditable', 'dir', 'draggable', 'hidden', 'htmlFor', 'id', 'lang', 'ref', 'role', 'style', 'tabIndex', 'title', 'translate', 'spellCheck', 'name']);\n/**\n * An array of microdata attributes that are allowed on every html element type.\n *\n * @public\n */\nexport const microdataProperties = /*#__PURE__*/toObjectMap(['itemID', 'itemProp', 'itemRef', 'itemScope', 'itemType']);\n/**\n * An array of HTML element properties and events.\n *\n * @public\n */\nexport const htmlElementProperties = /*#__PURE__*/toObjectMap(baseElementProperties, baseElementEvents, microdataProperties);\n/**\n * An array of LABEL tag properties and events.\n *\n * @public\n */\nexport const labelProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['form']);\n/**\n * An array of AUDIO tag properties and events.\n\n * @public\n */\nexport const audioProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['height', 'loop', 'muted', 'preload', 'src', 'width']);\n/**\n * An array of VIDEO tag properties and events.\n *\n * @public\n */\nexport const videoProperties = /*#__PURE__*/toObjectMap(audioProperties, ['poster']);\n/**\n * An array of OL tag properties and events.\n *\n * @public\n */\nexport const olProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['start']);\n/**\n * An array of LI tag properties and events.\n *\n * @public\n */\nexport const liProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['value']);\n/**\n * An array of A tag properties and events.\n *\n * @public\n */\nexport const anchorProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['download', 'href', 'hrefLang', 'media', 'rel', 'target', 'type']);\n/**\n * An array of TIME tag properties and events.\n *\n * @public\n */\nexport const timeProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['dateTime']);\n/**\n * An array of BUTTON tag properties and events.\n *\n * @public\n */\nexport const buttonProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['autoFocus', 'disabled', 'form', 'formAction', 'formEncType', 'formMethod', 'formNoValidate', 'formTarget', 'type', 'value']);\n/**\n * An array of INPUT tag properties and events.\n *\n * @public\n */\nexport const inputProperties = /*#__PURE__*/toObjectMap(buttonProperties, ['accept', 'alt', 'autoCapitalize', 'autoComplete', 'checked', 'dirname', 'form', 'height', 'inputMode', 'list', 'max', 'maxLength', 'min', 'multiple', 'pattern', 'placeholder', 'readOnly', 'required', 'src', 'step', 'size', 'type', 'value', 'width']);\n/**\n * An array of TEXTAREA tag properties and events.\n *\n * @public\n */\nexport const textAreaProperties = /*#__PURE__*/toObjectMap(buttonProperties, ['autoCapitalize', 'cols', 'dirname', 'form', 'maxLength', 'placeholder', 'readOnly', 'required', 'rows', 'wrap']);\n/**\n * An array of SELECT tag properties and events.\n *\n * @public\n */\nexport const selectProperties = /*#__PURE__*/toObjectMap(buttonProperties, ['form', 'multiple', 'required']);\nexport const optionProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['selected', 'value']);\n/**\n * An array of TABLE tag properties and events.\n *\n * @public\n */\nexport const tableProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['cellPadding', 'cellSpacing']);\n/**\n * An array of TR tag properties and events.\n *\n * @public\n */\nexport const trProperties = htmlElementProperties;\n/**\n * An array of TH tag properties and events.\n *\n * @public\n */\nexport const thProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['colSpan', 'rowSpan', 'scope']);\n/**\n * An array of TD tag properties and events.\n *\n * @public\n */\nexport const tdProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['colSpan', 'headers', 'rowSpan', 'scope']);\nexport const colGroupProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['span']);\nexport const colProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['span']);\n/**\n * An array of FIELDSET tag properties and events.\n *\n * @public\n */\nexport const fieldsetProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['disabled', 'form']);\n/**\n * An array of FORM tag properties and events.\n *\n * @public\n */\nexport const formProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['acceptCharset', 'action', 'encType', 'encType', 'method', 'noValidate', 'target']);\n/**\n * An array of IFRAME tag properties and events.\n *\n * @public\n */\nexport const iframeProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['allow', 'allowFullScreen', 'allowPaymentRequest', 'allowTransparency', 'csp', 'height', 'importance', 'referrerPolicy', 'sandbox', 'src', 'srcDoc', 'width']);\n/**\n * An array of IMAGE tag properties and events.\n *\n * @public\n */\nexport const imgProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['alt', 'crossOrigin', 'height', 'src', 'srcSet', 'useMap', 'width']);\n/**\n * An array of DIALOG tag properties and events.\n *\n * @public\n */\nexport const dialogProperties = /*#__PURE__*/toObjectMap(htmlElementProperties, ['open', 'onCancel', 'onClose']);\n/**\n * An array of DIV tag properties and events.\n *\n * @public\n */\nexport const divProperties = htmlElementProperties;\n/**\n * Gets native supported props for an html element provided the allowance set. Use one of the property\n * sets defined (divProperties, buttonPropertes, etc) to filter out supported properties from a given\n * props set. Note that all data- and aria- prefixed attributes will be allowed.\n * NOTE: getNativeProps should always be applied first when adding props to a react component. The\n * non-native props should be applied second. This will prevent getNativeProps from overriding your custom props.\n * For example, if props passed to getNativeProps has an onClick function and getNativeProps is added to\n * the component after an onClick function is added, then the getNativeProps onClick will override it.\n *\n * @public\n * @param props - The unfiltered input props\n * @param allowedPropNames - The array or record of allowed prop names.\n * @param excludedPropNames\n * @returns The filtered props\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function getNativeProps(\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nprops, allowedPropNames, excludedPropNames) {\n // It'd be great to properly type this while allowing 'aria-` and 'data-' attributes like TypeScript does for\n // JSX attributes, but that ability is hardcoded into the TS compiler with no analog in TypeScript typings.\n // Then we'd be able to enforce props extends native props (including aria- and data- attributes), and then\n // return native props.\n // We should be able to do this once this PR is merged: https://github.com/microsoft/TypeScript/pull/26797\n const isArray = Array.isArray(allowedPropNames);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const result = {};\n const keys = Object.keys(props);\n for (const key of keys) {\n const isNativeProp = !isArray && allowedPropNames[key] || isArray && allowedPropNames.indexOf(key) >= 0 || key.indexOf('data-') === 0 || key.indexOf('aria-') === 0;\n if (isNativeProp && (!excludedPropNames || (excludedPropNames === null || excludedPropNames === void 0 ? void 0 : excludedPropNames.indexOf(key)) === -1)) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n result[key] = props[key];\n }\n }\n return result;\n}\n//# sourceMappingURL=properties.js.map"],"names":["baseElementEvents","baseElementProperties","microdataProperties","htmlElementProperties","labelProperties","audioProperties","videoProperties","olProperties","liProperties","anchorProperties","timeProperties","buttonProperties","inputProperties","textAreaProperties","selectProperties","optionProperties","tableProperties","trProperties","thProperties","tdProperties","colGroupProperties","colProperties","fieldsetProperties","formProperties","iframeProperties","imgProperties","dialogProperties","divProperties","getNativeProps","toObjectMap","items","result","item","keys","Array","isArray","Object","key","props","allowedPropNames","excludedPropNames","isNativeProp","indexOf"],"mappings":";;;;;;;;;;;IAeaA,iBAAiB,MAAjBA;IAMAC,qBAAqB,MAArBA;IAMAC,mBAAmB,MAAnBA;IAMAC,qBAAqB,MAArBA;IAMAC,eAAe,MAAfA;IAMAC,eAAe,MAAfA;IAMAC,eAAe,MAAfA;IAMAC,YAAY,MAAZA;IAMAC,YAAY,MAAZA;IAMAC,gBAAgB,MAAhBA;IAMAC,cAAc,MAAdA;IAMAC,gBAAgB,MAAhBA;IAMAC,eAAe,MAAfA;IAMAC,kBAAkB,MAAlBA;IAMAC,gBAAgB,MAAhBA;IACAC,gBAAgB,MAAhBA;IAMAC,eAAe,MAAfA;IAMAC,YAAY,MAAZA;IAMAC,YAAY,MAAZA;IAMAC,YAAY,MAAZA;IACAC,kBAAkB,MAAlBA;IACAC,aAAa,MAAbA;IAMAC,kBAAkB,MAAlBA;IAMAC,cAAc,MAAdA;IAMAC,gBAAgB,MAAhBA;IAMAC,aAAa,MAAbA;IAMAC,gBAAgB,MAAhBA;IAMAC,aAAa,MAAbA;IAgBGC,cAAc,MAAdA;;A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AACD,qBAAqB,AAACA,CAAAA,sBAAsB,IAAI,IAAIA,sBAAsB,KAAK,IAAI,KAAK,IAAIA,kBAAkBE,OAAO,CAACL,IAAI,AAAD,MAAO,CAAC,CAAA,GAAI;YACzJ,8DAA8D;YAC9DN,MAAM,CAACM,IAAI,GAAGC,KAAK,CAACD,IAAI;QAC1B,CAAC;IACH;IACA,OAAON;AACT,EACA,sCAAsC"}
1
+ {"version":3,"sources":["../../lib/utils/properties.js"],"sourcesContent":["const toObjectMap = (...items)=>{\n const result = {};\n for (const item of items){\n const keys = Array.isArray(item) ? item : Object.keys(item);\n for (const key of keys){\n result[key] = 1;\n }\n }\n return result;\n};\n/**\n * An array of events that are allowed on every html element type.\n *\n * @public\n */ export const baseElementEvents = toObjectMap([\n 'onAuxClick',\n 'onCopy',\n 'onCut',\n 'onPaste',\n 'onCompositionEnd',\n 'onCompositionStart',\n 'onCompositionUpdate',\n 'onFocus',\n 'onFocusCapture',\n 'onBlur',\n 'onBlurCapture',\n 'onChange',\n 'onInput',\n 'onSubmit',\n 'onLoad',\n 'onError',\n 'onKeyDown',\n 'onKeyDownCapture',\n 'onKeyPress',\n 'onKeyUp',\n 'onAbort',\n 'onCanPlay',\n 'onCanPlayThrough',\n 'onDurationChange',\n 'onEmptied',\n 'onEncrypted',\n 'onEnded',\n 'onLoadedData',\n 'onLoadedMetadata',\n 'onLoadStart',\n 'onPause',\n 'onPlay',\n 'onPlaying',\n 'onProgress',\n 'onRateChange',\n 'onSeeked',\n 'onSeeking',\n 'onStalled',\n 'onSuspend',\n 'onTimeUpdate',\n 'onVolumeChange',\n 'onWaiting',\n 'onClick',\n 'onClickCapture',\n 'onContextMenu',\n 'onDoubleClick',\n 'onDrag',\n 'onDragEnd',\n 'onDragEnter',\n 'onDragExit',\n 'onDragLeave',\n 'onDragOver',\n 'onDragStart',\n 'onDrop',\n 'onMouseDown',\n 'onMouseDownCapture',\n 'onMouseEnter',\n 'onMouseLeave',\n 'onMouseMove',\n 'onMouseOut',\n 'onMouseOver',\n 'onMouseUp',\n 'onMouseUpCapture',\n 'onSelect',\n 'onTouchCancel',\n 'onTouchEnd',\n 'onTouchMove',\n 'onTouchStart',\n 'onScroll',\n 'onWheel',\n 'onPointerCancel',\n 'onPointerDown',\n 'onPointerEnter',\n 'onPointerLeave',\n 'onPointerMove',\n 'onPointerOut',\n 'onPointerOver',\n 'onPointerUp',\n 'onGotPointerCapture',\n 'onLostPointerCapture'\n]);\n/**\n * An array of element attributes which are allowed on every html element type.\n *\n * @public\n */ export const baseElementProperties = toObjectMap([\n 'accessKey',\n 'children',\n 'className',\n 'contentEditable',\n 'dir',\n 'draggable',\n 'hidden',\n 'htmlFor',\n 'id',\n 'lang',\n 'ref',\n 'role',\n 'style',\n 'tabIndex',\n 'title',\n 'translate',\n 'spellCheck',\n 'name'\n]);\n/**\n * An array of microdata attributes that are allowed on every html element type.\n *\n * @public\n */ export const microdataProperties = toObjectMap([\n 'itemID',\n 'itemProp',\n 'itemRef',\n 'itemScope',\n 'itemType'\n]);\n/**\n * An array of HTML element properties and events.\n *\n * @public\n */ export const htmlElementProperties = toObjectMap(baseElementProperties, baseElementEvents, microdataProperties);\n/**\n * An array of LABEL tag properties and events.\n *\n * @public\n */ export const labelProperties = toObjectMap(htmlElementProperties, [\n 'form'\n]);\n/**\n * An array of AUDIO tag properties and events.\n\n * @public\n */ export const audioProperties = toObjectMap(htmlElementProperties, [\n 'height',\n 'loop',\n 'muted',\n 'preload',\n 'src',\n 'width'\n]);\n/**\n * An array of VIDEO tag properties and events.\n *\n * @public\n */ export const videoProperties = toObjectMap(audioProperties, [\n 'poster'\n]);\n/**\n * An array of OL tag properties and events.\n *\n * @public\n */ export const olProperties = toObjectMap(htmlElementProperties, [\n 'start'\n]);\n/**\n * An array of LI tag properties and events.\n *\n * @public\n */ export const liProperties = toObjectMap(htmlElementProperties, [\n 'value'\n]);\n/**\n * An array of A tag properties and events.\n *\n * @public\n */ export const anchorProperties = toObjectMap(htmlElementProperties, [\n 'download',\n 'href',\n 'hrefLang',\n 'media',\n 'rel',\n 'target',\n 'type'\n]);\n/**\n * An array of TIME tag properties and events.\n *\n * @public\n */ export const timeProperties = toObjectMap(htmlElementProperties, [\n 'dateTime'\n]);\n/**\n * An array of BUTTON tag properties and events.\n *\n * @public\n */ export const buttonProperties = toObjectMap(htmlElementProperties, [\n 'autoFocus',\n 'disabled',\n 'form',\n 'formAction',\n 'formEncType',\n 'formMethod',\n 'formNoValidate',\n 'formTarget',\n 'type',\n 'value'\n]);\n/**\n * An array of INPUT tag properties and events.\n *\n * @public\n */ export const inputProperties = toObjectMap(buttonProperties, [\n 'accept',\n 'alt',\n 'autoCapitalize',\n 'autoComplete',\n 'checked',\n 'dirname',\n 'form',\n 'height',\n 'inputMode',\n 'list',\n 'max',\n 'maxLength',\n 'min',\n 'multiple',\n 'pattern',\n 'placeholder',\n 'readOnly',\n 'required',\n 'src',\n 'step',\n 'size',\n 'type',\n 'value',\n 'width'\n]);\n/**\n * An array of TEXTAREA tag properties and events.\n *\n * @public\n */ export const textAreaProperties = toObjectMap(buttonProperties, [\n 'autoCapitalize',\n 'cols',\n 'dirname',\n 'form',\n 'maxLength',\n 'placeholder',\n 'readOnly',\n 'required',\n 'rows',\n 'wrap'\n]);\n/**\n * An array of SELECT tag properties and events.\n *\n * @public\n */ export const selectProperties = toObjectMap(buttonProperties, [\n 'form',\n 'multiple',\n 'required'\n]);\nexport const optionProperties = toObjectMap(htmlElementProperties, [\n 'selected',\n 'value'\n]);\n/**\n * An array of TABLE tag properties and events.\n *\n * @public\n */ export const tableProperties = toObjectMap(htmlElementProperties, [\n 'cellPadding',\n 'cellSpacing'\n]);\n/**\n * An array of TR tag properties and events.\n *\n * @public\n */ export const trProperties = htmlElementProperties;\n/**\n * An array of TH tag properties and events.\n *\n * @public\n */ export const thProperties = toObjectMap(htmlElementProperties, [\n 'colSpan',\n 'rowSpan',\n 'scope'\n]);\n/**\n * An array of TD tag properties and events.\n *\n * @public\n */ export const tdProperties = toObjectMap(htmlElementProperties, [\n 'colSpan',\n 'headers',\n 'rowSpan',\n 'scope'\n]);\nexport const colGroupProperties = toObjectMap(htmlElementProperties, [\n 'span'\n]);\nexport const colProperties = toObjectMap(htmlElementProperties, [\n 'span'\n]);\n/**\n * An array of FIELDSET tag properties and events.\n *\n * @public\n */ export const fieldsetProperties = toObjectMap(htmlElementProperties, [\n 'disabled',\n 'form'\n]);\n/**\n * An array of FORM tag properties and events.\n *\n * @public\n */ export const formProperties = toObjectMap(htmlElementProperties, [\n 'acceptCharset',\n 'action',\n 'encType',\n 'encType',\n 'method',\n 'noValidate',\n 'target'\n]);\n/**\n * An array of IFRAME tag properties and events.\n *\n * @public\n */ export const iframeProperties = toObjectMap(htmlElementProperties, [\n 'allow',\n 'allowFullScreen',\n 'allowPaymentRequest',\n 'allowTransparency',\n 'csp',\n 'height',\n 'importance',\n 'referrerPolicy',\n 'sandbox',\n 'src',\n 'srcDoc',\n 'width'\n]);\n/**\n * An array of IMAGE tag properties and events.\n *\n * @public\n */ export const imgProperties = toObjectMap(htmlElementProperties, [\n 'alt',\n 'crossOrigin',\n 'height',\n 'src',\n 'srcSet',\n 'useMap',\n 'width'\n]);\n/**\n * An array of DIALOG tag properties and events.\n *\n * @public\n */ export const dialogProperties = toObjectMap(htmlElementProperties, [\n 'open',\n 'onCancel',\n 'onClose'\n]);\n/**\n * An array of DIV tag properties and events.\n *\n * @public\n */ export const divProperties = htmlElementProperties;\n/**\n * Gets native supported props for an html element provided the allowance set. Use one of the property\n * sets defined (divProperties, buttonPropertes, etc) to filter out supported properties from a given\n * props set. Note that all data- and aria- prefixed attributes will be allowed.\n * NOTE: getNativeProps should always be applied first when adding props to a react component. The\n * non-native props should be applied second. This will prevent getNativeProps from overriding your custom props.\n * For example, if props passed to getNativeProps has an onClick function and getNativeProps is added to\n * the component after an onClick function is added, then the getNativeProps onClick will override it.\n *\n * @public\n * @param props - The unfiltered input props\n * @param allowedPropNames - The array or record of allowed prop names.\n * @param excludedPropNames\n * @returns The filtered props\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function getNativeProps(// eslint-disable-next-line @typescript-eslint/no-explicit-any\nprops, allowedPropNames, excludedPropNames) {\n // It'd be great to properly type this while allowing 'aria-` and 'data-' attributes like TypeScript does for\n // JSX attributes, but that ability is hardcoded into the TS compiler with no analog in TypeScript typings.\n // Then we'd be able to enforce props extends native props (including aria- and data- attributes), and then\n // return native props.\n // We should be able to do this once this PR is merged: https://github.com/microsoft/TypeScript/pull/26797\n const isArray = Array.isArray(allowedPropNames);\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const result = {};\n const keys = Object.keys(props);\n for (const key of keys){\n const isNativeProp = !isArray && allowedPropNames[key] || isArray && allowedPropNames.indexOf(key) >= 0 || key.indexOf('data-') === 0 || key.indexOf('aria-') === 0;\n if (isNativeProp && (!excludedPropNames || (excludedPropNames === null || excludedPropNames === void 0 ? void 0 : excludedPropNames.indexOf(key)) === -1)) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n result[key] = props[key];\n }\n }\n return result;\n}\n\n//# sourceMappingURL=properties.js.map"],"names":["baseElementEvents","baseElementProperties","microdataProperties","htmlElementProperties","labelProperties","audioProperties","videoProperties","olProperties","liProperties","anchorProperties","timeProperties","buttonProperties","inputProperties","textAreaProperties","selectProperties","optionProperties","tableProperties","trProperties","thProperties","tdProperties","colGroupProperties","colProperties","fieldsetProperties","formProperties","iframeProperties","imgProperties","dialogProperties","divProperties","getNativeProps","toObjectMap","items","result","item","keys","Array","isArray","Object","key","props","allowedPropNames","excludedPropNames","isNativeProp","indexOf"],"mappings":";;;;;;;;;;;IAciBA,iBAAiB,MAAjBA;IAsFAC,qBAAqB,MAArBA;IAwBAC,mBAAmB,MAAnBA;IAWAC,qBAAqB,MAArBA;IAKAC,eAAe,MAAfA;IAOAC,eAAe,MAAfA;IAYAC,eAAe,MAAfA;IAOAC,YAAY,MAAZA;IAOAC,YAAY,MAAZA;IAOAC,gBAAgB,MAAhBA;IAaAC,cAAc,MAAdA;IAOAC,gBAAgB,MAAhBA;IAgBAC,eAAe,MAAfA;IA8BAC,kBAAkB,MAAlBA;IAgBAC,gBAAgB,MAAhBA;IAKJC,gBAAgB,MAAhBA;IAQIC,eAAe,MAAfA;IAQAC,YAAY,MAAZA;IAKAC,YAAY,MAAZA;IASAC,YAAY,MAAZA;IAMJC,kBAAkB,MAAlBA;IAGAC,aAAa,MAAbA;IAOIC,kBAAkB,MAAlBA;IAQAC,cAAc,MAAdA;IAaAC,gBAAgB,MAAhBA;IAkBAC,aAAa,MAAbA;IAaAC,gBAAgB,MAAhBA;IASAC,aAAa,MAAbA;IAgBDC,cAAc,MAAdA;;AAtYhB,MAAMC,cAAc,CAAC,GAAGC,QAAQ;IAC5B,MAAMC,SAAS,CAAC;IAChB,KAAK,MAAMC,QAAQF,MAAM;QACrB,MAAMG,OAAOC,MAAMC,OAAO,CAACH,QAAQA,OAAOI,OAAOH,IAAI,CAACD,KAAK;QAC3D,KAAK,MAAMK,OAAOJ,KAAK;YACnBF,MAAM,CAACM,IAAI,GAAG;QAClB;IACJ;IACA,OAAON;AACX;AAKW,MAAM/B,oBAAoB6B,YAAY;IAC7C;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACH;AAKU,MAAM5B,wBAAwB4B,YAAY;IACjD;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAC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AAsC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-utilities",
3
- "version": "0.0.0-nightly-20230529-0417.1",
3
+ "version": "0.0.0-nightly-20230530-0415.1",
4
4
  "description": "A set of general React-specific utilities.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -29,7 +29,7 @@
29
29
  "@fluentui/scripts-tasks": "*"
30
30
  },
31
31
  "dependencies": {
32
- "@fluentui/keyboard-keys": "0.0.0-nightly-20230529-0417.1",
32
+ "@fluentui/keyboard-keys": "0.0.0-nightly-20230530-0415.1",
33
33
  "@swc/helpers": "^0.4.14"
34
34
  },
35
35
  "peerDependencies": {