@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.
- package/dist/{FrameController-D9CddmJg.d.ts → FrameController-DQTN1ytP.d.ts} +2 -1
- package/dist/{config-Ey2RPFrg.d.ts → config-BaC0Cbyj.d.ts} +3 -2
- package/dist/frame/index.d.ts +9 -6
- package/dist/index.d.ts +5 -4
- package/dist/{mountFrame-AZzyw6bu.d.ts → mountFrame-CrIdX6nD.d.ts} +3 -2
- package/dist/shell/index.d.ts +8 -5
- package/dist/test/index.d.ts +3 -2
- package/dist/vite/index.d.ts +2 -1
- package/dist/vite/index.js +1 -0
- package/dist/vite/index.js.map +1 -1
- package/package.json +15 -12
|
@@ -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 {
|
|
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-
|
|
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,
|
|
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 };
|
package/dist/frame/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
export { a as
|
|
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 {
|
|
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,
|
|
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-
|
|
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-
|
|
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-
|
|
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 {
|
|
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-
|
|
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 {
|
|
35
|
+
export { mountFrame as m };
|
|
36
|
+
export type { FrameImporters as F, MountFrameOptions as M, FrameIndexEntry as a };
|
package/dist/shell/index.d.ts
CHANGED
|
@@ -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 {
|
|
5
|
-
import { I as IndexEntry,
|
|
6
|
-
|
|
7
|
-
import {
|
|
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,
|
|
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 };
|
package/dist/test/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
19
|
+
export { runStory };
|
|
20
|
+
export type { RunStoryOptions };
|
package/dist/vite/index.d.ts
CHANGED
|
@@ -83,4 +83,5 @@ interface WatchRecoveryOptions {
|
|
|
83
83
|
*/
|
|
84
84
|
declare function watchRecovery({ quietMs }?: WatchRecoveryOptions): Plugin;
|
|
85
85
|
|
|
86
|
-
export {
|
|
86
|
+
export { forge, forgeTest, watchProbe, watchRecovery };
|
|
87
|
+
export type { ForgeOptions, ForgeTestOptions, PropControlsOptions, WatchProbeOptions, WatchRecoveryOptions };
|
package/dist/vite/index.js
CHANGED
|
@@ -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;
|