react-cosmos-renderer 7.2.0 → 7.2.1-canary.0004fe7.0
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/fixture/ClassStateMock.js +1 -1
- package/dist/fixture/FixtureCapture/FixtureCapture.d.ts +1 -1
- package/dist/fixture/FixtureCapture/FixtureCapture.js +1 -0
- package/dist/fixture/FixtureCapture/classState/decorateFixtureRefs/index.d.ts +2 -2
- package/dist/fixture/FixtureCapture/classState/decorateFixtureRefs/index.js +1 -1
- package/dist/fixture/FixtureCapture/classState/index.d.ts +1 -1
- package/dist/fixture/FixtureCapture/classState/shared.d.ts +2 -1
- package/dist/fixture/FixtureCapture/classState/shared.js +2 -1
- package/dist/fixture/FixtureCapture/classState/useFixtureClassState.d.ts +3 -3
- package/dist/fixture/FixtureCapture/classState/useFixtureClassState.js +3 -3
- package/dist/fixture/FixtureCapture/classState/useReadClassState.d.ts +3 -3
- package/dist/fixture/FixtureCapture/classState/useReadClassState.js +1 -2
- package/dist/fixture/FixtureCapture/props/index.d.ts +2 -2
- package/dist/fixture/FixtureCapture/props/useFixtureProps.d.ts +1 -1
- package/dist/fixture/FixtureCapture/props/useFixtureProps.js +11 -8
- package/dist/fixture/FixtureCapture/shared/findRelevantElementPaths.js +1 -0
- package/dist/fixture/FixtureCapture/shared/nodeTree/findElementPaths.js +5 -4
- package/dist/fixture/FixtureCapture/shared/nodeTree/getElementAtPath.d.ts +2 -2
- package/dist/fixture/FixtureCapture/shared/nodeTree/getElementAtPath.js +5 -4
- package/dist/fixture/FixtureCapture/shared/nodeTree/index.d.ts +1 -1
- package/dist/fixture/FixtureCapture/shared/nodeTree/index.js +1 -1
- package/dist/fixture/FixtureCapture/shared/nodeTree/setElementAtPath.d.ts +2 -2
- package/dist/fixture/FixtureCapture/shared/nodeTree/setElementAtPath.js +4 -25
- package/dist/fixture/FixtureContext.d.ts +1 -1
- package/dist/fixture/Viewport.d.ts +0 -1
- package/dist/fixture/useCosmosNotification/useCosmosNotification.d.ts +1 -1
- package/dist/fixture/useFixtureInput/useFixtureInput.d.ts +1 -1
- package/dist/fixture/useFixtureInput/useInputFixtureState.js +1 -2
- package/dist/fixture/useFixtureInput/useSetInputValue.d.ts +1 -1
- package/dist/fixture/useFixtureInput/useSetInputValue.js +1 -1
- package/dist/fixture/useFixtureInput/useValue.d.ts +1 -1
- package/dist/fixture/useFixtureSelect/shared.d.ts +1 -1
- package/dist/fixture/useFixtureSelect/useCurrentSelectValue.d.ts +1 -1
- package/dist/fixture/useFixtureSelect/useFixtureSelect.d.ts +1 -1
- package/dist/fixture/useFixtureSelect/useSelect.d.ts +1 -1
- package/dist/fixture/useFixtureSelect/useSelectFixtureState.d.ts +1 -1
- package/dist/fixture/useFixtureSelect/useSetSelectValue.d.ts +1 -1
- package/dist/fixture/useFixtureState.d.ts +1 -1
- package/dist/fixture/useFixtureState.js +1 -1
- package/dist/fixtureLoaders/ClientFixtureLoader.d.ts +2 -2
- package/dist/fixtureLoaders/ClientFixtureLoader.js +1 -1
- package/dist/fixtureLoaders/FixtureLoaderConnect.d.ts +3 -3
- package/dist/fixtureLoaders/FixtureLoaderConnect.js +1 -1
- package/dist/fixtureLoaders/RendererSync.d.ts +1 -1
- package/dist/fixtureLoaders/SelectedFixture.d.ts +1 -1
- package/dist/fixtureLoaders/ServerFixtureLoader.d.ts +3 -3
- package/dist/fixtureLoaders/ServerFixtureLoader.js +2 -6
- package/dist/fixtureModule/DecoratedFixture.d.ts +2 -2
- package/dist/fixtureModule/FixtureModule.d.ts +2 -2
- package/dist/fixtureModule/FixtureProvider.d.ts +1 -1
- package/dist/fixtureModule/FixtureProvider.js +1 -1
- package/dist/fixtureModule/createFixtureNode.d.ts +10 -1
- package/dist/fixtureModule/decorateFixture.d.ts +1 -1
- package/dist/moduleLoaders/AsyncModuleLoader.d.ts +2 -2
- package/dist/moduleLoaders/AsyncModuleLoader.js +2 -1
- package/dist/moduleLoaders/LazyModuleLoader.d.ts +2 -2
- package/dist/moduleLoaders/LazyModuleLoader.js +1 -1
- package/dist/moduleLoaders/StaticModuleLoader.d.ts +2 -2
- package/dist/moduleLoaders/StaticModuleLoader.js +1 -1
- package/dist/moduleLoaders/importLazyFixtureModules.d.ts +1 -1
- package/dist/rendererConnect/RendererContext.d.ts +2 -2
- package/dist/rendererConnect/RendererProvider.d.ts +2 -2
- package/dist/rendererConnect/StatefulRendererProvider.d.ts +1 -1
- package/dist/rendererConnect/createNoopRendererConnect.d.ts +1 -1
- package/dist/rendererConnect/createPostMessageConnect.d.ts +1 -1
- package/dist/rendererConnect/createPostMessageConnect.js +1 -1
- package/dist/rendererConnect/createWebSocketsConnect.d.ts +1 -1
- package/dist/rendererConnect/createWebSocketsConnect.js +1 -1
- package/package.json +3 -4
- package/tsconfig.build.tsbuildinfo +1 -0
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- /package/dist/fixture/FixtureCapture/shared/nodeTree/{shared.d.ts → elPath.d.ts} +0 -0
- /package/dist/fixture/FixtureCapture/shared/nodeTree/{shared.js → elPath.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isEqual } from 'lodash-es';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import { isEqual } from 'react-cosmos-core';
|
|
3
3
|
// Copied from https://github.com/skidding/react-mock/blob/c33dfa1d6f0c9ce7b3eaba073618d61731a0e82e/packages/state/src/index.js
|
|
4
4
|
export class ClassStateMock extends React.Component {
|
|
5
5
|
static cosmosCapture = false;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
// 1. Props of client side components used in server fixtures.
|
|
7
7
|
// 2. Props of native elements rendered by server components (eg. div, p, etc.)
|
|
8
8
|
'use client';
|
|
9
|
+
import React from 'react';
|
|
9
10
|
import { useClassStateCapture } from './classState/index.js';
|
|
10
11
|
import { usePropsCapture } from './props/index.js';
|
|
11
12
|
export function FixtureCapture({ children, decoratorId }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Component, ReactNode } from 'react';
|
|
2
|
-
import { CachedRefHandlers } from '../shared.js';
|
|
1
|
+
import type { Component, ReactNode } from 'react';
|
|
2
|
+
import type { CachedRefHandlers } from '../shared.js';
|
|
3
3
|
type SpyRef = (elPath: string, elRef: null | Component) => unknown;
|
|
4
4
|
export declare function decorateFixtureRefs(fixture: ReactNode, spyRef: SpyRef, cachedRefHandlers: CachedRefHandlers): ReactNode;
|
|
5
5
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cloneElement
|
|
1
|
+
import { cloneElement } from 'react';
|
|
2
2
|
import { findRelevantElementPaths } from '../../shared/findRelevantElementPaths.js';
|
|
3
3
|
import { setElementAtPath } from '../../shared/nodeTree/index.js';
|
|
4
4
|
import { isRefSupported } from './isRefSupported.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { isEqual } from 'react-cosmos-core';
|
|
2
3
|
// We need to do this because React doesn't provide a replaceState method
|
|
3
4
|
// (anymore) https://reactjs.org/docs/react-component.html#setstate
|
|
4
5
|
export function replaceState(elRef, nextState) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { FixtureDecoratorId } from 'react-cosmos-core';
|
|
3
|
-
import { ElRefs } from './shared.js';
|
|
1
|
+
import type { ReactNode, RefObject } from 'react';
|
|
2
|
+
import type { FixtureDecoratorId } from 'react-cosmos-core';
|
|
3
|
+
import type { ElRefs } from './shared.js';
|
|
4
4
|
export declare function useFixtureClassState(fixture: ReactNode, decoratorId: FixtureDecoratorId, elRefs: RefObject<ElRefs>): ReactNode;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useEffect, useRef } from 'react';
|
|
2
|
+
import { isEqual } from 'react-cosmos-core';
|
|
3
3
|
import { createClassStateFixtureStateItem, createValues, extendWithValues, filterClassStateFixtureState, findClassStateFixtureStateItem, getComponentName, removeClassStateFixtureStateItem, } from 'react-cosmos-core';
|
|
4
4
|
import { useFixtureState } from '../../useFixtureState.js';
|
|
5
5
|
import { findRelevantElementPaths } from '../shared/findRelevantElementPaths.js';
|
|
6
6
|
import { decorateFixtureRefs } from './decorateFixtureRefs/index.js';
|
|
7
|
-
import { replaceState
|
|
7
|
+
import { replaceState } from './shared.js';
|
|
8
8
|
export function useFixtureClassState(fixture, decoratorId, elRefs) {
|
|
9
9
|
const elPaths = findRelevantElementPaths(fixture);
|
|
10
10
|
const [classStateFs, setClassStateFs] = useFixtureState('classState');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { FixtureDecoratorId } from 'react-cosmos-core';
|
|
3
|
-
import { ElRefs } from './shared.js';
|
|
1
|
+
import type { ReactNode, RefObject } from 'react';
|
|
2
|
+
import type { FixtureDecoratorId } from 'react-cosmos-core';
|
|
3
|
+
import type { ElRefs } from './shared.js';
|
|
4
4
|
export declare function useReadClassState(fixture: ReactNode, decoratorId: FixtureDecoratorId, elRefs: RefObject<ElRefs>): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { isEqual } from 'lodash-es';
|
|
2
1
|
import { useEffect, useRef } from 'react';
|
|
3
|
-
import { createValues, extendWithValues, findClassStateFixtureStateItem, updateClassStateFixtureStateItem, } from 'react-cosmos-core';
|
|
2
|
+
import { createValues, extendWithValues, findClassStateFixtureStateItem, isEqual, updateClassStateFixtureStateItem, } from 'react-cosmos-core';
|
|
4
3
|
import { useFixtureState } from '../../useFixtureState.js';
|
|
5
4
|
import { findRelevantElementPaths } from '../shared/findRelevantElementPaths.js';
|
|
6
5
|
// How often to check the state of the loaded component and update the fixture
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { FixtureDecoratorId } from 'react-cosmos-core';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { FixtureDecoratorId } from 'react-cosmos-core';
|
|
3
3
|
export declare function usePropsCapture(fixture: ReactNode, decoratorId: FixtureDecoratorId): ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FixtureDecoratorId, PropsFixtureState } from 'react-cosmos-core';
|
|
2
|
+
import type { FixtureDecoratorId, PropsFixtureState } from 'react-cosmos-core';
|
|
3
3
|
export declare function useFixtureProps(fixture: React.ReactNode, propsFs: PropsFixtureState | undefined, decoratorId: FixtureDecoratorId): React.ReactNode;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { isEqual, mapValues } from 'lodash-es';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { DEFAULT_RENDER_KEY, extendWithValues, findPropsFixtureStateItem, getComponentName, } from 'react-cosmos-core';
|
|
2
|
+
import { DEFAULT_RENDER_KEY, extendWithValues, findPropsFixtureStateItem, getComponentName, isEqual, } from 'react-cosmos-core';
|
|
4
3
|
import { findRelevantElementPaths } from '../shared/findRelevantElementPaths.js';
|
|
5
4
|
import { getChildrenPath, setElementAtPath } from '../shared/nodeTree/index.js';
|
|
6
5
|
export function useFixtureProps(fixture, propsFs, decoratorId) {
|
|
@@ -25,15 +24,19 @@ export function useFixtureProps(fixture, propsFs, decoratorId) {
|
|
|
25
24
|
const originalProps = element.props;
|
|
26
25
|
const extendedProps = extendWithValues(originalProps, fsItem.values);
|
|
27
26
|
// Preserve identity between renders for indentical non-primitive props
|
|
28
|
-
const cachedProps =
|
|
27
|
+
const cachedProps = {};
|
|
28
|
+
for (const [propName, value] of Object.entries(extendedProps)) {
|
|
29
29
|
const key = getPropCacheKey(elPath, propName);
|
|
30
30
|
if (!propCache.hasOwnProperty(key))
|
|
31
31
|
propCache[key] = originalProps[propName];
|
|
32
|
-
if (isEqual(propCache[key], value))
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
if (isEqual(propCache[key], value)) {
|
|
33
|
+
cachedProps[propName] = propCache[key];
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
propCache[key] = value;
|
|
37
|
+
cachedProps[propName] = value;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
37
40
|
// HACK alert: Editing React Element by hand
|
|
38
41
|
// This is blasphemy, but there are two reasons why React.cloneElement
|
|
39
42
|
// isn't ideal:
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Fragment } from 'react';
|
|
1
|
+
import React, { Fragment } from 'react';
|
|
3
2
|
import { isReactElement } from 'react-cosmos-core';
|
|
4
|
-
import { getChildrenPath } from './
|
|
3
|
+
import { getChildrenPath } from './elPath.js';
|
|
5
4
|
export function findElementPaths(node, curPath = '') {
|
|
6
5
|
if (Array.isArray(node)) {
|
|
7
6
|
// Array.from is used to fill array holes with undefined values. Array holes
|
|
8
7
|
// have been observed in Next.js server components that receive undefined
|
|
9
8
|
// children inside an array of children.
|
|
10
|
-
return
|
|
9
|
+
return Array.from(node)
|
|
10
|
+
.map((child, idx) => findElementPaths(child, `${curPath}[${idx}]`))
|
|
11
|
+
.flat();
|
|
11
12
|
}
|
|
12
13
|
if (!isReactElement(node)) {
|
|
13
14
|
// At this point the node can be null, boolean, string, number, Portal, etc.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ReactElementWithChildren } from 'react-cosmos-core';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ReactElementWithChildren } from 'react-cosmos-core';
|
|
3
3
|
export declare function getElementAtPath(node: ReactNode, elPath: string): null | ReactElementWithChildren;
|
|
4
4
|
export declare function getExpectedElementAtPath(node: ReactNode, elPath: string): ReactElementWithChildren;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { isRootPath } from './shared.js';
|
|
1
|
+
import { getByPath, isReactElement } from 'react-cosmos-core';
|
|
2
|
+
import { isRootPath } from './elPath.js';
|
|
4
3
|
// Why be silent about trying to fetch a node that isn't an element?
|
|
5
4
|
// Because users of this utility only care about elements. Whether the child
|
|
6
5
|
// node was removed or replaced by a different type of node (eg. string,
|
|
@@ -11,7 +10,9 @@ export function getElementAtPath(node, elPath) {
|
|
|
11
10
|
return null;
|
|
12
11
|
}
|
|
13
12
|
const rootNode = node;
|
|
14
|
-
const childNode = isRootPath(elPath)
|
|
13
|
+
const childNode = isRootPath(elPath)
|
|
14
|
+
? rootNode
|
|
15
|
+
: getByPath(rootNode, elPath);
|
|
15
16
|
if (!isReactElement(childNode)) {
|
|
16
17
|
return null;
|
|
17
18
|
}
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
export { findElementPaths } from './findElementPaths.js';
|
|
9
9
|
export { getElementAtPath, getExpectedElementAtPath, } from './getElementAtPath.js';
|
|
10
10
|
export { setElementAtPath } from './setElementAtPath.js';
|
|
11
|
-
export { getChildrenPath } from './
|
|
11
|
+
export { getChildrenPath } from './elPath.js';
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
export { findElementPaths } from './findElementPaths.js';
|
|
9
9
|
export { getElementAtPath, getExpectedElementAtPath, } from './getElementAtPath.js';
|
|
10
10
|
export { setElementAtPath } from './setElementAtPath.js';
|
|
11
|
-
export { getChildrenPath } from './
|
|
11
|
+
export { getChildrenPath } from './elPath.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ReactElementWithChildren } from 'react-cosmos-core';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ReactElementWithChildren } from 'react-cosmos-core';
|
|
3
3
|
export declare function setElementAtPath(node: ReactNode, elPath: string, updater: (el: ReactElementWithChildren) => ReactElementWithChildren): ReactNode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { setByPath } from 'react-cosmos-core';
|
|
2
|
+
import { isRootPath } from './elPath.js';
|
|
3
3
|
import { getExpectedElementAtPath } from './getElementAtPath.js';
|
|
4
|
-
import { isRootPath } from './shared.js';
|
|
5
4
|
export function setElementAtPath(node, elPath, updater) {
|
|
6
5
|
const childEl = getExpectedElementAtPath(node, elPath);
|
|
7
6
|
const newEl = updater(childEl);
|
|
@@ -10,26 +9,6 @@ export function setElementAtPath(node, elPath, updater) {
|
|
|
10
9
|
}
|
|
11
10
|
// If the root is a non-Array non-Element Node we should be at the root path
|
|
12
11
|
// and returned already
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
// https://github.com/lodash/lodash/blob/6018350ac10d5ce6a5b7db625140b82aeab804df/isObject.js#L15-L16
|
|
16
|
-
return set(clonedRoot, elPath, newEl);
|
|
17
|
-
}
|
|
18
|
-
function cloneNode(value) {
|
|
19
|
-
return Array.isArray(value)
|
|
20
|
-
? value.map(n => cloneNodeItem(n))
|
|
21
|
-
: cloneNodeItem(value);
|
|
22
|
-
}
|
|
23
|
-
function cloneNodeItem(value) {
|
|
24
|
-
return isReactElement(value) ? cloneReactElement(value) : value;
|
|
25
|
-
}
|
|
26
|
-
function cloneReactElement(value) {
|
|
27
|
-
const { children, ...otherProps } = value.props;
|
|
28
|
-
return {
|
|
29
|
-
...value,
|
|
30
|
-
props: {
|
|
31
|
-
...otherProps,
|
|
32
|
-
children: cloneNode(children),
|
|
33
|
-
},
|
|
34
|
-
};
|
|
12
|
+
const root = node;
|
|
13
|
+
return setByPath(root, elPath, newEl);
|
|
35
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FixtureState, SetFixtureState } from 'react-cosmos-core';
|
|
2
|
+
import type { FixtureState, SetFixtureState } from 'react-cosmos-core';
|
|
3
3
|
export type FixtureContextValue = {
|
|
4
4
|
fixtureState: FixtureState;
|
|
5
5
|
setFixtureState: SetFixtureState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NotificationItem, TimedNotificationItem } from 'react-cosmos-core';
|
|
1
|
+
import type { NotificationItem, TimedNotificationItem } from 'react-cosmos-core';
|
|
2
2
|
type UseCosmosNotificationReturn = {
|
|
3
3
|
pushSticky(notification: NotificationItem): void;
|
|
4
4
|
removeSticky(notificationId: string): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react-cosmos-core';
|
|
1
|
+
import type { Dispatch, SetStateAction } from 'react-cosmos-core';
|
|
2
2
|
export declare function useFixtureInput<T>(inputName: string, defaultValue: T): [T, Dispatch<SetStateAction<T>>];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { isEqual } from 'lodash-es';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { createValue, extendWithValue, } from 'react-cosmos-core';
|
|
2
|
+
import { createValue, extendWithValue, isEqual } from 'react-cosmos-core';
|
|
4
3
|
import { useFixtureState } from '../useFixtureState.js';
|
|
5
4
|
export function useInputFixtureState(inputName, defaultValue) {
|
|
6
5
|
const [, setFixtureState] = useFixtureState('inputs');
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react-cosmos-core';
|
|
1
|
+
import type { Dispatch, SetStateAction } from 'react-cosmos-core';
|
|
2
2
|
export declare function useSetInputValue<T>(inputName: string, defaultValue: T): Dispatch<SetStateAction<T>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { createValue, extendWithValue
|
|
2
|
+
import { createValue, extendWithValue } from 'react-cosmos-core';
|
|
3
3
|
import { useFixtureState } from '../useFixtureState.js';
|
|
4
4
|
export function useSetInputValue(inputName, defaultValue) {
|
|
5
5
|
const [, setFixtureState] = useFixtureState('inputs');
|
|
@@ -7,5 +7,5 @@ export type UseSelectArgs<Option extends string> = {
|
|
|
7
7
|
defaultValue?: Option;
|
|
8
8
|
};
|
|
9
9
|
export type SetSelectValue<Option extends string> = (value: Option) => void;
|
|
10
|
-
export declare function getDefaultSelectValue<Option extends string>({ options, defaultValue
|
|
10
|
+
export declare function getDefaultSelectValue<Option extends string>({ options, defaultValue }: UseSelectArgs<Option>): Option;
|
|
11
11
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { UseSelectArgs } from './shared.js';
|
|
1
|
+
import type { UseSelectArgs } from './shared.js';
|
|
2
2
|
export declare function useCurrentSelectValue<Option extends string>(selectName: string, args: UseSelectArgs<Option>): Option;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SetSelectValue, UseSelectArgs } from './shared.js';
|
|
1
|
+
import type { SetSelectValue, UseSelectArgs } from './shared.js';
|
|
2
2
|
export declare function useFixtureSelect<Option extends string>(selectName: string, args: UseSelectArgs<Option>): [Option, SetSelectValue<Option>];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SetSelectValue, UseSelectArgs } from './shared.js';
|
|
1
|
+
import type { SetSelectValue, UseSelectArgs } from './shared.js';
|
|
2
2
|
export declare function useSelect<Option extends string>(selectName: string, args: UseSelectArgs<Option>): [Option, SetSelectValue<Option>];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { UseSelectArgs } from './shared.js';
|
|
1
|
+
import type { UseSelectArgs } from './shared.js';
|
|
2
2
|
export declare function useSelectFixtureState<Option extends string>(selectName: string, args: UseSelectArgs<Option>): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SetSelectValue } from './shared.js';
|
|
1
|
+
import type { SetSelectValue } from './shared.js';
|
|
2
2
|
export declare function useSetSelectValue<Option extends string>(selectName: string): SetSelectValue<Option>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FixtureStateChange } from 'react-cosmos-core';
|
|
1
|
+
import type { FixtureStateChange } from 'react-cosmos-core';
|
|
2
2
|
export declare function useFixtureState<T>(name: string): readonly [T | undefined, (change: FixtureStateChange<T>) => void];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useContext } from 'react';
|
|
2
|
-
import { fixtureStateByName, updateFixtureState
|
|
2
|
+
import { fixtureStateByName, updateFixtureState } from 'react-cosmos-core';
|
|
3
3
|
import { FixtureContext } from './FixtureContext.js';
|
|
4
4
|
export function useFixtureState(name) {
|
|
5
5
|
const { fixtureState, setFixtureState } = useContext(FixtureContext);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ReactDecorator, UserModuleWrappers } from 'react-cosmos-core';
|
|
2
|
+
import type { ReactDecorator, UserModuleWrappers } from 'react-cosmos-core';
|
|
3
3
|
type Props = {
|
|
4
4
|
moduleWrappers: UserModuleWrappers;
|
|
5
5
|
globalDecorators?: ReactDecorator[];
|
|
6
6
|
renderMessage?: (msg: string) => React.ReactNode;
|
|
7
7
|
};
|
|
8
|
-
export declare function ClientFixtureLoader({ moduleWrappers, globalDecorators, renderMessage
|
|
8
|
+
export declare function ClientFixtureLoader({ moduleWrappers, globalDecorators, renderMessage }: Props): React.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -4,8 +4,8 @@ import { FixtureModule } from '../fixtureModule/FixtureModule.js';
|
|
|
4
4
|
import { LazyModuleLoader } from '../moduleLoaders/LazyModuleLoader.js';
|
|
5
5
|
import { StaticModuleLoader } from '../moduleLoaders/StaticModuleLoader.js';
|
|
6
6
|
import { RendererContext } from '../rendererConnect/RendererContext.js';
|
|
7
|
-
import { FixtureLoaderConnect } from './FixtureLoaderConnect.js';
|
|
8
7
|
import { defaultRenderMessage } from './defaultRenderMessage.js';
|
|
8
|
+
import { FixtureLoaderConnect } from './FixtureLoaderConnect.js';
|
|
9
9
|
export function ClientFixtureLoader({ moduleWrappers, globalDecorators, renderMessage = defaultRenderMessage, }) {
|
|
10
10
|
const { selectedFixture } = React.useContext(RendererContext);
|
|
11
11
|
return (React.createElement(FixtureLoaderConnect, { moduleWrappers: moduleWrappers, selectedFixture: selectedFixture, renderMessage: renderMessage, renderFixture: selected => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { UserModuleWrappers } from 'react-cosmos-core';
|
|
3
|
-
import { SelectedFixture } from './SelectedFixture.js';
|
|
2
|
+
import type { UserModuleWrappers } from 'react-cosmos-core';
|
|
3
|
+
import type { SelectedFixture } from './SelectedFixture.js';
|
|
4
4
|
type Props = {
|
|
5
5
|
moduleWrappers: UserModuleWrappers;
|
|
6
6
|
selectedFixture: SelectedFixture | null;
|
|
7
7
|
renderMessage: (msg: string) => React.ReactNode;
|
|
8
8
|
renderFixture: (selected: SelectedFixture) => React.ReactNode;
|
|
9
9
|
};
|
|
10
|
-
export declare function FixtureLoaderConnect({ moduleWrappers, selectedFixture, renderMessage, renderFixture
|
|
10
|
+
export declare function FixtureLoaderConnect({ moduleWrappers, selectedFixture, renderMessage, renderFixture }: Props): React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DelayRender, getFixtureListFromWrappers
|
|
2
|
+
import { DelayRender, getFixtureListFromWrappers } from 'react-cosmos-core';
|
|
3
3
|
import { RendererSync } from './RendererSync.js';
|
|
4
4
|
export function FixtureLoaderConnect({ moduleWrappers, selectedFixture, renderMessage, renderFixture, }) {
|
|
5
5
|
const fixtures = React.useMemo(() => getFixtureListFromWrappers(moduleWrappers), [moduleWrappers]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ReactDecorator, UserModuleWrappers } from 'react-cosmos-core';
|
|
3
|
-
import { SelectedFixture } from './SelectedFixture.js';
|
|
2
|
+
import type { ReactDecorator, UserModuleWrappers } from 'react-cosmos-core';
|
|
3
|
+
import type { SelectedFixture } from './SelectedFixture.js';
|
|
4
4
|
type Props = {
|
|
5
5
|
moduleWrappers: UserModuleWrappers;
|
|
6
6
|
globalDecorators?: ReactDecorator[];
|
|
@@ -8,5 +8,5 @@ type Props = {
|
|
|
8
8
|
selectedFixture: SelectedFixture | null;
|
|
9
9
|
fixtureProps?: Record<string, unknown>;
|
|
10
10
|
};
|
|
11
|
-
export declare function ServerFixtureLoader({ moduleWrappers, globalDecorators, renderMessage, selectedFixture, fixtureProps
|
|
11
|
+
export declare function ServerFixtureLoader({ moduleWrappers, globalDecorators, renderMessage, selectedFixture, fixtureProps }: Props): React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -3,12 +3,8 @@
|
|
|
3
3
|
import React, { Suspense } from 'react';
|
|
4
4
|
import { FixtureModule } from '../fixtureModule/FixtureModule.js';
|
|
5
5
|
import { AsyncModuleLoader } from '../moduleLoaders/AsyncModuleLoader.js';
|
|
6
|
-
import { FixtureLoaderConnect } from './FixtureLoaderConnect.js';
|
|
7
6
|
import { defaultRenderMessage } from './defaultRenderMessage.js';
|
|
7
|
+
import { FixtureLoaderConnect } from './FixtureLoaderConnect.js';
|
|
8
8
|
export function ServerFixtureLoader({ moduleWrappers, globalDecorators, renderMessage = defaultRenderMessage, selectedFixture, fixtureProps, }) {
|
|
9
|
-
return (React.createElement(FixtureLoaderConnect, { moduleWrappers: moduleWrappers, selectedFixture: selectedFixture, renderMessage: renderMessage, renderFixture: selected => (
|
|
10
|
-
// The suspense boundary allows the rendererReady response to be sent
|
|
11
|
-
// before loading the fixture modules.
|
|
12
|
-
React.createElement(Suspense, null,
|
|
13
|
-
React.createElement(AsyncModuleLoader, { moduleWrappers: moduleWrappers, fixturePath: selected.fixtureId.path, renderModules: modules => (React.createElement(FixtureModule, { ...modules, ...selected, globalDecorators: globalDecorators, fixtureProps: fixtureProps, lazy: moduleWrappers.lazy, renderMessage: renderMessage })) }))) }));
|
|
9
|
+
return (React.createElement(FixtureLoaderConnect, { moduleWrappers: moduleWrappers, selectedFixture: selectedFixture, renderMessage: renderMessage, renderFixture: selected => (React.createElement(Suspense, null, React.createElement(AsyncModuleLoader, { moduleWrappers: moduleWrappers, fixturePath: selected.fixtureId.path, renderModules: modules => (React.createElement(FixtureModule, { ...modules, ...selected, globalDecorators: globalDecorators, fixtureProps: fixtureProps, lazy: moduleWrappers.lazy, renderMessage: renderMessage })) }))) }));
|
|
14
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ReactDecorator, ReactDecoratorModule, ReactFixture } from 'react-cosmos-core';
|
|
2
|
+
import type { ReactDecorator, ReactDecoratorModule, ReactFixture } from 'react-cosmos-core';
|
|
3
3
|
type Props = {
|
|
4
4
|
fixture: ReactFixture;
|
|
5
5
|
fixtureOptions: {};
|
|
@@ -7,5 +7,5 @@ type Props = {
|
|
|
7
7
|
userDecoratorModules: ReactDecoratorModule[];
|
|
8
8
|
globalDecorators?: ReactDecorator[];
|
|
9
9
|
};
|
|
10
|
-
export declare function DecoratedFixture({ fixture, fixtureOptions, fixtureProps, userDecoratorModules, globalDecorators
|
|
10
|
+
export declare function DecoratedFixture({ fixture, fixtureOptions, fixtureProps, userDecoratorModules, globalDecorators }: Props): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
11
11
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FixtureId, FixtureState, ReactDecorator, ReactDecoratorModule, ReactFixtureModule } from 'react-cosmos-core';
|
|
2
|
+
import type { FixtureId, FixtureState, ReactDecorator, ReactDecoratorModule, ReactFixtureModule } from 'react-cosmos-core';
|
|
3
3
|
type Props = {
|
|
4
4
|
fixtureModule: ReactFixtureModule;
|
|
5
5
|
decoratorModules: ReactDecoratorModule[];
|
|
@@ -11,5 +11,5 @@ type Props = {
|
|
|
11
11
|
lazy: boolean;
|
|
12
12
|
renderMessage: (msg: string) => React.ReactNode;
|
|
13
13
|
};
|
|
14
|
-
export declare function FixtureModule({ fixtureModule, decoratorModules, globalDecorators, fixtureId, initialFixtureState, fixtureProps, renderKey, lazy, renderMessage
|
|
14
|
+
export declare function FixtureModule({ fixtureModule, decoratorModules, globalDecorators, fixtureId, initialFixtureState, fixtureProps, renderKey, lazy, renderMessage }: Props): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | Iterable<React.ReactNode> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | React.ReactPortal | null | undefined> | null | undefined;
|
|
15
15
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { isEqual } from 'lodash-es';
|
|
3
2
|
import React from 'react';
|
|
3
|
+
import { isEqual } from 'react-cosmos-core';
|
|
4
4
|
import { FixtureContext } from '../fixture/FixtureContext.js';
|
|
5
5
|
import { RendererContext } from '../rendererConnect/RendererContext.js';
|
|
6
6
|
export function FixtureProvider(props) {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import { ReactFixture } from 'react-cosmos-core';
|
|
3
|
+
import type { ReactFixture } from 'react-cosmos-core';
|
|
3
4
|
export declare function createFixtureNode(fixture: ReactFixture, fixtureProps?: Record<string, unknown>): React.ReactNode;
|
|
5
|
+
declare function FixtureElement({ Component, fixtureProps }: {
|
|
6
|
+
Component: ComponentType;
|
|
7
|
+
fixtureProps?: Record<string, unknown>;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
declare namespace FixtureElement {
|
|
10
|
+
var cosmosCapture: boolean;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ReactDecorator } from 'react-cosmos-core';
|
|
2
|
+
import type { ReactDecorator } from 'react-cosmos-core';
|
|
3
3
|
export declare function decorateFixture(fixtureNode: React.ReactNode, fixtureOptions: {}, decorators: ReactDecorator[]): React.ReactElement;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FixtureModules, UserModuleWrappers } from 'react-cosmos-core';
|
|
2
|
+
import type { FixtureModules, UserModuleWrappers } from 'react-cosmos-core';
|
|
3
3
|
type Props = {
|
|
4
4
|
moduleWrappers: UserModuleWrappers;
|
|
5
5
|
fixturePath: string;
|
|
6
6
|
renderModules: (modules: FixtureModules) => React.ReactElement;
|
|
7
7
|
};
|
|
8
|
-
export declare function AsyncModuleLoader({ moduleWrappers, fixturePath, renderModules
|
|
8
|
+
export declare function AsyncModuleLoader({ moduleWrappers, fixturePath, renderModules }: Props): Promise<React.ReactElement<unknown, string | React.JSXElementConstructor<any>>>;
|
|
9
9
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { getSortedDecoratorsForFixturePath } from 'react-cosmos-core';
|
|
2
3
|
import { importLazyFixtureModules } from './importLazyFixtureModules.js';
|
|
3
4
|
export async function AsyncModuleLoader({ moduleWrappers, fixturePath, renderModules, }) {
|
|
4
5
|
return renderModules(await getModules(moduleWrappers, fixturePath));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ByPath, FixtureModules, LazyReactDecoratorWrapper, LazyReactFixtureWrapper } from 'react-cosmos-core';
|
|
2
|
+
import type { ByPath, FixtureModules, LazyReactDecoratorWrapper, LazyReactFixtureWrapper } from 'react-cosmos-core';
|
|
3
3
|
type Props = {
|
|
4
4
|
fixtureWrapper: LazyReactFixtureWrapper;
|
|
5
5
|
decorators: ByPath<LazyReactDecoratorWrapper>;
|
|
6
6
|
fixturePath: string;
|
|
7
7
|
renderModules: (modules: FixtureModules) => React.ReactElement;
|
|
8
8
|
};
|
|
9
|
-
export declare function LazyModuleLoader({ fixtureWrapper, decorators, fixturePath, renderModules
|
|
9
|
+
export declare function LazyModuleLoader({ fixtureWrapper, decorators, fixturePath, renderModules }: Props): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
10
10
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { getSortedDecoratorsForFixturePath
|
|
2
|
+
import { getSortedDecoratorsForFixturePath } from 'react-cosmos-core';
|
|
3
3
|
import { importLazyFixtureModules } from './importLazyFixtureModules.js';
|
|
4
4
|
export function LazyModuleLoader({ fixtureWrapper, decorators, fixturePath, renderModules, }) {
|
|
5
5
|
const modules = useLazyFixtureModules(fixturePath, fixtureWrapper, decorators);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ByPath, FixtureModules, ReactDecoratorWrapper, ReactFixtureWrapper } from 'react-cosmos-core';
|
|
2
|
+
import type { ByPath, FixtureModules, ReactDecoratorWrapper, ReactFixtureWrapper } from 'react-cosmos-core';
|
|
3
3
|
type Props = {
|
|
4
4
|
fixtureWrapper: ReactFixtureWrapper;
|
|
5
5
|
decorators: ByPath<ReactDecoratorWrapper>;
|
|
6
6
|
fixturePath: string;
|
|
7
7
|
renderModules: (modules: FixtureModules) => React.ReactElement;
|
|
8
8
|
};
|
|
9
|
-
export declare function StaticModuleLoader({ fixtureWrapper, decorators, fixturePath, renderModules
|
|
9
|
+
export declare function StaticModuleLoader({ fixtureWrapper, decorators, fixturePath, renderModules }: Props): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
10
10
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { getSortedDecoratorsForFixturePath
|
|
2
|
+
import { getSortedDecoratorsForFixturePath } from 'react-cosmos-core';
|
|
3
3
|
export function StaticModuleLoader({ fixtureWrapper, decorators, fixturePath, renderModules, }) {
|
|
4
4
|
return renderModules(React.useMemo(() => ({
|
|
5
5
|
fixtureModule: fixtureWrapper.module,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LazyReactDecoratorWrapper, LazyReactFixtureWrapper } from 'react-cosmos-core';
|
|
1
|
+
import type { LazyReactDecoratorWrapper, LazyReactFixtureWrapper } from 'react-cosmos-core';
|
|
2
2
|
export declare function importLazyFixtureModules(fixtureWrapper: LazyReactFixtureWrapper, decoratorWrappers: LazyReactDecoratorWrapper[]): Promise<{
|
|
3
3
|
fixtureModule: import("react-cosmos-core").ReactFixtureModule;
|
|
4
4
|
decoratorModules: import("react-cosmos-core").ReactDecoratorModule[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FixtureId, FixtureList, FixtureState, RendererConnect } from 'react-cosmos-core';
|
|
3
|
-
import { SelectedFixture } from '../fixtureLoaders/SelectedFixture.js';
|
|
2
|
+
import type { FixtureId, FixtureList, FixtureState, RendererConnect } from 'react-cosmos-core';
|
|
3
|
+
import type { SelectedFixture } from '../fixtureLoaders/SelectedFixture.js';
|
|
4
4
|
export type RendererContextValue = {
|
|
5
5
|
rendererId: string;
|
|
6
6
|
rendererConnect: RendererConnect;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FixtureId, FixtureState, RendererConnect } from 'react-cosmos-core';
|
|
3
|
-
import { SelectedFixture } from '../fixtureLoaders/SelectedFixture.js';
|
|
2
|
+
import type { FixtureId, FixtureState, RendererConnect } from 'react-cosmos-core';
|
|
3
|
+
import type { SelectedFixture } from '../fixtureLoaders/SelectedFixture.js';
|
|
4
4
|
type Props = {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
rendererId: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RendererConnect } from 'react-cosmos-core';
|
|
1
|
+
import type { RendererConnect } from 'react-cosmos-core';
|
|
2
2
|
export declare function createNoopRendererConnect(): RendererConnect;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RendererConnect } from 'react-cosmos-core';
|
|
1
|
+
import type { RendererConnect } from 'react-cosmos-core';
|
|
2
2
|
export declare function createPostMessageConnect(): RendererConnect;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RendererConnect } from 'react-cosmos-core';
|
|
1
|
+
import type { RendererConnect } from 'react-cosmos-core';
|
|
2
2
|
export declare function createWebSocketsConnect(url: string): RendererConnect;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-cosmos-renderer",
|
|
3
|
-
"version": "7.2.0",
|
|
3
|
+
"version": "7.2.1-canary.0004fe7.0+0004fe7",
|
|
4
4
|
"description": "React Cosmos Renderer",
|
|
5
5
|
"repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos-renderer",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,11 +11,10 @@
|
|
|
11
11
|
"./client": "./client.js"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"
|
|
15
|
-
"react-cosmos-core": "^7.2.0"
|
|
14
|
+
"react-cosmos-core": "7.2.1-canary.0004fe7.0+0004fe7"
|
|
16
15
|
},
|
|
17
16
|
"peerDependencies": {
|
|
18
17
|
"react": ">=18"
|
|
19
18
|
},
|
|
20
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "0004fe756e5584e482ea2acd8a2e7d29cdac2675"
|
|
21
20
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"7.0.0-dev.20260417.1","root":["./src/client.ts","./src/index.ts","./src/wrapSetTimeoutAct.ts","./src/fixture/ClassStateMock.tsx","./src/fixture/FixtureContext.ts","./src/fixture/Viewport.tsx","./src/fixture/useFixtureState.ts","./src/fixture/FixtureCapture/FixtureCapture.tsx","./src/fixture/FixtureCapture/classState/index.ts","./src/fixture/FixtureCapture/classState/shared.ts","./src/fixture/FixtureCapture/classState/useFixtureClassState.ts","./src/fixture/FixtureCapture/classState/useReadClassState.ts","./src/fixture/FixtureCapture/classState/decorateFixtureRefs/index.ts","./src/fixture/FixtureCapture/classState/decorateFixtureRefs/isRefSupported.ts","./src/fixture/FixtureCapture/props/index.ts","./src/fixture/FixtureCapture/props/useFixtureProps.ts","./src/fixture/FixtureCapture/shared/findRelevantElementPaths.ts","./src/fixture/FixtureCapture/shared/nodeTree/elPath.ts","./src/fixture/FixtureCapture/shared/nodeTree/findElementPaths.ts","./src/fixture/FixtureCapture/shared/nodeTree/getElementAtPath.ts","./src/fixture/FixtureCapture/shared/nodeTree/index.ts","./src/fixture/FixtureCapture/shared/nodeTree/setElementAtPath.ts","./src/fixture/useCosmosNotification/useCosmosNotification.ts","./src/fixture/useFixtureInput/useCurrentInputValue.ts","./src/fixture/useFixtureInput/useFixtureInput.ts","./src/fixture/useFixtureInput/useInputFixtureState.ts","./src/fixture/useFixtureInput/useSetInputValue.ts","./src/fixture/useFixtureInput/useValue.ts","./src/fixture/useFixtureSelect/shared.ts","./src/fixture/useFixtureSelect/useCurrentSelectValue.ts","./src/fixture/useFixtureSelect/useFixtureSelect.ts","./src/fixture/useFixtureSelect/useSelect.ts","./src/fixture/useFixtureSelect/useSelectFixtureState.ts","./src/fixture/useFixtureSelect/useSetSelectValue.ts","./src/fixtureLoaders/ClientFixtureLoader.tsx","./src/fixtureLoaders/FixtureLoaderConnect.tsx","./src/fixtureLoaders/RendererSync.tsx","./src/fixtureLoaders/SelectedFixture.ts","./src/fixtureLoaders/ServerFixtureLoader.tsx","./src/fixtureLoaders/defaultRenderMessage.tsx","./src/fixtureModule/DecoratedFixture.tsx","./src/fixtureModule/FixtureModule.tsx","./src/fixtureModule/FixtureProvider.tsx","./src/fixtureModule/createFixtureNode.tsx","./src/fixtureModule/decorateFixture.tsx","./src/moduleLoaders/AsyncModuleLoader.tsx","./src/moduleLoaders/LazyModuleLoader.tsx","./src/moduleLoaders/StaticModuleLoader.tsx","./src/moduleLoaders/importLazyFixtureModules.ts","./src/rendererConnect/RendererContext.ts","./src/rendererConnect/RendererProvider.tsx","./src/rendererConnect/StatefulRendererProvider.tsx","./src/rendererConnect/createNoopRendererConnect.ts","./src/rendererConnect/createPostMessageConnect.ts","./src/rendererConnect/createWebSocketsConnect.ts","./src/rendererConnect/globals.d.ts"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"root":["../src/client.ts","../src/index.ts","../src/wrapsettimeoutact.ts","../src/fixture/classstatemock.tsx","../src/fixture/fixturecontext.ts","../src/fixture/viewport.tsx","../src/fixture/usefixturestate.ts","../src/fixture/fixturecapture/fixturecapture.tsx","../src/fixture/fixturecapture/classstate/index.ts","../src/fixture/fixturecapture/classstate/shared.ts","../src/fixture/fixturecapture/classstate/usefixtureclassstate.ts","../src/fixture/fixturecapture/classstate/usereadclassstate.ts","../src/fixture/fixturecapture/classstate/decoratefixturerefs/index.ts","../src/fixture/fixturecapture/classstate/decoratefixturerefs/isrefsupported.ts","../src/fixture/fixturecapture/props/index.ts","../src/fixture/fixturecapture/props/usefixtureprops.ts","../src/fixture/fixturecapture/shared/findrelevantelementpaths.ts","../src/fixture/fixturecapture/shared/nodetree/findelementpaths.ts","../src/fixture/fixturecapture/shared/nodetree/getelementatpath.ts","../src/fixture/fixturecapture/shared/nodetree/index.ts","../src/fixture/fixturecapture/shared/nodetree/setelementatpath.ts","../src/fixture/fixturecapture/shared/nodetree/shared.ts","../src/fixture/usecosmosnotification/usecosmosnotification.ts","../src/fixture/usefixtureinput/usecurrentinputvalue.ts","../src/fixture/usefixtureinput/usefixtureinput.ts","../src/fixture/usefixtureinput/useinputfixturestate.ts","../src/fixture/usefixtureinput/usesetinputvalue.ts","../src/fixture/usefixtureinput/usevalue.ts","../src/fixture/usefixtureselect/shared.ts","../src/fixture/usefixtureselect/usecurrentselectvalue.ts","../src/fixture/usefixtureselect/usefixtureselect.ts","../src/fixture/usefixtureselect/useselect.ts","../src/fixture/usefixtureselect/useselectfixturestate.ts","../src/fixture/usefixtureselect/usesetselectvalue.ts","../src/fixtureloaders/clientfixtureloader.tsx","../src/fixtureloaders/fixtureloaderconnect.tsx","../src/fixtureloaders/renderersync.tsx","../src/fixtureloaders/selectedfixture.ts","../src/fixtureloaders/serverfixtureloader.tsx","../src/fixtureloaders/defaultrendermessage.tsx","../src/fixturemodule/decoratedfixture.tsx","../src/fixturemodule/fixturemodule.tsx","../src/fixturemodule/fixtureprovider.tsx","../src/fixturemodule/createfixturenode.tsx","../src/fixturemodule/decoratefixture.tsx","../src/moduleloaders/asyncmoduleloader.tsx","../src/moduleloaders/lazymoduleloader.tsx","../src/moduleloaders/staticmoduleloader.tsx","../src/moduleloaders/importlazyfixturemodules.ts","../src/rendererconnect/renderercontext.ts","../src/rendererconnect/rendererprovider.tsx","../src/rendererconnect/statefulrendererprovider.tsx","../src/rendererconnect/createnooprendererconnect.ts","../src/rendererconnect/createpostmessageconnect.ts","../src/rendererconnect/createwebsocketsconnect.ts","../src/rendererconnect/globals.d.ts"],"version":"5.9.3"}
|
|
File without changes
|
|
File without changes
|