Skip to content

Commit

Permalink
chore: Update dependencies (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
zjxxxxxxxxx authored Dec 1, 2024
1 parent 52569f2 commit 3fc07c9
Show file tree
Hide file tree
Showing 8 changed files with 893 additions and 589 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 18.x
cache: pnpm

- name: Install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 18.x
cache: pnpm

- name: Install
Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@
"concurrently": "^8.2.0",
"consola": "^3.2.3",
"enquirer": "^2.4.1",
"esbuild-register": "^3.4.2",
"esbuild": "^0.24.0",
"esbuild-register": "^3.6.0",
"eslint": "^8.47.0",
"esno": "^0.17.0",
"esno": "^4.8.0",
"fast-glob": "^3.3.1",
"lint-staged": "^13.3.0",
"magic-string": "^0.30.5",
Expand Down Expand Up @@ -87,8 +88,5 @@
"packages/*/src/**/*.{ts,tsx}": [
"eslint --cache --fix"
]
},
"dependencies": {
"esbuild": "^0.18.20"
}
}
4 changes: 4 additions & 0 deletions packages/client/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/// <reference types="../../scripts/types.d.ts" />

declare interface Window {
__OPEN_EDITOR_SETUPED__?: boolean;
}

declare interface HTMLInspectorElement extends HTMLElement {}
4 changes: 3 additions & 1 deletion packages/client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import { setupUI } from './ui';
export { Options };

export function setupClient(opts: Options) {
if (IS_CLIENT) {
if (IS_CLIENT && !window.__OPEN_EDITOR_SETUPED__) {
window.__OPEN_EDITOR_SETUPED__ = true;

on('DOMContentLoaded', () => {
setOptions(opts);
setupBridge();
Expand Down
1 change: 0 additions & 1 deletion packages/client/src/inspector/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export function setupInspector() {
on('pointermove', () => inspectorActiveBridge.emit([CURRENT_INSPECT_ID]), {
capture: true,
});

on(
'keydown',
(e) => {
Expand Down
3 changes: 1 addition & 2 deletions packages/client/src/ui/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { TreeUI } from './TreeUI';

export function setupUI() {
const { crossIframe, displayToggle } = getOptions();

if ((crossIframe && !isTopWindow) || document.querySelector(HTML_INSPECTOR_ELEMENT)) {
if (crossIframe && !isTopWindow) {
return;
}

Expand Down
Loading

0 comments on commit 3fc07c9

Please sign in to comment.