@lumiastream/ui 0.2.8-alpha.6 → 0.2.8-alpha.7

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.
package/dist/index.d.ts CHANGED
@@ -498,7 +498,8 @@ type OverlayLayerBounds = {
498
498
  zIndex?: number;
499
499
  matrix?: string;
500
500
  clipPath?: string;
501
- autoSize?: boolean;
501
+ autoWidth?: boolean;
502
+ autoHeight?: boolean;
502
503
  };
503
504
  type OverlayLayerState = {
504
505
  id: string;
package/dist/index.js CHANGED
@@ -2292,7 +2292,7 @@ function variableCompletionOptions(context, variables) {
2292
2292
  }
2293
2293
 
2294
2294
  // src/utils/codeMirrorlinterOptions.ts
2295
- import * as globals from "globals";
2295
+ import globals from "globals";
2296
2296
  var browserGlobals = Object.fromEntries(
2297
2297
  Object.entries(globals.browser).map(([key, value]) => [
2298
2298
  key,
@@ -3265,7 +3265,8 @@ function seCssToBounds(css, defaults = { width: 600, height: 200 }, canvas) {
3265
3265
  };
3266
3266
  const width = toPx(css.width, defaults.width, "width");
3267
3267
  const height = toPx(css.height, defaults.height, "height");
3268
- const autoSize = widthIsAuto || heightIsAuto;
3268
+ const autoWidth = widthIsAuto;
3269
+ const autoHeight = heightIsAuto;
3269
3270
  let x = toPx(css.left, 0, "width");
3270
3271
  let y = toPx(css.top, 0, "height");
3271
3272
  if (typeof css.transform === "string" && css.transform.includes("translate")) {
@@ -3292,7 +3293,8 @@ function seCssToBounds(css, defaults = { width: 600, height: 200 }, canvas) {
3292
3293
  height,
3293
3294
  opacity: css.opacity ?? 1,
3294
3295
  zIndex: css["z-index"] ?? 0,
3295
- autoSize
3296
+ autoWidth,
3297
+ autoHeight
3296
3298
  };
3297
3299
  }
3298
3300
  var LUMIA_DEFAULT_SIZES = {
@@ -3302,7 +3304,11 @@ var LUMIA_DEFAULT_SIZES = {
3302
3304
  audio: { width: 200, height: 200 },
3303
3305
  slideshow: { width: 400, height: 220 },
3304
3306
  alert: { width: 700, height: 600 },
3305
- goal: { width: 740, height: 80 },
3307
+ // 80 was too short for the SE-style slim goal layout (label + bar + "Ends
3308
+ // in" sublabel needs ~125 px of vertical space). Bumped so editor-canvas
3309
+ // rendering (which doesn't honor autoHeight) doesn't clip the sublabel
3310
+ // after import.
3311
+ goal: { width: 740, height: 130 },
3306
3312
  timer: { width: 740, height: 80 },
3307
3313
  chatbox: { width: 375, height: 470 },
3308
3314
  eventlist: { width: 375, height: 470 },
@@ -3365,10 +3371,12 @@ function buildUnit(widget, lumiaType, moduleExtras) {
3365
3371
  scale: [1, 1],
3366
3372
  opacity: bounds.opacity,
3367
3373
  zIndex: bounds.zIndex,
3368
- // Carried over only when at least one axis was `auto` in the
3369
- // source SE widget text layers in particular want this so they
3370
- // don't import as a 600x200 empty box.
3371
- ...bounds.autoSize ? { autoSize: true } : {}
3374
+ // Per-axis flags only the SE axis that was actually `auto`
3375
+ // collapses in render. The SE cheer goal is the canonical case:
3376
+ // width: "700px" + height: "auto" numeric width stays at 700,
3377
+ // height collapses to content.
3378
+ ...bounds.autoWidth ? { autoWidth: true } : {},
3379
+ ...bounds.autoHeight ? { autoHeight: true } : {}
3372
3380
  }
3373
3381
  };
3374
3382
  const module = {
@@ -3399,7 +3407,7 @@ function seExtraTextCss(seCss, scrolling) {
3399
3407
  if (scrolling?.enabled) {
3400
3408
  extra.scroll = true;
3401
3409
  const speed = Number(scrolling.speed);
3402
- if (Number.isFinite(speed) && speed > 0) extra.scrollSpeed = speed * 1e3;
3410
+ if (Number.isFinite(speed) && speed > 0) extra.scrollSpeed = speed * 600;
3403
3411
  }
3404
3412
  return extra;
3405
3413
  }
@@ -5004,6 +5012,7 @@ var SEAuthError = class extends Error {
5004
5012
  this.code = code;
5005
5013
  this.name = "SEAuthError";
5006
5014
  }
5015
+ code;
5007
5016
  };
5008
5017
  function decodeBase64Url(s) {
5009
5018
  const b64 = s.replace(/-/g, "+").replace(/_/g, "/");
@@ -5045,6 +5054,7 @@ var SEClient = class _SEClient {
5045
5054
  constructor(claims) {
5046
5055
  this.claims = claims;
5047
5056
  }
5057
+ claims;
5048
5058
  static fromJwt(jwt) {
5049
5059
  return new _SEClient(decodeJwtPayload(jwt));
5050
5060
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@lumiastream/ui",
3
- "version": "0.2.8-alpha.6",
3
+ "version": "0.2.8-alpha.7",
4
4
  "author": "Lumia Stream",
5
5
  "license": "ISC",
6
6
  "description": "Lumia UI Kit",
7
- "packageManager": "pnpm@10.32.1",
7
+ "packageManager": "npm@11.9.0",
8
8
  "type": "module",
9
9
  "main": "dist/index.js",
10
10
  "module": "dist/index.js",
@@ -23,23 +23,35 @@
23
23
  "build": "tsup src/index.ts",
24
24
  "build-storybook": "storybook build",
25
25
  "watch": "tsup src/index.ts --watch",
26
- "release": "changeset && changeset tag && pnpm build && pnpm publish",
27
- "prepublishOnly": "pnpm build",
28
- "postpublish": "pnpm store prune && node ./scripts/postpublish-install.mjs"
26
+ "release": "changeset && changeset tag && npm run build && npm publish",
27
+ "prepublishOnly": "npm run build",
28
+ "postpublish": "npm cache clean --force && node ./scripts/postpublish-install.mjs"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@codemirror/autocomplete": "^6.0.0",
32
+ "@emotion/react": "^11.14.0",
33
+ "@emotion/styled": "^11.14.1",
34
+ "@mui/icons-material": "^9.0.0",
35
+ "@mui/material": "^9.0.0",
32
36
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
33
- "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
37
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
38
+ "react-hook-form": "^7.62.0"
34
39
  },
35
40
  "devDependencies": {
36
41
  "@codemirror/autocomplete": "^6.20.1",
42
+ "@emotion/react": "^11.14.0",
43
+ "@emotion/styled": "^11.14.1",
44
+ "@mui/icons-material": "^9.0.0",
45
+ "@mui/material": "^9.0.0",
37
46
  "@storybook/builder-vite": "^10.2.17",
38
47
  "@storybook/react-vite": "^10.2.17",
39
48
  "@types/node": "^25.5.0",
40
49
  "@types/react": "^19.2.14",
41
50
  "@types/react-dom": "19.2.3",
42
51
  "postcss": "^8.5.8",
52
+ "react": "^19.2.0",
53
+ "react-dom": "^19.2.0",
54
+ "react-hook-form": "^7.73.1",
43
55
  "sass-embedded": "^1.99.0",
44
56
  "storybook": "^10.2.17",
45
57
  "tsup": "^8.5.1",
@@ -47,16 +59,11 @@
47
59
  "vite": "^8.0.8"
48
60
  },
49
61
  "dependencies": {
50
- "@emotion/react": "^11.14.0",
51
- "@emotion/styled": "^11.14.1",
52
62
  "@lumiastream/lumia-translations": "1.15.4",
53
- "@lumiastream/lumia-types": "^3.2.7",
54
- "@mui/icons-material": "^9.0.0",
55
- "@mui/material": "^9.0.0",
63
+ "@lumiastream/lumia-types": "^3.3.7-alpha.2",
56
64
  "classnames": "^2.5.1",
57
65
  "globals": "^17.4.0",
58
66
  "nanoid": "^5.1.11",
59
- "react-best-gradient-color-picker": "^3.0.14",
60
- "react-hook-form": "^7.73.1"
67
+ "react-best-gradient-color-picker": "^3.0.14"
61
68
  }
62
69
  }