@histoire/vendors 0.17.0 → 0.17.6

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 (50) hide show
  1. package/dist/client/b-pinia.js +9 -8
  2. package/dist/client/b-vue-router.js +13 -13
  3. package/dist/client/node_modules/@babel/parser/package.json +5 -5
  4. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +9 -0
  5. package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +9 -3
  6. package/dist/client/node_modules/@vue/compiler-core/package.json +4 -4
  7. package/dist/client/node_modules/@vue/compiler-dom/package.json +3 -3
  8. package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +8 -7
  9. package/dist/client/node_modules/@vue/compiler-sfc/package.json +16 -18
  10. package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
  11. package/dist/client/node_modules/@vue/devtools-api/package.json +1 -1
  12. package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +50 -74
  13. package/dist/client/node_modules/@vue/reactivity/package.json +2 -2
  14. package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +9 -0
  15. package/dist/client/node_modules/@vue/reactivity-transform/package.json +7 -7
  16. package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +77 -204
  17. package/dist/client/node_modules/@vue/runtime-core/package.json +3 -3
  18. package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +16 -14
  19. package/dist/client/node_modules/@vue/runtime-dom/package.json +4 -4
  20. package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +0 -2
  21. package/dist/client/node_modules/@vue/server-renderer/package.json +4 -4
  22. package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +8 -3
  23. package/dist/client/node_modules/@vue/shared/package.json +1 -1
  24. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2/index.d.ts +2 -0
  25. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2.7/index.d.ts +2 -0
  26. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +1 -1
  27. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2/index.d.ts +2 -0
  28. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2.7/index.d.ts +2 -0
  29. package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/package.json +1 -1
  30. package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +4 -4
  31. package/dist/client/node_modules/magic-string/package.json +1 -1
  32. package/dist/client/node_modules/nanoid/package.json +33 -11
  33. package/dist/client/node_modules/pinia/dist/pinia.d.ts +9 -0
  34. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +2 -0
  35. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +2 -0
  36. package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +1 -1
  37. package/dist/client/node_modules/pinia/package.json +1 -1
  38. package/dist/client/node_modules/postcss/lib/container.d.ts +32 -32
  39. package/dist/client/node_modules/postcss/lib/input.d.ts +13 -13
  40. package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +26 -26
  41. package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +3 -3
  42. package/dist/client/node_modules/postcss/lib/result.d.ts +10 -10
  43. package/dist/client/node_modules/postcss/package.json +1 -1
  44. package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +1 -6
  45. package/dist/client/node_modules/vue/jsx.d.ts +1 -6
  46. package/dist/client/node_modules/vue/package.json +16 -6
  47. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +21 -16
  48. package/dist/client/node_modules/vue-router/package.json +19 -15
  49. package/dist/client/vue.runtime.esm-bundler.js +707 -645
  50. package/package.json +7 -7
@@ -1,4 +1,4 @@
1
- import { SetupContext, RenderFunction, ComputedOptions, MethodOptions, ComponentOptionsMixin, EmitsOptions, ComponentInjectOptions, SlotsType, ComponentOptionsWithoutProps, ComponentOptionsWithArrayProps, ComponentPropsOptions, ComponentOptionsWithObjectProps, ExtractPropTypes, ComponentPublicInstance, ComponentInternalInstance, RootHydrateFunction, ConcreteComponent, BaseTransitionProps, FunctionalComponent, ObjectDirective, VNodeRef, RootRenderFunction, CreateAppFunction } from '@vue/runtime-core';
1
+ import { SetupContext, RenderFunction, ComputedOptions, MethodOptions, ComponentOptionsMixin, EmitsOptions, ComponentInjectOptions, SlotsType, ComponentOptionsWithoutProps, ComponentOptionsWithArrayProps, ComponentPropsOptions, ComponentOptionsWithObjectProps, ExtractPropTypes, ComponentPublicInstance, RootHydrateFunction, ConcreteComponent, BaseTransitionProps, FunctionalComponent, ObjectDirective, VNodeRef, RootRenderFunction, CreateAppFunction } from '@vue/runtime-core';
2
2
  export * from '@vue/runtime-core';
3
3
  import * as CSS from 'csstype';
4
4
 
@@ -20,6 +20,7 @@ export declare function defineCustomElement<PropsOptions extends Readonly<Compon
20
20
  export declare function defineCustomElement(options: {
21
21
  new (...args: any[]): ComponentPublicInstance;
22
22
  }): VueElementConstructor;
23
+ /*! #__NO_SIDE_EFFECTS__ */
23
24
  export declare const defineSSRCustomElement: typeof defineCustomElement;
24
25
  declare const BaseClass: {
25
26
  new (): HTMLElement;
@@ -31,11 +32,11 @@ type InnerComponentDef = ConcreteComponent & {
31
32
  export declare class VueElement extends BaseClass {
32
33
  private _def;
33
34
  private _props;
34
- /* removed internal: _instance */
35
35
  private _connected;
36
36
  private _resolved;
37
37
  private _numberProps;
38
38
  private _styles?;
39
+ private _ob?;
39
40
  constructor(_def: InnerComponentDef, _props?: Record<string, any>, hydrate?: RootHydrateFunction);
40
41
  connectedCallback(): void;
41
42
  disconnectedCallback(): void;
@@ -45,8 +46,6 @@ export declare class VueElement extends BaseClass {
45
46
  private _resolveDef;
46
47
  private _resolveProps;
47
48
  protected _setAttr(key: string): void;
48
- /* removed internal: _getProp */
49
- /* removed internal: _setProp */
50
49
  private _update;
51
50
  private _createVNode;
52
51
  private _applyStyles;
@@ -92,8 +91,9 @@ export declare const TransitionGroup: new () => {
92
91
  };
93
92
 
94
93
  type AssignerFn = (value: any) => void;
94
+ declare const assignKey: unique symbol;
95
95
  type ModelDirective<T> = ObjectDirective<T & {
96
- _assign: AssignerFn;
96
+ [assignKey]: AssignerFn;
97
97
  }>;
98
98
  export declare const vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement>;
99
99
  export declare const vModelCheckbox: ModelDirective<HTMLInputElement>;
@@ -110,8 +110,9 @@ export declare const withModifiers: (fn: Function, modifiers: string[]) => (even
110
110
  */
111
111
  export declare const withKeys: (fn: Function, modifiers: string[]) => (event: KeyboardEvent) => any;
112
112
 
113
+ declare const vShowOldKey: unique symbol;
113
114
  interface VShowElement extends HTMLElement {
114
- _vod: string;
115
+ [vShowOldKey]: string;
115
116
  }
116
117
  export declare const vShow: ObjectDirective<VShowElement>;
117
118
 
@@ -270,7 +271,7 @@ interface AriaAttributes {
270
271
  * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
271
272
  * @see aria-atomic.
272
273
  */
273
- 'aria-relevant'?: 'additions' | 'additions text' | 'all' | 'removals' | 'text';
274
+ 'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals';
274
275
  /** Indicates that user input is required on the element before a form may be submitted. */
275
276
  'aria-required'?: Booleanish;
276
277
  /** Defines a human-readable, author-localized description for the role of an element. */
@@ -320,12 +321,13 @@ export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
320
321
  class?: any;
321
322
  style?: StyleValue;
322
323
  accesskey?: string;
323
- contenteditable?: Booleanish | 'inherit';
324
+ contenteditable?: Booleanish | 'inherit' | 'plaintext-only';
324
325
  contextmenu?: string;
325
326
  dir?: string;
326
327
  draggable?: Booleanish;
327
- hidden?: Booleanish;
328
+ hidden?: Booleanish | '' | 'hidden' | 'until-found';
328
329
  id?: string;
330
+ inert?: Booleanish;
329
331
  lang?: string;
330
332
  placeholder?: string;
331
333
  spellcheck?: Booleanish;
@@ -487,11 +489,13 @@ export interface ImgHTMLAttributes extends HTMLAttributes {
487
489
  srcset?: string;
488
490
  usemap?: string;
489
491
  width?: Numberish;
492
+ loading?: 'lazy' | 'eager';
490
493
  }
491
494
  export interface InsHTMLAttributes extends HTMLAttributes {
492
495
  cite?: string;
493
496
  datetime?: string;
494
497
  }
498
+ export type InputTypeHTMLAttribute = 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' | (string & {});
495
499
  export interface InputHTMLAttributes extends HTMLAttributes {
496
500
  accept?: string;
497
501
  alt?: string;
@@ -523,7 +527,7 @@ export interface InputHTMLAttributes extends HTMLAttributes {
523
527
  size?: Numberish;
524
528
  src?: string;
525
529
  step?: Numberish;
526
- type?: string;
530
+ type?: InputTypeHTMLAttribute;
527
531
  value?: any;
528
532
  width?: Numberish;
529
533
  }
@@ -682,7 +686,7 @@ export interface TextareaHTMLAttributes extends HTMLAttributes {
682
686
  minlength?: Numberish;
683
687
  name?: string;
684
688
  placeholder?: string;
685
- readonly?: boolean;
689
+ readonly?: Booleanish;
686
690
  required?: Booleanish;
687
691
  rows?: Numberish;
688
692
  value?: string | string[] | number;
@@ -746,7 +750,7 @@ export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
746
750
  * @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
747
751
  */
748
752
  class?: any;
749
- style?: string | CSSProperties;
753
+ style?: StyleValue;
750
754
  color?: string;
751
755
  height?: Numberish;
752
756
  id?: string;
@@ -1280,5 +1284,3 @@ export declare const hydrate: RootHydrateFunction;
1280
1284
  export declare const createApp: CreateAppFunction<Element>;
1281
1285
  export declare const createSSRApp: CreateAppFunction<Element>;
1282
1286
 
1283
-
1284
-
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/runtime-dom",
3
- "version": "3.3.4",
3
+ "version": "3.3.8",
4
4
  "description": "@vue/runtime-dom",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-dom.esm-bundler.js",
@@ -35,8 +35,8 @@
35
35
  },
36
36
  "homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-dom#readme",
37
37
  "dependencies": {
38
- "@vue/shared": "3.3.4",
39
- "@vue/runtime-core": "3.3.4",
40
- "csstype": "^3.1.1"
38
+ "@vue/shared": "3.3.8",
39
+ "@vue/runtime-core": "3.3.8",
40
+ "csstype": "^3.1.2"
41
41
  }
42
42
  }
@@ -13,8 +13,6 @@ type Props = Record<string, unknown>;
13
13
  export type SSRContext = {
14
14
  [key: string]: any;
15
15
  teleports?: Record<string, string>;
16
- /* removed internal: __teleportBuffers */
17
- /* removed internal: __watcherHandles */
18
16
  };
19
17
  export declare function renderVNode(push: PushFn, vnode: VNode, parentComponent: ComponentInternalInstance, slotScopeId?: string): void;
20
18
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/server-renderer",
3
- "version": "3.3.4",
3
+ "version": "3.3.8",
4
4
  "description": "@vue/server-renderer",
5
5
  "main": "index.js",
6
6
  "module": "dist/server-renderer.esm-bundler.js",
@@ -32,10 +32,10 @@
32
32
  },
33
33
  "homepage": "https://github.com/vuejs/core/tree/main/packages/server-renderer#readme",
34
34
  "peerDependencies": {
35
- "vue": "3.3.4"
35
+ "vue": "3.3.8"
36
36
  },
37
37
  "dependencies": {
38
- "@vue/shared": "3.3.4",
39
- "@vue/compiler-ssr": "3.3.4"
38
+ "@vue/shared": "3.3.8",
39
+ "@vue/compiler-ssr": "3.3.8"
40
40
  }
41
41
  }
@@ -54,11 +54,11 @@ export declare const hyphenate: (str: string) => string;
54
54
  /**
55
55
  * @private
56
56
  */
57
- export declare const capitalize: (str: string) => string;
57
+ export declare const capitalize: <T extends string>(str: T) => Capitalize<T>;
58
58
  /**
59
59
  * @private
60
60
  */
61
- export declare const toHandlerKey: (str: string) => string;
61
+ export declare const toHandlerKey: <T extends string>(str: T) => T extends "" ? "" : `on${Capitalize<T>}`;
62
62
  export declare const hasChanged: (value: any, oldValue: any) => boolean;
63
63
  export declare const invokeArrayFns: (fns: Function[], arg?: any) => void;
64
64
  export declare const def: (obj: object, key: string | symbol, value: any) => void;
@@ -68,7 +68,7 @@ export declare const def: (obj: object, key: string | symbol, value: any) => voi
68
68
  */
69
69
  export declare const looseToNumber: (val: any) => any;
70
70
  /**
71
- * Only conerces number-like strings
71
+ * Only concerns number-like strings
72
72
  * "123-foo" will be returned as-is
73
73
  */
74
74
  export declare const toNumber: (val: any) => any;
@@ -234,6 +234,8 @@ export declare const slotFlagsText: {
234
234
  3: string;
235
235
  };
236
236
 
237
+ export declare const isGloballyAllowed: (key: string) => boolean;
238
+ /** @deprecated use `isGloballyAllowed` instead */
237
239
  export declare const isGloballyWhitelisted: (key: string) => boolean;
238
240
 
239
241
  export declare function generateCodeFrame(source: string, start?: number, end?: number): string;
@@ -305,4 +307,7 @@ export type LooseRequired<T> = {
305
307
  [P in keyof (T & Required<T>)]: T[P];
306
308
  };
307
309
  export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
310
+ export type Awaited<T> = T extends null | undefined ? T : T extends object & {
311
+ then(onfulfilled: infer F, ...args: infer _): any;
312
+ } ? F extends (value: infer V, ...args: infer _) => any ? Awaited<V> : never : T;
308
313
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/shared",
3
- "version": "3.3.4",
3
+ "version": "3.3.8",
4
4
  "description": "internal utils shared across @vue packages",
5
5
  "main": "index.js",
6
6
  "module": "dist/shared.esm-bundler.js",
@@ -29,3 +29,5 @@ export {
29
29
  version,
30
30
  install,
31
31
  }
32
+
33
+ export declare function hasInjectionContext(): boolean
@@ -34,3 +34,5 @@ export interface App<T = any> {
34
34
  }
35
35
  export declare function createApp(rootComponent: any, rootProps?: any): App
36
36
  // #endregion
37
+
38
+ export declare function hasInjectionContext(): boolean
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-demi",
3
- "version": "0.14.5",
3
+ "version": "0.14.6",
4
4
  "engines": {
5
5
  "node": ">=12"
6
6
  },
@@ -29,3 +29,5 @@ export {
29
29
  version,
30
30
  install,
31
31
  }
32
+
33
+ export declare function hasInjectionContext(): boolean
@@ -34,3 +34,5 @@ export interface App<T = any> {
34
34
  }
35
35
  export declare function createApp(rootComponent: any, rootProps?: any): App
36
36
  // #endregion
37
+
38
+ export declare function hasInjectionContext(): boolean
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-demi",
3
- "version": "0.14.5",
3
+ "version": "0.14.6",
4
4
  "engines": {
5
5
  "node": ">=12"
6
6
  },
@@ -37,7 +37,7 @@ export type SourceMapSegment =
37
37
  export interface DecodedSourceMap {
38
38
  file: string;
39
39
  sources: string[];
40
- sourcesContent: (string | null)[];
40
+ sourcesContent?: string[];
41
41
  names: string[];
42
42
  mappings: SourceMapSegment[][];
43
43
  x_google_ignoreList?: number[];
@@ -49,7 +49,7 @@ export class SourceMap {
49
49
  version: number;
50
50
  file: string;
51
51
  sources: string[];
52
- sourcesContent: (string | null)[];
52
+ sourcesContent?: string[];
53
53
  names: string[];
54
54
  mappings: string;
55
55
  x_google_ignoreList?: number[];
@@ -80,8 +80,8 @@ export class Bundle {
80
80
  addSource(source: MagicString | { filename?: string, content: MagicString, ignoreList?: boolean }): Bundle;
81
81
  append(str: string, options?: BundleOptions): Bundle;
82
82
  clone(): Bundle;
83
- generateMap(options?: SourceMapOptions): SourceMap;
84
- generateDecodedMap(options?: SourceMapOptions): DecodedSourceMap;
83
+ generateMap(options?: SourceMapOptions): Omit<SourceMap, 'sourcesContent'> & { sourcesContent: Array<string | null> };
84
+ generateDecodedMap(options?: SourceMapOptions): Omit<DecodedSourceMap, 'sourcesContent'> & { sourcesContent: Array<string | null> };
85
85
  getIndentString(): string;
86
86
  indent(indentStr?: string): Bundle;
87
87
  indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-string",
3
- "version": "0.30.3",
3
+ "version": "0.30.5",
4
4
  "description": "Modify strings, generate sourcemaps",
5
5
  "keywords": [
6
6
  "string",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nanoid",
3
- "version": "3.3.6",
3
+ "version": "3.3.7",
4
4
  "description": "A tiny (116 bytes), secure URL-friendly unique string ID generator",
5
5
  "keywords": [
6
6
  "uuid",
@@ -35,31 +35,53 @@
35
35
  "module": "index.js",
36
36
  "exports": {
37
37
  ".": {
38
- "types": "./index.d.ts",
39
38
  "browser": "./index.browser.js",
40
- "require": "./index.cjs",
41
- "import": "./index.js",
39
+ "require": {
40
+ "types": "./index.d.cts",
41
+ "default": "./index.cjs"
42
+ },
43
+ "import": {
44
+ "types": "./index.d.ts",
45
+ "default": "./index.js"
46
+ },
42
47
  "default": "./index.js"
43
48
  },
44
- "./index.d.ts": "./index.d.ts",
45
49
  "./package.json": "./package.json",
46
50
  "./async/package.json": "./async/package.json",
47
51
  "./async": {
48
52
  "browser": "./async/index.browser.js",
49
- "require": "./async/index.cjs",
50
- "import": "./async/index.js",
53
+ "require": {
54
+ "types": "./index.d.cts",
55
+ "default": "./async/index.cjs"
56
+ },
57
+ "import": {
58
+ "types": "./index.d.ts",
59
+ "default": "./async/index.js"
60
+ },
51
61
  "default": "./async/index.js"
52
62
  },
53
63
  "./non-secure/package.json": "./non-secure/package.json",
54
64
  "./non-secure": {
55
- "require": "./non-secure/index.cjs",
56
- "import": "./non-secure/index.js",
65
+ "require": {
66
+ "types": "./index.d.cts",
67
+ "default": "./non-secure/index.cjs"
68
+ },
69
+ "import": {
70
+ "types": "./index.d.ts",
71
+ "default": "./non-secure/index.js"
72
+ },
57
73
  "default": "./non-secure/index.js"
58
74
  },
59
75
  "./url-alphabet/package.json": "./url-alphabet/package.json",
60
76
  "./url-alphabet": {
61
- "require": "./url-alphabet/index.cjs",
62
- "import": "./url-alphabet/index.js",
77
+ "require": {
78
+ "types": "./index.d.cts",
79
+ "default": "./url-alphabet/index.cjs"
80
+ },
81
+ "import": {
82
+ "types": "./index.d.ts",
83
+ "default": "./url-alphabet/index.js"
84
+ },
63
85
  "default": "./url-alphabet/index.js"
64
86
  }
65
87
  }
@@ -587,6 +587,15 @@ export declare const setActivePinia: _SetActivePinia;
587
587
  */
588
588
  export declare function setMapStoreSuffix(suffix: MapStoresCustomization extends Record<'suffix', infer Suffix> ? Suffix : string): void;
589
589
 
590
+ /**
591
+ * Return type of `defineStore()` with a setup function.
592
+ * - `Id` is a string literal of the store's name
593
+ * - `SS` is the return type of the setup function
594
+ * @see {@link StoreDefinition}
595
+ */
596
+ export declare interface SetupStoreDefinition<Id extends string, SS> extends StoreDefinition<Id, _ExtractStateFromSetupStore<SS>, _ExtractGettersFromSetupStore<SS>, _ExtractActionsFromSetupStore<SS>> {
597
+ }
598
+
590
599
  /**
591
600
  * Tells Pinia to skip the hydration process of a given object. This is useful in setup stores (only) when you return a
592
601
  * stateful object in the store but it isn't really state. e.g. returning a router instance in a setup store.
@@ -29,3 +29,5 @@ export {
29
29
  version,
30
30
  install,
31
31
  }
32
+
33
+ export declare function hasInjectionContext(): boolean
@@ -34,3 +34,5 @@ export interface App<T = any> {
34
34
  }
35
35
  export declare function createApp(rootComponent: any, rootProps?: any): App
36
36
  // #endregion
37
+
38
+ export declare function hasInjectionContext(): boolean
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-demi",
3
- "version": "0.14.5",
3
+ "version": "0.14.6",
4
4
  "engines": {
5
5
  "node": ">=12"
6
6
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinia",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "description": "Intuitive, type safe and flexible Store for Vue",
5
5
  "main": "index.js",
6
6
  "module": "dist/pinia.mjs",
@@ -125,15 +125,6 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
125
125
  every(
126
126
  condition: (node: Child, index: number, nodes: Child[]) => boolean
127
127
  ): boolean
128
- /**
129
- * The container’s first child.
130
- *
131
- * ```js
132
- * rule.first === rules.nodes[0]
133
- * ```
134
- */
135
- get first(): Child | undefined
136
-
137
128
  /**
138
129
  * Returns a `child`’s index within the `Container#nodes` array.
139
130
  *
@@ -145,6 +136,7 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
145
136
  * @return Child index.
146
137
  */
147
138
  index(child: Child | number): number
139
+
148
140
  /**
149
141
  * Insert new node after old node within the container.
150
142
  *
@@ -156,24 +148,6 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
156
148
  oldNode: Child | number,
157
149
  newNode: Child | Child[] | ChildProps | ChildProps[] | string | string[]
158
150
  ): this
159
-
160
- /**
161
- * Traverses the container’s descendant nodes, calling callback
162
- * for each comment node.
163
- *
164
- * Like `Container#each`, this method is safe
165
- * to use if you are mutating arrays during iteration.
166
- *
167
- * ```js
168
- * root.walkComments(comment => {
169
- * comment.remove()
170
- * })
171
- * ```
172
- *
173
- * @param callback Iterator receives each node and index.
174
- * @return Returns `false` if iteration was broke.
175
- */
176
-
177
151
  /**
178
152
  * Insert new node before old node within the container.
179
153
  *
@@ -189,14 +163,23 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
189
163
  oldNode: Child | number,
190
164
  newNode: Child | Child[] | ChildProps | ChildProps[] | string | string[]
191
165
  ): this
166
+
192
167
  /**
193
- * The container’s last child.
168
+ * Traverses the container’s descendant nodes, calling callback
169
+ * for each comment node.
170
+ *
171
+ * Like `Container#each`, this method is safe
172
+ * to use if you are mutating arrays during iteration.
194
173
  *
195
174
  * ```js
196
- * rule.last === rule.nodes[rule.nodes.length - 1]
175
+ * root.walkComments(comment => {
176
+ * comment.remove()
177
+ * })
197
178
  * ```
179
+ *
180
+ * @param callback Iterator receives each node and index.
181
+ * @return Returns `false` if iteration was broke.
198
182
  */
199
- get last(): Child | undefined
200
183
 
201
184
  /**
202
185
  * Inserts new nodes to the start of the container.
@@ -221,7 +204,6 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
221
204
  prepend(
222
205
  ...nodes: (ChildProps | ChildProps[] | Node | Node[] | string | string[])[]
223
206
  ): this
224
-
225
207
  /**
226
208
  * Add child to the end of the node.
227
209
  *
@@ -334,6 +316,7 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
334
316
  walk(
335
317
  callback: (node: ChildNode, index: number) => false | void
336
318
  ): false | undefined
319
+
337
320
  /**
338
321
  * Traverses the container’s descendant nodes, calling callback
339
322
  * for each at-rule node.
@@ -371,7 +354,6 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
371
354
  walkAtRules(
372
355
  callback: (atRule: AtRule, index: number) => false | void
373
356
  ): false | undefined
374
-
375
357
  walkComments(
376
358
  callback: (comment: Comment, indexed: number) => false | void
377
359
  ): false | undefined
@@ -413,9 +395,11 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
413
395
  propFilter: RegExp | string,
414
396
  callback: (decl: Declaration, index: number) => false | void
415
397
  ): false | undefined
398
+
416
399
  walkDecls(
417
400
  callback: (decl: Declaration, index: number) => false | void
418
401
  ): false | undefined
402
+
419
403
  /**
420
404
  * Traverses the container’s descendant nodes, calling callback
421
405
  * for each rule node.
@@ -445,6 +429,22 @@ declare abstract class Container_<Child extends Node = ChildNode> extends Node {
445
429
  walkRules(
446
430
  callback: (rule: Rule, index: number) => false | void
447
431
  ): false | undefined
432
+ /**
433
+ * The container’s first child.
434
+ *
435
+ * ```js
436
+ * rule.first === rules.nodes[0]
437
+ * ```
438
+ */
439
+ get first(): Child | undefined
440
+ /**
441
+ * The container’s last child.
442
+ *
443
+ * ```js
444
+ * rule.last === rule.nodes[rule.nodes.length - 1]
445
+ * ```
446
+ */
447
+ get last(): Child | undefined
448
448
  }
449
449
 
450
450
  declare class Container<Child extends Node = ChildNode> extends Container_<Child> {}
@@ -143,19 +143,6 @@ declare class Input_ {
143
143
  opts?: { plugin?: CssSyntaxError['plugin'] }
144
144
  ): CssSyntaxError
145
145
 
146
- /**
147
- * The CSS source identifier. Contains `Input#file` if the user
148
- * set the `from` option, or `Input#id` if they did not.
149
- *
150
- * ```js
151
- * const root = postcss.parse(css, { from: 'a.css' })
152
- * root.source.input.from //=> "/home/ai/a.css"
153
- *
154
- * const root = postcss.parse(css)
155
- * root.source.input.from //=> "<input css 1>"
156
- * ```
157
- */
158
- get from(): string
159
146
  /**
160
147
  * Converts source offset to line and column.
161
148
  *
@@ -187,6 +174,19 @@ declare class Input_ {
187
174
  endLine?: number,
188
175
  endColumn?: number
189
176
  ): false | Input.FilePosition
177
+ /**
178
+ * The CSS source identifier. Contains `Input#file` if the user
179
+ * set the `from` option, or `Input#id` if they did not.
180
+ *
181
+ * ```js
182
+ * const root = postcss.parse(css, { from: 'a.css' })
183
+ * root.source.input.from //=> "/home/ai/a.css"
184
+ *
185
+ * const root = postcss.parse(css)
186
+ * root.source.input.from //=> "<input css 1>"
187
+ * ```
188
+ */
189
+ get from(): string
190
190
  }
191
191
 
192
192
  declare class Input extends Input_ {}