sculpted 0.3.1 → 0.3.3

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.
@@ -171,6 +171,7 @@ type RuntimeStyleEvidence = {
171
171
  readonly bounds?: RuntimeElementBounds;
172
172
  readonly ancestors?: readonly string[];
173
173
  readonly componentLayers?: readonly RuntimeComponentLayer[];
174
+ readonly inheritedStyleSources?: readonly RuntimeInheritedStyleSource[];
174
175
  };
175
176
  type RuntimeCssDeclaration = {
176
177
  readonly property: string;
@@ -198,6 +199,14 @@ type RuntimeComponentLayerElement = {
198
199
  readonly element?: Element;
199
200
  readonly inspected?: boolean;
200
201
  };
202
+ type RuntimeInheritedStyleSource = {
203
+ readonly target: PandaCssSourceTarget;
204
+ readonly depth: number;
205
+ readonly tagName: string;
206
+ readonly source?: string;
207
+ readonly component?: string;
208
+ readonly computedStyles: readonly RuntimeCssDeclaration[];
209
+ };
201
210
  type RuntimeAttribute = {
202
211
  readonly name: string;
203
212
  readonly value: string;
@@ -235,6 +244,7 @@ type InlineCssSourceCreateRequest = {
235
244
  readonly editId: string;
236
245
  readonly kind: 'panda-css-inline-source';
237
246
  readonly jsxSource: string;
247
+ readonly edits?: readonly StyleEdit[];
238
248
  readonly options?: Pick<StyleEditOptions, 'write' | 'format'>;
239
249
  };
240
250
  type StyleModuleSourceCreateRequest = {
@@ -378,4 +388,4 @@ type PreviewStyleSheet = {
378
388
  readonly rules: readonly PreviewStyleRule[];
379
389
  };
380
390
  //#endregion
381
- export { StyleModuleEditRequest as $, RuntimeAttribute as A, SourcePosition as B, OpenSourceLocationRequest as C, PreviewStyleCondition as D, PandaStyleObject as E, RuntimePropertyContext as F, StyleEdit as G, SourceTarget as H, RuntimeStyleEvidence as I, StyleEditError as J, StyleEditBatchRequest as K, SelectedElementInfo as L, RuntimeComponentLayerElement as M, RuntimeCssDeclaration as N, PreviewStyleRule as O, RuntimeElementBounds as P, StyleEditResponse as Q, SelectedElementState as R, OpenSourceLocationErrorCode as S, PandaCssSourceTarget as T, SourceTargetBase as U, SourceRange as V, SourceTargetKind as W, StyleEditOptions as X, StyleEditErrorCode as Y, StyleEditRequest as Z, InspectorManifest as _, EditorColorTokenMetadata as a, TokenConfigEditResponse as at, JsonValue as b, EditorMetadataUnavailableReason as c, EditorPropertyMetadata as d, StyleModuleSourceAttachRequest as et, EditorTokenSourceSection as f, InspectorEditorMetadata as g, InlineCssSourceCreateRequest as h, DynamicSourceTarget as i, TokenConfigEditRequest as it, RuntimeComponentLayer as j, PreviewStyleSheet as k, EditorMetadataUpdateEvent as l, ExternalSourceTarget as m, ComponentStyleModuleSource as n, StyleModuleSourceDetachRequest as nt, EditorFontTokenMetadata as o, UnsupportedReason as ot, EditorTokenSourceTarget as p, StyleEditBatchResponse as q, Confidence as r, StyleValueSource as rt, EditorMetadataSection as s, UnsupportedSourceTarget as st, ComponentStyleModuleResponse as t, StyleModuleSourceCreateRequest as tt, EditorPropertyCategory as u, InspectorManifestEntry as v, OpenSourceLocationResponse as w, ManifestUpdateEvent as x, JsonPrimitive as y, SourceLocation as z };
391
+ export { StyleEditResponse as $, RuntimeAttribute as A, SourceLocation as B, OpenSourceLocationRequest as C, PreviewStyleCondition as D, PandaStyleObject as E, RuntimeInheritedStyleSource as F, SourceTargetKind as G, SourceRange as H, RuntimePropertyContext as I, StyleEditBatchResponse as J, StyleEdit as K, RuntimeStyleEvidence as L, RuntimeComponentLayerElement as M, RuntimeCssDeclaration as N, PreviewStyleRule as O, RuntimeElementBounds as P, StyleEditRequest as Q, SelectedElementInfo as R, OpenSourceLocationErrorCode as S, PandaCssSourceTarget as T, SourceTarget as U, SourcePosition as V, SourceTargetBase as W, StyleEditErrorCode as X, StyleEditError as Y, StyleEditOptions as Z, InspectorManifest as _, EditorColorTokenMetadata as a, TokenConfigEditRequest as at, JsonValue as b, EditorMetadataUnavailableReason as c, UnsupportedSourceTarget as ct, EditorPropertyMetadata as d, StyleModuleEditRequest as et, EditorTokenSourceSection as f, InspectorEditorMetadata as g, InlineCssSourceCreateRequest as h, DynamicSourceTarget as i, StyleValueSource as it, RuntimeComponentLayer as j, PreviewStyleSheet as k, EditorMetadataUpdateEvent as l, ExternalSourceTarget as m, ComponentStyleModuleSource as n, StyleModuleSourceCreateRequest as nt, EditorFontTokenMetadata as o, TokenConfigEditResponse as ot, EditorTokenSourceTarget as p, StyleEditBatchRequest as q, Confidence as r, StyleModuleSourceDetachRequest as rt, EditorMetadataSection as s, UnsupportedReason as st, ComponentStyleModuleResponse as t, StyleModuleSourceAttachRequest as tt, EditorPropertyCategory as u, InspectorManifestEntry as v, OpenSourceLocationResponse as w, ManifestUpdateEvent as x, JsonPrimitive as y, SelectedElementState as z };
package/dist/ui.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as RuntimePropertyContext, L as SelectedElementInfo, N as RuntimeCssDeclaration, j as RuntimeComponentLayer } from "./types-CdByW0ji.mjs";
2
- import { r as SculptedRuntime } from "./runtime-C911j-aR.mjs";
1
+ import { I as RuntimePropertyContext, N as RuntimeCssDeclaration, R as SelectedElementInfo, j as RuntimeComponentLayer } from "./types-0a4hNfAF.mjs";
2
+ import { r as SculptedRuntime } from "./runtime-Cpxddehp.mjs";
3
3
 
4
4
  //#region src/ui/inspectorPanel.d.ts
5
5
  type ReadonlyInspectorPanelOptions = {
@@ -17,6 +17,7 @@ type ReadonlyInspectorPanelView = {
17
17
  readonly editable: boolean;
18
18
  readonly styleRows: readonly ReadonlyInspectorPanelRow[];
19
19
  readonly editableTargets: readonly ReadonlyInspectorPanelTarget[];
20
+ readonly inheritedTargets: readonly ReadonlyInspectorPanelInheritedTarget[];
20
21
  readonly inlineSourceCreate?: ReadonlyInspectorPanelInlineSourceCreate;
21
22
  readonly inspectedJsxSource?: string;
22
23
  readonly inspectedComponentSource?: string;
@@ -44,6 +45,10 @@ type ReadonlyInspectorPanelTarget = {
44
45
  readonly jsxSourceAliases?: readonly string[];
45
46
  readonly styleRows: readonly ReadonlyInspectorPanelRow[];
46
47
  };
48
+ type ReadonlyInspectorPanelInheritedTarget = ReadonlyInspectorPanelTarget & {
49
+ readonly depth: number;
50
+ readonly inheritedFrom: string;
51
+ };
47
52
  type ReadonlyInspectorPanelReadonlyTarget = {
48
53
  readonly id: string;
49
54
  readonly kind: string;