@histoire/vendors 0.17.17 → 1.0.0-alpha.2

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 (216) hide show
  1. package/dist/client/b-floating-vue.js +2175 -2150
  2. package/dist/client/b-iconify.js +663 -850
  3. package/dist/client/b-pinia.js +130 -68
  4. package/dist/client/b-scroll.js +3 -52
  5. package/dist/client/b-vue-router.js +385 -237
  6. package/dist/client/b-vue-use.js +4578 -3115
  7. package/dist/client/b-vue.js +1 -1
  8. package/dist/client/index.js +162 -20
  9. package/dist/client/node_modules/@babel/helper-string-parser/package.json +31 -0
  10. package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +31 -0
  11. package/dist/client/node_modules/@babel/parser/package.json +10 -6
  12. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +167 -188
  13. package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +2786 -0
  14. package/dist/client/node_modules/@babel/types/lib/index.d.ts +3286 -0
  15. package/dist/client/node_modules/@babel/types/package.json +39 -0
  16. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +525 -0
  17. package/dist/client/node_modules/@floating-ui/core/package.json +32 -39
  18. package/dist/client/node_modules/@floating-ui/dom/package.json +23 -24
  19. package/dist/client/node_modules/@floating-ui/dom/src/autoUpdate.d.ts +31 -0
  20. package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +11 -7
  21. package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +1 -1
  22. package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +121 -20
  23. package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +1 -1
  24. package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingRect.d.ts +12 -0
  25. package/dist/client/node_modules/@floating-ui/dom/src/utils/getCssDimensions.d.ts +4 -0
  26. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +1 -1
  27. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNearestOverflowAncestor.d.ts +1 -0
  28. package/dist/client/node_modules/@floating-ui/dom/src/utils/getOverflowAncestors.d.ts +3 -0
  29. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScale.d.ts +7 -0
  30. package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +2 -2
  31. package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -1
  32. package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +3 -1
  33. package/dist/client/node_modules/@floating-ui/dom/src/utils/unwrapElement.d.ts +2 -0
  34. package/dist/client/node_modules/@floating-ui/dom/src/utils/userAgent.d.ts +1 -0
  35. package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +1 -2
  36. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +103 -0
  37. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
  38. package/dist/client/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
  39. package/dist/client/node_modules/@floating-ui/utils/dom/package.json +6 -0
  40. package/dist/client/node_modules/@floating-ui/utils/package.json +70 -0
  41. package/dist/client/node_modules/@iconify/types/package.json +23 -0
  42. package/dist/client/node_modules/@iconify/types/provider.d.ts +44 -0
  43. package/dist/client/node_modules/@iconify/types/types.d.ts +272 -0
  44. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +122 -327
  45. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +36 -269
  46. package/dist/client/node_modules/@iconify/vue/package.json +64 -60
  47. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
  48. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +2 -0
  49. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
  50. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
  51. package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +3 -2
  52. package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +33 -14
  53. package/dist/client/node_modules/@types/web-bluetooth/package.json +12 -12
  54. package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +218 -125
  55. package/dist/client/node_modules/@vue/compiler-core/package.json +20 -5
  56. package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +6 -3
  57. package/dist/client/node_modules/@vue/compiler-dom/package.json +17 -3
  58. package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +35 -25
  59. package/dist/client/node_modules/@vue/compiler-sfc/package.json +27 -18
  60. package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +2 -2
  61. package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
  62. package/dist/client/node_modules/@vue/devtools-api/package.json +1 -1
  63. package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +268 -166
  64. package/dist/client/node_modules/@vue/reactivity/package.json +16 -2
  65. package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +728 -529
  66. package/dist/client/node_modules/@vue/runtime-core/package.json +17 -3
  67. package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +195 -86
  68. package/dist/client/node_modules/@vue/runtime-dom/package.json +22 -4
  69. package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +4 -8
  70. package/dist/client/node_modules/@vue/server-renderer/package.json +18 -4
  71. package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +45 -30
  72. package/dist/client/node_modules/@vue/shared/package.json +15 -1
  73. package/dist/client/node_modules/@vueuse/core/index.d.ts +2323 -666
  74. package/dist/client/node_modules/@vueuse/core/package.json +22 -12
  75. package/dist/client/node_modules/@vueuse/metadata/index.d.ts +7 -5
  76. package/dist/client/node_modules/@vueuse/metadata/package.json +14 -7
  77. package/dist/client/node_modules/@vueuse/shared/index.d.ts +451 -280
  78. package/dist/client/node_modules/@vueuse/shared/package.json +17 -6
  79. package/dist/client/node_modules/compute-scroll-into-view/dist/index.d.ts +75 -0
  80. package/dist/client/node_modules/compute-scroll-into-view/package.json +35 -45
  81. package/dist/client/node_modules/entities/lib/decode.d.ts +211 -0
  82. package/dist/client/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
  83. package/dist/client/node_modules/entities/lib/encode.d.ts +22 -0
  84. package/dist/client/node_modules/entities/lib/escape.d.ts +43 -0
  85. package/dist/client/node_modules/entities/lib/esm/decode.d.ts +211 -0
  86. package/dist/client/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
  87. package/dist/client/node_modules/entities/lib/esm/encode.d.ts +22 -0
  88. package/dist/client/node_modules/entities/lib/esm/escape.d.ts +43 -0
  89. package/dist/client/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
  90. package/dist/client/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
  91. package/dist/client/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
  92. package/dist/client/node_modules/entities/lib/esm/index.d.ts +96 -0
  93. package/dist/client/node_modules/entities/lib/esm/package.json +1 -0
  94. package/dist/client/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
  95. package/dist/client/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
  96. package/dist/client/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
  97. package/dist/client/node_modules/entities/lib/index.d.ts +96 -0
  98. package/dist/client/node_modules/entities/package.json +90 -0
  99. package/dist/client/node_modules/floating-vue/dist/components/Dropdown.d.ts +398 -0
  100. package/dist/client/node_modules/floating-vue/dist/components/Menu.d.ts +398 -0
  101. package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +225 -105
  102. package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +471 -364
  103. package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +14 -25
  104. package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +392 -6
  105. package/dist/client/node_modules/floating-vue/dist/components/Tooltip.d.ts +398 -0
  106. package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +49 -10
  107. package/dist/client/node_modules/floating-vue/dist/config.d.ts +1 -1
  108. package/dist/client/node_modules/floating-vue/dist/index.d.ts +2071 -247
  109. package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +2 -0
  110. package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +1 -1
  111. package/dist/client/node_modules/floating-vue/package.json +42 -33
  112. package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +250 -229
  113. package/dist/client/node_modules/magic-string/package.json +24 -26
  114. package/dist/client/node_modules/nanoid/package.json +1 -1
  115. package/dist/client/node_modules/picocolors/package.json +2 -2
  116. package/dist/client/node_modules/picocolors/types.d.ts +51 -0
  117. package/dist/client/node_modules/pinia/dist/pinia.d.ts +116 -37
  118. package/dist/client/node_modules/pinia/package.json +7 -11
  119. package/dist/client/node_modules/postcss/lib/at-rule.d.ts +22 -19
  120. package/dist/client/node_modules/postcss/lib/comment.d.ts +6 -5
  121. package/dist/client/node_modules/postcss/lib/container.d.ts +72 -82
  122. package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +1 -1
  123. package/dist/client/node_modules/postcss/lib/declaration.d.ts +16 -13
  124. package/dist/client/node_modules/postcss/lib/document.d.ts +4 -4
  125. package/dist/client/node_modules/postcss/lib/input.d.ts +28 -16
  126. package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +40 -40
  127. package/dist/client/node_modules/postcss/lib/list.d.ts +5 -2
  128. package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +5 -5
  129. package/dist/client/node_modules/postcss/lib/node.d.ts +19 -14
  130. package/dist/client/node_modules/postcss/lib/postcss.d.ts +25 -8
  131. package/dist/client/node_modules/postcss/lib/processor.d.ts +1 -1
  132. package/dist/client/node_modules/postcss/lib/result.d.ts +10 -11
  133. package/dist/client/node_modules/postcss/lib/root.d.ts +4 -4
  134. package/dist/client/node_modules/postcss/lib/rule.d.ts +22 -13
  135. package/dist/client/node_modules/postcss/package.json +4 -4
  136. package/dist/client/node_modules/scroll-into-view-if-needed/dist/index.d.ts +79 -0
  137. package/dist/client/node_modules/scroll-into-view-if-needed/package.json +28 -67
  138. package/dist/client/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
  139. package/dist/client/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
  140. package/dist/client/node_modules/source-map-js/lib/source-node.d.ts +1 -0
  141. package/dist/client/node_modules/source-map-js/package.json +1 -1
  142. package/dist/client/node_modules/source-map-js/source-map.d.ts +88 -99
  143. package/dist/client/node_modules/vue/dist/vue.d.ts +0 -4
  144. package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +2 -1
  145. package/dist/client/node_modules/vue/jsx.d.ts +2 -1
  146. package/dist/client/node_modules/vue/package.json +13 -14
  147. package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/package.json +1 -1
  148. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +410 -81
  149. package/dist/client/node_modules/vue-router/package.json +66 -37
  150. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +4 -0
  151. package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +4 -0
  152. package/dist/client/vue.runtime.esm-bundler.js +6458 -4714
  153. package/package.json +17 -17
  154. package/rollup.config.mjs +6 -6
  155. package/dist/client/index2.js +0 -168
  156. package/dist/client/node_modules/@floating-ui/core/index.d.ts +0 -1
  157. package/dist/client/node_modules/@floating-ui/core/src/_babel.d.ts +0 -1
  158. package/dist/client/node_modules/@floating-ui/core/src/computeCoordsFromPlacement.d.ts +0 -4
  159. package/dist/client/node_modules/@floating-ui/core/src/computePosition.d.ts +0 -2
  160. package/dist/client/node_modules/@floating-ui/core/src/detectOverflow.d.ts +0 -9
  161. package/dist/client/node_modules/@floating-ui/core/src/enums.d.ts +0 -4
  162. package/dist/client/node_modules/@floating-ui/core/src/index.d.ts +0 -11
  163. package/dist/client/node_modules/@floating-ui/core/src/middleware/arrow.d.ts +0 -6
  164. package/dist/client/node_modules/@floating-ui/core/src/middleware/autoPlacement.d.ts +0 -9
  165. package/dist/client/node_modules/@floating-ui/core/src/middleware/flip.d.ts +0 -10
  166. package/dist/client/node_modules/@floating-ui/core/src/middleware/hide.d.ts +0 -2
  167. package/dist/client/node_modules/@floating-ui/core/src/middleware/inline.d.ts +0 -5
  168. package/dist/client/node_modules/@floating-ui/core/src/middleware/offset.d.ts +0 -21
  169. package/dist/client/node_modules/@floating-ui/core/src/middleware/shift.d.ts +0 -32
  170. package/dist/client/node_modules/@floating-ui/core/src/middleware/size.d.ts +0 -6
  171. package/dist/client/node_modules/@floating-ui/core/src/types.d.ts +0 -148
  172. package/dist/client/node_modules/@floating-ui/core/src/utils/expandPaddingObject.d.ts +0 -2
  173. package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignment.d.ts +0 -2
  174. package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignmentSides.d.ts +0 -5
  175. package/dist/client/node_modules/@floating-ui/core/src/utils/getBasePlacement.d.ts +0 -2
  176. package/dist/client/node_modules/@floating-ui/core/src/utils/getCrossAxis.d.ts +0 -2
  177. package/dist/client/node_modules/@floating-ui/core/src/utils/getExpandedPlacements.d.ts +0 -2
  178. package/dist/client/node_modules/@floating-ui/core/src/utils/getLengthFromAxis.d.ts +0 -2
  179. package/dist/client/node_modules/@floating-ui/core/src/utils/getMainAxisFromPlacement.d.ts +0 -2
  180. package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositeAlignmentPlacement.d.ts +0 -2
  181. package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositePlacement.d.ts +0 -1
  182. package/dist/client/node_modules/@floating-ui/core/src/utils/getPaddingObject.d.ts +0 -2
  183. package/dist/client/node_modules/@floating-ui/core/src/utils/math.d.ts +0 -2
  184. package/dist/client/node_modules/@floating-ui/core/src/utils/rectToClientRect.d.ts +0 -2
  185. package/dist/client/node_modules/@floating-ui/core/src/utils/within.d.ts +0 -1
  186. package/dist/client/node_modules/@floating-ui/dom/src/utils/contains.d.ts +0 -1
  187. package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingClientRect.d.ts +0 -6
  188. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParent.d.ts +0 -1
  189. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParents.d.ts +0 -1
  190. package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +0 -43
  191. package/dist/client/node_modules/@vue/reactivity-transform/package.json +0 -41
  192. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +0 -47
  193. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/index.d.ts +0 -22
  194. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
  195. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
  196. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
  197. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/package.json +0 -47
  198. package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +0 -19
  199. package/dist/client/node_modules/floating-vue/dist/components/Dropdown.vue.d.ts +0 -25
  200. package/dist/client/node_modules/floating-vue/dist/components/Menu.vue.d.ts +0 -25
  201. package/dist/client/node_modules/floating-vue/dist/components/Tooltip.vue.d.ts +0 -25
  202. package/dist/client/node_modules/floating-vue/src/global-shim.d.ts +0 -1
  203. package/dist/client/node_modules/floating-vue/src/vue-shim.d.ts +0 -5
  204. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +0 -22
  205. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
  206. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
  207. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
  208. package/dist/client/node_modules/scroll-into-view-if-needed/typings/index.d.ts +0 -13
  209. package/dist/client/node_modules/scroll-into-view-if-needed/typings/types.d.ts +0 -19
  210. package/dist/client/node_modules/vue/macros-global.d.ts +0 -19
  211. package/dist/client/node_modules/vue/macros.d.ts +0 -112
  212. package/dist/client/node_modules/vue/ref-macros.d.ts +0 -2
  213. /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/index.d.ts +0 -0
  214. /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v2/index.d.ts +0 -0
  215. /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v2.7/index.d.ts +0 -0
  216. /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v3/index.d.ts +0 -0
@@ -2,7 +2,7 @@ import { RawSourceMap, SourceMapGenerator } from 'source-map-js'
2
2
 
3
3
  import AtRule, { AtRuleProps } from './at-rule.js'
4
4
  import Comment, { CommentProps } from './comment.js'
5
- import Container, { ContainerProps } from './container.js'
5
+ import Container, { ContainerProps, NewChild } from './container.js'
6
6
  import CssSyntaxError from './css-syntax-error.js'
7
7
  import Declaration, { DeclarationProps } from './declaration.js'
8
8
  import Document, { DocumentProps } from './document.js'
@@ -28,13 +28,22 @@ type DocumentProcessor = (
28
28
  document: Document,
29
29
  helper: postcss.Helpers
30
30
  ) => Promise<void> | void
31
- type RootProcessor = (root: Root, helper: postcss.Helpers) => Promise<void> | void
31
+ type RootProcessor = (
32
+ root: Root,
33
+ helper: postcss.Helpers
34
+ ) => Promise<void> | void
32
35
  type DeclarationProcessor = (
33
36
  decl: Declaration,
34
37
  helper: postcss.Helpers
35
38
  ) => Promise<void> | void
36
- type RuleProcessor = (rule: Rule, helper: postcss.Helpers) => Promise<void> | void
37
- type AtRuleProcessor = (atRule: AtRule, helper: postcss.Helpers) => Promise<void> | void
39
+ type RuleProcessor = (
40
+ rule: Rule,
41
+ helper: postcss.Helpers
42
+ ) => Promise<void> | void
43
+ type AtRuleProcessor = (
44
+ atRule: AtRule,
45
+ helper: postcss.Helpers
46
+ ) => Promise<void> | void
38
47
  type CommentProcessor = (
39
48
  comment: Comment,
40
49
  helper: postcss.Helpers
@@ -161,6 +170,7 @@ declare namespace postcss {
161
170
  LazyResult,
162
171
  list,
163
172
  Message,
173
+ NewChild,
164
174
  Node,
165
175
  NodeErrorOptions,
166
176
  NodeProps,
@@ -176,9 +186,9 @@ declare namespace postcss {
176
186
  WarningOptions
177
187
  }
178
188
 
179
- export type SourceMap = SourceMapGenerator & {
189
+ export type SourceMap = {
180
190
  toJSON(): RawSourceMap
181
- }
191
+ } & SourceMapGenerator
182
192
 
183
193
  export type Helpers = { postcss: Postcss; result: Result } & Postcss
184
194
 
@@ -219,7 +229,7 @@ declare namespace postcss {
219
229
  export interface Parser<RootNode = Document | Root> {
220
230
  (
221
231
  css: { toString(): string } | string,
222
- opts?: Pick<ProcessOptions, 'from' | 'map'>
232
+ opts?: Pick<ProcessOptions, 'document' | 'from' | 'map'>
223
233
  ): RootNode
224
234
  }
225
235
 
@@ -305,6 +315,11 @@ declare namespace postcss {
305
315
  }
306
316
 
307
317
  export interface ProcessOptions<RootNode = Document | Root> {
318
+ /**
319
+ * Input file if it is not simple CSS file, but HTML with <style> or JS with CSS-in-JS blocks.
320
+ */
321
+ document?: string
322
+
308
323
  /**
309
324
  * The path of the CSS source file. You should always set `from`,
310
325
  * because it is used in source map generation and syntax error messages.
@@ -435,7 +450,9 @@ declare namespace postcss {
435
450
  * @param plugins PostCSS plugins.
436
451
  * @return Processor to process multiple CSS.
437
452
  */
438
- declare function postcss(plugins?: postcss.AcceptedPlugin[]): Processor
453
+ declare function postcss(
454
+ plugins?: readonly postcss.AcceptedPlugin[]
455
+ ): Processor
439
456
  declare function postcss(...plugins: postcss.AcceptedPlugin[]): Processor
440
457
 
441
458
  export = postcss
@@ -51,7 +51,7 @@ declare class Processor_ {
51
51
  /**
52
52
  * @param plugins PostCSS plugins
53
53
  */
54
- constructor(plugins?: AcceptedPlugin[])
54
+ constructor(plugins?: readonly AcceptedPlugin[])
55
55
 
56
56
  /**
57
57
  * Parses source CSS and returns a `LazyResult` Promise proxy.
@@ -39,7 +39,6 @@ declare namespace Result {
39
39
  plugin?: string
40
40
  }
41
41
 
42
-
43
42
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
44
43
  export { Result_ as default }
45
44
  }
@@ -143,6 +142,16 @@ declare class Result_<RootNode = Document | Root> {
143
142
  */
144
143
  root: RootNode
145
144
 
145
+ /**
146
+ * An alias for the `Result#css` property.
147
+ * Use it with syntaxes that generate non-CSS output.
148
+ *
149
+ * ```js
150
+ * result.css === result.content
151
+ * ```
152
+ */
153
+ get content(): string
154
+
146
155
  /**
147
156
  * @param processor Processor used for this transformation.
148
157
  * @param root Root node after all transformations.
@@ -189,16 +198,6 @@ declare class Result_<RootNode = Document | Root> {
189
198
  * @return Warnings from plugins.
190
199
  */
191
200
  warnings(): Warning[]
192
-
193
- /**
194
- * An alias for the `Result#css` property.
195
- * Use it with syntaxes that generate non-CSS output.
196
- *
197
- * ```js
198
- * result.css === result.content
199
- * ```
200
- */
201
- get content(): string
202
201
  }
203
202
 
204
203
  declare class Result<RootNode = Document | Root> extends Result_<RootNode> {}
@@ -62,9 +62,9 @@ declare class Root_ extends Container {
62
62
  constructor(defaults?: Root.RootProps)
63
63
 
64
64
  assign(overrides: object | Root.RootProps): this
65
- clone(overrides?: Partial<Root.RootProps>): Root
66
- cloneAfter(overrides?: Partial<Root.RootProps>): Root
67
- cloneBefore(overrides?: Partial<Root.RootProps>): Root
65
+ clone(overrides?: Partial<Root.RootProps>): this
66
+ cloneAfter(overrides?: Partial<Root.RootProps>): this
67
+ cloneBefore(overrides?: Partial<Root.RootProps>): this
68
68
 
69
69
  /**
70
70
  * Returns a `Result` instance representing the root’s CSS.
@@ -76,7 +76,7 @@ declare class Root_ extends Container {
76
76
  * const result = root1.toResult({ to: 'all.css', map: true })
77
77
  * ```
78
78
  *
79
- * @param opts Options.
79
+ * @param options Options.
80
80
  * @return Result with current root’s CSS.
81
81
  */
82
82
  toResult(options?: ProcessOptions): Result
@@ -22,7 +22,7 @@ declare namespace Rule {
22
22
  between?: string
23
23
 
24
24
  /**
25
- * Contains `true` if there is semicolon after rule.
25
+ * Contains the text of the semicolon after this rule.
26
26
  */
27
27
  ownSemicolon?: string
28
28
 
@@ -40,14 +40,21 @@ declare namespace Rule {
40
40
  semicolon?: boolean
41
41
  }
42
42
 
43
- export interface RuleProps extends ContainerProps {
43
+ export type RuleProps = {
44
44
  /** Information used to generate byte-to-byte equal node string as it was in the origin input. */
45
45
  raws?: RuleRaws
46
- /** Selector or selectors of the rule. */
47
- selector?: string
48
- /** Selectors of the rule represented as an array of strings. */
49
- selectors?: string[]
50
- }
46
+ } & (
47
+ | {
48
+ /** Selector or selectors of the rule. */
49
+ selector: string
50
+ selectors?: never
51
+ }
52
+ | {
53
+ selector?: never
54
+ /** Selectors of the rule represented as an array of strings. */
55
+ selectors: readonly string[]
56
+ }
57
+ ) & ContainerProps
51
58
 
52
59
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
53
60
  export { Rule_ as default }
@@ -75,6 +82,7 @@ declare class Rule_ extends Container {
75
82
  nodes: NonNullable<Container['nodes']>
76
83
  parent: ContainerWithChildren | undefined
77
84
  raws: Rule.RuleRaws
85
+ type: 'rule'
78
86
  /**
79
87
  * The rule’s full selector represented as a string.
80
88
  *
@@ -84,8 +92,9 @@ declare class Rule_ extends Container {
84
92
  * rule.selector //=> 'a, b'
85
93
  * ```
86
94
  */
87
- selector: string
95
+ get selector(): string
88
96
 
97
+ set selector(value: string)
89
98
  /**
90
99
  * An array containing the rule’s individual selectors.
91
100
  * Groups of selectors are split at commas.
@@ -101,15 +110,15 @@ declare class Rule_ extends Container {
101
110
  * rule.selector //=> 'a, strong'
102
111
  * ```
103
112
  */
104
- selectors: string[]
113
+ get selectors(): string[]
105
114
 
106
- type: 'rule'
115
+ set selectors(values: string[])
107
116
 
108
117
  constructor(defaults?: Rule.RuleProps)
109
118
  assign(overrides: object | Rule.RuleProps): this
110
- clone(overrides?: Partial<Rule.RuleProps>): Rule
111
- cloneAfter(overrides?: Partial<Rule.RuleProps>): Rule
112
- cloneBefore(overrides?: Partial<Rule.RuleProps>): Rule
119
+ clone(overrides?: Partial<Rule.RuleProps>): this
120
+ cloneAfter(overrides?: Partial<Rule.RuleProps>): this
121
+ cloneBefore(overrides?: Partial<Rule.RuleProps>): this
113
122
  }
114
123
 
115
124
  declare class Rule extends Rule_ {}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss",
3
- "version": "8.4.38",
3
+ "version": "8.5.3",
4
4
  "description": "Tool for transforming styles with JS plugins",
5
5
  "engines": {
6
6
  "node": "^10 || ^12 || >=14"
@@ -74,9 +74,9 @@
74
74
  "url": "https://github.com/postcss/postcss/issues"
75
75
  },
76
76
  "dependencies": {
77
- "nanoid": "^3.3.7",
78
- "picocolors": "^1.0.0",
79
- "source-map-js": "^1.2.0"
77
+ "nanoid": "^3.3.8",
78
+ "picocolors": "^1.1.1",
79
+ "source-map-js": "^1.2.1"
80
80
  },
81
81
  "browser": {
82
82
  "./lib/terminal-highlight": false,
@@ -0,0 +1,79 @@
1
+ import type { Options as Options_2 } from 'compute-scroll-into-view'
2
+ import type { ScrollAction } from 'compute-scroll-into-view'
3
+
4
+ /** @public */
5
+ export declare interface CustomBehaviorOptions<T = unknown> extends Options_2 {
6
+ behavior: CustomScrollBehaviorCallback<T>
7
+ }
8
+
9
+ /** @public */
10
+ export declare type CustomScrollBehaviorCallback<T = unknown> = (
11
+ actions: ScrollAction[]
12
+ ) => T
13
+
14
+ /** @public */
15
+ export declare type Options<T = unknown> =
16
+ | StandardBehaviorOptions
17
+ | CustomBehaviorOptions<T>
18
+
19
+ /**
20
+ * Scrolls the given element into view, with options for when, and how.
21
+ * Supports the same `options` as [`Element.prototype.scrollIntoView`](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) with additions such as `scrollMode`, `behavior: Function` and `skipOverflowHiddenElements`.
22
+ * @public
23
+ */
24
+ declare function scrollIntoView(
25
+ target: Element,
26
+ options?: StandardBehaviorOptions | boolean
27
+ ): void
28
+
29
+ /**
30
+ * Scrolls the given element into view, with options for when, and how.
31
+ * Supports the same `options` as [`Element.prototype.scrollIntoView`](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) with additions such as `scrollMode`, `behavior: Function` and `skipOverflowHiddenElements`.
32
+ *
33
+ * You can set the expected return type for `behavior: Function`:
34
+ * ```ts
35
+ * await scrollIntoView<Promise<boolean[]>>(node, {
36
+ * behavior: async actions => {
37
+ * return Promise.all(actions.map(
38
+ * // animate() resolves to `true` if anything was animated, `false` if the element already were in the end state
39
+ * ({ el, left, top }) => animate(el, {scroll: {left, top}})
40
+ * ))
41
+ * }
42
+ * })
43
+ * ```
44
+ * @public
45
+ */
46
+ declare function scrollIntoView<T>(
47
+ target: Element,
48
+ options: CustomBehaviorOptions<T>
49
+ ): T
50
+ export default scrollIntoView
51
+
52
+ /**
53
+ * Only scrolls if the `node` is partially out of view:
54
+ * ```ts
55
+ * scrollIntoView(node, { scrollMode: 'if-needed' })
56
+ * ```
57
+ * Skips scrolling `overflow: hidden` elements:
58
+ * ```ts
59
+ * scrollIntoView(node, { skipOverflowHiddenElements: true })
60
+ * ```
61
+ * When scrolling is needed do the least and smoothest scrolling possible:
62
+ * ```ts
63
+ * scrollIntoView(node, {
64
+ * behavior: 'smooth',
65
+ * scrollMode: 'if-needed',
66
+ * block: 'nearest',
67
+ * inline: 'nearest',
68
+ * })
69
+ * ```
70
+ * @public
71
+ */
72
+ export declare interface StandardBehaviorOptions extends Options_2 {
73
+ /**
74
+ * @defaultValue 'auto
75
+ */
76
+ behavior?: ScrollBehavior
77
+ }
78
+
79
+ export {}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scroll-into-view-if-needed",
3
- "version": "2.2.31",
3
+ "version": "3.1.0",
4
4
  "description": "Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center",
5
5
  "keywords": [
6
6
  "behavior-smooth",
@@ -24,94 +24,55 @@
24
24
  "license": "MIT",
25
25
  "author": "Cody Olsen",
26
26
  "sideEffects": false,
27
+ "type": "module",
27
28
  "exports": {
28
29
  ".": {
29
- "types": "./typings/index.d.ts",
30
+ "types": "./dist/index.d.ts",
30
31
  "source": "./src/index.ts",
31
- "import": "./es/index.js",
32
- "require": "./index.js",
33
- "default": "./es/index.js"
32
+ "require": "./dist/index.cjs",
33
+ "import": "./dist/index.js",
34
+ "default": "./dist/index.js"
34
35
  },
35
36
  "./package.json": "./package.json"
36
37
  },
37
- "main": "index.js",
38
- "module": "es/index.js",
39
- "typings": "typings/index.d.ts",
38
+ "main": "./dist/index.cjs",
39
+ "module": "./dist/index.js",
40
+ "source": "./src/index.ts",
41
+ "typings": "./dist/index.d.ts",
40
42
  "files": [
41
- "es",
42
- "typings",
43
- "umd"
43
+ "dist",
44
+ "src"
44
45
  ],
45
46
  "scripts": {
46
47
  "prebuild": "npm run clean",
47
- "build": "npm run build:d.ts && npm run build:cjs && npm run build:es && npm run build:umd && npm run build:umd.min",
48
- "build:cjs": "cross-env BABEL_ENV=cjs babel src -d . --extensions '.ts'",
49
- "build:d.ts": "tsc --emitDeclarationOnly",
50
- "build:es": "cross-env BABEL_ENV=es babel src -d es --extensions '.ts'",
51
- "build:umd": "cross-env BABEL_ENV=umd NODE_ENV=development rollup -c -f umd -o umd/scroll-into-view-if-needed.js",
52
- "build:umd.min": "cross-env BABEL_ENV=umd NODE_ENV=production rollup -c -f umd -o umd/scroll-into-view-if-needed.min.js",
53
- "clean": "rimraf 'umd' 'es' 'typings'",
54
- "dev": "concurrently 'tsc --noEmit --watch' 'tsc --noEmit -p tests/typescript --watch' 'npm run build:cjs --watch' 'npm run build:es --watch' 'npm run build:umd --watch' 'npm run build:umd.min --watch'",
55
- "lint": "eslint ./integration-examples",
56
- "precommit": "lint-staged",
48
+ "build": "pkg build --strict",
49
+ "clean": "npx rimraf 'dist'",
57
50
  "prepublishOnly": "npm run build",
58
- "typecheck": "tsc --noEmit && tsc --noEmit -p tests/typescript"
59
- },
60
- "browserify": {
61
- "transform": [
62
- "loose-envify"
63
- ]
51
+ "typecheck": "tsc && tsc --noEmit -p tests/typescript"
64
52
  },
53
+ "browserslist": [
54
+ "> 0.2% and supports es6-module and supports es6-module-dynamic-import and not dead and not IE 11",
55
+ "maintained node versions"
56
+ ],
65
57
  "prettier": {
66
58
  "semi": false,
67
- "singleQuote": true,
68
- "overrides": [
69
- {
70
- "files": ".babelrc",
71
- "options": {
72
- "parser": "json"
73
- }
74
- }
75
- ]
59
+ "singleQuote": true
76
60
  },
77
61
  "dependencies": {
78
- "compute-scroll-into-view": "^1.0.20"
62
+ "compute-scroll-into-view": "^3.0.2"
79
63
  },
80
64
  "devDependencies": {
81
- "@babel/cli": "^7.19.3",
82
- "@babel/core": "^7.20.5",
83
- "@babel/plugin-external-helpers": "^7.18.6",
84
- "@babel/preset-env": "^7.20.2",
85
- "@babel/preset-typescript": "^7.18.6",
86
- "@sanity/semantic-release-preset": "^2.0.2",
87
- "babel-eslint": "^10.1.0",
88
- "babel-plugin-add-module-exports": "^1.0.4",
89
- "babel-plugin-dev-expression": "^0.2.3",
90
- "concurrently": "^7.6.0",
65
+ "@sanity/pkg-utils": "^2.2.5",
66
+ "@sanity/semantic-release-preset": "^4.0.0",
91
67
  "cross-env": "^7.0.3",
92
- "eslint": "^8.28.0",
93
- "eslint-config-prettier": "^8.5.0",
94
- "eslint-plugin-import": "^2.26.0",
95
- "eslint-plugin-react": "^7.31.11",
96
- "flowgen": "^1.20.1",
97
- "husky": "^7.0.4",
98
- "lint-staged": "^12.5.0",
99
- "prettier": "^2.8.0",
100
- "prettier-plugin-packagejson": "^2.3.0",
101
- "rimraf": "^3.0.2",
102
- "rollup": "^2.79.1",
103
- "rollup-plugin-babel": "^4.4.0",
104
- "rollup-plugin-commonjs": "^10.1.0",
105
- "rollup-plugin-node-resolve": "^5.2.0",
106
- "rollup-plugin-replace": "^2.2.0",
107
- "rollup-plugin-terser": "^7.0.2",
108
- "tslint": "^5.20.1",
109
- "tslint-config-prettier": "^1.18.0",
110
- "typescript": "^4.9.3"
68
+ "prettier": "^2.8.4",
69
+ "prettier-plugin-packagejson": "^2.4.3",
70
+ "rimraf": "^4.1.2",
71
+ "typescript": "^5.0.0"
111
72
  },
112
73
  "bundlesize": [
113
74
  {
114
- "path": "./umd/scroll-into-view-if-needed.min.js",
75
+ "path": "./dist/index.js",
115
76
  "maxSize": "3.3 kB",
116
77
  "compression": "none"
117
78
  }
@@ -0,0 +1 @@
1
+ export { SourceMapConsumer } from '..';
@@ -0,0 +1 @@
1
+ export { SourceMapGenerator } from '..';
@@ -0,0 +1 @@
1
+ export { SourceNode } from '..';
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "source-map-js",
3
3
  "description": "Generates and consumes source maps",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "homepage": "https://github.com/7rulnik/source-map-js",
6
6
  "author": "Valentin 7rulnik Semirulnik <v7rulnik@gmail.com>",
7
7
  "contributors": [