react-cosmos-shared2
Advanced tools
Comparing version 5.0.0-alpha.10 to 5.0.0-alpha.12
@@ -8,6 +8,8 @@ import { FixtureDecoratorId, FixtureStateValues, FixtureElementId, FixtureStateClassState, FixtureState } from './shared'; | ||
values: FixtureStateValues; | ||
componentName: string; | ||
}; | ||
export declare function createFixtureStateClassState({ fixtureState, elementId, values }: CreateFixtureStateClassStateArgs): { | ||
export declare function createFixtureStateClassState({ fixtureState, elementId, values, componentName }: CreateFixtureStateClassStateArgs): { | ||
elementId: FixtureElementId; | ||
values: Record<string, import("./shared").FixtureStateValue>; | ||
componentName: string; | ||
}[]; | ||
@@ -14,0 +16,0 @@ declare type UpdateFixtureStateClassStateArgs = { |
@@ -18,7 +18,8 @@ "use strict"; | ||
function createFixtureStateClassState(_a) { | ||
var fixtureState = _a.fixtureState, elementId = _a.elementId, values = _a.values; | ||
var fixtureState = _a.fixtureState, elementId = _a.elementId, values = _a.values, componentName = _a.componentName; | ||
var _b = fixtureState.classState, classState = _b === void 0 ? [] : _b; | ||
return util_1.replaceOrAddItem(classState, createClassStateMatcher(elementId), { | ||
elementId: elementId, | ||
values: values | ||
values: values, | ||
componentName: componentName | ||
}); | ||
@@ -25,0 +26,0 @@ } |
@@ -37,2 +37,3 @@ import { StateUpdater } from '../util'; | ||
values: FixtureStateValues; | ||
componentName: string; | ||
}; | ||
@@ -39,0 +40,0 @@ export declare type FixtureState = { |
{ | ||
"name": "react-cosmos-shared2", | ||
"version": "5.0.0-alpha.10", | ||
"version": "5.0.0-alpha.12", | ||
"description": "Code shared between Cosmos packages", | ||
@@ -12,3 +12,3 @@ "repository": "https://github.com/react-cosmos/react-cosmos/tree/master/packages/react-cosmos-shared2", | ||
}, | ||
"gitHead": "81263ac7c8d8f3f6e8789bc75e388f76c9dbc6e3" | ||
"gitHead": "20174a15e87193d10cc42c66bdb5d154c2f3bf2e" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33570
595