@popcorn245/cornfield-components 0.50.0 → 0.50.1

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.
@@ -78,7 +78,6 @@ function e() {
78
78
  scenario: null,
79
79
  forgeLit: null,
80
80
  runsMap: null,
81
- threadIndex: null,
82
81
  sceneVersion: 0
83
82
  };
84
83
  }
@@ -218,6 +217,9 @@ function n({ root: n = null, base: r = "", fetch: i, strings: a = {}, state: o }
218
217
  },
219
218
  onWindowFocus: (e) => l ? O.listen(l, "focus", () => e()) : () => {},
220
219
  onPageHide: (e) => l ? O.listen(l, "pagehide", () => e()) : () => {},
220
+ onResize: (e) => l ? O.listen(l, "resize", () => e()) : () => {},
221
+ onPageShow: (e) => l ? O.listen(l, "pageshow", () => e()) : () => {},
222
+ onPageFocus: (e) => c ? O.listen(c, "focusin", (t) => e(t)) : () => {},
221
223
  onHide(e) {
222
224
  return c ? O.listen(c, "visibilitychange", () => {
223
225
  O.hidden() && e();
@@ -1,5 +1,5 @@
1
1
  import { n as e, r as t, t as n } from "./runtime-DFu6W5g-.js";
2
- import { $ as r, B as i, C as a, D as o, E as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, T as S, U as C, V as w, W as T, X as E, Z as D, _ as O, a as k, b as A, c as j, ct as M, d as N, et as P, f as F, g as I, h as ee, it as te, j as L, k as R, l as ne, lt as z, m as B, mt as V, nt as H, o as U, p as re, pt as W, q as G, rt as ie, s as ae, t as oe, tt as se, ut as ce, v as le, w as ue, x as de, y as fe, z as pe } from "./_corn-default-tokens-BpIL6q5N.js";
2
+ import { $ as r, B as i, C as a, D as o, E as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, T as S, U as C, V as w, W as T, X as E, Z as D, _ as O, a as k, b as A, c as j, ct as M, d as N, et as P, f as F, g as I, h as ee, it as te, j as L, k as R, l as ne, lt as z, m as B, mt as V, nt as H, o as U, p as re, pt as W, q as G, rt as ie, s as ae, t as oe, tt as se, ut as ce, v as le, w as ue, x as de, y as fe, z as pe } from "./_corn-default-tokens-DfrjTpZt.js";
3
3
  var K = 96, me = "letters:", he = (e) => `${me}${e}`, ge = (e) => typeof e == "string" && e.startsWith(me), _e = (e) => e.slice(8), ve = (e, t) => !!e.letters && !e.icon && e.r * 2 * t >= 14, ye = /* @__PURE__ */ new Map();
4
4
  function be(e, t = null) {
5
5
  if (typeof e != "string" || !e) return null;
@@ -2360,7 +2360,7 @@ function yn(e, t, n = {}) {
2360
2360
  }
2361
2361
  function bn(e, t) {
2362
2362
  let n = e.nodeType === 11 ? e.host : e, r = {}, i = null, a = !1;
2363
- return import("./scope-CmIkJ1qf.js").then((e) => e.n).then(({ mountScope: o }) => {
2363
+ return import("./scope-HD2C0JDl.js").then((e) => e.n).then(({ mountScope: o }) => {
2364
2364
  if (a) return;
2365
2365
  let s = o(n, {
2366
2366
  src: t.src,
@@ -2630,7 +2630,7 @@ var Sn = () => "[data-corn=map-stage]{background:var(--corn-ground-image), var(-
2630
2630
  tokens: oe,
2631
2631
  src: this.src,
2632
2632
  useTheme: this.useTheme,
2633
- version: "0.50.0",
2633
+ version: "0.50.1",
2634
2634
  pageUrl: () => typeof location > "u" ? "" : location.href,
2635
2635
  onAuth: (e) => this.cornAuth.emit(e),
2636
2636
  onError: (e) => this.cornError.emit(e),
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./rolldown-runtime-CGnMp29N.js";
2
- import { at as t, dt as n, ft as r, i, mt as a, n as o, ot as s, pt as c, r as l, rt as u, s as d, st as f, u as p, w as m } from "./_corn-default-tokens-BpIL6q5N.js";
2
+ import { at as t, dt as n, ft as r, i, mt as a, n as o, ot as s, pt as c, r as l, rt as u, s as d, st as f, u as p, w as m } from "./_corn-default-tokens-DfrjTpZt.js";
3
3
  // ../explorer/engine/layers.js
4
4
  var h = (e) => e.match && e.match.type ? [].concat(e.match.type) : [], g = {
5
5
  flow: "#fb923c",
package/dist/corn-map.js CHANGED
@@ -1 +1 @@
1
- export { t as CornMap } from "./chunks/corn-map-CMNEW1lH.js";
1
+ export { t as CornMap } from "./chunks/corn-map-Bd7PO6yD.js";
@@ -1,6 +1,6 @@
1
1
  import { n as e, r as t, t as n } from "./chunks/runtime-DFu6W5g-.js";
2
- import { t as r } from "./chunks/scope-CmIkJ1qf.js";
3
- import { t as i } from "./chunks/_corn-default-tokens-BpIL6q5N.js";
2
+ import { t as r } from "./chunks/scope-HD2C0JDl.js";
3
+ import { t as i } from "./chunks/_corn-default-tokens-DfrjTpZt.js";
4
4
  // src/components/corn-scope/corn-scope.tsx
5
5
  var a = class extends n {
6
6
  constructor(t) {
@@ -38,7 +38,7 @@ var a = class extends n {
38
38
  config: this.config,
39
39
  strings: this.strings,
40
40
  tokens: i,
41
- version: "0.50.0",
41
+ version: "0.50.1",
42
42
  pageUrl: () => typeof location > "u" ? "" : location.href,
43
43
  onReady: () => this.cornReady.emit(),
44
44
  onAuth: (e) => this.cornAuth.emit(e),
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { t as e } from "./chunks/corn-map-CMNEW1lH.js";
1
+ import { t as e } from "./chunks/corn-map-Bd7PO6yD.js";
2
2
  import { CornScope as t } from "./corn-scope.js";
3
3
  // src/index.ts
4
- var n = "0.50.0";
4
+ var n = "0.50.1";
5
5
  export { e as CornMap, t as CornScope, n as version };
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@popcorn245/cornfield-components",
3
- "cornfield": "0.50.0",
3
+ "cornfield": "0.50.1",
4
4
  "files": [
5
5
  {
6
- "path": "chunks/_corn-default-tokens-BpIL6q5N.js",
7
- "bytes": 141821,
8
- "sha256": "5434c88c1a4d57c43deaf90d5fd2aedcfe12a106b19e5b463e68af97baa5fee4"
6
+ "path": "chunks/_corn-default-tokens-DfrjTpZt.js",
7
+ "bytes": 142014,
8
+ "sha256": "1d8cd96b3fc891679898e0c5062e978ff590c33345666ac6253590919f949657"
9
9
  },
10
10
  {
11
- "path": "chunks/corn-map-CMNEW1lH.js",
11
+ "path": "chunks/corn-map-Bd7PO6yD.js",
12
12
  "bytes": 94825,
13
- "sha256": "3de1ed7d92bd9f0a7a36fb3b52c43360b8b92ab5f0e5b81cda0f615b0f810881"
13
+ "sha256": "4ae154ba31412f99da0cfeeaf83cea781dae8dbfc76efcc68acffedd4407e2f2"
14
14
  },
15
15
  {
16
16
  "path": "chunks/rolldown-runtime-CGnMp29N.js",
@@ -23,24 +23,24 @@
23
23
  "sha256": "47327281b56616b00075dd5e4b52c0142fc3414509eb8258d9b98c8b56fc372d"
24
24
  },
25
25
  {
26
- "path": "chunks/scope-CmIkJ1qf.js",
26
+ "path": "chunks/scope-HD2C0JDl.js",
27
27
  "bytes": 26321,
28
- "sha256": "62e01d60f0e5c61b95a613e87bdbfe8c6d5fffa842b0e0477e0b21f92a9a2c6d"
28
+ "sha256": "7113aad6c230c9c7273cbbf30918b993f6141fbcf6487ee2c3b6e53dbcb3d864"
29
29
  },
30
30
  {
31
31
  "path": "corn-map.js",
32
32
  "bytes": 62,
33
- "sha256": "fba1f365bb4a73cf110696b4dcc3dc280b4ecc051838df29b3c29fad6c544d57"
33
+ "sha256": "6a8ad8370d2718f03d2b2829429a485f04a19cb5bc3b80a45a3e33beab13eed7"
34
34
  },
35
35
  {
36
36
  "path": "corn-scope.js",
37
37
  "bytes": 1891,
38
- "sha256": "ade0e4daabd5dc82ad0d07b0852dd6d2c13e672ddad835d26b13f0923536fb37"
38
+ "sha256": "ee292dcbcffe996991e7acf3ab06a195c3ccfe20235858cb3d08b47143b07b41"
39
39
  },
40
40
  {
41
41
  "path": "index.js",
42
42
  "bytes": 195,
43
- "sha256": "6e2dfd9a36b2c5d4375f8a5dcc786d922df8d9022fead6af7f4e24e28a55c654"
43
+ "sha256": "914e13d675aaebf5c4e767c0f1ea0f58433f5cf8634b00f6750e6c4a9d15e0f5"
44
44
  },
45
45
  {
46
46
  "path": "tokens.css",
@@ -70,7 +70,7 @@
70
70
  {
71
71
  "path": "version.json",
72
72
  "bytes": 65,
73
- "sha256": "720a276bfefb55a8d1868eabf9a49b1c5a1b24afe17fc643c1f48ce463283e3d"
73
+ "sha256": "faf1c1a4214c40217b5f38c3c610c2e8c45cdd77bb145442f33afc126ffa1b98"
74
74
  }
75
75
  ]
76
76
  }
package/dist/version.json CHANGED
@@ -1 +1 @@
1
- {"name":"@popcorn245/cornfield-components","cornfield":"0.50.0"}
1
+ {"name":"@popcorn245/cornfield-components","cornfield":"0.50.1"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popcorn245/cornfield-components",
3
- "version": "0.50.0",
3
+ "version": "0.50.1",
4
4
  "description": "cornfield's interface as web components (spec 0011): <corn-map> and what follows, thin StencilRS shells over the engine in cornfield. The same files are served by every cornfield server at /cornfield/components/.",
5
5
  "license": "MIT",
6
6
  "author": "popcorn245 (https://github.com/popcorn245)",