@brucesantos/design-space 0.6.0 → 0.9.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/CHANGELOG.md +264 -0
- package/README.md +249 -122
- package/dist/adapters/useScenarioData.d.ts +2 -0
- package/dist/controls/params.d.ts +13 -5
- package/dist/controls/state.d.ts +44 -11
- package/dist/deploy/index.d.ts +4 -4
- package/dist/design-space.css +1 -1
- package/dist/frame/index.d.ts +93 -0
- package/dist/handoff/index.d.ts +3 -2
- package/dist/index-DxIx4GAk.js +439 -0
- package/dist/index-DxIx4GAk.js.map +1 -0
- package/dist/index.d.ts +7 -10
- package/dist/index.js +2107 -1993
- package/dist/index.js.map +1 -1
- package/dist/registry/index.d.ts +115 -27
- package/dist/shell/Canvas.d.ts +19 -0
- package/dist/shell/FrameView.d.ts +9 -0
- package/dist/shell/Panel.d.ts +38 -0
- package/dist/shell/Resizer.d.ts +14 -0
- package/dist/shell/Sidebar.d.ts +15 -7
- package/dist/shell/Stage.d.ts +0 -20
- package/dist/shell/Topbar.d.ts +20 -12
- package/dist/shell/icons.d.ts +9 -0
- package/dist/shell/labels.d.ts +85 -119
- package/dist/shell/prMarkdown.d.ts +43 -0
- package/dist/shell/storage.d.ts +14 -0
- package/dist/testing/index.d.ts +9 -11
- package/dist/testing.js +20 -31
- package/dist/testing.js.map +1 -1
- package/dist/types/index.d.ts +115 -119
- package/dist/version.d.ts +2 -0
- package/package.json +3 -3
- package/dist/a11y/accessible-tree.d.ts +0 -37
- package/dist/a11y/contrast.d.ts +0 -62
- package/dist/a11y/useKeyboardMode.d.ts +0 -23
- package/dist/contrast-B8xa1UIu.js +0 -389
- package/dist/contrast-B8xa1UIu.js.map +0 -1
- package/dist/shell/Controls.d.ts +0 -11
- package/dist/shell/Home.d.ts +0 -12
- package/dist/shell/Inspector.d.ts +0 -13
package/dist/index.d.ts
CHANGED
|
@@ -7,20 +7,17 @@
|
|
|
7
7
|
* (Princípio 10).
|
|
8
8
|
*/
|
|
9
9
|
export { DesignSpace, type DesignSpaceProps } from './shell/DesignSpace.js';
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export { createRegistry, type ComponentFixtureResolution, type ModuleNode, type Registry, type ScenarioQueryOptions, } from './registry/index.js';
|
|
10
|
+
export { StageEmpty } from './shell/Stage.js';
|
|
11
|
+
export { DEFAULT_LABELS, EN_US_LABELS, NETWORK_LABELS, resolveLabels, useLabels, type Labels, type LabelsOverride, } from './shell/labels.js';
|
|
12
|
+
export { createRegistry, normalizeSearch, type ComponentFixtureResolution, type ControlResolution, type FlowNode, type InvalidControl, type Registry, type ScenarioQueryOptions, type ScreenNode, } from './registry/index.js';
|
|
14
13
|
export { formatIssues, hasErrors, validateProduct, validateScenario, type ValidationIssue, } from './registry/validate.js';
|
|
15
14
|
export { matchPath, resolveRoute, type RouteMatch } from './router/index.js';
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
15
|
+
export { VIEWPORTS, ZOOM_DEFAULT, ZOOM_MAX, ZOOM_MIN, clampZoom, parseControls, resolveViewport, serializeControls, useDesignSpaceState, type DesignSpaceState, type DesignSpaceStateOptions, type DesignSpaceLocation, } from './controls/state.js';
|
|
16
|
+
export { FRAME_ATTRIBUTE, FRAME_PARAM } from './frame/index.js';
|
|
17
|
+
export { CONTROL_PARAM_PREFIX, PARAM, applyOverrides, serializeValue } from './controls/params.js';
|
|
18
18
|
export { HANDOFF_PARAM, applyHandoffScope, handoffAllowsComponent, handoffAllowsPath, handoffAllowsScenario, normalizeHandoffScope, parseHandoffScope, } from './handoff/index.js';
|
|
19
19
|
export { SLOW_NETWORK_DELAY_MS, SimulatedNetworkError, createHttpAdapter, fixtureAdapter, resolveFixture, } from './adapters/index.js';
|
|
20
20
|
export { useScenarioData, type ScenarioData } from './adapters/useScenarioData.js';
|
|
21
21
|
export { commitUrl, componentUrl, getDeployContext, scenarioUrl, type DeployContext, } from './deploy/index.js';
|
|
22
|
-
export { CONTRAST_THRESHOLDS, assertContrastPairs, checkContrastPair, checkContrastPairs, contrastRatio, flatten, parseColor, readCssVariable, relativeLuminance, type ContrastResult, type Rgb, } from './a11y/contrast.js';
|
|
23
|
-
export { computeRole, describeElement, shortSelector, tabbableElements, type AccessibleNode, } from './a11y/accessible-tree.js';
|
|
24
|
-
export { useKeyboardMode, type KeyboardModeResult, type TabStop, } from './a11y/useKeyboardMode.js';
|
|
25
22
|
export { ageInYears, daysBetween, parseIsoDate } from './util/date.js';
|
|
26
|
-
export { NETWORK_STATES,
|
|
23
|
+
export { NETWORK_STATES, type ComponentPreview, type ComponentPreviewFixture, type ComponentPreviewProps, type ChromeTheme, type Control, type ControlGroup, type ControlOption, type ControlsState, type DeployOverrides, type DataRequest, type DataSourceAdapter, type Fixture, type HandoffScope, type NetworkState, type PanelTab, type Persona, type ProductDefinition, type ProductTheme, type Rule, type RouteDefinition, type Scenario, type ScenarioContext, type ScreenProps, type ViewportSetting, } from './types/index.js';
|