@animus-ui/vite-plugin 0.1.25 → 0.1.26

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
@@ -6,7 +6,9 @@ export interface AnimusExtractOptions {
6
6
  system: string;
7
7
  /**
8
8
  * Module specifier for extracted runtime factories, default
9
- * `@animus-ui/system`. An override must supply every terminal used.
9
+ * `@animus-ui/system/runtime`, as every adapter emits. `@animus-ui/system`
10
+ * also supplies every terminal; another override must supply every
11
+ * terminal used.
10
12
  */
11
13
  runtimeImport?: string;
12
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAkC5D,MAAM,WAAW,oBAAoB;IACnC,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;+CAE2C;IAC3C,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,sEAAsE;IACtE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IAC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AAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,sEAAsE;IACtE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;IACpC;;sDAEkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;gBAEY;IACZ,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;;OAGG;IACH,mBAAmB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD;AAMD,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM,CAkInE;eAEc,aAAa"}
@@ -1,18 +1,14 @@
1
- import type { PluginContext } from './context';
2
- interface UnresolvedParentDrop {
3
- file: string;
4
- component: string;
5
- /** The parent binding as written in the consumer, not a resolved path. */
6
- parent: string;
7
- }
8
- /** The current manifest's unresolved-parent drops, parsed from diagnostics. */
9
- export declare function unresolvedParentDrops(ctx: PluginContext): UnresolvedParentDrop[];
10
- /** Files carrying an unresolved-parent drop in the current manifest. */
11
- export declare function unresolvedDropFiles(ctx: PluginContext): ReadonlySet<string>;
1
+ import type { ObservedOutcome, PluginContext } from './context';
2
+ import type { ManifestMissingInput } from '@animus-ui/extract/pipeline';
3
+ /** The current manifest's extensions dropped over their parent, by file:
4
+ * the engine's typed missing-input evidence (spec §12.2 row 11). */
5
+ export declare function droppedExtensions(ctx: PluginContext): ReadonlyMap<string, ManifestMissingInput>;
12
6
  /**
13
- * Folds undiscovered on-disk files when the manifest reports an unresolved
14
- * parent, then re-analyzes; the iteration cap is containment, not semantics.
7
+ * Folds the on-disk files the manifest's dropped extensions name as missing
8
+ * parents into the Session, in one bounded pass, and returns the outcomes
9
+ * of that attempt. A parent no file answers, or one that cannot be
10
+ * admitted, leaves its drop standing: the transform then fails rather than
11
+ * serving builder code (SA1).
15
12
  */
16
- export declare function reconcileSourceCorpus(ctx: PluginContext): Promise<boolean>;
17
- export {};
13
+ export declare function reconcileSourceCorpus(ctx: PluginContext): Promise<ObservedOutcome[]>;
18
14
  //# sourceMappingURL=rediscovery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rediscovery.d.ts","sourceRoot":"","sources":["../src/rediscovery.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG/C,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,+EAA+E;AAC/E,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,aAAa,GACjB,oBAAoB,EAAE,CAWxB;AAOD,wEAAwE;AACxE,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,GAAG,WAAW,CAAC,MAAM,CAAC,CAa3E;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,aAAa,GACjB,OAAO,CAAC,OAAO,CAAC,CAgFlB"}
1
+ {"version":3,"file":"rediscovery.d.ts","sourceRoot":"","sources":["../src/rediscovery.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,6BAA6B,CAAC;AAUrC;qEACqE;AACrE,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,aAAa,GACjB,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAS3C;AAuED;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,aAAa,GACjB,OAAO,CAAC,eAAe,EAAE,CAAC,CAyB5B"}
@@ -0,0 +1,23 @@
1
+ import type { ObservedOutcome, PluginContext } from './context';
2
+ import type { WatchChanges } from '@animus-ui/extract/session';
3
+ import type { HotUpdateOptions } from 'vite';
4
+ /** The publications of one or more Session attempts, merged. */
5
+ export interface MergedPublications {
6
+ published: boolean;
7
+ /** A full pass (a system reload) published. */
8
+ full: boolean;
9
+ endedHold: boolean;
10
+ systemPropsChanged: boolean;
11
+ planChanged: Set<string>;
12
+ redeliver: Set<string>;
13
+ }
14
+ /** The file event as a Session change set. */
15
+ export declare function changesOf(type: HotUpdateOptions['type'], absFile: string): WatchChanges;
16
+ /** What the published outcomes of one submission change, merged. */
17
+ export declare function mergePublished(outcomes: readonly ObservedOutcome[]): MergedPublications;
18
+ /** Acts on what every submission's publications owe the module graph: a
19
+ * publication that ends a hold re-delivers the originals whose bytes
20
+ * changed meanwhile, and a full pass (a system reload) reloads the
21
+ * client. */
22
+ export declare function applyPublished(ctx: PluginContext, merged: MergedPublications): void;
23
+ //# sourceMappingURL=session-outcomes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-outcomes.d.ts","sourceRoot":"","sources":["../src/session-outcomes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAE7C,gEAAgE;AAChE,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,+CAA+C;IAC/C,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACzB,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACxB;AAED,8CAA8C;AAC9C,wBAAgB,SAAS,CACvB,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAC9B,OAAO,EAAE,MAAM,GACd,YAAY,CAGd;AAED,oEAAoE;AACpE,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,SAAS,eAAe,EAAE,GACnC,kBAAkB,CAmBpB;AAED;;;cAGc;AACd,wBAAgB,cAAc,CAC5B,GAAG,EAAE,aAAa,EAClB,MAAM,EAAE,kBAAkB,GACzB,IAAI,CAUN"}
@@ -7,7 +7,7 @@ export declare function applyDevBridgeImport(code: string): string;
7
7
  /** The files defining a transitive extension of a component the given
8
8
  * analysis paths define, from the published provenance. */
9
9
  export declare function extendingFiles(ctx: PluginContext, analysisPaths: readonly string[]): Set<string>;
10
- export declare function transformSource(ctx: PluginContext, code: string, id: string): Promise<{
10
+ export declare function transformSource(ctx: PluginContext, code: string, requestId: string): Promise<{
11
11
  code: string;
12
12
  map: null;
13
13
  } | null>;
@@ -1 +1 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../src/transform.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKzD;AAED;4DAC4D;AAC5D,wBAAgB,cAAc,CAC5B,GAAG,EAAE,aAAa,EAClB,aAAa,EAAE,SAAS,MAAM,EAAE,GAC/B,GAAG,CAAC,MAAM,CAAC,CAkBb;AAQD,wBAAsB,eAAe,CACnC,GAAG,EAAE,aAAa,EAClB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,GACT,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,IAAI,CAAA;CAAE,GAAG,IAAI,CAAC,CAsK7C"}
1
+ {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../src/transform.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAmB,aAAa,EAAE,MAAM,WAAW,CAAC;AAEhE;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKzD;AAED;4DAC4D;AAC5D,wBAAgB,cAAc,CAC5B,GAAG,EAAE,aAAa,EAClB,aAAa,EAAE,SAAS,MAAM,EAAE,GAC/B,GAAG,CAAC,MAAM,CAAC,CAkBb;AAED,wBAAsB,eAAe,CACnC,GAAG,EAAE,aAAa,EAClB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,IAAI,CAAA;CAAE,GAAG,IAAI,CAAC,CAqJ7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"virtual-modules.d.ts","sourceRoot":"","sources":["../src/virtual-modules.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAa/C,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,aAAa,EAClB,EAAE,EAAE,MAAM,GACT,MAAM,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAmB5D;AAED,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,aAAa,EAClB,EAAE,EAAE,MAAM,GACT,MAAM,GAAG,IAAI,CAgHf"}
1
+ {"version":3,"file":"virtual-modules.d.ts","sourceRoot":"","sources":["../src/virtual-modules.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAa/C,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,aAAa,EAClB,EAAE,EAAE,MAAM,GACT,MAAM,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAmB5D;AAED,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,aAAa,EAClB,EAAE,EAAE,MAAM,GACT,MAAM,GAAG,IAAI,CAgHf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@animus-ui/vite-plugin",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "description": "Animus static CSS extraction Vite plugin",
5
5
  "keywords": [
6
6
  "animus",
@@ -39,12 +39,12 @@
39
39
  "compile": "tsc --noEmit"
40
40
  },
41
41
  "dependencies": {
42
- "@animus-ui/extract": "0.1.25",
42
+ "@animus-ui/extract": "0.1.26",
43
43
  "browserslist": "^4.28.8",
44
44
  "lightningcss": "^1.33.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@animus-ui/assertions": "0.1.25"
47
+ "@animus-ui/assertions": "0.1.26"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@mdx-js/mdx": "^3.0.0",
@@ -1,21 +0,0 @@
1
- /**
2
- * Timer functions are injected seams: `vi.mock` on node builtins silently
3
- * no-ops under vite-plus-test, so tests drive a manual scheduler.
4
- */
5
- type ResetTimerHandle = ReturnType<typeof setTimeout> | number;
6
- type ResetErrorHandler = <Thrown>(error: Thrown) => void;
7
- export declare class ResetCoalescer {
8
- private readonly run;
9
- private readonly onError;
10
- private readonly quietMs;
11
- private readonly schedule;
12
- private readonly cancel;
13
- private timer;
14
- private running;
15
- private dirty;
16
- constructor(run: () => void | Promise<void>, onError: ResetErrorHandler, quietMs?: number, schedule?: (fn: () => void, ms: number) => ResetTimerHandle, cancel?: (timer: ResetTimerHandle) => void);
17
- /** Ask for a reset; bursts within the quiescence window collapse. */
18
- request(): void;
19
- }
20
- export {};
21
- //# sourceMappingURL=reset-coalescer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reset-coalescer.d.ts","sourceRoot":"","sources":["../src/reset-coalescer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,KAAK,gBAAgB,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,MAAM,CAAC;AAE/D,KAAK,iBAAiB,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;AAEzD,qBAAa,cAAc;IAMvB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAGpB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAIzB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAdzB,OAAO,CAAC,KAAK,CAAiC;IAC9C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,KAAK,CAAS;IAEtB,YACmB,GAAG,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAG/B,OAAO,EAAE,iBAAiB,EAC1B,OAAO,SAAK,EACZ,QAAQ,GAAE,CACzB,EAAE,EAAE,MAAM,IAAI,EACd,EAAE,EAAE,MAAM,KACP,gBAAiD,EACrC,MAAM,GAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IACjC,EACnB;IAEJ,qEAAqE;IACrE,OAAO,IAAI,IAAI,CAsBd;CACF"}