sculpted 0.3.4 → 0.3.6
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/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{patcher-nj9VhRT-.mjs → patcher-q1Cc_E8H.mjs} +2 -2
- package/dist/{runtime-C5jlEq5d.d.mts → runtime-BA5TGbfx.d.mts} +1 -1
- package/dist/runtime.d.mts +1 -1
- package/dist/runtime.mjs +2 -1
- package/dist/{sourceSyntax-BpjcDJyk.d.mts → sourceSyntax-CLM3knfR.d.mts} +1 -1
- package/dist/tsrx.d.mts +1 -1
- package/dist/{types-BWXru9cn.d.mts → types-1F2MUOXh.d.mts} +1 -1
- package/dist/ui.d.mts +2 -2
- package/dist/ui.mjs +6454 -2084
- package/dist/vite.d.mts +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as StyleEditResponse, A as RuntimeAttribute, B as SourceLocation, C as OpenSourceLocationRequest, D as PreviewStyleCondition, E as PandaStyleObject, F as RuntimeInheritedStyleSource, G as SourceTargetKind, H as SourceRange, I as RuntimePropertyContext, J as StyleEditBatchResponse, K as StyleEdit, L as RuntimeStyleEvidence, M as RuntimeComponentLayerElement, N as RuntimeCssDeclaration, O as PreviewStyleRule, P as RuntimeElementBounds, Q as StyleEditRequest, R as SelectedElementInfo, S as OpenSourceLocationErrorCode, T as PandaCssSourceTarget, U as SourceTarget, V as SourcePosition, W as SourceTargetBase, X as StyleEditErrorCode, Y as StyleEditError, Z as StyleEditOptions, _ as InspectorManifest, a as EditorColorTokenMetadata, at as TokenConfigEditRequest, b as JsonValue, c as EditorMetadataUnavailableReason, ct as UnsupportedSourceTarget, d as EditorPropertyMetadata, et as StyleModuleEditRequest, f as EditorTokenSourceSection, g as InspectorEditorMetadata, h as InlineCssSourceCreateRequest, i as DynamicSourceTarget, it as StyleValueSource, j as RuntimeComponentLayer, k as PreviewStyleSheet, l as EditorMetadataUpdateEvent, m as ExternalSourceTarget, n as ComponentStyleModuleSource, nt as StyleModuleSourceCreateRequest, o as EditorFontTokenMetadata, ot as TokenConfigEditResponse, p as EditorTokenSourceTarget, q as StyleEditBatchRequest, r as Confidence, rt as StyleModuleSourceDetachRequest, s as EditorMetadataSection, st as UnsupportedReason, t as ComponentStyleModuleResponse, tt as StyleModuleSourceAttachRequest, u as EditorPropertyCategory, v as InspectorManifestEntry, w as OpenSourceLocationResponse, x as ManifestUpdateEvent, y as JsonPrimitive, z as SelectedElementState } from "./types-
|
|
2
|
-
import { a as SourceAstKind, c as SourceSyntaxAdapter, d as parsePandaSource, f as parseWithSourceParserAdapter, g as typescriptPandaAstAdapter, h as tsxSourceSyntaxAdapter, i as ParsedPandaSource, l as SourceSyntaxOption, m as tsxSourceParserAdapter, n as PandaSourceAstAdapter, o as SourceParseResult, p as resolveSourceParserAdapter, r as ParseSourceSyntaxOptions, s as SourceParserAdapter, t as EstreeNode, u as createEstreePandaAstAdapter } from "./sourceSyntax-
|
|
1
|
+
import { $ as StyleEditResponse, A as RuntimeAttribute, B as SourceLocation, C as OpenSourceLocationRequest, D as PreviewStyleCondition, E as PandaStyleObject, F as RuntimeInheritedStyleSource, G as SourceTargetKind, H as SourceRange, I as RuntimePropertyContext, J as StyleEditBatchResponse, K as StyleEdit, L as RuntimeStyleEvidence, M as RuntimeComponentLayerElement, N as RuntimeCssDeclaration, O as PreviewStyleRule, P as RuntimeElementBounds, Q as StyleEditRequest, R as SelectedElementInfo, S as OpenSourceLocationErrorCode, T as PandaCssSourceTarget, U as SourceTarget, V as SourcePosition, W as SourceTargetBase, X as StyleEditErrorCode, Y as StyleEditError, Z as StyleEditOptions, _ as InspectorManifest, a as EditorColorTokenMetadata, at as TokenConfigEditRequest, b as JsonValue, c as EditorMetadataUnavailableReason, ct as UnsupportedSourceTarget, d as EditorPropertyMetadata, et as StyleModuleEditRequest, f as EditorTokenSourceSection, g as InspectorEditorMetadata, h as InlineCssSourceCreateRequest, i as DynamicSourceTarget, it as StyleValueSource, j as RuntimeComponentLayer, k as PreviewStyleSheet, l as EditorMetadataUpdateEvent, m as ExternalSourceTarget, n as ComponentStyleModuleSource, nt as StyleModuleSourceCreateRequest, o as EditorFontTokenMetadata, ot as TokenConfigEditResponse, p as EditorTokenSourceTarget, q as StyleEditBatchRequest, r as Confidence, rt as StyleModuleSourceDetachRequest, s as EditorMetadataSection, st as UnsupportedReason, t as ComponentStyleModuleResponse, tt as StyleModuleSourceAttachRequest, u as EditorPropertyCategory, v as InspectorManifestEntry, w as OpenSourceLocationResponse, x as ManifestUpdateEvent, y as JsonPrimitive, z as SelectedElementState } from "./types-1F2MUOXh.mjs";
|
|
2
|
+
import { a as SourceAstKind, c as SourceSyntaxAdapter, d as parsePandaSource, f as parseWithSourceParserAdapter, g as typescriptPandaAstAdapter, h as tsxSourceSyntaxAdapter, i as ParsedPandaSource, l as SourceSyntaxOption, m as tsxSourceParserAdapter, n as PandaSourceAstAdapter, o as SourceParseResult, p as resolveSourceParserAdapter, r as ParseSourceSyntaxOptions, s as SourceParserAdapter, t as EstreeNode, u as createEstreePandaAstAdapter } from "./sourceSyntax-CLM3knfR.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/analyzer/pandaCssAnalyzer.d.ts
|
|
5
5
|
type AnalyzePandaCssSourceOptions = {
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { _ as markerClassForEditId, a as DEFAULT_JSX_SOURCE_ATTRIBUTE, c as DEFAULT_OPEN_SOURCE_ENDPOINT, d as DEFAULT_TOKEN_WRITEBACK_ENDPOINT, f as DEFAULT_WRITEBACK_ENDPOINT, g as editIdsFromMarkerClassList, h as editIdFromMarkerClass, i as DEFAULT_FORCED_STATE_ATTRIBUTE, l as DEFAULT_SOURCE_ATTRIBUTE, m as SCULPTED_PROTOCOL_VERSION, n as DEFAULT_EDITOR_METADATA_ENDPOINT, o as DEFAULT_MANIFEST_ENDPOINT, p as SCULPTED_EVENTS, r as DEFAULT_EDIT_ID_ATTRIBUTE, s as DEFAULT_MARKER_CLASS_PREFIX, t as DEFAULT_COMPONENT_ATTRIBUTE, u as DEFAULT_STYLE_MODULE_ENDPOINT } from "./protocol-D5heR2QM.mjs";
|
|
2
|
-
import { C as parseWithSourceParserAdapter, D as typescriptPandaAstAdapter, E as tsxSourceSyntaxAdapter, S as parsePandaSource, T as tsxSourceParserAdapter, _ as createStaticCssPatch, a as createStyleModuleSourcePatch, b as hashSource, g as createStaticCssBatchPatch, i as createStyleModuleDetachPatch, n as componentStyleModulePaths, o as readComponentStyleModule, r as createStyleModuleAttachPatch, t as createTokenConfigPatch, v as createInlineCssSourcePatch, w as resolveSourceParserAdapter, x as createEstreePandaAstAdapter, y as analyzePandaCssSource } from "./patcher-
|
|
2
|
+
import { C as parseWithSourceParserAdapter, D as typescriptPandaAstAdapter, E as tsxSourceSyntaxAdapter, S as parsePandaSource, T as tsxSourceParserAdapter, _ as createStaticCssPatch, a as createStyleModuleSourcePatch, b as hashSource, g as createStaticCssBatchPatch, i as createStyleModuleDetachPatch, n as componentStyleModulePaths, o as readComponentStyleModule, r as createStyleModuleAttachPatch, t as createTokenConfigPatch, v as createInlineCssSourcePatch, w as resolveSourceParserAdapter, x as createEstreePandaAstAdapter, y as analyzePandaCssSource } from "./patcher-q1Cc_E8H.mjs";
|
|
3
3
|
export { DEFAULT_COMPONENT_ATTRIBUTE, DEFAULT_EDITOR_METADATA_ENDPOINT, DEFAULT_EDIT_ID_ATTRIBUTE, DEFAULT_FORCED_STATE_ATTRIBUTE, DEFAULT_JSX_SOURCE_ATTRIBUTE, DEFAULT_MANIFEST_ENDPOINT, DEFAULT_MARKER_CLASS_PREFIX, DEFAULT_OPEN_SOURCE_ENDPOINT, DEFAULT_SOURCE_ATTRIBUTE, DEFAULT_STYLE_MODULE_ENDPOINT, DEFAULT_TOKEN_WRITEBACK_ENDPOINT, DEFAULT_WRITEBACK_ENDPOINT, SCULPTED_EVENTS, SCULPTED_PROTOCOL_VERSION, analyzePandaCssSource, componentStyleModulePaths, createEstreePandaAstAdapter, createInlineCssSourcePatch, createStaticCssBatchPatch, createStaticCssPatch, createStyleModuleAttachPatch, createStyleModuleDetachPatch, createStyleModuleSourcePatch, createTokenConfigPatch, editIdFromMarkerClass, editIdsFromMarkerClassList, hashSource, markerClassForEditId, parsePandaSource, parseWithSourceParserAdapter, readComponentStyleModule, resolveSourceParserAdapter, tsxSourceParserAdapter, tsxSourceSyntaxAdapter, typescriptPandaAstAdapter };
|
|
@@ -1370,11 +1370,11 @@ function complexTokenValueSource(value, context) {
|
|
|
1370
1370
|
if (!colorToken || !looksLikeColorTokenPath(colorToken)) return void 0;
|
|
1371
1371
|
const tokenPath = colorToken.startsWith("colors.") ? colorToken : `colors.${colorToken}`;
|
|
1372
1372
|
const prefix = parts.slice(0, -1).join(" ");
|
|
1373
|
-
if (!context?.tokenVarImportLocalName) return `'${escapeSingleQuotedString(`${prefix} token(${tokenPath})`)}'`;
|
|
1373
|
+
if (!context?.tokenVarImportLocalName || tokenPath.includes("/")) return `'${escapeSingleQuotedString(`${prefix} token(${tokenPath})`)}'`;
|
|
1374
1374
|
return `\`${escapeTemplateText(`${prefix} `)}\${${context.tokenVarImportLocalName}.var(${JSON.stringify(tokenPath)})}\``;
|
|
1375
1375
|
}
|
|
1376
1376
|
function looksLikeColorTokenPath(value) {
|
|
1377
|
-
return /^(?:colors\.)?[A-Za-z_][\w-]*(?:\.[A-Za-z0-9_][\w-]*)
|
|
1377
|
+
return /^(?:colors\.)?[A-Za-z_][\w-]*(?:\.[A-Za-z0-9_][\w-]*)+(?:\/(?:100|[1-9]?\d))?$/.test(value);
|
|
1378
1378
|
}
|
|
1379
1379
|
function escapeSingleQuotedString(value) {
|
|
1380
1380
|
return value.replace(/\\/g, "\\\\").replace(/'/g, "\\'");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as StyleEditResponse, C as OpenSourceLocationRequest, Q as StyleEditRequest, R as SelectedElementInfo, _ as InspectorManifest, at as TokenConfigEditRequest, et as StyleModuleEditRequest, g as InspectorEditorMetadata, h as InlineCssSourceCreateRequest, k as PreviewStyleSheet, ot as TokenConfigEditResponse, t as ComponentStyleModuleResponse, v as InspectorManifestEntry, w as OpenSourceLocationResponse } from "./types-
|
|
1
|
+
import { $ as StyleEditResponse, C as OpenSourceLocationRequest, Q as StyleEditRequest, R as SelectedElementInfo, _ as InspectorManifest, at as TokenConfigEditRequest, et as StyleModuleEditRequest, g as InspectorEditorMetadata, h as InlineCssSourceCreateRequest, k as PreviewStyleSheet, ot as TokenConfigEditResponse, t as ComponentStyleModuleResponse, v as InspectorManifestEntry, w as OpenSourceLocationResponse } from "./types-1F2MUOXh.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/runtime.d.ts
|
|
4
4
|
type RuntimeInspectorOptions = {
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as installSculptedRuntime, n as RuntimeInspectorOptions, r as SculptedRuntime, t as RuntimeEnvironment } from "./runtime-
|
|
1
|
+
import { i as installSculptedRuntime, n as RuntimeInspectorOptions, r as SculptedRuntime, t as RuntimeEnvironment } from "./runtime-BA5TGbfx.mjs";
|
|
2
2
|
export { RuntimeEnvironment, RuntimeInspectorOptions, SculptedRuntime, installSculptedRuntime };
|
package/dist/runtime.mjs
CHANGED
|
@@ -5021,7 +5021,7 @@ var SculptedRuntime = class {
|
|
|
5021
5021
|
}
|
|
5022
5022
|
}
|
|
5023
5023
|
async selectElement(element) {
|
|
5024
|
-
await this.
|
|
5024
|
+
await this.loadManifest();
|
|
5025
5025
|
const markerEditIds = editIdsFromMarkerClassList(element.getAttribute("class") ?? "");
|
|
5026
5026
|
const attributeEditIds = (element.getAttribute(this.#attributes.editId) ?? "").split(/\s+/).filter(Boolean);
|
|
5027
5027
|
const jsxSource = element.getAttribute(this.#attributes.jsxSource)?.trim() || void 0;
|
|
@@ -5610,6 +5610,7 @@ function previewConditionPseudoSelector(condition) {
|
|
|
5610
5610
|
if (condition === "focus") return ":focus";
|
|
5611
5611
|
if (condition === "focus-visible") return ":focus-visible";
|
|
5612
5612
|
if (condition === "active") return ":active";
|
|
5613
|
+
if (condition === "disabled") return ":disabled";
|
|
5613
5614
|
}
|
|
5614
5615
|
//#endregion
|
|
5615
5616
|
export { SculptedRuntime, installSculptedRuntime };
|
package/dist/tsrx.d.mts
CHANGED
|
@@ -179,7 +179,7 @@ type RuntimeCssDeclaration = {
|
|
|
179
179
|
readonly value: string;
|
|
180
180
|
readonly condition?: PreviewStyleCondition;
|
|
181
181
|
};
|
|
182
|
-
type PreviewStyleCondition = 'hover' | 'focus' | 'focus-visible' | 'active';
|
|
182
|
+
type PreviewStyleCondition = 'hover' | 'focus' | 'focus-visible' | 'active' | 'disabled';
|
|
183
183
|
type RuntimePropertyContext = {
|
|
184
184
|
readonly tagName: string;
|
|
185
185
|
readonly display: string;
|
package/dist/ui.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as RuntimePropertyContext, N as RuntimeCssDeclaration, R as SelectedElementInfo, j as RuntimeComponentLayer } from "./types-
|
|
2
|
-
import { r as SculptedRuntime } from "./runtime-
|
|
1
|
+
import { I as RuntimePropertyContext, N as RuntimeCssDeclaration, R as SelectedElementInfo, j as RuntimeComponentLayer } from "./types-1F2MUOXh.mjs";
|
|
2
|
+
import { r as SculptedRuntime } from "./runtime-BA5TGbfx.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/ui/inspectorPanel.d.ts
|
|
5
5
|
type ReadonlyInspectorPanelOptions = {
|