File tree 8 files changed +40
-19
lines changed
8 files changed +40
-19
lines changed Original file line number Diff line number Diff line change 9
9
- name : Checkout code
10
10
uses : actions/checkout@v4
11
11
12
- - run : corepack enable
13
- - uses : actions/setup-node@v4
12
+ - name : Install pnpm
13
+ uses : pnpm/action-setup@v4
14
+
15
+ - name : Install Node.js
16
+ uses : actions/setup-node@v4
14
17
with :
15
- node-version : lts/*
18
+ node-version-file : ' .node-version '
16
19
cache : ' pnpm'
17
20
18
21
- name : Install dependencies
Original file line number Diff line number Diff line change @@ -17,12 +17,13 @@ jobs:
17
17
with :
18
18
fetch-depth : 0
19
19
20
- - run : corepack enable
20
+ - name : Install pnpm
21
+ uses : pnpm/action-setup@v4
21
22
22
- - name : Set node
23
+ - name : Install Node.js
23
24
uses : actions/setup-node@v4
24
25
with :
25
- node-version : lts/*
26
+ node-version-file : ' .node-version '
26
27
cache : pnpm
27
28
registry-url : ' https://registry.npmjs.org'
28
29
Original file line number Diff line number Diff line change
1
+ lts/*
Original file line number Diff line number Diff line change
1
+ # [ 4.5.0] ( https://github.com/vuejs/repl/compare/v4.4.3...v4.5.0 ) (2025-02-03)
2
+
3
+
4
+ ### Features
5
+
6
+ * pass on descriptor vapor flag when compiling template ([ adaaceb] ( https://github.com/vuejs/repl/commit/adaaceb24984435ae02ab3eda071f10dba9e0362 ) )
7
+
8
+
9
+
1
10
## [ 4.4.3] ( https://github.com/vuejs/repl/compare/v4.4.2...v4.4.3 ) (2025-01-02)
2
11
3
12
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @vue/repl" ,
3
- "version" : " 4.4.3 " ,
3
+ "version" : " 4.5.0 " ,
4
4
"description" : " Vue component for editing Vue components" ,
5
5
"packageManager" :
" [email protected] " ,
6
6
"type" : " module" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const containerRef = useTemplateRef('container')
9
9
const previewRef = inject (injectKeyPreviewRef )!
10
10
11
11
// mobile only
12
- const { store, splitPaneOptions } = inject (injectKeyProps )!
12
+ const { store, layoutReverse, splitPaneOptions } = inject (injectKeyProps )!
13
13
14
14
const state = reactive ({
15
15
dragging: false ,
@@ -66,6 +66,7 @@ function changeViewSize() {
66
66
:class =" {
67
67
dragging: state.dragging,
68
68
'show-output': store.showOutput,
69
+ reverse: layoutReverse,
69
70
vertical: isVertical,
70
71
}"
71
72
@mousemove =" dragMove"
@@ -201,21 +202,19 @@ function changeViewSize() {
201
202
.split-pane .toggler {
202
203
display : block ;
203
204
}
204
- .split-pane .right {
205
+ .split-pane .right ,
206
+ .split-pane.show-output.reverse .right ,
207
+ .split-pane.show-output .left ,
208
+ .split-pane.reverse .left {
205
209
z-index : -1 ;
206
210
pointer-events : none ;
207
211
}
208
- .split-pane .left {
212
+ .split-pane .left ,
213
+ .split-pane.show-output.reverse .left ,
214
+ .split-pane.show-output .right ,
215
+ .split-pane.reverse .right {
209
216
z-index : 0 ;
210
217
pointer-events : all ;
211
218
}
212
- .split-pane.show-output .right {
213
- z-index : 0 ;
214
- pointer-events : all ;
215
- }
216
- .split-pane.show-output .left {
217
- z-index : -1 ;
218
- pointer-events : none ;
219
- }
220
219
}
221
220
</style >
Original file line number Diff line number Diff line change @@ -142,7 +142,11 @@ export function useStore(
142
142
}
143
143
}
144
144
145
- function setImportMap ( map : ImportMap ) {
145
+ function setImportMap ( map : ImportMap , merge = false ) {
146
+ if ( merge ) {
147
+ map = mergeImportMap ( getImportMap ( ) , map )
148
+ }
149
+
146
150
if ( map . imports )
147
151
for ( const [ key , value ] of Object . entries ( map . imports ) ) {
148
152
if ( value ) {
@@ -368,6 +372,7 @@ export function useStore(
368
372
deleteFile,
369
373
renameFile,
370
374
getImportMap,
375
+ setImportMap,
371
376
getTsConfig,
372
377
serialize,
373
378
deserialize,
@@ -436,6 +441,7 @@ export interface ReplStore extends UnwrapRef<StoreState> {
436
441
deleteFile ( filename : string ) : void
437
442
renameFile ( oldFilename : string , newFilename : string ) : void
438
443
getImportMap ( ) : ImportMap
444
+ setImportMap ( map : ImportMap , merge ?: boolean ) : void
439
445
getTsConfig ( ) : Record < string , any >
440
446
serialize ( ) : string
441
447
deserialize ( serializedState : string ) : void
Original file line number Diff line number Diff line change @@ -340,6 +340,8 @@ async function doCompileTemplate(
340
340
let { code, errors } = store . compiler . compileTemplate ( {
341
341
isProd : false ,
342
342
...store . sfcOptions ?. template ,
343
+ // @ts -expect-error TODO remove expect-error after 3.6
344
+ vapor : descriptor . vapor ,
343
345
ast : descriptor . template ! . ast ,
344
346
source : descriptor . template ! . content ,
345
347
filename : descriptor . filename ,
You can’t perform that action at this time.
0 commit comments