@histoire/vendors 1.0.0-alpha.2 → 1.0.0-alpha.4

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 (28) hide show
  1. package/dist/client/node_modules/@babel/helper-string-parser/package.json +1 -1
  2. package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +1 -1
  3. package/dist/client/node_modules/@babel/parser/package.json +7 -7
  4. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +12 -3
  5. package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +46 -35
  6. package/dist/client/node_modules/@babel/types/lib/index.d.ts +169 -147
  7. package/dist/client/node_modules/@babel/types/package.json +5 -5
  8. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +4 -1
  9. package/dist/client/node_modules/@floating-ui/core/package.json +2 -2
  10. package/dist/client/node_modules/@floating-ui/utils/package.json +1 -1
  11. package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +35 -47
  12. package/dist/client/node_modules/magic-string/package.json +69 -62
  13. package/dist/client/node_modules/nanoid/package.json +3 -2
  14. package/dist/client/node_modules/postcss/lib/container.d.ts +7 -4
  15. package/dist/client/node_modules/postcss/lib/input.d.ts +24 -3
  16. package/dist/client/node_modules/postcss/lib/node.d.ts +17 -2
  17. package/dist/client/node_modules/postcss/lib/stringifier.d.ts +2 -2
  18. package/dist/client/node_modules/postcss/package.json +4 -4
  19. package/package.json +1 -1
  20. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +0 -49
  21. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +0 -8
  22. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +0 -15
  23. package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +0 -6
  24. /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/lib/index.d.ts +0 -0
  25. /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/lib/v2/index.d.ts +0 -0
  26. /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/lib/v2.7/index.d.ts +0 -0
  27. /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/lib/v3/index.d.ts +0 -0
  28. /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/package.json +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/types",
3
- "version": "7.26.9",
3
+ "version": "7.28.4",
4
4
  "description": "Babel Types is a Lodash-esque utility library for AST nodes",
5
5
  "author": "The Babel Team (https://babel.dev/team)",
6
6
  "homepage": "https://babel.dev/docs/en/next/babel-types",
@@ -16,12 +16,12 @@
16
16
  },
17
17
  "main": "./lib/index.js",
18
18
  "dependencies": {
19
- "@babel/helper-string-parser": "^7.25.9",
20
- "@babel/helper-validator-identifier": "^7.25.9"
19
+ "@babel/helper-string-parser": "^7.27.1",
20
+ "@babel/helper-validator-identifier": "^7.27.1"
21
21
  },
22
22
  "devDependencies": {
23
- "@babel/generator": "^7.26.9",
24
- "@babel/parser": "^7.26.9",
23
+ "@babel/generator": "^7.28.3",
24
+ "@babel/parser": "^7.28.4",
25
25
  "glob": "^7.2.0"
26
26
  },
27
27
  "engines": {
@@ -201,9 +201,12 @@ export declare interface FlipOptions extends DetectOverflowOptions {
201
201
  /**
202
202
  * The axis that runs along the alignment of the floating element. Determines
203
203
  * whether overflow along this axis is checked to perform a flip.
204
+ * - `true`: Whether to check cross axis overflow for both side and alignment flipping.
205
+ * - `false`: Whether to disable all cross axis overflow checking.
206
+ * - `'alignment'`: Whether to check cross axis overflow for alignment flipping only.
204
207
  * @default true
205
208
  */
206
- crossAxis?: boolean;
209
+ crossAxis?: boolean | 'alignment';
207
210
  /**
208
211
  * Placements to try sequentially if the preferred `placement` does not fit.
209
212
  * @default [oppositePlacement] (computed)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floating-ui/core",
3
- "version": "1.6.9",
3
+ "version": "1.7.3",
4
4
  "description": "Positioning library for floating elements: tooltips, popovers, dropdowns, and more",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -43,7 +43,7 @@
43
43
  "positioning"
44
44
  ],
45
45
  "dependencies": {
46
- "@floating-ui/utils": "^0.2.9"
46
+ "@floating-ui/utils": "^0.2.10"
47
47
  },
48
48
  "devDependencies": {
49
49
  "config": "0.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floating-ui/utils",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "Utilities for Floating UI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jridgewell/sourcemap-codec",
3
- "version": "1.5.0",
3
+ "version": "1.5.5",
4
4
  "description": "Encode/decode sourcemap mappings",
5
5
  "keywords": [
6
6
  "sourcemap",
@@ -8,68 +8,56 @@
8
8
  ],
9
9
  "main": "dist/sourcemap-codec.umd.js",
10
10
  "module": "dist/sourcemap-codec.mjs",
11
- "types": "dist/types/sourcemap-codec.d.ts",
11
+ "types": "types/sourcemap-codec.d.cts",
12
12
  "files": [
13
- "dist"
13
+ "dist",
14
+ "src",
15
+ "types"
14
16
  ],
15
17
  "exports": {
16
18
  ".": [
17
19
  {
18
- "types": "./dist/types/sourcemap-codec.d.ts",
19
- "browser": "./dist/sourcemap-codec.umd.js",
20
- "require": "./dist/sourcemap-codec.umd.js",
21
- "import": "./dist/sourcemap-codec.mjs"
20
+ "import": {
21
+ "types": "./types/sourcemap-codec.d.mts",
22
+ "default": "./dist/sourcemap-codec.mjs"
23
+ },
24
+ "default": {
25
+ "types": "./types/sourcemap-codec.d.cts",
26
+ "default": "./dist/sourcemap-codec.umd.js"
27
+ }
22
28
  },
23
29
  "./dist/sourcemap-codec.umd.js"
24
30
  ],
25
31
  "./package.json": "./package.json"
26
32
  },
27
33
  "scripts": {
28
- "benchmark": "run-s build:rollup benchmark:*",
34
+ "benchmark": "run-s build:code benchmark:*",
29
35
  "benchmark:install": "cd benchmark && npm install",
30
36
  "benchmark:only": "node --expose-gc benchmark/index.js",
31
- "build": "run-s -n build:*",
32
- "build:rollup": "rollup -c rollup.config.js",
33
- "build:ts": "tsc --project tsconfig.build.json",
34
- "lint": "run-s -n lint:*",
35
- "lint:prettier": "npm run test:lint:prettier -- --write",
36
- "lint:ts": "npm run test:lint:ts -- --fix",
37
- "prebuild": "rm -rf dist",
38
- "prepublishOnly": "npm run preversion",
39
- "preversion": "run-s test build",
40
- "test": "run-s -n test:lint test:only",
41
- "test:debug": "mocha --inspect-brk",
42
- "test:lint": "run-s -n test:lint:*",
43
- "test:lint:prettier": "prettier --check '{src,test}/**/*.ts'",
44
- "test:lint:ts": "eslint '{src,test}/**/*.ts'",
37
+ "build": "run-s -n build:code build:types",
38
+ "build:code": "node ../../esbuild.mjs sourcemap-codec.ts",
39
+ "build:types": "run-s build:types:force build:types:emit build:types:mts",
40
+ "build:types:force": "rimraf tsconfig.build.tsbuildinfo",
41
+ "build:types:emit": "tsc --project tsconfig.build.json",
42
+ "build:types:mts": "node ../../mts-types.mjs",
43
+ "clean": "run-s -n clean:code clean:types",
44
+ "clean:code": "tsc --build --clean tsconfig.build.json",
45
+ "clean:types": "rimraf dist types",
46
+ "test": "run-s -n test:types test:only test:format",
47
+ "test:format": "prettier --check '{src,test}/**/*.ts'",
45
48
  "test:only": "mocha",
46
- "test:coverage": "c8 mocha",
47
- "test:watch": "mocha --watch"
49
+ "test:types": "eslint '{src,test}/**/*.ts'",
50
+ "lint": "run-s -n lint:types lint:format",
51
+ "lint:format": "npm run test:format -- --write",
52
+ "lint:types": "npm run test:types -- --fix",
53
+ "prepublishOnly": "npm run-s -n build test"
48
54
  },
55
+ "homepage": "https://github.com/jridgewell/sourcemaps/tree/main/packages/sourcemap-codec",
49
56
  "repository": {
50
57
  "type": "git",
51
- "url": "git+https://github.com/jridgewell/sourcemap-codec.git"
58
+ "url": "git+https://github.com/jridgewell/sourcemaps.git",
59
+ "directory": "packages/sourcemap-codec"
52
60
  },
53
- "author": "Rich Harris",
54
- "license": "MIT",
55
- "devDependencies": {
56
- "@rollup/plugin-typescript": "8.3.0",
57
- "@types/mocha": "10.0.6",
58
- "@types/node": "17.0.15",
59
- "@typescript-eslint/eslint-plugin": "5.10.0",
60
- "@typescript-eslint/parser": "5.10.0",
61
- "benchmark": "2.1.4",
62
- "c8": "7.11.2",
63
- "eslint": "8.7.0",
64
- "eslint-config-prettier": "8.3.0",
65
- "mocha": "9.2.0",
66
- "npm-run-all": "4.1.5",
67
- "prettier": "2.5.1",
68
- "rollup": "2.64.0",
69
- "source-map": "0.6.1",
70
- "source-map-js": "1.0.2",
71
- "sourcemap-codec": "1.4.8",
72
- "tsx": "4.7.1",
73
- "typescript": "4.5.4"
74
- }
61
+ "author": "Justin Ridgewell <justin@ridgewell.name>",
62
+ "license": "MIT"
75
63
  }
@@ -1,63 +1,70 @@
1
1
  {
2
- "name": "magic-string",
3
- "version": "0.30.17",
4
- "description": "Modify strings, generate sourcemaps",
5
- "keywords": [
6
- "string",
7
- "string manipulation",
8
- "sourcemap",
9
- "templating",
10
- "transpilation"
11
- ],
12
- "repository": "https://github.com/rich-harris/magic-string",
13
- "license": "MIT",
14
- "author": "Rich Harris",
15
- "main": "./dist/magic-string.cjs.js",
16
- "module": "./dist/magic-string.es.mjs",
17
- "sideEffects": false,
18
- "jsnext:main": "./dist/magic-string.es.mjs",
19
- "types": "./dist/magic-string.cjs.d.ts",
20
- "exports": {
21
- "./package.json": "./package.json",
22
- ".": {
23
- "import": "./dist/magic-string.es.mjs",
24
- "require": "./dist/magic-string.cjs.js"
25
- }
26
- },
27
- "files": [
28
- "dist/*",
29
- "index.d.ts",
30
- "README.md"
31
- ],
32
- "devDependencies": {
33
- "@eslint/js": "^9.16.0",
34
- "@rollup/plugin-node-resolve": "^15.3.0",
35
- "@rollup/plugin-replace": "^5.0.7",
36
- "benchmark": "^2.1.4",
37
- "bumpp": "^9.9.1",
38
- "conventional-changelog-cli": "^3.0.0",
39
- "eslint": "^9.16.0",
40
- "prettier": "^3.4.2",
41
- "publint": "^0.2.12",
42
- "rollup": "^3.29.5",
43
- "source-map-js": "^1.2.1",
44
- "source-map-support": "^0.5.21",
45
- "vitest": "^2.1.8"
46
- },
47
- "dependencies": {
48
- "@jridgewell/sourcemap-codec": "^1.5.0"
49
- },
50
- "scripts": {
51
- "build": "rollup -c",
52
- "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
53
- "format": "prettier --single-quote --print-width 100 --use-tabs --write .",
54
- "lint": "eslint src test && publint",
55
- "lint:fix": "eslint src test --fix",
56
- "release": "bumpp -x \"npm run changelog\" --all --commit --tag --push && npm publish",
57
- "pretest": "npm run build",
58
- "test": "vitest run",
59
- "test:dev": "vitest",
60
- "bench": "npm run build && node benchmark/index.mjs",
61
- "watch": "rollup -cw"
62
- }
63
- }
2
+ "name": "magic-string",
3
+ "version": "0.30.19",
4
+ "type": "commonjs",
5
+ "packageManager": "pnpm@10.15.1",
6
+ "description": "Modify strings, generate sourcemaps",
7
+ "keywords": [
8
+ "string",
9
+ "string manipulation",
10
+ "sourcemap",
11
+ "templating",
12
+ "transpilation"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/rich-harris/magic-string.git"
17
+ },
18
+ "license": "MIT",
19
+ "author": "Rich Harris",
20
+ "main": "./dist/magic-string.cjs.js",
21
+ "module": "./dist/magic-string.es.mjs",
22
+ "sideEffects": false,
23
+ "jsnext:main": "./dist/magic-string.es.mjs",
24
+ "types": "./dist/magic-string.cjs.d.ts",
25
+ "exports": {
26
+ "./package.json": "./package.json",
27
+ ".": {
28
+ "import": "./dist/magic-string.es.mjs",
29
+ "require": "./dist/magic-string.cjs.js"
30
+ }
31
+ },
32
+ "files": [
33
+ "dist/*",
34
+ "index.d.ts",
35
+ "README.md"
36
+ ],
37
+ "scripts": {
38
+ "build": "rollup -c",
39
+ "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
40
+ "format": "prettier --single-quote --print-width 100 --use-tabs --write .",
41
+ "lint": "eslint src test && publint",
42
+ "lint:fix": "eslint src test --fix",
43
+ "prepare": "npm run build",
44
+ "prepublishOnly": "npm run lint && rm -rf dist && npm test",
45
+ "release": "bumpp -x \"npm run changelog\" --all --commit --tag --push && npm publish",
46
+ "pretest": "npm run build",
47
+ "test": "vitest run",
48
+ "test:dev": "vitest",
49
+ "bench": "npm run build && node benchmark/index.mjs",
50
+ "watch": "rollup -cw"
51
+ },
52
+ "devDependencies": {
53
+ "@eslint/js": "^9.35.0",
54
+ "@rollup/plugin-node-resolve": "^16.0.1",
55
+ "@rollup/plugin-replace": "^6.0.2",
56
+ "benchmark": "^2.1.4",
57
+ "bumpp": "^10.2.3",
58
+ "conventional-changelog-cli": "^5.0.0",
59
+ "eslint": "^9.35.0",
60
+ "prettier": "^3.6.2",
61
+ "publint": "^0.3.12",
62
+ "rollup": "^4.50.1",
63
+ "source-map-js": "^1.2.1",
64
+ "source-map-support": "^0.5.21",
65
+ "vitest": "^3.2.4"
66
+ },
67
+ "dependencies": {
68
+ "@jridgewell/sourcemap-codec": "^1.5.5"
69
+ }
70
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nanoid",
3
- "version": "3.3.8",
3
+ "version": "3.3.11",
4
4
  "description": "A tiny (116 bytes), secure URL-friendly unique string ID generator",
5
5
  "keywords": [
6
6
  "uuid",
@@ -35,6 +35,7 @@
35
35
  "module": "index.js",
36
36
  "exports": {
37
37
  ".": {
38
+ "react-native": "./index.browser.js",
38
39
  "browser": "./index.browser.js",
39
40
  "require": {
40
41
  "types": "./index.d.cts",
@@ -85,4 +86,4 @@
85
86
  "default": "./url-alphabet/index.js"
86
87
  }
87
88
  }
88
- }
89
+ }
@@ -2,14 +2,17 @@ import AtRule from './at-rule.js'
2
2
  import Comment from './comment.js'
3
3
  import Declaration from './declaration.js'
4
4
  import Node, { ChildNode, ChildProps, NodeProps } from './node.js'
5
+ import { Root } from './postcss.js'
5
6
  import Rule from './rule.js'
6
7
 
7
8
  declare namespace Container {
8
- export class ContainerWithChildren<
9
- Child extends Node = ChildNode
10
- > extends Container_<Child> {
9
+ export type ContainerWithChildren<Child extends Node = ChildNode> = {
11
10
  nodes: Child[]
12
- }
11
+ } & (
12
+ | AtRule
13
+ | Root
14
+ | Rule
15
+ )
13
16
 
14
17
  export interface ValueOptions {
15
18
  /**
@@ -18,6 +18,11 @@ declare namespace Input {
18
18
  */
19
19
  endLine?: number
20
20
 
21
+ /**
22
+ * Offset of exclusive end position in source file.
23
+ */
24
+ endOffset?: number
25
+
21
26
  /**
22
27
  * Absolute path to the source file.
23
28
  */
@@ -28,6 +33,11 @@ declare namespace Input {
28
33
  */
29
34
  line: number
30
35
 
36
+ /**
37
+ * Offset of inclusive start position in source file.
38
+ */
39
+ offset: number
40
+
31
41
  /**
32
42
  * Source code.
33
43
  */
@@ -131,6 +141,9 @@ declare class Input_ {
131
141
  */
132
142
  constructor(css: string, opts?: ProcessOptions)
133
143
 
144
+ /**
145
+ * Returns `CssSyntaxError` with information about the error and its position.
146
+ */
134
147
  error(
135
148
  message: string,
136
149
  start:
@@ -151,9 +164,6 @@ declare class Input_ {
151
164
  },
152
165
  opts?: { plugin?: CssSyntaxError['plugin'] }
153
166
  ): CssSyntaxError
154
- /**
155
- * Returns `CssSyntaxError` with information about the error and its position.
156
- */
157
167
  error(
158
168
  message: string,
159
169
  line: number,
@@ -165,12 +175,23 @@ declare class Input_ {
165
175
  offset: number,
166
176
  opts?: { plugin?: CssSyntaxError['plugin'] }
167
177
  ): CssSyntaxError
178
+
179
+ /**
180
+ * Converts source line and column to offset.
181
+ *
182
+ * @param line Source line.
183
+ * @param column Source column.
184
+ * @return Source offset.
185
+ */
186
+ fromLineAndColumn(line: number, column: number): number
187
+
168
188
  /**
169
189
  * Converts source offset to line and column.
170
190
  *
171
191
  * @param offset Source offset.
172
192
  */
173
193
  fromOffset(offset: number): { col: number; line: number } | null
194
+
174
195
  /**
175
196
  * Reads the input source map and returns a symbol position
176
197
  * in the input source (e.g., in a Sass file that was compiled
@@ -1,5 +1,4 @@
1
1
  import AtRule = require('./at-rule.js')
2
-
3
2
  import { AtRuleProps } from './at-rule.js'
4
3
  import Comment, { CommentProps } from './comment.js'
5
4
  import Container, { NewChild } from './container.js'
@@ -66,6 +65,22 @@ declare namespace Node {
66
65
  /**
67
66
  * The inclusive ending position for the source
68
67
  * code of a node.
68
+ *
69
+ * However, `end.offset` of a non `Root` node is the exclusive position.
70
+ * See https://github.com/postcss/postcss/pull/1879 for details.
71
+ *
72
+ * ```js
73
+ * const root = postcss.parse('a { color: black }')
74
+ * const a = root.first
75
+ * const color = a.first
76
+ *
77
+ * // The offset of `Root` node is the inclusive position
78
+ * css.source.end // { line: 1, column: 19, offset: 18 }
79
+ *
80
+ * // The offset of non `Root` node is the exclusive position
81
+ * a.source.end // { line: 1, column: 18, offset: 18 }
82
+ * color.source.end // { line: 1, column: 16, offset: 16 }
83
+ * ```
69
84
  */
70
85
  end?: Position
71
86
 
@@ -424,7 +439,7 @@ declare abstract class Node_ {
424
439
  * @return Range.
425
440
  */
426
441
  rangeBy(
427
- opts?: Pick<WarningOptions, 'endIndex' | 'index' | 'word'>
442
+ opts?: Pick<WarningOptions, 'end' | 'endIndex' | 'index' | 'start' | 'word'>
428
443
  ): Node.Range
429
444
 
430
445
  /**
@@ -25,7 +25,7 @@ declare class Stringifier_ {
25
25
  comment(node: Comment): void
26
26
  decl(node: Declaration, semicolon?: boolean): void
27
27
  document(node: Document): void
28
- raw(node: AnyNode, own: null | string, detect?: string): string
28
+ raw(node: AnyNode, own: null | string, detect?: string): boolean | string
29
29
  rawBeforeClose(root: Root): string | undefined
30
30
  rawBeforeComment(root: Root, node: Comment): string | undefined
31
31
  rawBeforeDecl(root: Root, node: Declaration): string | undefined
@@ -35,7 +35,7 @@ declare class Stringifier_ {
35
35
  rawEmptyBody(root: Root): string | undefined
36
36
  rawIndent(root: Root): string | undefined
37
37
  rawSemicolon(root: Root): boolean | undefined
38
- rawValue(node: AnyNode, prop: string): string
38
+ rawValue(node: AnyNode, prop: string): number | string
39
39
  root(node: Root): void
40
40
  rule(node: Rule): void
41
41
  stringify(node: AnyNode, semicolon?: boolean): void
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "postcss",
3
- "version": "8.5.3",
3
+ "version": "8.5.6",
4
4
  "description": "Tool for transforming styles with JS plugins",
5
5
  "engines": {
6
6
  "node": "^10 || ^12 || >=14"
7
7
  },
8
8
  "exports": {
9
9
  ".": {
10
- "require": "./lib/postcss.js",
11
- "import": "./lib/postcss.mjs"
10
+ "import": "./lib/postcss.mjs",
11
+ "require": "./lib/postcss.js"
12
12
  },
13
13
  "./lib/at-rule": "./lib/at-rule.js",
14
14
  "./lib/comment": "./lib/comment.js",
@@ -74,7 +74,7 @@
74
74
  "url": "https://github.com/postcss/postcss/issues"
75
75
  },
76
76
  "dependencies": {
77
- "nanoid": "^3.3.8",
77
+ "nanoid": "^3.3.11",
78
78
  "picocolors": "^1.1.1",
79
79
  "source-map-js": "^1.2.1"
80
80
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@histoire/vendors",
3
3
  "type": "module",
4
- "version": "1.0.0-alpha.2",
4
+ "version": "1.0.0-alpha.4",
5
5
  "description": "Bundled vendors for histoire",
6
6
  "author": {
7
7
  "name": "Guillaume Chau"
@@ -1,49 +0,0 @@
1
- declare type Line = number;
2
- declare type Column = number;
3
- declare type Kind = number;
4
- declare type Name = number;
5
- declare type Var = number;
6
- declare type SourcesIndex = number;
7
- declare type ScopesIndex = number;
8
- declare type Mix<A, B, O> = (A & O) | (B & O);
9
- export declare type OriginalScope = Mix<[
10
- Line,
11
- Column,
12
- Line,
13
- Column,
14
- Kind
15
- ], [
16
- Line,
17
- Column,
18
- Line,
19
- Column,
20
- Kind,
21
- Name
22
- ], {
23
- vars: Var[];
24
- }>;
25
- export declare type GeneratedRange = Mix<[
26
- Line,
27
- Column,
28
- Line,
29
- Column
30
- ], [
31
- Line,
32
- Column,
33
- Line,
34
- Column,
35
- SourcesIndex,
36
- ScopesIndex
37
- ], {
38
- callsite: CallSite | null;
39
- bindings: Binding[];
40
- isScope: boolean;
41
- }>;
42
- export declare type CallSite = [SourcesIndex, Line, Column];
43
- declare type Binding = BindingExpressionRange[];
44
- export declare type BindingExpressionRange = [Name] | [Name, Line, Column];
45
- export declare function decodeOriginalScopes(input: string): OriginalScope[];
46
- export declare function encodeOriginalScopes(scopes: OriginalScope[]): string;
47
- export declare function decodeGeneratedRanges(input: string): GeneratedRange[];
48
- export declare function encodeGeneratedRanges(ranges: GeneratedRange[]): string;
49
- export {};
@@ -1,8 +0,0 @@
1
- export { decodeOriginalScopes, encodeOriginalScopes, decodeGeneratedRanges, encodeGeneratedRanges, } from './scopes';
2
- export type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes';
3
- export declare type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number];
4
- export declare type SourceMapLine = SourceMapSegment[];
5
- export declare type SourceMapMappings = SourceMapLine[];
6
- export declare function decode(mappings: string): SourceMapMappings;
7
- export declare function encode(decoded: SourceMapMappings): string;
8
- export declare function encode(decoded: Readonly<SourceMapMappings>): string;
@@ -1,15 +0,0 @@
1
- export declare class StringWriter {
2
- pos: number;
3
- private out;
4
- private buffer;
5
- write(v: number): void;
6
- flush(): string;
7
- }
8
- export declare class StringReader {
9
- pos: number;
10
- private buffer;
11
- constructor(buffer: string);
12
- next(): number;
13
- peek(): number;
14
- indexOf(char: string): number;
15
- }
@@ -1,6 +0,0 @@
1
- import type { StringReader, StringWriter } from './strings';
2
- export declare const comma: number;
3
- export declare const semicolon: number;
4
- export declare function decodeInteger(reader: StringReader, relative: number): number;
5
- export declare function encodeInteger(builder: StringWriter, num: number, relative: number): number;
6
- export declare function hasMoreVlq(reader: StringReader, max: number): boolean;