@getorrery/ui 0.3.1 → 0.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getorrery/ui",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "The shared Angular components of every Orrery front end (decision 0010): icon, status, containers, file tree, diff, code and the changes panel. Built on kouji-ui; draws the .o-* classes of @getorrery/styles.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -19,7 +19,7 @@
19
19
  "directory": "ui/angular"
20
20
  },
21
21
  "dependencies": {
22
- "@getorrery/styles": "^0.3.1",
22
+ "@getorrery/styles": "^0.3.3",
23
23
  "tslib": "^2.8.1"
24
24
  },
25
25
  "peerDependencies": {
@@ -1445,6 +1445,13 @@ export declare class OrrCodeComponent {
1445
1445
  * per-language `basic-languages` contributions, themselves lazy chunks.
1446
1446
  */
1447
1447
  type MonacoApi = typeof monacoApi;
1448
+ /**
1449
+ * Hand Monaco the app's worker, once, before the first editor. The app must own it: Angular only
1450
+ * bundles a `new Worker(new URL(...))` written in the app's own source, never one inside a package,
1451
+ * so a worker here would 404 and every diff would stay uncoloured.
1452
+ * `setMonacoWorker(() => new Worker(new URL("./monaco.worker", import.meta.url), { type: "module" }))`
1453
+ */
1454
+ export declare function setMonacoWorker(make: () => Worker): void;
1448
1455
  /** Load (once) the Monaco editor core; retries are possible after a failure. */
1449
1456
  export declare function loadMonaco(): Promise<MonacoApi>;
1450
1457
  /** Resolve a CSS design token to a Monaco-safe #rrggbb(aa) hex, or undefined. */
@@ -2029,8 +2036,8 @@ export declare const OrrLogo: {
2029
2036
  resolve(el: any): any;
2030
2037
  light(el: any): boolean;
2031
2038
  state(v: any): any;
2032
- /** markup for one mark: { css, defs, body } in a 200-unit box (memoised) */
2033
- draw(logo: any, state: any, type: any, light: any, color: any, shader: any): any;
2039
+ /** markup for one mark: { css, defs, body } in a 200-unit box (memoised); `grid`: squares across it, pixel type only, 20 by default */
2040
+ draw(logo: any, state: any, type: any, light: any, color: any, shader: any, grid: any): any;
2034
2041
  word(logo: any, state: any, light: any, color: any): any;
2035
2042
  /** switch the mark everywhere in this document */
2036
2043
  use(logo: any): void;