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.
- 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-C1gUOAc9.d.mts → runtime-C5jlEq5d.d.mts} +1 -1
- package/dist/runtime.d.mts +1 -1
- package/dist/runtime.mjs +5017 -19
- package/dist/{sourceSyntax-U2iybN9L.d.mts → sourceSyntax-BpjcDJyk.d.mts} +1 -1
- package/dist/tsrx.d.mts +1 -1
- package/dist/{types-CdByW0ji.d.mts → types-BWXru9cn.d.mts} +12 -1
- package/dist/ui.d.mts +7 -2
- package/dist/ui.mjs +392 -128
- package/dist/vite.d.mts +1 -1
- package/dist/vite.mjs +553 -186
- package/docs/source-writeback.md +4 -2
- package/docs/vite-plugin.md +11 -2
- package/examples/vite-preact-pandacss/package.json +1 -1
- package/examples/vite-preact-pandacss/postcss.config.cjs +2 -2
- package/examples/vite-preact-pandacss/src/BatchFixtures.tsx +77 -0
- package/examples/vite-preact-pandacss/src/index.css +6 -1
- package/examples/vite-preact-pandacss/src/main.tsx +2 -0
- package/examples/vite-preact-pandacss/vite.config.ts +5 -5
- package/examples/vite-react-pandacss/package.json +1 -1
- package/examples/vite-react-pandacss/src/BatchFixtures.tsx +77 -0
- package/examples/vite-react-pandacss/src/index.css +6 -1
- package/examples/vite-react-pandacss/src/main.tsx +2 -0
- package/package.json +20 -19
package/dist/tsrx.d.mts
CHANGED
|
@@ -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 {
|
|
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 {
|
|
2
|
-
import { r as SculptedRuntime } from "./runtime-
|
|
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;
|