sculpted 0.3.2 → 0.3.4

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.
@@ -1,4 +1,4 @@
1
- import { V as SourceRange, z as SourceLocation } from "./types-CdByW0ji.mjs";
1
+ import { B as SourceLocation, H as SourceRange } from "./types-BWXru9cn.mjs";
2
2
  import ts from "typescript";
3
3
 
4
4
  //#region src/sourceSyntax.d.ts
package/dist/tsrx.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { s as SourceParserAdapter } from "./sourceSyntax-U2iybN9L.mjs";
1
+ import { s as SourceParserAdapter } from "./sourceSyntax-BpjcDJyk.mjs";
2
2
 
3
3
  //#region src/tsrx.d.ts
4
4
  declare const sourceSyntax: SourceParserAdapter;
@@ -142,6 +142,7 @@ type EditorPropertyMetadata = {
142
142
  readonly aliases: readonly string[];
143
143
  readonly tokenCategory?: string;
144
144
  readonly defaultUnit?: string;
145
+ readonly commonness?: number;
145
146
  };
146
147
  type InspectorEditorMetadata = {
147
148
  readonly version: number;
@@ -171,6 +172,7 @@ type RuntimeStyleEvidence = {
171
172
  readonly bounds?: RuntimeElementBounds;
172
173
  readonly ancestors?: readonly string[];
173
174
  readonly componentLayers?: readonly RuntimeComponentLayer[];
175
+ readonly inheritedStyleSources?: readonly RuntimeInheritedStyleSource[];
174
176
  };
175
177
  type RuntimeCssDeclaration = {
176
178
  readonly property: string;
@@ -198,6 +200,14 @@ type RuntimeComponentLayerElement = {
198
200
  readonly element?: Element;
199
201
  readonly inspected?: boolean;
200
202
  };
203
+ type RuntimeInheritedStyleSource = {
204
+ readonly target: PandaCssSourceTarget;
205
+ readonly depth: number;
206
+ readonly tagName: string;
207
+ readonly source?: string;
208
+ readonly component?: string;
209
+ readonly computedStyles: readonly RuntimeCssDeclaration[];
210
+ };
201
211
  type RuntimeAttribute = {
202
212
  readonly name: string;
203
213
  readonly value: string;
@@ -235,6 +245,7 @@ type InlineCssSourceCreateRequest = {
235
245
  readonly editId: string;
236
246
  readonly kind: 'panda-css-inline-source';
237
247
  readonly jsxSource: string;
248
+ readonly edits?: readonly StyleEdit[];
238
249
  readonly options?: Pick<StyleEditOptions, 'write' | 'format'>;
239
250
  };
240
251
  type StyleModuleSourceCreateRequest = {
@@ -378,4 +389,4 @@ type PreviewStyleSheet = {
378
389
  readonly rules: readonly PreviewStyleRule[];
379
390
  };
380
391
  //#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 };
392
+ 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-C1gUOAc9.mjs";
1
+ import { I as RuntimePropertyContext, N as RuntimeCssDeclaration, R as SelectedElementInfo, j as RuntimeComponentLayer } from "./types-BWXru9cn.mjs";
2
+ import { r as SculptedRuntime } from "./runtime-C5jlEq5d.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;