@weasel-js/forge 1.16.1 → 1.16.2

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.
@@ -406,4 +406,5 @@ declare function startFrame({ story, channel, container, setup }: StartFrameOpti
406
406
  /** Reports an import failure — there is no story to start. */
407
407
  declare function reportImportFault(channel: Channel<ToFrame, FromFrame>, error: unknown): void;
408
408
 
409
- export { type A11yFinding as A, type Channel as C, type DepGraph as D, type FrameSetup as F, type Globals as G, type IndexEntry as I, type Layout as L, type MetaSpec as M, type PlayContext as P, type StartFrameOptions as S, type ToFrame as T, type Viewport as V, type ConfigAnswers as a, type FaultPhase as b, type FromFrame as c, type StorySpec as d, type Span as e, type SpanOverride as f, type A11yNode as g, type A11yReport as h, type ComponentDeps as i, type ComponentHistory as j, type Decorator as k, type GlobalsTarget as l, type IndexContext as m, type IndexRender as n, type IndexStoryProps as o, type LoadedStory as p, type StoryContext as q, reportImportFault as r, startFrame as s, type TimelineSpec as t, type CssVarReport as u, type A11yOutcome as v, type DescribedEntry as w, type DescribedShape as x, type SchemaDescription as y, type SectionDescription as z };
409
+ export { reportImportFault as r, startFrame as s };
410
+ export type { A11yFinding as A, Channel as C, DepGraph as D, FrameSetup as F, Globals as G, IndexEntry as I, Layout as L, MetaSpec as M, PlayContext as P, StartFrameOptions as S, ToFrame as T, Viewport as V, ConfigAnswers as a, FaultPhase as b, FromFrame as c, StorySpec as d, Span as e, SpanOverride as f, A11yNode as g, A11yReport as h, ComponentDeps as i, ComponentHistory as j, Decorator as k, GlobalsTarget as l, IndexContext as m, IndexRender as n, IndexStoryProps as o, LoadedStory as p, StoryContext as q, TimelineSpec as t, CssVarReport as u, A11yOutcome as v, DescribedEntry as w, DescribedShape as x, SchemaDescription as y, SectionDescription as z };
@@ -1,7 +1,7 @@
1
1
  import { LabMode, LabContribution, LabPage } from '@weasel-js/labkit';
2
2
  import { Theme } from '@weasel-js/theme';
3
3
  import { ControlRenderer } from '@weasel-js/labkit/config';
4
- import { G as Globals, F as FrameSetup } from './FrameController-D9CddmJg.js';
4
+ import { G as Globals, F as FrameSetup } from './FrameController-DQTN1ytP.js';
5
5
  import { IconRef } from '@weasel-js/icons';
6
6
  import { L as Library } from './library-CdTj-hFp.js';
7
7
 
@@ -83,4 +83,5 @@ declare function defineFrameConfig(config: FrameSetup): FrameSetup;
83
83
  /** A shell config module's default export. */
84
84
  declare function defineShellConfig(config: ShellConfig): ShellConfig;
85
85
 
86
- export { FOLLOW_APP as F, type GlobalDeclaration as G, type LabChrome as L, type ShellConfig as S, type GlobalDeclarations as a, defineShellConfig as b, defineFrameConfig as d };
86
+ export { FOLLOW_APP as F, defineShellConfig as b, defineFrameConfig as d };
87
+ export type { GlobalDeclaration as G, LabChrome as L, ShellConfig as S, GlobalDeclarations as a };
@@ -1,9 +1,11 @@
1
- import { G as Globals, L as Layout, I as IndexEntry, F as FrameSetup, D as DepGraph } from '../FrameController-D9CddmJg.js';
2
- export { C as Channel, a as ConfigAnswers, b as FaultPhase, c as FromFrame, S as StartFrameOptions, T as ToFrame, r as reportImportFault, s as startFrame } from '../FrameController-D9CddmJg.js';
3
- import { F as FrameImporters } from '../mountFrame-AZzyw6bu.js';
4
- export { a as FrameIndexEntry, M as MountFrameOptions, m as mountFrame } from '../mountFrame-AZzyw6bu.js';
1
+ import { F as FrameSetup } from '../FrameController-DQTN1ytP.js';
2
+ import { StoryGlobals as Globals, StoryLayout as Layout, DepGraph } from '../index.js';
3
+ import { IndexEntry } from '../shell/index.js';
4
+ export { C as Channel, a as ConfigAnswers, b as FaultPhase, c as FromFrame, S as StartFrameOptions, T as ToFrame, r as reportImportFault, s as startFrame } from '../FrameController-DQTN1ytP.js';
5
+ import { F as FrameImporters } from '../mountFrame-CrIdX6nD.js';
6
+ export { a as FrameIndexEntry, M as MountFrameOptions, m as mountFrame } from '../mountFrame-CrIdX6nD.js';
5
7
  import { Theme } from '@weasel-js/theme';
6
- import { L as Library } from '../library-CdTj-hFp.js';
8
+ import { Library } from '../index.js';
7
9
  import '@weasel-js/icons';
8
10
  import '@weasel-js/labkit/config';
9
11
  import 'react';
@@ -75,4 +77,5 @@ declare global {
75
77
  */
76
78
  declare function mountCapture(options: MountCaptureOptions): void;
77
79
 
78
- export { FrameImporters, FrameSetup, type MountCaptureOptions, mountCapture };
80
+ export { FrameImporters, FrameSetup, mountCapture };
81
+ export type { MountCaptureOptions };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { ConfigSchema } from '@weasel-js/labkit/config';
2
2
  export { f } from '@weasel-js/labkit/config';
3
- export { F as FOLLOW_APP, G as GlobalDeclaration, a as GlobalDeclarations, L as LabChrome, S as ShellConfig, d as defineFrameConfig, b as defineShellConfig } from './config-Ey2RPFrg.js';
3
+ export { F as FOLLOW_APP, G as GlobalDeclaration, a as GlobalDeclarations, L as LabChrome, S as ShellConfig, d as defineFrameConfig, b as defineShellConfig } from './config-BaC0Cbyj.js';
4
4
  import { ComponentType, ReactNode } from 'react';
5
- import { G as Globals, M as MetaSpec, d as StorySpec, e as Span, f as SpanOverride } from './FrameController-D9CddmJg.js';
6
- export { A as A11yFinding, g as A11yNode, h as A11yReport, i as ComponentDeps, j as ComponentHistory, k as Decorator, D as DepGraph, F as FrameSetup, l as GlobalsTarget, m as IndexContext, n as IndexRender, o as IndexStoryProps, p as LoadedStory, P as PlayContext, q as StoryContext, L as StoryLayout, V as StoryViewport, t as TimelineSpec } from './FrameController-D9CddmJg.js';
5
+ import { G as Globals, M as MetaSpec, d as StorySpec, e as Span, f as SpanOverride } from './FrameController-DQTN1ytP.js';
6
+ export { A as A11yFinding, g as A11yNode, h as A11yReport, i as ComponentDeps, j as ComponentHistory, k as Decorator, D as DepGraph, F as FrameSetup, l as GlobalsTarget, m as IndexContext, n as IndexRender, o as IndexStoryProps, p as LoadedStory, P as PlayContext, q as StoryContext, L as StoryLayout, V as StoryViewport, t as TimelineSpec } from './FrameController-DQTN1ytP.js';
7
7
  export { L as Library } from './library-CdTj-hFp.js';
8
8
  import '@weasel-js/labkit';
9
9
  import '@weasel-js/theme';
@@ -218,4 +218,5 @@ declare const GALLERY_TAG = "gallery";
218
218
  /** The meta tag marking a story file as a lab: a whole screen for exercising a component, not a specimen of it. */
219
219
  declare const LAB_TAG = "lab";
220
220
 
221
- export { type ArgCondition, type ArgShape, type ArgType, type ArgsOf, type CsfDecorator, type CsfPlayContext, type CsfStep, type CsfStoryContext, type ForgeRoute, GALLERY_TAG, type KnobLeaf, type KnobPath, LAB_TAG, type Meta, MetaSpec, RESERVED_PARAMS, SpanOverride, Globals as StoryGlobals, type StoryObj, StorySpec, type StoryTimeline, Span as TimelineSpan, decodeKnob, encodeKnob, formatRoute, knobParams, knobPaths, knobsToParams, meta, paramsToKnobs, parseRoute, reservedParams, story, storyHref, usePlayhead, useTimeline };
221
+ export { GALLERY_TAG, LAB_TAG, MetaSpec, RESERVED_PARAMS, SpanOverride, Globals as StoryGlobals, StorySpec, Span as TimelineSpan, decodeKnob, encodeKnob, formatRoute, knobParams, knobPaths, knobsToParams, meta, paramsToKnobs, parseRoute, reservedParams, story, storyHref, usePlayhead, useTimeline };
222
+ export type { ArgCondition, ArgShape, ArgType, ArgsOf, CsfDecorator, CsfPlayContext, CsfStep, CsfStoryContext, ForgeRoute, KnobLeaf, KnobPath, Meta, StoryObj, StoryTimeline };
@@ -1,4 +1,4 @@
1
- import { F as FrameSetup, p as LoadedStory } from './FrameController-D9CddmJg.js';
1
+ import { F as FrameSetup, p as LoadedStory } from './FrameController-DQTN1ytP.js';
2
2
 
3
3
  /** Story modules by file path, each loaded on first use. */
4
4
  interface FrameImporters {
@@ -32,4 +32,5 @@ interface MountFrameOptions {
32
32
  */
33
33
  declare function mountFrame(options: MountFrameOptions): Promise<void>;
34
34
 
35
- export { type FrameImporters as F, type MountFrameOptions as M, type FrameIndexEntry as a, mountFrame as m };
35
+ export { mountFrame as m };
36
+ export type { FrameImporters as F, MountFrameOptions as M, FrameIndexEntry as a };
@@ -1,10 +1,12 @@
1
1
  import * as react from 'react';
2
2
  import { RefObject, ReactNode } from 'react';
3
3
  import { LabContribution, StorageAdapter, RenderContext, InstrumentList } from '@weasel-js/labkit';
4
- import { F as FrameImporters } from '../mountFrame-AZzyw6bu.js';
5
- import { I as IndexEntry, F as FrameSetup, D as DepGraph, p as LoadedStory, L as Layout, G as Globals, c as FromFrame, T as ToFrame, u as CssVarReport, v as A11yOutcome } from '../FrameController-D9CddmJg.js';
6
- export { w as DescribedEntry, x as DescribedShape, y as SchemaDescription, z as SectionDescription } from '../FrameController-D9CddmJg.js';
7
- import { S as ShellConfig, a as GlobalDeclarations } from '../config-Ey2RPFrg.js';
4
+ import { FrameImporters } from '../frame/index.js';
5
+ import { I as IndexEntry, u as CssVarReport, v as A11yOutcome } from '../FrameController-DQTN1ytP.js';
6
+ import { FrameSetup, FromFrame, ToFrame } from '../frame/index.js';
7
+ import { DepGraph, LoadedStory, StoryLayout as Layout, StoryGlobals as Globals } from '../index.js';
8
+ export { w as DescribedEntry, x as DescribedShape, y as SchemaDescription, z as SectionDescription } from '../FrameController-DQTN1ytP.js';
9
+ import { ShellConfig, GlobalDeclarations } from '../index.js';
8
10
  import { a as Libraries } from '../library-CdTj-hFp.js';
9
11
  import '@weasel-js/icons';
10
12
  import '@weasel-js/labkit/config';
@@ -220,4 +222,5 @@ declare const TrialFramesContext: react.Context<TrialFrames | null>;
220
222
  /** The frame of the trial `trialId` names, re-read when it connects or reports. */
221
223
  declare function useTrialFrame(trialId: string): TrialFrame;
222
224
 
223
- export { A11Y_SECTION, A11yOutcome, A11yPanel, CssVarReport, type FollowedEdits, type HotEvents, IndexEntry, Libraries, type MountWorkshopOptions, type MountedWorkshop, type StoryChanges, StoryGlobalsContext, type StoryRegistry, type StoryRegistryOptions, StoryTrial, type StoryTrialProps, type TrialFrame, type TrialFrameCalls, type TrialFrames, TrialFramesContext, TrialHost, type TrialHostProps, Workshop, type WorkshopProps, followEdits, mountWorkshop, useStoryRegistry, useTrialFrame };
225
+ export { A11Y_SECTION, A11yOutcome, A11yPanel, CssVarReport, IndexEntry, Libraries, StoryGlobalsContext, StoryTrial, TrialFramesContext, TrialHost, Workshop, followEdits, mountWorkshop, useStoryRegistry, useTrialFrame };
226
+ export type { FollowedEdits, HotEvents, MountWorkshopOptions, MountedWorkshop, StoryChanges, StoryRegistry, StoryRegistryOptions, StoryTrialProps, TrialFrame, TrialFrameCalls, TrialFrames, TrialHostProps, WorkshopProps };
@@ -1,4 +1,4 @@
1
- import { F as FrameSetup } from '../FrameController-D9CddmJg.js';
1
+ import { FrameSetup } from '../frame/index.js';
2
2
  import '@weasel-js/icons';
3
3
  import '@weasel-js/labkit/config';
4
4
  import 'react';
@@ -16,4 +16,5 @@ declare function runStory(mod: Record<string, unknown>, exportName: string, file
16
16
  /** The file's index entry title. */
17
17
  title: string, { setup }?: RunStoryOptions): Promise<void>;
18
18
 
19
- export { type RunStoryOptions, runStory };
19
+ export { runStory };
20
+ export type { RunStoryOptions };
@@ -83,4 +83,5 @@ interface WatchRecoveryOptions {
83
83
  */
84
84
  declare function watchRecovery({ quietMs }?: WatchRecoveryOptions): Plugin;
85
85
 
86
- export { type ForgeOptions, type ForgeTestOptions, type PropControlsOptions, type WatchProbeOptions, type WatchRecoveryOptions, forge, forgeTest, watchProbe, watchRecovery };
86
+ export { forge, forgeTest, watchProbe, watchRecovery };
87
+ export type { ForgeOptions, ForgeTestOptions, PropControlsOptions, WatchProbeOptions, WatchRecoveryOptions };
@@ -1150,6 +1150,7 @@ async function createPropReader(root, stories, { skip } = {}) {
1150
1150
  } catch {
1151
1151
  return null;
1152
1152
  }
1153
+ if (typeof tsm.createLanguageService !== "function") return null;
1153
1154
  const { sys } = tsm;
1154
1155
  const configFile = tsm.findConfigFile(root, sys.fileExists);
1155
1156
  const read = configFile ? tsm.readConfigFile(configFile, sys.readFile) : void 0;