ripple 0.2.182 → 0.2.184
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/package.json +4 -2
- package/src/compiler/errors.js +3 -1
- package/src/compiler/index.d.ts +2 -1
- package/src/compiler/phases/1-parse/index.js +525 -311
- package/src/compiler/phases/1-parse/style.js +3 -1
- package/src/compiler/phases/2-analyze/css-analyze.js +116 -97
- package/src/compiler/phases/2-analyze/index.js +81 -51
- package/src/compiler/phases/2-analyze/prune.js +200 -58
- package/src/compiler/phases/2-analyze/validation.js +9 -7
- package/src/compiler/phases/3-transform/client/index.js +871 -394
- package/src/compiler/phases/3-transform/segments.js +99 -53
- package/src/compiler/phases/3-transform/server/index.js +278 -121
- package/src/compiler/scope.js +51 -104
- package/src/compiler/types/index.d.ts +834 -197
- package/src/compiler/types/parse.d.ts +1668 -0
- package/src/compiler/utils.js +62 -74
- package/src/utils/ast.js +247 -192
- package/src/utils/builders.js +309 -247
- package/src/utils/sanitize_template_string.js +2 -2
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Ripple is an elegant TypeScript UI framework",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Dominic Gannaway",
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.184",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"module": "src/runtime/index-client.js",
|
|
9
9
|
"main": "src/runtime/index-client.js",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"#client/constants": "./src/internal/client/constants.js",
|
|
61
61
|
"#server": "./src/runtime/internal/server/types.d.ts",
|
|
62
62
|
"#compiler": "./src/compiler/types/index.d.ts",
|
|
63
|
+
"#parser": "./src/compiler/types/parse.d.ts",
|
|
63
64
|
"#public": "./types/index.d.ts"
|
|
64
65
|
},
|
|
65
66
|
"dependencies": {
|
|
@@ -79,11 +80,12 @@
|
|
|
79
80
|
"@types/estree": "^1.0.8",
|
|
80
81
|
"@types/estree-jsx": "^1.0.5",
|
|
81
82
|
"@types/node": "^24.3.0",
|
|
83
|
+
"@typescript-eslint/types": "^8.40.0",
|
|
82
84
|
"typescript": "^5.9.2",
|
|
83
85
|
"@volar/language-core": "~2.4.23",
|
|
84
86
|
"vscode-languageserver-types": "^3.17.5"
|
|
85
87
|
},
|
|
86
88
|
"peerDependencies": {
|
|
87
|
-
"ripple": "0.2.
|
|
89
|
+
"ripple": "0.2.184"
|
|
88
90
|
}
|
|
89
91
|
}
|
package/src/compiler/errors.js
CHANGED
package/src/compiler/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
Mapping as VolarMapping,
|
|
5
5
|
} from '@volar/language-core';
|
|
6
6
|
import type { DocumentHighlightKind } from 'vscode-languageserver-types';
|
|
7
|
+
import type { SourceMapMappings } from '@jridgewell/sourcemap-codec';
|
|
7
8
|
|
|
8
9
|
// ============================================================================
|
|
9
10
|
// Compiler API Exports
|
|
@@ -17,7 +18,7 @@ export interface CompileResult {
|
|
|
17
18
|
/** The generated JavaScript code with source map */
|
|
18
19
|
js: {
|
|
19
20
|
code: string;
|
|
20
|
-
map:
|
|
21
|
+
map: SourceMapMappings;
|
|
21
22
|
};
|
|
22
23
|
/** The generated CSS */
|
|
23
24
|
css: string;
|