ripple 0.2.179 → 0.2.180
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
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.180",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"module": "src/runtime/index-client.js",
|
|
9
9
|
"main": "src/runtime/index-client.js",
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
"vscode-languageserver-types": "^3.17.5"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"ripple": "0.2.
|
|
87
|
+
"ripple": "0.2.180"
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @import { CustomMappingData, PluginActionOverrides } from 'ripple/compiler'; */
|
|
2
|
+
/** @import { DocumentHighlightKind } from 'vscode-languageserver-types'; */
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @typedef {import('estree').Position} Position
|
|
@@ -16,7 +17,6 @@
|
|
|
16
17
|
|
|
17
18
|
import { walk } from 'zimmerframe';
|
|
18
19
|
import { build_source_to_generated_map, get_generated_position } from '../../source-map-utils.js';
|
|
19
|
-
import { DocumentHighlightKind } from 'vscode-languageserver-types';
|
|
20
20
|
|
|
21
21
|
/** @type {VolarCodeMapping['data']} */
|
|
22
22
|
export const mapping_data = {
|
|
@@ -525,7 +525,8 @@ export function convert_source_map_to_mappings(
|
|
|
525
525
|
loc: pendingKeywordLoc,
|
|
526
526
|
metadata: {
|
|
527
527
|
wordHighlight: {
|
|
528
|
-
|
|
528
|
+
/** @type {DocumentHighlightKind} */
|
|
529
|
+
kind: 1,
|
|
529
530
|
},
|
|
530
531
|
suppressedDiagnostics: [
|
|
531
532
|
1472, // 'catch' or 'finally' expected
|
|
@@ -80,9 +80,10 @@ export function render_spread(element, fn, flags = 0) {
|
|
|
80
80
|
/**
|
|
81
81
|
* @param {Function} fn
|
|
82
82
|
* @param {number} [flags]
|
|
83
|
+
* @param {any} [state]
|
|
83
84
|
*/
|
|
84
|
-
export function branch(fn, flags = 0) {
|
|
85
|
-
return block(BRANCH_BLOCK | flags, fn);
|
|
85
|
+
export function branch(fn, flags = 0, state = null) {
|
|
86
|
+
return block(BRANCH_BLOCK | flags, fn, state);
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
/**
|