@histoire/vendors 1.0.0-beta.1 → 1.0.0-beta.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.
- package/build/floating-ui-frames.mjs +28 -0
- package/dist/client/b-floating-vue.js +6 -2
- package/dist/client/node_modules/@babel/helper-string-parser/package.json +1 -1
- package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +1 -1
- package/dist/client/node_modules/@babel/parser/package.json +7 -7
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +24 -26
- package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +183 -183
- package/dist/client/node_modules/@babel/types/lib/index.d.ts +203 -208
- package/dist/client/node_modules/@babel/types/package.json +6 -6
- package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +75 -68
- package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +75 -68
- package/dist/client/node_modules/@floating-ui/core/package.json +3 -3
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +5 -3
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +5 -3
- package/dist/client/node_modules/@floating-ui/utils/package.json +2 -2
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +2 -1
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.mts +5 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +2 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +4 -2
- package/dist/client/node_modules/csstype/index.d.ts +2326 -782
- package/dist/client/node_modules/csstype/package.json +26 -26
- package/dist/client/node_modules/entities/dist/commonjs/decode.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/esm/decode.d.ts +2 -0
- package/dist/client/node_modules/entities/package.json +18 -11
- package/dist/client/node_modules/nanoid/package.json +3 -3
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/comment.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/container.d.ts +17 -26
- package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +4 -5
- package/dist/client/node_modules/postcss/lib/document.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/input.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +3 -4
- package/dist/client/node_modules/postcss/lib/list.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/node.d.ts +2 -3
- package/dist/client/node_modules/postcss/lib/parse.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/postcss.d.mts +0 -3
- package/dist/client/node_modules/postcss/lib/postcss.d.ts +10 -4
- package/dist/client/node_modules/postcss/lib/previous-map.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/processor.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/result.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/root.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/rule.d.ts +12 -12
- package/dist/client/node_modules/postcss/lib/stringifier.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/stringify.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/warning.d.ts +0 -1
- package/dist/client/node_modules/postcss/package.json +45 -45
- package/dist/client/node_modules/source-map-js/package.json +14 -7
- package/dist/client/node_modules/source-map-js/source-map.d.ts +177 -63
- package/package.json +3 -2
- package/rollup.config.mjs +11 -1
- package/tsconfig.json +3 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "source-map-js",
|
|
3
3
|
"description": "Generates and consumes source maps",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.4",
|
|
5
5
|
"homepage": "https://github.com/7rulnik/source-map-js",
|
|
6
6
|
"author": "Valentin 7rulnik Semirulnik <v7rulnik@gmail.com>",
|
|
7
7
|
"contributors": [
|
|
@@ -51,21 +51,28 @@
|
|
|
51
51
|
"lib/"
|
|
52
52
|
],
|
|
53
53
|
"engines": {
|
|
54
|
-
"node": ">=0.
|
|
54
|
+
"node": ">=6.0.0"
|
|
55
55
|
},
|
|
56
56
|
"license": "BSD-3-Clause",
|
|
57
57
|
"scripts": {
|
|
58
|
-
"test": "
|
|
59
|
-
"
|
|
60
|
-
"
|
|
58
|
+
"test": "node --test --test-reporter=spec 'test/test-*.js'",
|
|
59
|
+
"test:coverage": "node --experimental-config-file=node.config.json --test --test-reporter=spec --experimental-test-coverage 'test/test-*.js'",
|
|
60
|
+
"format": "prettier --write .",
|
|
61
|
+
"format:check": "prettier --check .",
|
|
62
|
+
"toc": "doctoc --title '## Table of Contents' README.md && prettier --write README.md"
|
|
61
63
|
},
|
|
62
64
|
"devDependencies": {
|
|
63
65
|
"clean-publish": "^3.1.0",
|
|
64
66
|
"doctoc": "^0.15.0",
|
|
65
|
-
"
|
|
67
|
+
"prettier": "3.10.1"
|
|
68
|
+
},
|
|
69
|
+
"prettier": {
|
|
70
|
+
"singleQuote": true,
|
|
71
|
+
"trailingComma": "es5"
|
|
66
72
|
},
|
|
67
73
|
"clean-publish": {
|
|
68
74
|
"cleanDocs": true
|
|
69
75
|
},
|
|
70
|
-
"typings": "source-map.d.ts"
|
|
76
|
+
"typings": "source-map.d.ts",
|
|
77
|
+
"packageManager": "pnpm@12.21.0"
|
|
71
78
|
}
|
|
@@ -1,104 +1,218 @@
|
|
|
1
1
|
export interface StartOfSourceMap {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
file?: string;
|
|
3
|
+
sourceRoot?: string;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* A source map as `SourceMapGenerator#toJSON` returns it. For a source map
|
|
8
|
+
* passed to `SourceMapConsumer`, use `RawSourceMapInput`.
|
|
9
|
+
*/
|
|
6
10
|
export interface RawSourceMap extends StartOfSourceMap {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
/** The number `3` at runtime. Typed as a string for backward compatibility. */
|
|
12
|
+
version: string;
|
|
13
|
+
sources: string[];
|
|
14
|
+
names: string[];
|
|
15
|
+
/**
|
|
16
|
+
* `null` for each source without content at runtime. Typed as `string[]`
|
|
17
|
+
* for backward compatibility.
|
|
18
|
+
*/
|
|
19
|
+
sourcesContent?: string[];
|
|
20
|
+
mappings: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A source map as `SourceMapConsumer` accepts it. Unlike `RawSourceMap`, the
|
|
25
|
+
* `version` can be a number, `sourcesContent` can have `null` entries, and
|
|
26
|
+
* `names` can be left out.
|
|
27
|
+
*/
|
|
28
|
+
export interface RawSourceMapInput extends StartOfSourceMap {
|
|
29
|
+
version: number | string;
|
|
30
|
+
sources: string[];
|
|
31
|
+
names?: string[];
|
|
32
|
+
sourcesContent?: (string | null)[];
|
|
33
|
+
mappings: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface RawSection {
|
|
37
|
+
/** Where the section starts in the generated code. Both are 0-based. */
|
|
38
|
+
offset: Position;
|
|
39
|
+
map: RawSourceMapInput | RawIndexMap;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** A source map made of sections, each with its own source map. */
|
|
43
|
+
export interface RawIndexMap {
|
|
44
|
+
version: number | string;
|
|
45
|
+
file?: string;
|
|
46
|
+
sections: RawSection[];
|
|
12
47
|
}
|
|
13
48
|
|
|
14
49
|
export interface Position {
|
|
15
|
-
|
|
16
|
-
|
|
50
|
+
line: number;
|
|
51
|
+
column: number;
|
|
17
52
|
}
|
|
18
53
|
|
|
19
54
|
export interface LineRange extends Position {
|
|
20
|
-
|
|
55
|
+
lastColumn: number;
|
|
21
56
|
}
|
|
22
57
|
|
|
23
58
|
export interface FindPosition extends Position {
|
|
24
|
-
|
|
25
|
-
|
|
59
|
+
// SourceMapConsumer.GREATEST_LOWER_BOUND or SourceMapConsumer.LEAST_UPPER_BOUND
|
|
60
|
+
bias?: number;
|
|
26
61
|
}
|
|
27
62
|
|
|
28
63
|
export interface SourceFindPosition extends FindPosition {
|
|
29
|
-
|
|
64
|
+
source: string;
|
|
30
65
|
}
|
|
31
66
|
|
|
32
67
|
export interface MappedPosition extends Position {
|
|
33
|
-
|
|
34
|
-
|
|
68
|
+
source: string;
|
|
69
|
+
name?: string;
|
|
35
70
|
}
|
|
36
71
|
|
|
37
72
|
export interface MappingItem {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
73
|
+
source: string | null;
|
|
74
|
+
generatedLine: number;
|
|
75
|
+
generatedColumn: number;
|
|
76
|
+
originalLine: number | null;
|
|
77
|
+
originalColumn: number | null;
|
|
78
|
+
name: string | null;
|
|
44
79
|
}
|
|
45
80
|
|
|
46
81
|
export class SourceMapConsumer {
|
|
47
|
-
|
|
48
|
-
|
|
82
|
+
static GENERATED_ORDER: number;
|
|
83
|
+
static ORIGINAL_ORDER: number;
|
|
49
84
|
|
|
50
|
-
|
|
51
|
-
|
|
85
|
+
static GREATEST_LOWER_BOUND: number;
|
|
86
|
+
static LEAST_UPPER_BOUND: number;
|
|
52
87
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
88
|
+
/**
|
|
89
|
+
* @param rawSourceMap A source map or an index map, as an object or as a
|
|
90
|
+
* JSON string.
|
|
91
|
+
* @param sourceMapUrl The URL of the source map. Relative `sources` are
|
|
92
|
+
* resolved against it.
|
|
93
|
+
*/
|
|
94
|
+
constructor(
|
|
95
|
+
rawSourceMap: RawSourceMapInput | RawIndexMap | string,
|
|
96
|
+
sourceMapUrl?: string
|
|
97
|
+
);
|
|
98
|
+
static fromSourceMap(
|
|
99
|
+
sourceMap: SourceMapGenerator,
|
|
100
|
+
sourceMapUrl?: string
|
|
101
|
+
): SourceMapConsumer;
|
|
102
|
+
readonly file: string | undefined | null;
|
|
103
|
+
readonly sourceRoot: string | undefined | null;
|
|
104
|
+
/** Can have `null` entries at runtime: one for each source without content. */
|
|
105
|
+
readonly sourcesContent: readonly string[] | null | undefined;
|
|
106
|
+
readonly sources: readonly string[];
|
|
58
107
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
108
|
+
computeColumnSpans(): void;
|
|
109
|
+
/**
|
|
110
|
+
* At runtime, `source`, `line`, `column` and `name` are all `null` when no
|
|
111
|
+
* mapping is found, and `name` is `null` when the mapping has no name.
|
|
112
|
+
*/
|
|
113
|
+
originalPositionFor(generatedPosition: FindPosition): MappedPosition;
|
|
114
|
+
/**
|
|
115
|
+
* At runtime, `line`, `column` and `lastColumn` are all `null` when no
|
|
116
|
+
* mapping is found, and `lastColumn` is `null` until `computeColumnSpans()`
|
|
117
|
+
* is called.
|
|
118
|
+
*/
|
|
119
|
+
generatedPositionFor(originalPosition: SourceFindPosition): LineRange;
|
|
120
|
+
/**
|
|
121
|
+
* Without a `column`, returns the mappings of the line, or of the next line
|
|
122
|
+
* that has mappings. `lastColumn` is `null` until `computeColumnSpans()` is
|
|
123
|
+
* called.
|
|
124
|
+
*/
|
|
125
|
+
allGeneratedPositionsFor(
|
|
126
|
+
originalPosition:
|
|
127
|
+
MappedPosition | { source: string; line: number; column?: number }
|
|
128
|
+
): Array<Position & { lastColumn?: number | null }>;
|
|
129
|
+
hasContentsOfAllSources(): boolean;
|
|
130
|
+
sourceContentFor(
|
|
131
|
+
source: string,
|
|
132
|
+
returnNullOnMissing?: boolean
|
|
133
|
+
): string | null;
|
|
134
|
+
eachMapping(
|
|
135
|
+
callback: (mapping: MappingItem) => void,
|
|
136
|
+
context?: any,
|
|
137
|
+
order?: number
|
|
138
|
+
): void;
|
|
66
139
|
}
|
|
67
140
|
|
|
68
141
|
export interface Mapping {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
142
|
+
generated: Position;
|
|
143
|
+
original?: Position | null;
|
|
144
|
+
source?: string | null;
|
|
145
|
+
name?: string | null;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface SourceMapGeneratorOptions extends StartOfSourceMap {
|
|
149
|
+
/** Don't validate mappings in `addMapping`. */
|
|
150
|
+
skipValidation?: boolean;
|
|
151
|
+
/** Warn about invalid mappings and skip them, instead of throwing. */
|
|
152
|
+
ignoreInvalidMapping?: boolean;
|
|
73
153
|
}
|
|
74
154
|
|
|
75
155
|
export class SourceMapGenerator {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
156
|
+
constructor(startOfSourceMap?: SourceMapGeneratorOptions);
|
|
157
|
+
static fromSourceMap(
|
|
158
|
+
sourceMapConsumer: SourceMapConsumer,
|
|
159
|
+
startOfSourceMap?: SourceMapGeneratorOptions
|
|
160
|
+
): SourceMapGenerator;
|
|
161
|
+
addMapping(mapping: Mapping): void;
|
|
162
|
+
setSourceContent(
|
|
163
|
+
sourceFile: string,
|
|
164
|
+
sourceContent: string | null | undefined
|
|
165
|
+
): void;
|
|
166
|
+
applySourceMap(
|
|
167
|
+
sourceMapConsumer: SourceMapConsumer,
|
|
168
|
+
sourceFile?: string,
|
|
169
|
+
sourceMapPath?: string
|
|
170
|
+
): void;
|
|
171
|
+
toString(): string;
|
|
172
|
+
toJSON(): RawSourceMap;
|
|
83
173
|
}
|
|
84
174
|
|
|
85
175
|
export interface CodeWithSourceMap {
|
|
86
|
-
|
|
87
|
-
|
|
176
|
+
code: string;
|
|
177
|
+
map: SourceMapGenerator;
|
|
88
178
|
}
|
|
89
179
|
|
|
180
|
+
/** A string of generated code, a `SourceNode`, or an array of chunks. */
|
|
181
|
+
export type SourceNodeChunk = string | SourceNode | SourceNodeChunkArray;
|
|
182
|
+
export interface SourceNodeChunkArray extends Array<SourceNodeChunk> {}
|
|
183
|
+
|
|
90
184
|
export class SourceNode {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
185
|
+
constructor();
|
|
186
|
+
constructor(
|
|
187
|
+
line: number | null,
|
|
188
|
+
column: number | null,
|
|
189
|
+
source: string | null,
|
|
190
|
+
chunks?: SourceNodeChunk,
|
|
191
|
+
name?: string | null
|
|
192
|
+
);
|
|
193
|
+
static fromStringWithSourceMap(
|
|
194
|
+
code: string,
|
|
195
|
+
sourceMapConsumer: SourceMapConsumer,
|
|
196
|
+
relativePath?: string
|
|
197
|
+
): SourceNode;
|
|
198
|
+
/** Returns this node at runtime. */
|
|
199
|
+
add(chunk: SourceNodeChunk): void;
|
|
200
|
+
/** Returns this node at runtime. */
|
|
201
|
+
prepend(chunk: SourceNodeChunk): void;
|
|
202
|
+
setSourceContent(sourceFile: string, sourceContent: string): void;
|
|
203
|
+
/**
|
|
204
|
+
* At runtime, `source`, `line`, `column` and `name` are `null` for chunks
|
|
205
|
+
* without an original position, and `name` is `null` when there's no name.
|
|
206
|
+
*/
|
|
207
|
+
walk(fn: (chunk: string, mapping: MappedPosition) => void): void;
|
|
208
|
+
walkSourceContents(fn: (file: string, content: string) => void): void;
|
|
209
|
+
join(sep: string): SourceNode;
|
|
210
|
+
replaceRight(
|
|
211
|
+
pattern: string | RegExp,
|
|
212
|
+
replacement: string | ((substring: string, ...args: any[]) => string)
|
|
213
|
+
): SourceNode;
|
|
214
|
+
toString(): string;
|
|
215
|
+
toStringWithSourceMap(
|
|
216
|
+
startOfSourceMap?: SourceMapGeneratorOptions
|
|
217
|
+
): CodeWithSourceMap;
|
|
104
218
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/vendors",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.2",
|
|
5
5
|
"description": "Bundled vendors for histoire",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Guillaume Chau"
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"@rollup/plugin-commonjs": "^28.0.1",
|
|
32
32
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
33
33
|
"@types/node": "^22.10.1",
|
|
34
|
+
"@typescript/native": "npm:typescript@7.0.2",
|
|
34
35
|
"@vueuse/core": "^12.0.0",
|
|
35
36
|
"execa": "^9.5.1",
|
|
36
37
|
"floating-vue": "5.2.2",
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"rollup": "^4.28.0",
|
|
41
42
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
42
43
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
43
|
-
"typescript": "
|
|
44
|
+
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
44
45
|
"vue": "^3.5.26",
|
|
45
46
|
"vue-router": "^4.5.0"
|
|
46
47
|
},
|
package/rollup.config.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import fs from 'fs-extra'
|
|
|
8
8
|
import { globbySync } from 'globby'
|
|
9
9
|
import { defineConfig } from 'rollup'
|
|
10
10
|
import ts from 'rollup-plugin-typescript2'
|
|
11
|
+
import { guardFloatingUiFrameReads } from './build/floating-ui-frames.mjs'
|
|
11
12
|
import { entries } from './entries.js'
|
|
12
13
|
|
|
13
14
|
const require = createRequire(import.meta.url)
|
|
@@ -33,6 +34,10 @@ export default defineConfig({
|
|
|
33
34
|
return code.replace(/__VUE_OPTIONS_API__/g, 'true')
|
|
34
35
|
},
|
|
35
36
|
},
|
|
37
|
+
{
|
|
38
|
+
name: 'histoire-floating-ui-frame-ownership',
|
|
39
|
+
transform: guardFloatingUiFrameReads,
|
|
40
|
+
},
|
|
36
41
|
{
|
|
37
42
|
name: 'process-build',
|
|
38
43
|
closeBundle() {
|
|
@@ -80,7 +85,8 @@ export * from '${filepath}'\n`.replace(/\n/g, process.platform === 'win32' ? '\r
|
|
|
80
85
|
{
|
|
81
86
|
const tempPkgFile = path.resolve(tempDir, 'package.json')
|
|
82
87
|
fs.writeJsonSync(tempPkgFile, tempPkg)
|
|
83
|
-
|
|
88
|
+
// Each flag must be its own argument, otherwise npm ignores both.
|
|
89
|
+
execaSync('npm', ['install', '--prefer-offline', '--legacy-peer-deps'], { cwd: tempDir })
|
|
84
90
|
const dtsFiles = globbySync(['**/*.d.{ts,mts}', '**/package.json'], {
|
|
85
91
|
cwd: path.join(tempDir, 'node_modules'),
|
|
86
92
|
dot: true,
|
|
@@ -96,7 +102,11 @@ export * from '${filepath}'\n`.replace(/\n/g, process.platform === 'win32' ? '\r
|
|
|
96
102
|
fs.writeJsonSync('./package.json', pkg, { spaces: 2 })
|
|
97
103
|
}
|
|
98
104
|
catch (e) {
|
|
105
|
+
// Fail the build: swallowing this leaves empty vendor type stubs
|
|
106
|
+
// (`export * from './node_modules/vue'` resolving to nothing), which
|
|
107
|
+
// breaks every downstream declaration build with TS2614.
|
|
99
108
|
console.error(e)
|
|
109
|
+
throw e
|
|
100
110
|
}
|
|
101
111
|
},
|
|
102
112
|
},
|
package/tsconfig.json
CHANGED
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
"DOM"
|
|
9
9
|
],
|
|
10
10
|
"module": "ESNext",
|
|
11
|
-
"moduleResolution": "
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
12
|
"resolveJsonModule": true,
|
|
13
13
|
"types": [
|
|
14
14
|
"node"
|
|
15
15
|
],
|
|
16
|
+
// Preserve existing checks while upgrading the compiler.
|
|
17
|
+
"strict": false,
|
|
16
18
|
"strictBindCallApply": true,
|
|
17
19
|
"strictFunctionTypes": true,
|
|
18
20
|
"alwaysStrict": true,
|