@histoire/vendors 1.0.0-alpha.5 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/client/b-floating-vue.js +29 -20
  2. package/dist/client/b-vue-router.js +2615 -3624
  3. package/dist/client/b-vue-use.js +87 -77
  4. package/dist/client/b-vue.js +1 -1
  5. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +528 -0
  6. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +103 -0
  7. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
  8. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
  9. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
  10. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
  11. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
  12. package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +93 -21
  13. package/dist/client/node_modules/@types/web-bluetooth/package.json +9 -3
  14. package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +20 -11
  15. package/dist/client/node_modules/@vue/compiler-core/package.json +6 -6
  16. package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +12 -12
  17. package/dist/client/node_modules/@vue/compiler-dom/package.json +3 -3
  18. package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +3 -2
  19. package/dist/client/node_modules/@vue/compiler-sfc/package.json +14 -14
  20. package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
  21. package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +24 -25
  22. package/dist/client/node_modules/@vue/reactivity/package.json +2 -2
  23. package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +48 -41
  24. package/dist/client/node_modules/@vue/runtime-core/package.json +3 -3
  25. package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +680 -645
  26. package/dist/client/node_modules/@vue/runtime-dom/package.json +5 -5
  27. package/dist/client/node_modules/@vue/server-renderer/package.json +4 -4
  28. package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +7 -1
  29. package/dist/client/node_modules/@vue/shared/package.json +1 -1
  30. package/dist/client/node_modules/@vueuse/core/index.d.mts +6221 -0
  31. package/dist/client/node_modules/@vueuse/core/index.d.ts +131 -103
  32. package/dist/client/node_modules/@vueuse/core/metadata.d.mts +1 -0
  33. package/dist/client/node_modules/@vueuse/core/package.json +4 -4
  34. package/dist/client/node_modules/@vueuse/metadata/index.d.mts +78 -0
  35. package/dist/client/node_modules/@vueuse/metadata/package.json +1 -1
  36. package/dist/client/node_modules/@vueuse/shared/index.d.mts +1260 -0
  37. package/dist/client/node_modules/@vueuse/shared/index.d.ts +30 -13
  38. package/dist/client/node_modules/@vueuse/shared/package.json +1 -1
  39. package/dist/client/node_modules/entities/decode.d.ts +3 -0
  40. package/dist/client/node_modules/entities/{lib/esm/decode_codepoint.d.ts → dist/commonjs/decode-codepoint.d.ts} +2 -2
  41. package/dist/client/node_modules/entities/{lib → dist/commonjs}/decode.d.ts +18 -26
  42. package/dist/client/node_modules/entities/{lib/esm → dist/commonjs}/encode.d.ts +2 -2
  43. package/dist/client/node_modules/entities/{lib/esm → dist/commonjs}/escape.d.ts +9 -6
  44. package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
  45. package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
  46. package/dist/client/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +3 -0
  47. package/dist/client/node_modules/entities/{lib/esm → dist/commonjs}/index.d.ts +9 -9
  48. package/dist/client/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +17 -0
  49. package/dist/client/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +2 -0
  50. package/dist/client/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +32 -0
  51. package/dist/client/node_modules/entities/dist/commonjs/package.json +3 -0
  52. package/dist/client/node_modules/entities/{lib/decode_codepoint.d.ts → dist/esm/decode-codepoint.d.ts} +2 -2
  53. package/dist/client/node_modules/entities/{lib → dist}/esm/decode.d.ts +18 -26
  54. package/dist/client/node_modules/entities/{lib → dist/esm}/encode.d.ts +2 -2
  55. package/dist/client/node_modules/entities/{lib → dist/esm}/escape.d.ts +9 -6
  56. package/dist/client/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
  57. package/dist/client/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
  58. package/dist/client/node_modules/entities/dist/esm/generated/encode-html.d.ts +3 -0
  59. package/dist/client/node_modules/entities/{lib → dist/esm}/index.d.ts +9 -9
  60. package/dist/client/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +17 -0
  61. package/dist/client/node_modules/entities/dist/esm/internal/decode-shared.d.ts +2 -0
  62. package/dist/client/node_modules/entities/dist/esm/internal/encode-shared.d.ts +32 -0
  63. package/dist/client/node_modules/entities/dist/esm/package.json +3 -0
  64. package/dist/client/node_modules/entities/escape.d.ts +3 -0
  65. package/dist/client/node_modules/entities/package.json +92 -69
  66. package/dist/client/node_modules/magic-string/dist/magic-string.es.d.mts +289 -0
  67. package/dist/client/node_modules/postcss/lib/postcss.d.mts +69 -0
  68. package/dist/client/node_modules/vue/compiler-sfc/index.d.mts +1 -0
  69. package/dist/client/node_modules/vue/dist/vue.d.mts +7 -0
  70. package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +2 -2
  71. package/dist/client/node_modules/vue/jsx.d.ts +1 -1
  72. package/dist/client/node_modules/vue/package.json +6 -6
  73. package/dist/client/node_modules/vue/server-renderer/index.d.mts +1 -0
  74. package/dist/client/node_modules/vue-router/dist/experimental/index.d.mts +38 -0
  75. package/dist/client/node_modules/vue-router/dist/router-CWoNjPRp.d.mts +1973 -0
  76. package/dist/client/node_modules/vue-router/dist/vue-router.d.mts +361 -0
  77. package/dist/client/node_modules/vue-router/package.json +43 -39
  78. package/dist/client/node_modules/vue-router/vue-router-auto-resolver.d.mts +22 -0
  79. package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +1 -4
  80. package/dist/client/vue.runtime.esm-bundler.js +2987 -2699
  81. package/package.json +2 -2
  82. package/rollup.config.mjs +1 -1
  83. package/dist/client/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +0 -3
  84. package/dist/client/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +0 -3
  85. package/dist/client/node_modules/entities/lib/esm/generated/encode-html.d.ts +0 -8
  86. package/dist/client/node_modules/entities/lib/esm/package.json +0 -1
  87. package/dist/client/node_modules/entities/lib/generated/decode-data-html.d.ts +0 -3
  88. package/dist/client/node_modules/entities/lib/generated/decode-data-xml.d.ts +0 -3
  89. package/dist/client/node_modules/entities/lib/generated/encode-html.d.ts +0 -8
  90. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +0 -1836
  91. /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/index.d.ts +0 -0
  92. /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/v2/index.d.ts +0 -0
  93. /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/v2.7/index.d.ts +0 -0
  94. /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/v3/index.d.ts +0 -0
  95. /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/package.json +0 -0
@@ -56,18 +56,18 @@ export interface DecodingOptions {
56
56
  /**
57
57
  * Decodes a string with entities.
58
58
  *
59
- * @param data String to decode.
59
+ * @param input String to decode.
60
60
  * @param options Decoding options.
61
61
  */
62
- export declare function decode(data: string, options?: DecodingOptions | EntityLevel): string;
62
+ export declare function decode(input: string, options?: DecodingOptions | EntityLevel): string;
63
63
  /**
64
64
  * Decodes a string with entities. Does not allow missing trailing semicolons for entities.
65
65
  *
66
- * @param data String to decode.
66
+ * @param input String to decode.
67
67
  * @param options Decoding options.
68
68
  * @deprecated Use `decode` with the `mode` set to `Strict`.
69
69
  */
70
- export declare function decodeStrict(data: string, options?: DecodingOptions | EntityLevel): string;
70
+ export declare function decodeStrict(input: string, options?: DecodingOptions | EntityLevel): string;
71
71
  /**
72
72
  * Options for `encode`.
73
73
  */
@@ -86,11 +86,11 @@ export interface EncodingOptions {
86
86
  /**
87
87
  * Encodes a string with entities.
88
88
  *
89
- * @param data String to encode.
89
+ * @param input String to encode.
90
90
  * @param options Encoding options.
91
91
  */
92
- export declare function encode(data: string, options?: EncodingOptions | EntityLevel): string;
93
- export { encodeXML, escape, escapeUTF8, escapeAttribute, escapeText, } from "./escape.js";
94
- export { encodeHTML, encodeNonAsciiHTML, encodeHTML as encodeHTML4, encodeHTML as encodeHTML5, } from "./encode.js";
95
- export { EntityDecoder, DecodingMode, decodeXML, decodeHTML, decodeHTMLStrict, decodeHTMLAttribute, decodeHTML as decodeHTML4, decodeHTML as decodeHTML5, decodeHTMLStrict as decodeHTML4Strict, decodeHTMLStrict as decodeHTML5Strict, decodeXML as decodeXMLStrict, } from "./decode.js";
92
+ export declare function encode(input: string, options?: EncodingOptions | EntityLevel): string;
93
+ export { DecodingMode, decodeHTML, decodeHTML as decodeHTML4, decodeHTML as decodeHTML5, decodeHTMLAttribute, decodeHTMLStrict, decodeHTMLStrict as decodeHTML4Strict, decodeHTMLStrict as decodeHTML5Strict, decodeXML, decodeXML as decodeXMLStrict, EntityDecoder, } from "./decode.js";
94
+ export { encodeHTML, encodeHTML as encodeHTML4, encodeHTML as encodeHTML5, encodeNonAsciiHTML, } from "./encode.js";
95
+ export { encodeXML, escape, escapeAttribute, escapeText, escapeUTF8, } from "./escape.js";
96
96
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Bit flags & masks for the binary trie encoding used for entity decoding.
3
+ *
4
+ * Bit layout (16 bits total):
5
+ * 15..14 VALUE_LENGTH (+1 encoding; 0 => no value)
6
+ * 13 FLAG13. If valueLength>0: semicolon required flag (implicit ';').
7
+ * If valueLength==0: compact run flag.
8
+ * 12..7 BRANCH_LENGTH Branch length (0 => single branch in 6..0 if jumpOffset==char) OR run length (when compact run)
9
+ * 6..0 JUMP_TABLE Jump offset (jump table) OR single-branch char code OR first run char
10
+ */
11
+ export declare enum BinTrieFlags {
12
+ VALUE_LENGTH = 49152,
13
+ FLAG13 = 8192,
14
+ BRANCH_LENGTH = 8064,
15
+ JUMP_TABLE = 127
16
+ }
17
+ //# sourceMappingURL=bin-trie-flags.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare function decodeBase64(input: string): Uint16Array;
2
+ //# sourceMappingURL=decode-shared.d.ts.map
@@ -0,0 +1,32 @@
1
+ /**
2
+ * A node inside the encoding trie used by `encode.ts`.
3
+ *
4
+ * There are two physical shapes to minimize allocations and lookup cost:
5
+ *
6
+ * 1. Leaf node (string)
7
+ * - A plain string (already in the form `"&name;"`).
8
+ * - Represents a terminal match with no children.
9
+ *
10
+ * 2. Branch / value node (object)
11
+ */
12
+ export type EncodeTrieNode = string | {
13
+ /**
14
+ * Entity value for the current code point sequence (wrapped: `&...;`).
15
+ * Present when the path to this node itself is a valid named entity.
16
+ */
17
+ value: string | undefined;
18
+ /** If a number, the next code unit of the only next character. */
19
+ next: number | Map<number, EncodeTrieNode>;
20
+ /** If next is a number, `nextValue` contains the entity value. */
21
+ nextValue?: string;
22
+ };
23
+ /**
24
+ * Parse a compact encode trie string into a Map structure used for encoding.
25
+ *
26
+ * Format per entry (ascending code points using delta encoding):
27
+ * <diffBase36>[&name;][{<children>}] -- diff omitted when 0
28
+ * Where diff = currentKey - previousKey - 1 (first entry stores absolute key).
29
+ * `&name;` is the entity value (already wrapped); a following `{` denotes children.
30
+ */
31
+ export declare function parseEncodeTrie(serialized: string): Map<number, EncodeTrieNode>;
32
+ //# sourceMappingURL=encode-shared.d.ts.map
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,3 @@
1
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
+ // @ts-ignore
3
+ export * from "./dist/commonjs/escape.js";
@@ -1,90 +1,113 @@
1
1
  {
2
2
  "name": "entities",
3
- "version": "4.5.0",
3
+ "version": "7.0.0",
4
4
  "description": "Encode & decode XML and HTML entities with ease & speed",
5
- "author": "Felix Boehm <me@feedic.com>",
6
- "funding": "https://github.com/fb55/entities?sponsor=1",
7
- "sideEffects": false,
8
5
  "keywords": [
9
- "entity",
10
- "decoding",
11
- "encoding",
12
- "html",
13
- "xml",
14
- "html entities"
6
+ "html entities",
7
+ "entity decoder",
8
+ "entity encoding",
9
+ "html decoding",
10
+ "html encoding",
11
+ "xml decoding",
12
+ "xml encoding"
15
13
  ],
16
- "directories": {
17
- "lib": "lib/"
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/fb55/entities.git"
18
17
  },
19
- "main": "lib/index.js",
20
- "types": "lib/index.d.ts",
21
- "module": "lib/esm/index.js",
18
+ "funding": "https://github.com/fb55/entities?sponsor=1",
19
+ "license": "BSD-2-Clause",
20
+ "author": "Felix Boehm <me@feedic.com>",
21
+ "sideEffects": false,
22
+ "type": "module",
22
23
  "exports": {
23
24
  ".": {
24
- "require": "./lib/index.js",
25
- "import": "./lib/esm/index.js"
25
+ "import": {
26
+ "types": "./dist/esm/index.d.ts",
27
+ "default": "./dist/esm/index.js"
28
+ },
29
+ "require": {
30
+ "types": "./dist/commonjs/index.d.ts",
31
+ "default": "./dist/commonjs/index.js"
32
+ }
26
33
  },
27
- "./lib/decode.js": {
28
- "require": "./lib/decode.js",
29
- "import": "./lib/esm/decode.js"
34
+ "./decode": {
35
+ "import": {
36
+ "types": "./dist/esm/decode.d.ts",
37
+ "default": "./dist/esm/decode.js"
38
+ },
39
+ "require": {
40
+ "types": "./dist/commonjs/decode.d.ts",
41
+ "default": "./dist/commonjs/decode.js"
42
+ }
30
43
  },
31
- "./lib/escape.js": {
32
- "require": "./lib/escape.js",
33
- "import": "./lib/esm/escape.js"
44
+ "./escape": {
45
+ "import": {
46
+ "types": "./dist/esm/escape.d.ts",
47
+ "default": "./dist/esm/escape.js"
48
+ },
49
+ "require": {
50
+ "types": "./dist/commonjs/escape.d.ts",
51
+ "default": "./dist/commonjs/escape.js"
52
+ }
34
53
  }
35
54
  },
55
+ "main": "./dist/commonjs/index.js",
56
+ "module": "./dist/esm/index.js",
57
+ "types": "./dist/commonjs/index.d.ts",
36
58
  "files": [
37
- "lib/**/*"
59
+ "decode.js",
60
+ "decode.d.ts",
61
+ "escape.js",
62
+ "escape.d.ts",
63
+ "dist",
64
+ "src"
38
65
  ],
39
- "engines": {
40
- "node": ">=0.12"
41
- },
42
- "devDependencies": {
43
- "@types/jest": "^28.1.8",
44
- "@types/node": "^18.15.11",
45
- "@typescript-eslint/eslint-plugin": "^5.58.0",
46
- "@typescript-eslint/parser": "^5.58.0",
47
- "eslint": "^8.38.0",
48
- "eslint-config-prettier": "^8.8.0",
49
- "eslint-plugin-node": "^11.1.0",
50
- "jest": "^28.1.3",
51
- "prettier": "^2.8.7",
52
- "ts-jest": "^28.0.8",
53
- "typedoc": "^0.24.1",
54
- "typescript": "^5.0.4"
55
- },
56
66
  "scripts": {
57
- "test": "npm run test:jest && npm run lint",
58
- "test:jest": "jest",
59
- "lint": "npm run lint:es && npm run lint:prettier",
60
- "lint:es": "eslint .",
61
- "lint:prettier": "npm run prettier -- --check",
62
- "format": "npm run format:es && npm run format:prettier",
63
- "format:es": "npm run lint:es -- --fix",
64
- "format:prettier": "npm run prettier -- --write",
65
- "prettier": "prettier '**/*.{ts,md,json,yml}'",
66
- "build": "npm run build:cjs && npm run build:esm",
67
- "build:cjs": "tsc --sourceRoot https://raw.githubusercontent.com/fb55/entities/$(git rev-parse HEAD)/src/",
68
- "build:esm": "npm run build:cjs -- --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
69
67
  "build:docs": "typedoc --hideGenerator src/index.ts",
70
- "build:trie": "ts-node scripts/write-decode-map.ts",
71
- "build:encode-trie": "ts-node scripts/write-encode-map.ts",
72
- "prepare": "npm run build"
68
+ "build:encode-trie": "node --import=tsx scripts/write-encode-map.ts",
69
+ "build:trie": "node --import=tsx scripts/write-decode-map.ts",
70
+ "format": "npm run format:es && npm run format:biome",
71
+ "format:es": "npm run lint:es -- --fix",
72
+ "format:biome": "biome check --fix .",
73
+ "lint": "npm run lint:es && npm run lint:ts && npm run lint:biome",
74
+ "lint:es": "eslint . --ignore-path .gitignore",
75
+ "lint:biome": "biome check .",
76
+ "lint:ts": "tsc --noEmit",
77
+ "prepublishOnly": "tshy",
78
+ "test": "npm run test:vi && npm run lint",
79
+ "test:vi": "vitest run"
73
80
  },
74
- "repository": {
75
- "type": "git",
76
- "url": "git://github.com/fb55/entities.git"
81
+ "devDependencies": {
82
+ "@biomejs/biome": "^2.2.3",
83
+ "@types/node": "^24.3.1",
84
+ "@typescript-eslint/eslint-plugin": "^8.42.0",
85
+ "@typescript-eslint/parser": "^8.33.1",
86
+ "@vitest/coverage-v8": "^3.2.4",
87
+ "eslint": "^8.57.1",
88
+ "eslint-config-biome": "^2.1.3",
89
+ "eslint-plugin-n": "^17.21.3",
90
+ "eslint-plugin-unicorn": "^56.0.1",
91
+ "tshy": "^3.0.2",
92
+ "tsx": "^4.20.5",
93
+ "typedoc": "^0.28.12",
94
+ "typescript": "^5.9.2",
95
+ "vitest": "^3.2.4"
77
96
  },
78
- "license": "BSD-2-Clause",
79
- "jest": {
80
- "preset": "ts-jest",
81
- "coverageProvider": "v8",
82
- "moduleNameMapper": {
83
- "^(.*)\\.js$": "$1"
84
- }
97
+ "engines": {
98
+ "node": ">=0.12"
85
99
  },
86
- "prettier": {
87
- "tabWidth": 4,
88
- "proseWrap": "always"
100
+ "tshy": {
101
+ "exclude": [
102
+ "**/*.spec.ts",
103
+ "**/__fixtures__/*",
104
+ "**/__tests__/*",
105
+ "**/__snapshots__/*"
106
+ ],
107
+ "exports": {
108
+ ".": "./src/index.ts",
109
+ "./decode": "./src/decode.ts",
110
+ "./escape": "./src/escape.ts"
111
+ }
89
112
  }
90
113
  }
@@ -0,0 +1,289 @@
1
+ export interface BundleOptions {
2
+ intro?: string;
3
+ separator?: string;
4
+ }
5
+
6
+ export interface SourceMapOptions {
7
+ /**
8
+ * Whether the mapping should be high-resolution.
9
+ * Hi-res mappings map every single character, meaning (for example) your devtools will always
10
+ * be able to pinpoint the exact location of function calls and so on.
11
+ * With lo-res mappings, devtools may only be able to identify the correct
12
+ * line - but they're quicker to generate and less bulky.
13
+ * You can also set `"boundary"` to generate a semi-hi-res mappings segmented per word boundary
14
+ * instead of per character, suitable for string semantics that are separated by words.
15
+ * If sourcemap locations have been specified with s.addSourceMapLocation(), they will be used here.
16
+ */
17
+ hires?: boolean | 'boundary';
18
+ /**
19
+ * The filename where you plan to write the sourcemap.
20
+ */
21
+ file?: string;
22
+ /**
23
+ * The filename of the file containing the original source.
24
+ */
25
+ source?: string;
26
+ /**
27
+ * Whether to include the original content in the map's sourcesContent array.
28
+ */
29
+ includeContent?: boolean;
30
+ }
31
+
32
+ export type SourceMapSegment =
33
+ | [number]
34
+ | [number, number, number, number]
35
+ | [number, number, number, number, number];
36
+
37
+ export interface DecodedSourceMap {
38
+ file: string;
39
+ sources: string[];
40
+ sourcesContent?: string[];
41
+ names: string[];
42
+ mappings: SourceMapSegment[][];
43
+ x_google_ignoreList?: number[];
44
+ }
45
+
46
+ export class SourceMap {
47
+ constructor(properties: DecodedSourceMap);
48
+
49
+ version: number;
50
+ file: string;
51
+ sources: string[];
52
+ sourcesContent?: string[];
53
+ names: string[];
54
+ mappings: string;
55
+ x_google_ignoreList?: number[];
56
+ debugId?: string;
57
+
58
+ /**
59
+ * Returns the equivalent of `JSON.stringify(map)`
60
+ */
61
+ toString(): string;
62
+ /**
63
+ * Returns a DataURI containing the sourcemap. Useful for doing this sort of thing:
64
+ * `generateMap(options?: SourceMapOptions): SourceMap;`
65
+ */
66
+ toUrl(): string;
67
+ }
68
+
69
+ export class Bundle {
70
+ constructor(options?: BundleOptions);
71
+ /**
72
+ * Adds the specified source to the bundle, which can either be a `MagicString` object directly,
73
+ * or an options object that holds a magic string `content` property and optionally provides
74
+ * a `filename` for the source within the bundle, as well as an optional `ignoreList` hint
75
+ * (which defaults to `false`). The `filename` is used when constructing the source map for the
76
+ * bundle, to identify this `source` in the source map's `sources` field. The `ignoreList` hint
77
+ * is used to populate the `x_google_ignoreList` extension field in the source map, which is a
78
+ * mechanism for tools to signal to debuggers that certain sources should be ignored by default
79
+ * (depending on user preferences).
80
+ */
81
+ addSource(
82
+ source: MagicString | { filename?: string; content: MagicString; ignoreList?: boolean },
83
+ ): this;
84
+ append(str: string, options?: BundleOptions): this;
85
+ clone(): this;
86
+ generateMap(
87
+ options?: SourceMapOptions,
88
+ ): Omit<SourceMap, 'sourcesContent'> & { sourcesContent: Array<string | null> };
89
+ generateDecodedMap(
90
+ options?: SourceMapOptions,
91
+ ): Omit<DecodedSourceMap, 'sourcesContent'> & { sourcesContent: Array<string | null> };
92
+ getIndentString(): string;
93
+ indent(indentStr?: string): this;
94
+ indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;
95
+ prepend(str: string): this;
96
+ toString(): string;
97
+ trimLines(): this;
98
+ trim(charType?: string): this;
99
+ trimStart(charType?: string): this;
100
+ trimEnd(charType?: string): this;
101
+ isEmpty(): boolean;
102
+ length(): number;
103
+ }
104
+
105
+ export type ExclusionRange = [number, number];
106
+
107
+ export interface MagicStringOptions {
108
+ filename?: string;
109
+ indentExclusionRanges?: ExclusionRange | Array<ExclusionRange>;
110
+ offset?: number;
111
+ }
112
+
113
+ export interface IndentOptions {
114
+ exclude?: ExclusionRange | Array<ExclusionRange>;
115
+ indentStart?: boolean;
116
+ }
117
+
118
+ export interface OverwriteOptions {
119
+ storeName?: boolean;
120
+ contentOnly?: boolean;
121
+ }
122
+
123
+ export interface UpdateOptions {
124
+ storeName?: boolean;
125
+ overwrite?: boolean;
126
+ }
127
+
128
+ export default class MagicString {
129
+ constructor(str: string, options?: MagicStringOptions);
130
+ /**
131
+ * Adds the specified character index (with respect to the original string) to sourcemap mappings, if `hires` is false.
132
+ */
133
+ addSourcemapLocation(char: number): void;
134
+ /**
135
+ * Appends the specified content to the end of the string.
136
+ */
137
+ append(content: string): this;
138
+ /**
139
+ * Appends the specified content at the index in the original string.
140
+ * If a range *ending* with index is subsequently moved, the insert will be moved with it.
141
+ * See also `s.prependLeft(...)`.
142
+ */
143
+ appendLeft(index: number, content: string): this;
144
+ /**
145
+ * Appends the specified content at the index in the original string.
146
+ * If a range *starting* with index is subsequently moved, the insert will be moved with it.
147
+ * See also `s.prependRight(...)`.
148
+ */
149
+ appendRight(index: number, content: string): this;
150
+ /**
151
+ * Does what you'd expect.
152
+ */
153
+ clone(): this;
154
+ /**
155
+ * Generates a version 3 sourcemap.
156
+ */
157
+ generateMap(options?: SourceMapOptions): SourceMap;
158
+ /**
159
+ * Generates a sourcemap object with raw mappings in array form, rather than encoded as a string.
160
+ * Useful if you need to manipulate the sourcemap further, but most of the time you will use `generateMap` instead.
161
+ */
162
+ generateDecodedMap(options?: SourceMapOptions): DecodedSourceMap;
163
+ getIndentString(): string;
164
+
165
+ /**
166
+ * Prefixes each line of the string with prefix.
167
+ * If prefix is not supplied, the indentation will be guessed from the original content, falling back to a single tab character.
168
+ */
169
+ indent(options?: IndentOptions): this;
170
+ /**
171
+ * Prefixes each line of the string with prefix.
172
+ * If prefix is not supplied, the indentation will be guessed from the original content, falling back to a single tab character.
173
+ *
174
+ * The options argument can have an exclude property, which is an array of [start, end] character ranges.
175
+ * These ranges will be excluded from the indentation - useful for (e.g.) multiline strings.
176
+ */
177
+ indent(indentStr?: string, options?: IndentOptions): this;
178
+ indentExclusionRanges: ExclusionRange | Array<ExclusionRange>;
179
+
180
+ /**
181
+ * Moves the characters from `start` and `end` to `index`.
182
+ */
183
+ move(start: number, end: number, index: number): this;
184
+ /**
185
+ * Replaces the characters from `start` to `end` with `content`, along with the appended/prepended content in
186
+ * that range. The same restrictions as `s.remove()` apply.
187
+ *
188
+ * The fourth argument is optional. It can have a storeName property — if true, the original name will be stored
189
+ * for later inclusion in a sourcemap's names array — and a contentOnly property which determines whether only
190
+ * the content is overwritten, or anything that was appended/prepended to the range as well.
191
+ *
192
+ * It may be preferred to use `s.update(...)` instead if you wish to avoid overwriting the appended/prepended content.
193
+ */
194
+ overwrite(
195
+ start: number,
196
+ end: number,
197
+ content: string,
198
+ options?: boolean | OverwriteOptions,
199
+ ): this;
200
+ /**
201
+ * Replaces the characters from `start` to `end` with `content`. The same restrictions as `s.remove()` apply.
202
+ *
203
+ * The fourth argument is optional. It can have a storeName property — if true, the original name will be stored
204
+ * for later inclusion in a sourcemap's names array — and an overwrite property which determines whether only
205
+ * the content is overwritten, or anything that was appended/prepended to the range as well.
206
+ */
207
+ update(start: number, end: number, content: string, options?: boolean | UpdateOptions): this;
208
+ /**
209
+ * Prepends the string with the specified content.
210
+ */
211
+ prepend(content: string): this;
212
+ /**
213
+ * Same as `s.appendLeft(...)`, except that the inserted content will go *before* any previous appends or prepends at index
214
+ */
215
+ prependLeft(index: number, content: string): this;
216
+ /**
217
+ * Same as `s.appendRight(...)`, except that the inserted content will go *before* any previous appends or prepends at `index`
218
+ */
219
+ prependRight(index: number, content: string): this;
220
+ /**
221
+ * Removes the characters from `start` to `end` (of the original string, **not** the generated string).
222
+ * Removing the same content twice, or making removals that partially overlap, will cause an error.
223
+ */
224
+ remove(start: number, end: number): this;
225
+ /**
226
+ * Reset the modified characters from `start` to `end` (of the original string, **not** the generated string).
227
+ */
228
+ reset(start: number, end: number): this;
229
+ /**
230
+ * Returns the content of the generated string that corresponds to the slice between `start` and `end` of the original string.
231
+ * Throws error if the indices are for characters that were already removed.
232
+ */
233
+ slice(start: number, end: number): string;
234
+ /**
235
+ * Returns a clone of `s`, with all content before the `start` and `end` characters of the original string removed.
236
+ */
237
+ snip(start: number, end: number): this;
238
+ /**
239
+ * Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start and end.
240
+ */
241
+ trim(charType?: string): this;
242
+ /**
243
+ * Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the start.
244
+ */
245
+ trimStart(charType?: string): this;
246
+ /**
247
+ * Trims content matching `charType` (defaults to `\s`, i.e. whitespace) from the end.
248
+ */
249
+ trimEnd(charType?: string): this;
250
+ /**
251
+ * Removes empty lines from the start and end.
252
+ */
253
+ trimLines(): this;
254
+ /**
255
+ * String replacement with RegExp or string.
256
+ */
257
+ replace(
258
+ regex: RegExp | string,
259
+ replacement: string | ((substring: string, ...args: any[]) => string),
260
+ ): this;
261
+ /**
262
+ * Same as `s.replace`, but replace all matched strings instead of just one.
263
+ */
264
+ replaceAll(
265
+ regex: RegExp | string,
266
+ replacement: string | ((substring: string, ...args: any[]) => string),
267
+ ): this;
268
+
269
+ lastChar(): string;
270
+ lastLine(): string;
271
+ /**
272
+ * Returns true if the resulting source is empty (disregarding white space).
273
+ */
274
+ isEmpty(): boolean;
275
+ length(): number;
276
+
277
+ /**
278
+ * Indicates if the string has been changed.
279
+ */
280
+ hasChanged(): boolean;
281
+
282
+ original: string;
283
+ /**
284
+ * Returns the generated string.
285
+ */
286
+ toString(): string;
287
+
288
+ offset: number;
289
+ }
@@ -0,0 +1,69 @@
1
+ export {
2
+ // Type-only exports
3
+ AcceptedPlugin,
4
+
5
+ AnyNode,
6
+ atRule,
7
+ AtRule,
8
+ AtRuleProps,
9
+ Builder,
10
+ ChildNode,
11
+ ChildProps,
12
+ comment,
13
+ Comment,
14
+ CommentProps,
15
+ Container,
16
+ ContainerProps,
17
+ CssSyntaxError,
18
+ decl,
19
+ Declaration,
20
+ DeclarationProps,
21
+ // postcss function / namespace
22
+ default,
23
+ document,
24
+ Document,
25
+ DocumentProps,
26
+ FilePosition,
27
+ fromJSON,
28
+ Helpers,
29
+ Input,
30
+
31
+ JSONHydrator,
32
+ // This is a class, but it’s not re-exported. That’s why it’s exported as type-only here.
33
+ type LazyResult,
34
+ list,
35
+ Message,
36
+ Node,
37
+ NodeErrorOptions,
38
+ NodeProps,
39
+ OldPlugin,
40
+ parse,
41
+ Parser,
42
+ // @ts-expect-error This value exists, but it’s untyped.
43
+ plugin,
44
+ Plugin,
45
+ PluginCreator,
46
+ Position,
47
+ Postcss,
48
+ ProcessOptions,
49
+ Processor,
50
+ Result,
51
+ root,
52
+ Root,
53
+ RootProps,
54
+ rule,
55
+ Rule,
56
+ RuleProps,
57
+ Source,
58
+ SourceMap,
59
+ SourceMapOptions,
60
+ Stringifier,
61
+ // Value exports from postcss.mjs
62
+ stringify,
63
+ Syntax,
64
+ TransformCallback,
65
+ Transformer,
66
+ Warning,
67
+
68
+ WarningOptions
69
+ } from './postcss.js'
@@ -0,0 +1 @@
1
+ export * from '@vue/compiler-sfc'
@@ -0,0 +1,7 @@
1
+ import { CompilerOptions } from '@vue/compiler-dom';
2
+ import { RenderFunction } from '@vue/runtime-dom';
3
+ export * from '@vue/runtime-dom';
4
+
5
+ export declare function compileToFunction(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
6
+
7
+ export { compileToFunction as compile };
@@ -1,4 +1,4 @@
1
- /* eslint-disable @typescript-eslint/prefer-ts-expect-error */
1
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
2
2
  import type { NativeElements, ReservedProps, VNode } from '@vue/runtime-dom'
3
3
 
4
4
  /**
@@ -6,7 +6,7 @@ import type { NativeElements, ReservedProps, VNode } from '@vue/runtime-dom'
6
6
  * when ts compilerOptions.jsx is 'react-jsx' or 'react-jsxdev'
7
7
  * https://www.typescriptlang.org/tsconfig#jsxImportSource
8
8
  */
9
- export { h as jsx, h as jsxDEV, Fragment } from '@vue/runtime-dom'
9
+ export { h as jsx, h as jsxDEV, Fragment, h as jsxs } from '@vue/runtime-dom'
10
10
 
11
11
  export namespace JSX {
12
12
  export interface Element extends VNode {}