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.
- package/README.md +4 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/{patcher-DQgKdozw.mjs → patcher-nj9VhRT-.mjs} +131 -11
- package/dist/{runtime-C911j-aR.d.mts → runtime-Cpxddehp.d.mts} +3 -2
- package/dist/runtime.d.mts +1 -1
- package/dist/runtime.mjs +530 -18
- package/dist/{sourceSyntax-U2iybN9L.d.mts → sourceSyntax-DKIh-VKA.d.mts} +1 -1
- package/dist/tsrx.d.mts +1 -1
- package/dist/{types-CdByW0ji.d.mts → types-0a4hNfAF.d.mts} +11 -1
- package/dist/ui.d.mts +7 -2
- package/dist/ui.mjs +430 -72
- package/dist/vite.d.mts +1 -1
- package/dist/vite.mjs +493 -185
- package/docs/source-writeback.md +4 -2
- package/examples/vite-preact-pandacss/src/BatchFixtures.tsx +77 -0
- package/examples/vite-preact-pandacss/src/main.tsx +2 -0
- package/examples/vite-react-pandacss/src/BatchFixtures.tsx +77 -0
- package/examples/vite-react-pandacss/src/main.tsx +2 -0
- package/package.json +3 -2
|
@@ -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 {
|
|
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 {
|
|
2
|
-
import { r as SculptedRuntime } from "./runtime-
|
|
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;
|