diff --git a/dist/LiveCode.d.ts b/dist/LiveCode.d.ts index 0def27d..433cc4f 100644 --- a/dist/LiveCode.d.ts +++ b/dist/LiveCode.d.ts @@ -12,6 +12,17 @@ declare const LiveCode_base: (new (...a: any[]) => { "__#1@#createEffect1"(fn: () => void): void; "__#1@#stopEffects1"(): void; "__#1@#owner": import("solid-js").Owner | null; + /** + * Only useful when `autorun` is true. When `autorun` is true, then if this + * is true, the preview will only autorun if it is visible on screen (f.e. + * not scrolled outside of the view). If this is false, then the preview + * will autorun regardless if it is visible or not. If there are a lot of + * examples on the page, running them all even if they are not visible could + * be costly, and you may want to run only the ones that are in view. + * + * When true, any live code previews that go off screen will be discarded, + * and automatically re-ran when they come back into view. + */ "__#1@#dispose": (() => void) | null; "__#1@#createEffect2"(fn: () => void): void; "__#1@#stopEffects2"(): void; diff --git a/dist/LiveCode.d.ts.map b/dist/LiveCode.d.ts.map index b3166c5..0dd013a 100644 --- a/dist/LiveCode.d.ts.map +++ b/dist/LiveCode.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"LiveCode.d.ts","sourceRoot":"","sources":["../src/LiveCode.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,OAAO,EAKP,KAAK,iBAAiB,EACtB,MAAM,eAAe,CAAA;AAKtB,OAAO,EAAC,6BAA6B,EAAkB,MAAM,gBAAgB,CAAA;AAE7E,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,YAAY,CAAA;AAG1C,qBAAa,2BAA4B,SAAQ,6BAA6B;gBACjE,IAAI,EAAE,UAAU;CAG5B;AAID,KAAK,kBAAkB,GAAG,SAAS,GAAG,KAAK,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAA;;;;;;;;;;;;AAEtG,qBAEM,QAAS,SAAQ,aAAkB;;IACxC,qCAAqC;IACpB,OAAO,SAAK;IAE7B;;;OAGG;IACc,GAAG,SAAK;IAEzB;;;;;;OAMG;IACe,WAAW,UAAO;IAEpC;;;OA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UAAO;IAEpC;;;OAGG;IACe,IAAI,UAAO;IAE7B;;;;OAIG;IACe,OAAO,UAAO;IAEhC;;;;;;;;;;OAUG;IACe,aAAa,UAAO;IAEtC;;;;;OAKG;IACc,IAAI,EAAE,eAAe,GAAG,aAAa,CAAgB;IAEtE;;;OAGG;IACc,QAAQ,SAAO;IAoEhC,iBAAiB;IAyHjB,oBAAoB;IAYpB,KAAK,aAGJ;IAQD,KAAK,aAKJ;IAOD,IAAI,aAEH;IAOD,gBAAgB,aAGf;IAmGD,IAAI,MAAM,kBAET;IAED,QAAQ,sBAuEP;IAED,GAAG,SA6LF;CACD;AAYD,OAAO,QAAQ,UAAU,CAAC;IACzB,UAAU,GAAG,CAAC;QACb,UAAU,iBAAiB;YAC1B,WAAW,EAAE,iBAAiB,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAA;SAC5D;KACD;CACD;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAA;KACrB;CACD"} \ No newline at end of file diff --git a/package.json b/package.json index 47a2d8f..353d539 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@babel/runtime": "^7.0.0", "@codemirror/lang-html": "^6.0.0", "@codemirror/lang-javascript": "^6.0.0", - "@lume/element": "^0.11.0", + "@lume/element": "^0.12.0", "@uiw/codemirror-theme-noctis-lilac": "^4.0.0", "classy-solid": "^0.3.0", "code-mirror-el": "^0.1.0", @@ -35,7 +35,7 @@ "devDependencies": { "@lume/cli": "^0.11.0", "five-server": "^0.3.1", - "lowclass": "^7.0.0", + "lowclass": "^8.0.0", "prettier": "3.0.3", "rimraf": "^5.0.1", "typescript": "^5.0.0"