playroom 0.35.0 → 0.37.0

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.
@@ -13,13 +13,13 @@ jobs:
13
13
  CI: true
14
14
  steps:
15
15
  - name: Checkout Repo
16
- uses: actions/checkout@v3
16
+ uses: actions/checkout@v4
17
17
 
18
18
  - name: Set up pnpm
19
- uses: pnpm/action-setup@v2.2.4
19
+ uses: pnpm/action-setup@v3
20
20
 
21
21
  - name: Set up Node.js
22
- uses: actions/setup-node@v3
22
+ uses: actions/setup-node@v4
23
23
  with:
24
24
  node-version-file: 'package.json'
25
25
  cache: 'pnpm'
@@ -13,17 +13,17 @@ jobs:
13
13
  CI: true
14
14
  steps:
15
15
  - name: Checkout Repo
16
- uses: actions/checkout@v3
16
+ uses: actions/checkout@v4
17
17
  with:
18
18
  # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
19
19
  fetch-depth: 0
20
20
  token: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }}
21
21
 
22
22
  - name: Set up pnpm
23
- uses: pnpm/action-setup@v2
23
+ uses: pnpm/action-setup@v3
24
24
 
25
25
  - name: Set up Node.js
26
- uses: actions/setup-node@v3
26
+ uses: actions/setup-node@v4
27
27
  with:
28
28
  node-version-file: 'package.json'
29
29
  cache: 'pnpm'
@@ -10,17 +10,17 @@ jobs:
10
10
  CI: true
11
11
  steps:
12
12
  - name: Check out repo
13
- uses: actions/checkout@v3
13
+ uses: actions/checkout@v4
14
14
  with:
15
15
  # This makes Actions fetch all Git history for semantic-release
16
16
  fetch-depth: 0
17
17
  token: ${{ secrets.GITHUB_TOKEN }}
18
18
 
19
19
  - name: Set up pnpm
20
- uses: pnpm/action-setup@v2.2.4
20
+ uses: pnpm/action-setup@v3
21
21
 
22
22
  - name: Set up Node.js
23
- uses: actions/setup-node@v3
23
+ uses: actions/setup-node@v4
24
24
  with:
25
25
  node-version-file: 'package.json'
26
26
  cache: 'pnpm'
@@ -13,13 +13,13 @@ jobs:
13
13
  CI: true
14
14
  steps:
15
15
  - name: Checkout Repo
16
- uses: actions/checkout@v3
16
+ uses: actions/checkout@v4
17
17
 
18
18
  - name: Set up pnpm
19
- uses: pnpm/action-setup@v2.2.4
19
+ uses: pnpm/action-setup@v3
20
20
 
21
21
  - name: Set up Node.js
22
- uses: actions/setup-node@v3
22
+ uses: actions/setup-node@v4
23
23
  with:
24
24
  node-version-file: 'package.json'
25
25
 
@@ -30,7 +30,7 @@ jobs:
30
30
  echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
31
31
 
32
32
  - name: Cache node modules
33
- uses: actions/cache@v3
33
+ uses: actions/cache@v4
34
34
  with:
35
35
  path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
36
36
  key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -39,7 +39,7 @@ jobs:
39
39
 
40
40
  - name: Cache Cypress binary
41
41
  id: cypress-cache
42
- uses: actions/cache@v3
42
+ uses: actions/cache@v4
43
43
  with:
44
44
  path: ~/.cache/Cypress
45
45
  key: cypress-${{ runner.os }}-cypress-${{ hashFiles('**/pnpm-lock.yaml') }}
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 16.13.0
1
+ 18.19.1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # playroom
2
2
 
3
+ ## 0.37.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 94c75f8: Add "Find", "Find and replace", and "Jump to line" functionality.
8
+
9
+ Keybindings for these new commands are:
10
+
11
+ - `Cmd + F` / `Ctrl + F` - Find
12
+ - `Cmd + Option + F` / `Ctrl + Alt + F` - Find and replace
13
+ - `Cmd + G` / `Ctrl + G` - Jump to line
14
+
15
+ ### Patch Changes
16
+
17
+ - 71f694a: Fix issue with "Toggle comment" command commenting certain code outside JSX tags with incorrect syntax.
18
+
19
+ ## 0.36.0
20
+
21
+ ### Minor Changes
22
+
23
+ - c3f0373: Drop support for Node versions <18.12.0
24
+ - 90edcc8: Add keybinding for copying Playroom link to clipboard with <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>C</kbd> (or, on Windows, <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>C</kbd>).
25
+ - c99cc30: Add keybinding to toggle comment syntax for the current selection.
26
+
27
+ Pressing <kbd>Cmd</kbd> + <kbd>/</kbd> (or, on Windows, <kbd>Ctrl</kbd> + <kbd>/</kbd>) will toggle comment syntax for the currently selected text.
28
+ If no text is selected, the line the cursor is on will toggle comment syntax.
29
+
30
+ ### Patch Changes
31
+
32
+ - dd95719: Add 'Insert snippet' shortcut to 'Keyboard Shortcuts' list in settings panel for better discoverability.
33
+ - cad1ded: Remove dependency on `current-git-branch` package
34
+ - 0215bb4: Replace `query-string` dependency with `URLSearchParams`
35
+ - 6ad5895: Update shortcut format for Windows users for consistency with standard styling.
36
+ - cb3c427: In the Settings Panel, sort keyboard shortcuts order by most frequently and widely used. Related shortcuts are grouped together.
37
+ - b1766c2: Move Title setting from Settings Panel to Frame Panel to group current playroom settings together and improve discoverability.
38
+
39
+ Now, all settings that affect the current playroom tab live in the Frame Panel.
40
+ Settings affecting all playroom tabs live in the Settings Panel.
41
+
42
+ - 41e8cfa: Fix an issue where new Playroom tabs without a set title would load a recently used title.
43
+ - 134c5a4: Upgrade `webpack-dev-server` to v5
44
+ - c3f0373: Update dependencies
45
+ - f88a4e6: Fix async import of playroom config on Windows
46
+
3
47
  ## 0.35.0
4
48
 
5
49
  ### Minor Changes
package/bin/cli.cjs CHANGED
@@ -4,6 +4,7 @@ const commandLineArgs = require('command-line-args');
4
4
  const commandLineUsage = require('command-line-usage');
5
5
  const findUp = require('find-up');
6
6
  const lib = require('../lib');
7
+ const url = require('url');
7
8
 
8
9
  const showUsage = () => {
9
10
  console.log(
@@ -65,7 +66,7 @@ const showUsage = () => {
65
66
  process.exit(1);
66
67
  }
67
68
 
68
- const { default: config } = await import(configPath);
69
+ const { default: config } = await import(url.pathToFileURL(configPath));
69
70
 
70
71
  const playroom = lib({
71
72
  cwd: path.dirname(configPath),
@@ -21,7 +21,7 @@ describe('Editor', () => {
21
21
  });
22
22
 
23
23
  it('autocompletes', () => {
24
- typeCode('<F{enter} c{enter}={downarrow}{enter} />');
24
+ typeCode('<F{enter} c{enter}={downarrow}{enter} />', { delay: 100 });
25
25
  assertFirstFrameContains('Foo');
26
26
  assertCodePaneContains('<Foo color="blue" />');
27
27
  });