@jobber/components 9.16.1 → 9.16.3

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 (225) hide show
  1. package/dist/ActivityIndicator-cjs.js +1 -1
  2. package/dist/ActivityIndicator-es.js +1 -1
  3. package/dist/AtlantisPortalContent-es.js +1 -1
  4. package/dist/AtlantisThemeContext/index.mjs +1 -1
  5. package/dist/AtlantisThemeContext-cjs.js +1 -1
  6. package/dist/AtlantisThemeContext-es.js +10 -10
  7. package/dist/Autocomplete-cjs.js +2 -2
  8. package/dist/Autocomplete-es.js +5 -5
  9. package/dist/Body-cjs.js +1 -1
  10. package/dist/Body-es.js +2 -2
  11. package/dist/BottomSheet-cjs.js +1 -1
  12. package/dist/BottomSheet-es.js +3 -3
  13. package/dist/Box-cjs.js +2 -2
  14. package/dist/Box-es.js +2 -2
  15. package/dist/Button/index.mjs +1 -1
  16. package/dist/Button-es.js +1 -1
  17. package/dist/Card-cjs.js +1 -1
  18. package/dist/Card-es.js +1 -1
  19. package/dist/Checkbox-cjs.js +1 -1
  20. package/dist/Checkbox-es.js +1 -1
  21. package/dist/Chip/index.mjs +1 -1
  22. package/dist/Chip-cjs.js +2 -2
  23. package/dist/Chip-es.js +2 -2
  24. package/dist/ChipDismissible-es.js +1 -1
  25. package/dist/Chips/InternalChipDismissible/hooks/index.mjs +1 -1
  26. package/dist/Combobox-cjs.js +3 -3
  27. package/dist/Combobox-es.js +6 -6
  28. package/dist/ComboboxPrimitive-cjs.js +1 -1
  29. package/dist/ComboboxPrimitive-es.js +3 -3
  30. package/dist/ComboboxSeparator-es.js +4 -4
  31. package/dist/Container-cjs.js +1 -1
  32. package/dist/Container-es.js +1 -1
  33. package/dist/Content-cjs.js +1 -1
  34. package/dist/Content-es.js +1 -1
  35. package/dist/ContentBlock-cjs.js +1 -1
  36. package/dist/ContentBlock-es.js +1 -1
  37. package/dist/Cover-cjs.js +1 -1
  38. package/dist/Cover-es.js +1 -1
  39. package/dist/DataList-es.js +3 -3
  40. package/dist/DataList.const-cjs.js +0 -1
  41. package/dist/DataList.const-es.js +1 -2
  42. package/dist/DataList.module-cjs.js +1 -1
  43. package/dist/DataList.module-es.js +1 -1
  44. package/dist/DataList.utils-es.js +6 -6
  45. package/dist/DataListAction-cjs.js +1 -1
  46. package/dist/DataListAction-es.js +1 -1
  47. package/dist/DataListActionsMenu-cjs.js +1 -1
  48. package/dist/DataListActionsMenu-es.js +2 -2
  49. package/dist/DataListBulkActions-cjs.js +1 -1
  50. package/dist/DataListBulkActions-es.js +1 -1
  51. package/dist/DataListEmptyState-cjs.js +1 -1
  52. package/dist/DataListEmptyState-es.js +1 -1
  53. package/dist/DataListHeaderTile-cjs.js +2 -2
  54. package/dist/DataListHeaderTile-es.js +2 -2
  55. package/dist/DataListItemActions-cjs.js +1 -1
  56. package/dist/DataListItemActions-es.js +2 -2
  57. package/dist/DataListLayoutActions-cjs.js +1 -1
  58. package/dist/DataListLayoutActions-es.js +2 -2
  59. package/dist/DataListLoadMore-cjs.js +1 -1
  60. package/dist/DataListLoadMore-es.js +1 -1
  61. package/dist/DataListLoadingState-cjs.js +1 -1
  62. package/dist/DataListLoadingState-es.js +2 -2
  63. package/dist/DataListOverflowFade-cjs.js +1 -1
  64. package/dist/DataListOverflowFade-es.js +1 -1
  65. package/dist/DataListSearch-cjs.js +1 -1
  66. package/dist/DataListSearch-es.js +1 -1
  67. package/dist/DataListSortingOptions-cjs.js +1 -1
  68. package/dist/DataListSortingOptions-es.js +1 -1
  69. package/dist/DataListStickyHeader-cjs.js +1 -1
  70. package/dist/DataListStickyHeader-es.js +1 -1
  71. package/dist/DataListTags-cjs.js +1 -1
  72. package/dist/DataListTags-es.js +1 -1
  73. package/dist/DataListTotalCount-cjs.js +1 -1
  74. package/dist/DataListTotalCount-es.js +2 -2
  75. package/dist/DataTable/index.mjs +1 -1
  76. package/dist/DataTable-cjs.js +3 -3
  77. package/dist/DataTable-es.js +5 -5
  78. package/dist/DataTableTable-cjs.js +2 -2
  79. package/dist/DataTableTable-es.js +3 -3
  80. package/dist/DatePicker-cjs.js +47 -20
  81. package/dist/DatePicker-es.js +58 -31
  82. package/dist/Disclosure-cjs.js +1 -1
  83. package/dist/Disclosure-es.js +1 -1
  84. package/dist/Divider-cjs.js +1 -1
  85. package/dist/Divider-es.js +1 -1
  86. package/dist/DrawerGrid-cjs.js +2 -2
  87. package/dist/DrawerGrid-es.js +2 -2
  88. package/dist/FeatureSwitch-cjs.js +1 -1
  89. package/dist/FeatureSwitch-es.js +1 -1
  90. package/dist/FieldDescription-es.js +2 -2
  91. package/dist/FilterPicker-cjs.js +1 -1
  92. package/dist/FilterPicker-es.js +1 -1
  93. package/dist/FilterPickerAction-cjs.js +1 -1
  94. package/dist/FilterPickerAction-es.js +1 -1
  95. package/dist/FilterPickerContent-cjs.js +1 -1
  96. package/dist/FilterPickerContent-es.js +2 -2
  97. package/dist/FilterPickerContentHeader-cjs.js +1 -1
  98. package/dist/FilterPickerContentHeader-es.js +1 -1
  99. package/dist/FilterPickerContentList-es.js +2 -2
  100. package/dist/FilterPickerContentSearch-cjs.js +1 -1
  101. package/dist/FilterPickerContentSearch-es.js +1 -1
  102. package/dist/FilterPickerLoadMore-cjs.js +1 -1
  103. package/dist/FilterPickerLoadMore-es.js +1 -1
  104. package/dist/FilterPickerOption-cjs.js +1 -1
  105. package/dist/FilterPickerOption-es.js +1 -1
  106. package/dist/FormField/index.mjs +1 -1
  107. package/dist/FormFieldWrapper-cjs.js +1 -1
  108. package/dist/FormFieldWrapper-es.js +2 -2
  109. package/dist/FormatFile-cjs.js +1 -6
  110. package/dist/FormatFile-es.js +1 -6
  111. package/dist/Frame-cjs.js +1 -1
  112. package/dist/Frame-es.js +1 -1
  113. package/dist/Glimmer/index.mjs +1 -1
  114. package/dist/Glimmer-cjs.js +1 -1
  115. package/dist/Glimmer-es.js +2 -2
  116. package/dist/Grid-cjs.js +1 -1
  117. package/dist/Grid-es.js +1 -1
  118. package/dist/GridCell-cjs.js +1 -1
  119. package/dist/GridCell-es.js +1 -1
  120. package/dist/HelperText-cjs.js +1 -1
  121. package/dist/HelperText-es.js +1 -1
  122. package/dist/InputAvatar-cjs.js +1 -1
  123. package/dist/InputAvatar-es.js +1 -1
  124. package/dist/InputEmail-es.js +1 -1
  125. package/dist/InputFile-cjs.js +3 -3
  126. package/dist/InputFile-es.js +3 -3
  127. package/dist/InputPhoneNumber-cjs.js +1 -1
  128. package/dist/InputPhoneNumber-es.js +2 -2
  129. package/dist/InputText-es.js +1 -1
  130. package/dist/InputTime-cjs.js +0 -1
  131. package/dist/InputTime-es.js +1 -2
  132. package/dist/InputValidation-cjs.js +1 -1
  133. package/dist/InputValidation-es.js +1 -1
  134. package/dist/InternalChipDismissible-cjs.js +1 -1
  135. package/dist/InternalChipDismissible-es.js +2 -2
  136. package/dist/LegacySelect-cjs.js +1 -1
  137. package/dist/LegacySelect-es.js +2 -2
  138. package/dist/LightBox-cjs.js +1 -1
  139. package/dist/LightBox-es.js +1 -1
  140. package/dist/Link-cjs.js +1 -1
  141. package/dist/Link-es.js +1 -1
  142. package/dist/List-cjs.js +3 -3
  143. package/dist/List-es.js +7 -7
  144. package/dist/Markdown-cjs.js +142 -142
  145. package/dist/Markdown-es.js +148 -148
  146. package/dist/Menu-cjs.js +3 -3
  147. package/dist/Menu-es.js +7 -7
  148. package/dist/MenuSubmenuTrigger-cjs.js +2 -5
  149. package/dist/MenuSubmenuTrigger-es.js +6 -9
  150. package/dist/Modal/index.cjs +2 -2
  151. package/dist/Modal/index.mjs +2 -2
  152. package/dist/MultiSelect-cjs.js +2 -2
  153. package/dist/MultiSelect-es.js +2 -2
  154. package/dist/NumberFieldInput-es.js +1 -1
  155. package/dist/OverlaySeparator-cjs.js +1 -1
  156. package/dist/OverlaySeparator-es.js +1 -1
  157. package/dist/Popover-cjs.js +1 -1
  158. package/dist/Popover-es.js +2 -2
  159. package/dist/ProgressBar-cjs.js +1 -1
  160. package/dist/ProgressBar-es.js +1 -1
  161. package/dist/RadioGroup-cjs.js +1 -1
  162. package/dist/RadioGroup-es.js +1 -1
  163. package/dist/ScrollAreaViewport-es.js +3 -3
  164. package/dist/SegmentedControl-cjs.js +1 -1
  165. package/dist/SegmentedControl-es.js +2 -2
  166. package/dist/Select-es.js +2 -2
  167. package/dist/SelectGroupLabel-cjs.js +1 -4
  168. package/dist/SelectGroupLabel-es.js +6 -9
  169. package/dist/SelectPrimitive-cjs.js +1 -1
  170. package/dist/SelectPrimitive-es.js +2 -2
  171. package/dist/SideDrawer-cjs.js +1 -1
  172. package/dist/SideDrawer-es.js +1 -1
  173. package/dist/Spinner-cjs.js +1 -1
  174. package/dist/Spinner-es.js +1 -1
  175. package/dist/StatusIndicator-cjs.js +1 -1
  176. package/dist/StatusIndicator-es.js +1 -1
  177. package/dist/Switch-cjs.js +1 -1
  178. package/dist/Switch-es.js +1 -1
  179. package/dist/Table/index.mjs +1 -1
  180. package/dist/Tabs/index.mjs +1 -1
  181. package/dist/Tabs-cjs.js +1 -1
  182. package/dist/Tabs-es.js +6 -6
  183. package/dist/Thumbnail-cjs.js +1 -1
  184. package/dist/Thumbnail-es.js +2 -2
  185. package/dist/Tiles-cjs.js +1 -1
  186. package/dist/Tiles-es.js +1 -1
  187. package/dist/Tooltip-cjs.js +1 -1
  188. package/dist/Tooltip-es.js +2 -2
  189. package/dist/Typography-cjs.js +3 -3
  190. package/dist/Typography-es.js +3 -3
  191. package/dist/_baseEach-cjs.js +1 -1
  192. package/dist/_baseEach-es.js +7 -7
  193. package/dist/_baseFlatten-es.js +1 -1
  194. package/dist/_getAllKeys-cjs.js +2 -8
  195. package/dist/_getAllKeys-es.js +4 -10
  196. package/dist/_getTag-es.js +1 -1
  197. package/dist/_isIterateeCall-es.js +3 -3
  198. package/dist/_setToString-es.js +2 -2
  199. package/dist/buttonRenderAdapter-cjs.js +2 -2
  200. package/dist/buttonRenderAdapter-es.js +2 -2
  201. package/dist/debounce-es.js +4 -4
  202. package/dist/dialogReturnFocus-es.js +2 -2
  203. package/dist/docs/Icon/Icon.md +2 -0
  204. package/dist/floating-ui.react-es.js +2 -2
  205. package/dist/identity-es.js +5 -5
  206. package/dist/index.mjs +7 -7
  207. package/dist/isSymbol-es.js +1 -1
  208. package/dist/isTypedArray-cjs.js +4 -4
  209. package/dist/isTypedArray-es.js +6 -6
  210. package/dist/keysIn-cjs.js +2 -2
  211. package/dist/keysIn-es.js +5 -5
  212. package/dist/noop-es.js +4 -4
  213. package/dist/primitives/BottomSheet/index.mjs +1 -1
  214. package/dist/primitives/index.mjs +1 -1
  215. package/dist/scrollable-es.js +1 -1
  216. package/dist/showToast-cjs.js +1 -1
  217. package/dist/showToast-es.js +1 -1
  218. package/dist/unstyledPrimitives/index.cjs +3 -3
  219. package/dist/unstyledPrimitives/index.mjs +9 -9
  220. package/dist/useCompositeListItem-es.js +3 -3
  221. package/dist/useScrollLock-cjs.js +14 -14
  222. package/dist/useScrollLock-es.js +15 -15
  223. package/dist/useScrollToActive-cjs.js +1 -1
  224. package/dist/useScrollToActive-es.js +8 -8
  225. package/package.json +12 -7
package/dist/List-es.js CHANGED
@@ -113,7 +113,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
113
113
  * _.groupBy(['one', 'two', 'three'], 'length');
114
114
  * // => { '3': ['one', 'two'], '5': ['three'] }
115
115
  */
116
- var groupBy = createAggregator(function(result, value, key) {
116
+ var groupBy$1 = createAggregator(function(result, value, key) {
117
117
  if (hasOwnProperty.call(result, key)) {
118
118
  result[key].push(value);
119
119
  } else {
@@ -121,11 +121,11 @@ var groupBy = createAggregator(function(result, value, key) {
121
121
  }
122
122
  });
123
123
 
124
- var groupBy_1 = groupBy;
124
+ var groupBy_1 = groupBy$1;
125
125
 
126
- var groupBy$1 = /*@__PURE__*/getDefaultExportFromCjs(groupBy_1);
126
+ var groupBy = /*@__PURE__*/getDefaultExportFromCjs(groupBy_1);
127
127
 
128
- var styles$1 = {"action":"rJffaV10x20-","customItem":"LeWPz4r-I1o-","defaultContent":"_6vjT92J6tm0-","hoverable":"rwfzPbhL5qI-","isActive":"h6M4H38O32Y-","icon":"rQFprs7TrMI-","info":"mU08HF2afDM-","amount":"_8hKgCYORSNQ-","truncate":"Sz9JkKmEIm8-","spinning":"OH7Qd6ZYBR0-"};
128
+ var styles$1 = {"action":"rJffaV10x20-","customItem":"LeWPz4r-I1o-","defaultContent":"_6vjT92J6tm0-","hoverable":"rwfzPbhL5qI-","isActive":"h6M4H38O32Y-","icon":"rQFprs7TrMI-","info":"mU08HF2afDM-","amount":"_8hKgCYORSNQ-","truncate":"Sz9JkKmEIm8-"};
129
129
 
130
130
  function ListItem(props) {
131
131
  const actionClasses = classnames(styles$1.action, props.isActive && styles$1.isActive, (props.onClick || props.url) && styles$1.hoverable, props.customRenderItem && !props.customItemStyles && styles$1.customItem);
@@ -159,9 +159,9 @@ function Description({ content }) {
159
159
  }
160
160
  }
161
161
 
162
- var sectionStyles = {"sectionHeader":"htH4y2JBFNQ-","spinning":"Y3FXizLWanA-"};
162
+ var sectionStyles = {"sectionHeader":"htH4y2JBFNQ-"};
163
163
 
164
- var styles = {"list":"sFlecO8-wnY-","item":"dbZy6dviEis-","section":"vz43PAcPYt0-","spinning":"gv8zs1Wo4EY-"};
164
+ var styles = {"list":"sFlecO8-wnY-","item":"dbZy6dviEis-","section":"vz43PAcPYt0-"};
165
165
 
166
166
  function List({ items, customRenderItem, customItemStyles, customRenderSection, customSectionStyles, defaultSectionHeader = "Other", labelledBy, }) {
167
167
  const isSectioned = items.some(item => "section" in item && item.section);
@@ -179,7 +179,7 @@ function DisplayList({ items, customRenderItem, customItemStyles, labelledBy, })
179
179
  React__default.createElement(ListItem, Object.assign({}, item, { customRenderItem: customRenderItem, customItemStyles: customItemStyles })))))));
180
180
  }
181
181
  function SectionedList({ items, customRenderItem, customItemStyles, customRenderSection, customSectionStyles, defaultSectionHeader, labelledBy, }) {
182
- const sectionedItems = groupBy$1(items, item => get(item, "section", defaultSectionHeader));
182
+ const sectionedItems = groupBy(items, item => get(item, "section", defaultSectionHeader));
183
183
  const omitDefaultStyles = customRenderItem && customItemStyles;
184
184
  const omitDefaultSectionStyles = customRenderSection && customSectionStyles;
185
185
  const itemClassNames = classnames(!omitDefaultStyles && styles.item);
@@ -15112,12 +15112,11 @@ function remarkParse(options) {
15112
15112
  }
15113
15113
 
15114
15114
  /**
15115
- * @typedef {import('hast').Element} Element
15116
- * @typedef {import('mdast').Blockquote} Blockquote
15117
- * @typedef {import('../state.js').State} State
15115
+ * @import {Element} from 'hast'
15116
+ * @import {Blockquote} from 'mdast'
15117
+ * @import {State} from '../state.js'
15118
15118
  */
15119
15119
 
15120
-
15121
15120
  /**
15122
15121
  * Turn an mdast `blockquote` node into hast.
15123
15122
  *
@@ -15141,13 +15140,11 @@ function blockquote(state, node) {
15141
15140
  }
15142
15141
 
15143
15142
  /**
15144
- * @typedef {import('hast').Element} Element
15145
- * @typedef {import('hast').Text} Text
15146
- * @typedef {import('mdast').Break} Break
15147
- * @typedef {import('../state.js').State} State
15143
+ * @import {Element, Text} from 'hast'
15144
+ * @import {Break} from 'mdast'
15145
+ * @import {State} from '../state.js'
15148
15146
  */
15149
15147
 
15150
-
15151
15148
  /**
15152
15149
  * Turn an mdast `break` node into hast.
15153
15150
  *
@@ -15166,13 +15163,11 @@ function hardBreak(state, node) {
15166
15163
  }
15167
15164
 
15168
15165
  /**
15169
- * @typedef {import('hast').Element} Element
15170
- * @typedef {import('hast').Properties} Properties
15171
- * @typedef {import('mdast').Code} Code
15172
- * @typedef {import('../state.js').State} State
15166
+ * @import {Element, Properties} from 'hast'
15167
+ * @import {Code} from 'mdast'
15168
+ * @import {State} from '../state.js'
15173
15169
  */
15174
15170
 
15175
-
15176
15171
  /**
15177
15172
  * Turn an mdast `code` node into hast.
15178
15173
  *
@@ -15187,9 +15182,12 @@ function code(state, node) {
15187
15182
  const value = node.value ? node.value + '\n' : '';
15188
15183
  /** @type {Properties} */
15189
15184
  const properties = {};
15185
+ // Someone can write `js python	ruby`.
15186
+ const language = node.lang ? node.lang.split(/\s+/) : [];
15190
15187
 
15191
- if (node.lang) {
15192
- properties.className = ['language-' + node.lang];
15188
+ // GH/CM still drop the non-first languages.
15189
+ if (language.length > 0) {
15190
+ properties.className = ['language-' + language[0]];
15193
15191
  }
15194
15192
 
15195
15193
  // Create `<code>`.
@@ -15215,12 +15213,11 @@ function code(state, node) {
15215
15213
  }
15216
15214
 
15217
15215
  /**
15218
- * @typedef {import('hast').Element} Element
15219
- * @typedef {import('mdast').Delete} Delete
15220
- * @typedef {import('../state.js').State} State
15216
+ * @import {Element} from 'hast'
15217
+ * @import {Delete} from 'mdast'
15218
+ * @import {State} from '../state.js'
15221
15219
  */
15222
15220
 
15223
-
15224
15221
  /**
15225
15222
  * Turn an mdast `delete` node into hast.
15226
15223
  *
@@ -15244,12 +15241,11 @@ function strikethrough(state, node) {
15244
15241
  }
15245
15242
 
15246
15243
  /**
15247
- * @typedef {import('hast').Element} Element
15248
- * @typedef {import('mdast').Emphasis} Emphasis
15249
- * @typedef {import('../state.js').State} State
15244
+ * @import {Element} from 'hast'
15245
+ * @import {Emphasis} from 'mdast'
15246
+ * @import {State} from '../state.js'
15250
15247
  */
15251
15248
 
15252
-
15253
15249
  /**
15254
15250
  * Turn an mdast `emphasis` node into hast.
15255
15251
  *
@@ -15273,9 +15269,9 @@ function emphasis(state, node) {
15273
15269
  }
15274
15270
 
15275
15271
  /**
15276
- * @typedef {import('hast').Element} Element
15277
- * @typedef {import('mdast').FootnoteReference} FootnoteReference
15278
- * @typedef {import('../state.js').State} State
15272
+ * @import {Element} from 'hast'
15273
+ * @import {FootnoteReference} from 'mdast'
15274
+ * @import {State} from '../state.js'
15279
15275
  */
15280
15276
 
15281
15277
 
@@ -15343,12 +15339,11 @@ function footnoteReference(state, node) {
15343
15339
  }
15344
15340
 
15345
15341
  /**
15346
- * @typedef {import('hast').Element} Element
15347
- * @typedef {import('mdast').Heading} Heading
15348
- * @typedef {import('../state.js').State} State
15342
+ * @import {Element} from 'hast'
15343
+ * @import {Heading} from 'mdast'
15344
+ * @import {State} from '../state.js'
15349
15345
  */
15350
15346
 
15351
-
15352
15347
  /**
15353
15348
  * Turn an mdast `heading` node into hast.
15354
15349
  *
@@ -15372,13 +15367,12 @@ function heading(state, node) {
15372
15367
  }
15373
15368
 
15374
15369
  /**
15375
- * @typedef {import('hast').Element} Element
15376
- * @typedef {import('mdast').Html} Html
15377
- * @typedef {import('../state.js').State} State
15378
- * @typedef {import('../../index.js').Raw} Raw
15370
+ * @import {Element} from 'hast'
15371
+ * @import {Html} from 'mdast'
15372
+ * @import {State} from '../state.js'
15373
+ * @import {Raw} from '../../index.js'
15379
15374
  */
15380
15375
 
15381
-
15382
15376
  /**
15383
15377
  * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise
15384
15378
  * nothing).
@@ -15402,15 +15396,11 @@ function html(state, node) {
15402
15396
  }
15403
15397
 
15404
15398
  /**
15405
- * @typedef {import('hast').ElementContent} ElementContent
15406
- *
15407
- * @typedef {import('mdast').Nodes} Nodes
15408
- * @typedef {import('mdast').Reference} Reference
15409
- *
15410
- * @typedef {import('./state.js').State} State
15399
+ * @import {ElementContent} from 'hast'
15400
+ * @import {Reference, Nodes} from 'mdast'
15401
+ * @import {State} from './state.js'
15411
15402
  */
15412
15403
 
15413
-
15414
15404
  /**
15415
15405
  * Return the content of a reference without definition as plain text.
15416
15406
  *
@@ -15456,11 +15446,9 @@ function revert(state, node) {
15456
15446
  }
15457
15447
 
15458
15448
  /**
15459
- * @typedef {import('hast').Element} Element
15460
- * @typedef {import('hast').ElementContent} ElementContent
15461
- * @typedef {import('hast').Properties} Properties
15462
- * @typedef {import('mdast').ImageReference} ImageReference
15463
- * @typedef {import('../state.js').State} State
15449
+ * @import {ElementContent, Element, Properties} from 'hast'
15450
+ * @import {ImageReference} from 'mdast'
15451
+ * @import {State} from '../state.js'
15464
15452
  */
15465
15453
 
15466
15454
 
@@ -15496,10 +15484,9 @@ function imageReference(state, node) {
15496
15484
  }
15497
15485
 
15498
15486
  /**
15499
- * @typedef {import('hast').Element} Element
15500
- * @typedef {import('hast').Properties} Properties
15501
- * @typedef {import('mdast').Image} Image
15502
- * @typedef {import('../state.js').State} State
15487
+ * @import {Element, Properties} from 'hast'
15488
+ * @import {Image} from 'mdast'
15489
+ * @import {State} from '../state.js'
15503
15490
  */
15504
15491
 
15505
15492
 
@@ -15532,13 +15519,11 @@ function image(state, node) {
15532
15519
  }
15533
15520
 
15534
15521
  /**
15535
- * @typedef {import('hast').Element} Element
15536
- * @typedef {import('hast').Text} Text
15537
- * @typedef {import('mdast').InlineCode} InlineCode
15538
- * @typedef {import('../state.js').State} State
15522
+ * @import {Element, Text} from 'hast'
15523
+ * @import {InlineCode} from 'mdast'
15524
+ * @import {State} from '../state.js'
15539
15525
  */
15540
15526
 
15541
-
15542
15527
  /**
15543
15528
  * Turn an mdast `inlineCode` node into hast.
15544
15529
  *
@@ -15566,11 +15551,9 @@ function inlineCode(state, node) {
15566
15551
  }
15567
15552
 
15568
15553
  /**
15569
- * @typedef {import('hast').Element} Element
15570
- * @typedef {import('hast').ElementContent} ElementContent
15571
- * @typedef {import('hast').Properties} Properties
15572
- * @typedef {import('mdast').LinkReference} LinkReference
15573
- * @typedef {import('../state.js').State} State
15554
+ * @import {ElementContent, Element, Properties} from 'hast'
15555
+ * @import {LinkReference} from 'mdast'
15556
+ * @import {State} from '../state.js'
15574
15557
  */
15575
15558
 
15576
15559
 
@@ -15611,10 +15594,9 @@ function linkReference(state, node) {
15611
15594
  }
15612
15595
 
15613
15596
  /**
15614
- * @typedef {import('hast').Element} Element
15615
- * @typedef {import('hast').Properties} Properties
15616
- * @typedef {import('mdast').Link} Link
15617
- * @typedef {import('../state.js').State} State
15597
+ * @import {Element, Properties} from 'hast'
15598
+ * @import {Link} from 'mdast'
15599
+ * @import {State} from '../state.js'
15618
15600
  */
15619
15601
 
15620
15602
 
@@ -15648,15 +15630,11 @@ function link(state, node) {
15648
15630
  }
15649
15631
 
15650
15632
  /**
15651
- * @typedef {import('hast').Element} Element
15652
- * @typedef {import('hast').ElementContent} ElementContent
15653
- * @typedef {import('hast').Properties} Properties
15654
- * @typedef {import('mdast').ListItem} ListItem
15655
- * @typedef {import('mdast').Parents} Parents
15656
- * @typedef {import('../state.js').State} State
15633
+ * @import {ElementContent, Element, Properties} from 'hast'
15634
+ * @import {ListItem, Parents} from 'mdast'
15635
+ * @import {State} from '../state.js'
15657
15636
  */
15658
15637
 
15659
-
15660
15638
  /**
15661
15639
  * Turn an mdast `listItem` node into hast.
15662
15640
  *
@@ -15772,13 +15750,11 @@ function listItemLoose(node) {
15772
15750
  }
15773
15751
 
15774
15752
  /**
15775
- * @typedef {import('hast').Element} Element
15776
- * @typedef {import('hast').Properties} Properties
15777
- * @typedef {import('mdast').List} List
15778
- * @typedef {import('../state.js').State} State
15753
+ * @import {Element, Properties} from 'hast'
15754
+ * @import {List} from 'mdast'
15755
+ * @import {State} from '../state.js'
15779
15756
  */
15780
15757
 
15781
-
15782
15758
  /**
15783
15759
  * Turn an mdast `list` node into hast.
15784
15760
  *
@@ -15827,12 +15803,11 @@ function list(state, node) {
15827
15803
  }
15828
15804
 
15829
15805
  /**
15830
- * @typedef {import('hast').Element} Element
15831
- * @typedef {import('mdast').Paragraph} Paragraph
15832
- * @typedef {import('../state.js').State} State
15806
+ * @import {Element} from 'hast'
15807
+ * @import {Paragraph} from 'mdast'
15808
+ * @import {State} from '../state.js'
15833
15809
  */
15834
15810
 
15835
-
15836
15811
  /**
15837
15812
  * Turn an mdast `paragraph` node into hast.
15838
15813
  *
@@ -15856,13 +15831,11 @@ function paragraph(state, node) {
15856
15831
  }
15857
15832
 
15858
15833
  /**
15859
- * @typedef {import('hast').Parents} HastParents
15860
- * @typedef {import('hast').Root} HastRoot
15861
- * @typedef {import('mdast').Root} MdastRoot
15862
- * @typedef {import('../state.js').State} State
15834
+ * @import {Parents as HastParents, Root as HastRoot} from 'hast'
15835
+ * @import {Root as MdastRoot} from 'mdast'
15836
+ * @import {State} from '../state.js'
15863
15837
  */
15864
15838
 
15865
-
15866
15839
  /**
15867
15840
  * Turn an mdast `root` node into hast.
15868
15841
  *
@@ -15881,12 +15854,11 @@ function root(state, node) {
15881
15854
  }
15882
15855
 
15883
15856
  /**
15884
- * @typedef {import('hast').Element} Element
15885
- * @typedef {import('mdast').Strong} Strong
15886
- * @typedef {import('../state.js').State} State
15857
+ * @import {Element} from 'hast'
15858
+ * @import {Strong} from 'mdast'
15859
+ * @import {State} from '../state.js'
15887
15860
  */
15888
15861
 
15889
-
15890
15862
  /**
15891
15863
  * Turn an mdast `strong` node into hast.
15892
15864
  *
@@ -15910,9 +15882,9 @@ function strong(state, node) {
15910
15882
  }
15911
15883
 
15912
15884
  /**
15913
- * @typedef {import('hast').Element} Element
15914
- * @typedef {import('mdast').Table} Table
15915
- * @typedef {import('../state.js').State} State
15885
+ * @import {Table} from 'mdast'
15886
+ * @import {Element} from 'hast'
15887
+ * @import {State} from '../state.js'
15916
15888
  */
15917
15889
 
15918
15890
 
@@ -15971,15 +15943,11 @@ function table(state, node) {
15971
15943
  }
15972
15944
 
15973
15945
  /**
15974
- * @typedef {import('hast').Element} Element
15975
- * @typedef {import('hast').ElementContent} ElementContent
15976
- * @typedef {import('hast').Properties} Properties
15977
- * @typedef {import('mdast').Parents} Parents
15978
- * @typedef {import('mdast').TableRow} TableRow
15979
- * @typedef {import('../state.js').State} State
15946
+ * @import {Element, ElementContent, Properties} from 'hast'
15947
+ * @import {Parents, TableRow} from 'mdast'
15948
+ * @import {State} from '../state.js'
15980
15949
  */
15981
15950
 
15982
-
15983
15951
  /**
15984
15952
  * Turn an mdast `tableRow` node into hast.
15985
15953
  *
@@ -16039,12 +16007,11 @@ function tableRow(state, node, parent) {
16039
16007
  }
16040
16008
 
16041
16009
  /**
16042
- * @typedef {import('hast').Element} Element
16043
- * @typedef {import('mdast').TableCell} TableCell
16044
- * @typedef {import('../state.js').State} State
16010
+ * @import {Element} from 'hast'
16011
+ * @import {TableCell} from 'mdast'
16012
+ * @import {State} from '../state.js'
16045
16013
  */
16046
16014
 
16047
-
16048
16015
  /**
16049
16016
  * Turn an mdast `tableCell` node into hast.
16050
16017
  *
@@ -16140,10 +16107,9 @@ function trimLine(value, start, end) {
16140
16107
  }
16141
16108
 
16142
16109
  /**
16143
- * @typedef {import('hast').Element} HastElement
16144
- * @typedef {import('hast').Text} HastText
16145
- * @typedef {import('mdast').Text} MdastText
16146
- * @typedef {import('../state.js').State} State
16110
+ * @import {Element as HastElement, Text as HastText} from 'hast'
16111
+ * @import {Text as MdastText} from 'mdast'
16112
+ * @import {State} from '../state.js'
16147
16113
  */
16148
16114
 
16149
16115
 
@@ -16165,12 +16131,11 @@ function text(state, node) {
16165
16131
  }
16166
16132
 
16167
16133
  /**
16168
- * @typedef {import('hast').Element} Element
16169
- * @typedef {import('mdast').ThematicBreak} ThematicBreak
16170
- * @typedef {import('../state.js').State} State
16134
+ * @import {Element} from 'hast'
16135
+ * @import {ThematicBreak} from 'mdast'
16136
+ * @import {State} from '../state.js'
16171
16137
  */
16172
16138
 
16173
-
16174
16139
  /**
16175
16140
  * Turn an mdast `thematicBreak` node into hast.
16176
16141
  *
@@ -16193,10 +16158,15 @@ function thematicBreak(state, node) {
16193
16158
  return state.applyData(node, result)
16194
16159
  }
16195
16160
 
16161
+ /**
16162
+ * @import {Handlers} from '../state.js'
16163
+ */
16164
+
16165
+
16196
16166
  /**
16197
16167
  * Default handlers for nodes.
16198
16168
  *
16199
- * @satisfies {import('../state.js').Handlers}
16169
+ * @satisfies {Handlers}
16200
16170
  */
16201
16171
  const handlers = {
16202
16172
  blockquote,
@@ -16248,6 +16218,19 @@ const BIGINT = 8;
16248
16218
 
16249
16219
  const env = typeof self === 'object' ? self : globalThis;
16250
16220
 
16221
+ const guard = (name, init) => {
16222
+ switch (name) {
16223
+ case 'Function':
16224
+ case 'SharedWorker':
16225
+ case 'Worker':
16226
+ case 'eval':
16227
+ case 'setInterval':
16228
+ case 'setTimeout':
16229
+ throw new TypeError('unable to deserialize ' + name);
16230
+ }
16231
+ return new env[name](init);
16232
+ };
16233
+
16251
16234
  const deserializer = ($, _) => {
16252
16235
  const as = (out, index) => {
16253
16236
  $.set(index, out);
@@ -16295,14 +16278,20 @@ const deserializer = ($, _) => {
16295
16278
  }
16296
16279
  case ERROR: {
16297
16280
  const {name, message} = value;
16298
- return as(new env[name](message), index);
16281
+ return as(guard(name, message), index);
16299
16282
  }
16300
16283
  case BIGINT:
16301
16284
  return as(BigInt(value), index);
16302
16285
  case 'BigInt':
16303
16286
  return as(Object(BigInt(value)), index);
16287
+ case 'ArrayBuffer':
16288
+ return as(new Uint8Array(value).buffer, value);
16289
+ case 'DataView': {
16290
+ const { buffer } = new Uint8Array(value);
16291
+ return as(new DataView(buffer), value);
16292
+ }
16304
16293
  }
16305
- return as(new env[type](value), index);
16294
+ return as(guard(type, value), index);
16306
16295
  };
16307
16296
 
16308
16297
  return unpair;
@@ -16343,6 +16332,8 @@ const typeOf = value => {
16343
16332
  return [MAP, EMPTY];
16344
16333
  case 'Set':
16345
16334
  return [SET, EMPTY];
16335
+ case 'DataView':
16336
+ return [ARRAY, asString];
16346
16337
  }
16347
16338
 
16348
16339
  if (asString.includes('Array'))
@@ -16392,9 +16383,17 @@ const serializer = (strict, json, $, _) => {
16392
16383
  return as([TYPE, entry], value);
16393
16384
  }
16394
16385
  case ARRAY: {
16395
- if (type)
16396
- return as([type, [...value]], value);
16397
-
16386
+ if (type) {
16387
+ let spread = value;
16388
+ if (type === 'DataView') {
16389
+ spread = new Uint8Array(value.buffer);
16390
+ }
16391
+ else if (type === 'ArrayBuffer') {
16392
+ spread = new Uint8Array(value);
16393
+ }
16394
+ return as([type, [...spread]], value);
16395
+ }
16396
+
16398
16397
  const arr = [];
16399
16398
  const index = as([TYPE, arr], value);
16400
16399
  for (const entry of value)
@@ -16495,10 +16494,8 @@ var structuredClone$1 = typeof structuredClone === "function" ?
16495
16494
  (any, options) => deserialize(serialize(any, options));
16496
16495
 
16497
16496
  /**
16498
- * @typedef {import('hast').Element} Element
16499
- * @typedef {import('hast').ElementContent} ElementContent
16500
- *
16501
- * @typedef {import('./state.js').State} State
16497
+ * @import {ElementContent, Element} from 'hast'
16498
+ * @import {State} from './state.js'
16502
16499
  */
16503
16500
 
16504
16501
 
@@ -17146,22 +17143,25 @@ function visit(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
17146
17143
  }
17147
17144
 
17148
17145
  /**
17149
- * @typedef {import('hast').Element} HastElement
17150
- * @typedef {import('hast').ElementContent} HastElementContent
17151
- * @typedef {import('hast').Nodes} HastNodes
17152
- * @typedef {import('hast').Properties} HastProperties
17153
- * @typedef {import('hast').RootContent} HastRootContent
17154
- * @typedef {import('hast').Text} HastText
17155
- *
17156
- * @typedef {import('mdast').Definition} MdastDefinition
17157
- * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition
17158
- * @typedef {import('mdast').Nodes} MdastNodes
17159
- * @typedef {import('mdast').Parents} MdastParents
17160
- *
17161
- * @typedef {import('vfile').VFile} VFile
17162
- *
17163
- * @typedef {import('./footer.js').FootnoteBackContentTemplate} FootnoteBackContentTemplate
17164
- * @typedef {import('./footer.js').FootnoteBackLabelTemplate} FootnoteBackLabelTemplate
17146
+ * @import {
17147
+ * ElementContent as HastElementContent,
17148
+ * Element as HastElement,
17149
+ * Nodes as HastNodes,
17150
+ * Properties as HastProperties,
17151
+ * RootContent as HastRootContent,
17152
+ * Text as HastText
17153
+ * } from 'hast'
17154
+ * @import {
17155
+ * Definition as MdastDefinition,
17156
+ * FootnoteDefinition as MdastFootnoteDefinition,
17157
+ * Nodes as MdastNodes,
17158
+ * Parents as MdastParents
17159
+ * } from 'mdast'
17160
+ * @import {VFile} from 'vfile'
17161
+ * @import {
17162
+ * FootnoteBackContentTemplate,
17163
+ * FootnoteBackLabelTemplate
17164
+ * } from './footer.js'
17165
17165
  */
17166
17166
 
17167
17167
 
@@ -17461,9 +17461,9 @@ function trimMarkdownSpaceStart(value) {
17461
17461
  }
17462
17462
 
17463
17463
  /**
17464
- * @typedef {import('hast').Nodes} HastNodes
17465
- * @typedef {import('mdast').Nodes} MdastNodes
17466
- * @typedef {import('./state.js').Options} Options
17464
+ * @import {Nodes as HastNodes} from 'hast'
17465
+ * @import {Nodes as MdastNodes} from 'mdast'
17466
+ * @import {Options} from './state.js'
17467
17467
  */
17468
17468
 
17469
17469