@jsenv/plugin-toolbar 1.1.0 → 1.2.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.
@@ -621,7 +621,7 @@ c("unmount", (t, i) => {
621
621
  t(i);
622
622
  });
623
623
  c("__h", (t, i, e, n) => {
624
- if (n < 3) i.__$f |= 2;
624
+ if (n < 3 || 9 === n) i.__$f |= 2;
625
625
  t(i, e, n);
626
626
  });
627
627
  function useSignal(t) {
@@ -14,18 +14,18 @@ const jsenvPluginToolbar = ({
14
14
  name: "jsenv:toolbar",
15
15
  appliesDuring: "dev",
16
16
  transformUrlContent: {
17
- html: (urlInfo, context) => {
17
+ html: urlInfo => {
18
18
  if (urlInfo.url.startsWith(toolbarHtmlClientFileUrl)) {
19
19
  urlInfo.data.isJsenvToolbar = true;
20
20
  return null;
21
21
  }
22
22
  const htmlAst = parseHtmlString(urlInfo.content);
23
- const [toolbarInjectorReference] = context.referenceUtils.inject({
23
+ const toolbarInjectorReference = urlInfo.dependencies.inject({
24
24
  type: "js_import",
25
25
  expectedType: "js_module",
26
26
  specifier: toolbarInjectorClientFileUrl
27
27
  });
28
- const [toolbarClientFileReference] = context.referenceUtils.inject({
28
+ const toolbarClientFileReference = urlInfo.dependencies.inject({
29
29
  type: "iframe_src",
30
30
  expectedType: "html",
31
31
  specifier: toolbarHtmlClientFileUrl
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-toolbar",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,8 +26,8 @@
26
26
  "/src/"
27
27
  ],
28
28
  "dependencies": {
29
- "@jsenv/ast": "4.1.0",
30
- "@preact/signals": "1.1.3"
29
+ "@jsenv/ast": "5.0.0",
30
+ "@preact/signals": "1.1.5"
31
31
  },
32
32
  "scripts": {
33
33
  "eslint": "npx eslint . --ext=.js,.mjs,.cjs,.html",
@@ -26,18 +26,18 @@ export const jsenvPluginToolbar = ({
26
26
  name: "jsenv:toolbar",
27
27
  appliesDuring: "dev",
28
28
  transformUrlContent: {
29
- html: (urlInfo, context) => {
29
+ html: (urlInfo) => {
30
30
  if (urlInfo.url.startsWith(toolbarHtmlClientFileUrl)) {
31
31
  urlInfo.data.isJsenvToolbar = true;
32
32
  return null;
33
33
  }
34
34
  const htmlAst = parseHtmlString(urlInfo.content);
35
- const [toolbarInjectorReference] = context.referenceUtils.inject({
35
+ const toolbarInjectorReference = urlInfo.dependencies.inject({
36
36
  type: "js_import",
37
37
  expectedType: "js_module",
38
38
  specifier: toolbarInjectorClientFileUrl,
39
39
  });
40
- const [toolbarClientFileReference] = context.referenceUtils.inject({
40
+ const toolbarClientFileReference = urlInfo.dependencies.inject({
41
41
  type: "iframe_src",
42
42
  expectedType: "html",
43
43
  specifier: toolbarHtmlClientFileUrl,