react-cosmos-ui 6.0.0-alpha.19 → 6.0.0-alpha.20
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/components/ValueInputTree/index.d.ts +1 -1
- package/dist/components/ValueInputTree/index.js +1 -1
- package/dist/components/ValueInputTree/shared.d.ts +1 -2
- package/dist/components/ValueInputTree/shared.js +0 -4
- package/dist/components/ValueInputTree/valueTreeExpansion.js +2 -1
- package/dist/playground.bundle.js +7 -7
- package/dist/playground.bundle.js.map +1 -1
- package/dist/plugins/FixtureBookmark/FixtureBookmarks.js +1 -1
- package/dist/plugins/ResponsivePreview/ResponsivePreview/{Header.d.ts → ResponsiveHeader.d.ts} +1 -1
- package/dist/plugins/ResponsivePreview/ResponsivePreview/{Header.js → ResponsiveHeader.js} +1 -1
- package/dist/plugins/ResponsivePreview/ResponsivePreview/ResponsivePreview.js +2 -2
- package/dist/plugins/ResponsivePreview/shared.js +13 -10
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ValueInputTree } from './ValueInputTree.js';
|
|
2
|
-
export { stringifyElementId
|
|
2
|
+
export { stringifyElementId } from './shared.js';
|
|
3
3
|
export { hasFsValues, sortFsValueGroups } from './valueGroups.js';
|
|
4
4
|
export { FixtureExpansion, FixtureExpansionGroup, OnElementExpansionChange, getFixtureExpansion, updateElementExpansion, } from './valueTreeExpansion.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ValueInputTree } from './ValueInputTree.js';
|
|
2
|
-
export { stringifyElementId
|
|
2
|
+
export { stringifyElementId } from './shared.js';
|
|
3
3
|
export { hasFsValues, sortFsValueGroups } from './valueGroups.js';
|
|
4
4
|
export { getFixtureExpansion, updateElementExpansion, } from './valueTreeExpansion.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FixtureElementId,
|
|
1
|
+
import { FixtureElementId, FixtureStatePrimitiveValue, FixtureStateUnserializableValue, TreeNode } from 'react-cosmos-core';
|
|
2
2
|
export type LeafValue = FixtureStatePrimitiveValue | FixtureStateUnserializableValue;
|
|
3
3
|
export type ValueNodeData = {
|
|
4
4
|
type: 'collection';
|
|
@@ -12,5 +12,4 @@ type ValueTreeItemProps = {
|
|
|
12
12
|
};
|
|
13
13
|
export declare const ValueTreeItem: import("styled-components").StyledComponent<"div", any, ValueTreeItemProps, never>;
|
|
14
14
|
export declare function stringifyElementId(elementId: FixtureElementId): string;
|
|
15
|
-
export declare function stringifyFixtureId(fixtureId: FixtureId): string;
|
|
16
15
|
export {};
|
|
@@ -6,10 +6,6 @@ export function stringifyElementId(elementId) {
|
|
|
6
6
|
const { decoratorId, elPath } = elementId;
|
|
7
7
|
return elPath ? `${decoratorId}-${elPath}` : decoratorId;
|
|
8
8
|
}
|
|
9
|
-
export function stringifyFixtureId(fixtureId) {
|
|
10
|
-
const { path, name } = fixtureId;
|
|
11
|
-
return name ? `${path}-${name}` : path;
|
|
12
|
-
}
|
|
13
9
|
function getLeftPadding(depth) {
|
|
14
10
|
return depth * 12;
|
|
15
11
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { clone, setWith } from 'lodash-es';
|
|
2
|
-
import {
|
|
2
|
+
import { stringifyFixtureId, } from 'react-cosmos-core';
|
|
3
|
+
import { stringifyElementId } from './shared.js';
|
|
3
4
|
const DEFAULT_EXPANSION = {};
|
|
4
5
|
export function getFixtureExpansion(groupExpansion, fixtureId) {
|
|
5
6
|
return groupExpansion[stringifyFixtureId(fixtureId)] || DEFAULT_EXPANSION;
|