@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.
Files changed (40) hide show
  1. package/CHANGELOG.md +264 -0
  2. package/README.md +249 -122
  3. package/dist/adapters/useScenarioData.d.ts +2 -0
  4. package/dist/controls/params.d.ts +13 -5
  5. package/dist/controls/state.d.ts +44 -11
  6. package/dist/deploy/index.d.ts +4 -4
  7. package/dist/design-space.css +1 -1
  8. package/dist/frame/index.d.ts +93 -0
  9. package/dist/handoff/index.d.ts +3 -2
  10. package/dist/index-DxIx4GAk.js +439 -0
  11. package/dist/index-DxIx4GAk.js.map +1 -0
  12. package/dist/index.d.ts +7 -10
  13. package/dist/index.js +2107 -1993
  14. package/dist/index.js.map +1 -1
  15. package/dist/registry/index.d.ts +115 -27
  16. package/dist/shell/Canvas.d.ts +19 -0
  17. package/dist/shell/FrameView.d.ts +9 -0
  18. package/dist/shell/Panel.d.ts +38 -0
  19. package/dist/shell/Resizer.d.ts +14 -0
  20. package/dist/shell/Sidebar.d.ts +15 -7
  21. package/dist/shell/Stage.d.ts +0 -20
  22. package/dist/shell/Topbar.d.ts +20 -12
  23. package/dist/shell/icons.d.ts +9 -0
  24. package/dist/shell/labels.d.ts +85 -119
  25. package/dist/shell/prMarkdown.d.ts +43 -0
  26. package/dist/shell/storage.d.ts +14 -0
  27. package/dist/testing/index.d.ts +9 -11
  28. package/dist/testing.js +20 -31
  29. package/dist/testing.js.map +1 -1
  30. package/dist/types/index.d.ts +115 -119
  31. package/dist/version.d.ts +2 -0
  32. package/package.json +3 -3
  33. package/dist/a11y/accessible-tree.d.ts +0 -37
  34. package/dist/a11y/contrast.d.ts +0 -62
  35. package/dist/a11y/useKeyboardMode.d.ts +0 -23
  36. package/dist/contrast-B8xa1UIu.js +0 -389
  37. package/dist/contrast-B8xa1UIu.js.map +0 -1
  38. package/dist/shell/Controls.d.ts +0 -11
  39. package/dist/shell/Home.d.ts +0 -12
  40. 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 { Stage, StageEmpty, TabOrderOverlay, type StageProps } from './shell/Stage.js';
11
- export { Home, type HomeProps } from './shell/Home.js';
12
- export { DEFAULT_LABELS, EN_US_LABELS, KEYBOARD_LABELS, NETWORK_LABELS, STATUS_LABELS, STATUS_MEANING, resolveLabels, useLabels, type Labels, type LabelsOverride, } from './shell/labels.js';
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 { TEXT_SCALES, VIEWPORTS, parseControls, resolveViewport, serializeControls, useDesignSpaceState, type DesignSpaceState, type DesignSpaceLocation, } from './controls/state.js';
17
- export { PARAM, applyOverrides, serializeValue } from './controls/params.js';
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, SCENARIO_STATUSES, type A11yContract, type ContrastPair, type ContrastTarget, type ComponentPreview, type ComponentPreviewFixture, type ComponentPreviewProps, type ChromeTheme, type ControlsState, type DeployOverrides, type DataRequest, type DataSourceAdapter, type Fixture, type Flow, type FlowStep, type HandoffScope, type KeyboardCoverage, type Module, type NetworkState, type Persona, type ProductDefinition, type ProductTheme, type Rule, type RouteDefinition, type Scenario, type ScenarioContext, type ScenarioStatus, type ScenarioView, type ScreenProps, type ViewportSetting, } from './types/index.js';
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';