limber-ui 4.0.1 → 4.1.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.
package/README.md ADDED
@@ -0,0 +1,4 @@
1
+ # limber-ui
2
+
3
+
4
+ Docs: https://limber.glimdown.com/docs/embedding
@@ -60,13 +60,13 @@ interface Signature {
60
60
  /**
61
61
  * If set to true, the preview code shown before the editor loads will not have highlighting enabled. This option has no affect when the editor is forced to eagerly load.
62
62
  */
63
- nohighlight?: boolean;
63
+ nohighlight?: boolean | 'false' | 'true' | '0' | '1';
64
64
  /**
65
65
  * Sets whether or not the output area should be rendered within a shadow-dom. The default is to render the output in a shadow-dom (true).
66
66
  *
67
67
  * Changing this can be helpful if importing a library only knows how to mutate the document's head (for styles or otherwise)
68
68
  */
69
- shadowdom?: boolean;
69
+ shadowdom?: boolean | 'false' | 'true' | '0' | '1';
70
70
  };
71
71
  }
72
72
  export default class Code extends Component<Signature> {
@@ -82,7 +82,7 @@ export default class Code extends Component<Signature> {
82
82
  get liveData(): {
83
83
  code: string;
84
84
  format: AllowedFormat;
85
- shadowdom: boolean | undefined;
85
+ shadowdom: boolean | "false" | "true" | "0" | "1" | undefined;
86
86
  };
87
87
  triggerLoad: () => void;
88
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../src/code.gts"],"names":[],"mappings":"AAqOA,OAAO,YAAY,CAAC;AAEpB,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAQ3C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,KAAK,aAAa,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;AAGlF,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAWrD,UAAU,SAAS;IACjB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE;QACJ;;WAEG;QACH,IAAI,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WrD,UAAU,SAAS;IACjB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE;QACJ;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;;;;;;;;;WAUG;QACH,MAAM,CAAC,EAAE,aAAa,CAAC;QAEvB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;;;;;WAOG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;QAEtB;;;;WAIG;QAIH;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB;;;;;;;WAOG;QACH,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;QAE3C;;WAEG;QACH,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;QAErD;;;;WAIG;QACH,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;KACpD,CAAC;CACH;AAiCD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IACvB,SAAS,EAAE,aAAa,CAAC;IAE7C,UAAU,UAAS;IAE5B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBAErB,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC;IAajD,IAAI,IAAI,YAMP;IAED,IAAI,IAAI,WAMP;IAED,IAAI,MAAM,kBAMT;IAED,IAAI,KAAK,WAMR;IAED,IAAI,KAAK,WAER;IAED,IAAI,QAAQ;;;;MAMX;IAED,WAAW,aAET;CAmDH"}
@@ -3,7 +3,7 @@ import type { Connection } from 'penpal';
3
3
  interface ParentToChildData {
4
4
  code: string;
5
5
  format: string;
6
- shadowdom: undefined | boolean;
6
+ shadowdom: undefined | boolean | string;
7
7
  }
8
8
  export declare class HostMessaging {
9
9
  frameStatus: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"frame-messaging.d.ts","sourceRoot":"","sources":["../src/frame-messaging.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEzC,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC;CAChC;AAyBD,qBAAa,aAAa;IACf,WAAW,EAAE,OAAO,CAAC;IAE9B,UAAU,CAAC,EAAE,UAAU,CAAC;QACtB,MAAM,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;KAC3C,CAAC,CAAC;IAEH;;;OAGG;IACH,WAAW;iBA7BF,iBAAiB;cACpB;YACJ,UAAU,EAAE,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;SACvC;OA0BiE;IAClE,SAAS;iBAhBgB,iBAAiB;OAyBvC;IAGG,YAAY,CAAC,IAAI,EAAE,iBAAiB;CAY3C"}
1
+ {"version":3,"file":"frame-messaging.d.ts","sourceRoot":"","sources":["../src/frame-messaging.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEzC,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;CACzC;AA2BD,qBAAa,aAAa;IACf,WAAW,EAAE,OAAO,CAAC;IAE9B,UAAU,CAAC,EAAE,UAAU,CAAC;QACtB,MAAM,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;KAC3C,CAAC,CAAC;IAEH;;;OAGG;IACH,WAAW;iBA7BF,iBAAiB;cACpB;YACJ,UAAU,EAAE,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;SACvC;OA0BiE;IAClE,SAAS;iBAhBgB,iBAAiB;OAyBvC;IAGG,YAAY,CAAC,IAAI,EAAE,iBAAiB;CAY3C"}
package/dist/index.js CHANGED
@@ -153,7 +153,7 @@ class Code extends Component {
153
153
  * URL / code.
154
154
  */
155
155
  static {
156
- setComponentTemplate(precompileTemplate("\n {{#if this.load}}\n <iframe loading=\"lazy\" data-lines=\"{{this.lines}}\" {{this.messaging.postMessage this.liveData}} {{this.messaging.onMessage}} title={{this.title}} src={{htmlSafe (INITIAL_URL this.initialData)}} style={{htmlSafe (defaultStyle this.lines)}} ...attributes>\n </iframe>\n {{else}}\n <div class=\"limber__code__click-to-load\">\n <button class=\"limber__code__click-to-load__button\" type=\"button\" {{on \"click\" this.triggerLoad}}>\n Click to Load REPL\n </button>\n </div>\n {{/if}}\n ", {
156
+ setComponentTemplate(precompileTemplate("{{#if this.load}}\n <iframe loading=\"lazy\" data-lines=\"{{this.lines}}\" {{this.messaging.postMessage this.liveData}} {{this.messaging.onMessage}} title={{this.title}} src={{htmlSafe (INITIAL_URL this.initialData)}} style={{htmlSafe (defaultStyle this.lines)}} ...attributes>\n </iframe>\n{{else}}\n <div class=\"limber__code__click-to-load\">\n <button class=\"limber__code__click-to-load__button\" type=\"button\" {{on \"click\" this.triggerLoad}}>\n Click to Load REPL\n </button>\n </div>\n{{/if}}", {
157
157
  strictMode: true,
158
158
  scope: () => ({
159
159
  htmlSafe,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "limber-ui",
3
- "version": "4.0.1",
3
+ "version": "4.1.0",
4
4
  "description": "Components for interacting with the Limber REPL",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -19,42 +19,42 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "@ember/test-waiters": "^4.1.1",
22
- "@embroider/addon-shim": "1.10.0",
22
+ "@embroider/addon-shim": "1.10.2",
23
23
  "@glimmer/component": "^2.0.0",
24
- "decorator-transforms": "^2.2.2",
24
+ "decorator-transforms": "2.3.1",
25
25
  "ember-modifier": "^4.2.2",
26
26
  "penpal": "^6.2.2",
27
- "reactiveweb": "^1.9.0"
27
+ "reactiveweb": "1.9.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@babel/core": "^7.28.3",
30
+ "@babel/core": "^7.28.5",
31
31
  "@babel/plugin-proposal-class-properties": "^7.18.6",
32
32
  "@babel/plugin-proposal-decorators": "^7.28.0",
33
33
  "@babel/plugin-syntax-decorators": "^7.27.1",
34
- "@babel/plugin-transform-typescript": "^7.26.8",
35
- "@babel/preset-typescript": "^7.27.1",
36
- "@ember/library-tsconfig": "^1.1.3",
34
+ "@babel/plugin-transform-typescript": "^7.28.5",
35
+ "@babel/preset-typescript": "^7.28.5",
36
+ "@ember/library-tsconfig": "^2.0.0",
37
37
  "@embroider/addon-dev": "^8.1.0",
38
- "@glint/ember-tsc": "^1.0.3",
38
+ "@glint/ember-tsc": "^1.0.9",
39
39
  "@glint/template": "^1.6.1",
40
- "@glint/tsserver-plugin": "^2.0.3",
41
- "@nullvoxpopuli/eslint-configs": "^5.3.4",
42
- "@rollup/plugin-babel": "^6.0.4",
43
- "babel-plugin-ember-template-compilation": "^2.4.1",
40
+ "@glint/tsserver-plugin": "^2.0.9",
41
+ "@nullvoxpopuli/eslint-configs": "^5.4.0",
42
+ "@rollup/plugin-babel": "^6.1.0",
43
+ "babel-plugin-ember-template-compilation": "^3.0.1",
44
44
  "concurrently": "^9.2.1",
45
45
  "ember-async-data": "2.0.1",
46
- "ember-primitives": "^0.40.0",
46
+ "ember-primitives": "^0.51.0",
47
47
  "ember-resources": "^7.0.7",
48
- "ember-source": ">= 6.8.0-alpha.7",
48
+ "ember-source": "^6.10.0",
49
49
  "ember-template-lint": "^7.9.3",
50
- "eslint": "^9.34.0",
51
- "execa": "^9.5.2",
52
- "fix-bad-declaration-output": "^1.1.4",
53
- "prettier": "^3.6.2",
54
- "prettier-plugin-ember-template-tag": "2.1.0",
55
- "rollup": "^4.50.0",
50
+ "eslint": "^9.39.1",
51
+ "execa": "^9.6.1",
52
+ "fix-bad-declaration-output": "^1.1.5",
53
+ "prettier": "^3.7.4",
54
+ "prettier-plugin-ember-template-tag": "2.1.2",
55
+ "rollup": "^4.53.3",
56
56
  "rollup-plugin-copy": "^3.5.0",
57
- "typescript": "5.8.3"
57
+ "typescript": "5.9.3"
58
58
  },
59
59
  "publishConfig": {
60
60
  "registry": "https://registry.npmjs.org",