@vcp-dev/site-edit-engine 0.10.6 → 0.10.8

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.
@@ -96,8 +96,6 @@ export interface RenderObjectDetail {
96
96
  effectiveWriteTarget?: EffectiveWriteTargetView;
97
97
  provenanceChain?: ProvenanceChainView;
98
98
  componentSemantic?: ComponentSemanticDescriptor;
99
- contentModel?: ContentModelView;
100
- mediaModel?: MediaModelView;
101
99
  styleSource?: StyleSourceView;
102
100
  conditional?: ConditionalDetailView;
103
101
  dynamicData?: DynamicDataDetailView;
@@ -216,31 +214,7 @@ export interface ComponentSemanticDescriptor {
216
214
  impactScope?: "current-instance" | "component-template" | "upstream-source";
217
215
  alternativeStrategies?: Array<"instance" | "template" | "upstream">;
218
216
  }
219
- export type ContentModelOperation = never;
220
- export type MediaModelOperation = never;
221
217
  export type StyleSourceOperation = Extract<OperationType, "set-class-name-source" | "apply-style-draft">;
222
- export interface ModelDiagnosticView {
223
- code: "unsupported-schema" | "unsupported-field";
224
- field?: string;
225
- message: string;
226
- }
227
- export interface ContentModelView {
228
- kind: "markdown" | "rich-text-json";
229
- field: string;
230
- valuePath?: string;
231
- schema?: string;
232
- operationBoundary: ContentModelOperation[];
233
- diagnostics?: ModelDiagnosticView[];
234
- }
235
- export interface MediaModelView {
236
- kind: "image" | "video" | "media";
237
- sourceType: "asset-id" | "cms-media-field" | "local-file-reference";
238
- fields: string[];
239
- editableFields: Array<"src" | "alt" | "poster" | "caption" | "width" | "height">;
240
- operationBoundary: MediaModelOperation[];
241
- valuePaths?: Record<string, string>;
242
- diagnostics?: ModelDiagnosticView[];
243
- }
244
218
  export interface StyleSourceView {
245
219
  kind: "class-name-source";
246
220
  className: string;
@@ -6,4 +6,4 @@ export type { DesignerEvent } from "./protocol/event.js";
6
6
  export type { OperationError } from "./protocol/error.js";
7
7
  export type { SourceIdentity } from "./protocol/identity.js";
8
8
  export type { InsertableTag, InsertNodeSpec, MoveTarget, OperationParams, OperationRequest, OperationResult, OperationSelectionRef, OperationTarget, OperationType, OperationValue, StyleBreakpoint, StyleProperty, StyleStateMode, } from "./protocol/operation.js";
9
- export type { ComponentSemanticDescriptor, ConditionalDetailView, DynamicConfidenceView, DynamicDataBindingView, DynamicDataDetailView, DynamicDataSummaryView, DynamicEvidenceView, DynamicSourceKindView, DynamicSourceTypeView, DynamicTargetKindView, ContentModelView, EffectiveWriteTargetView, MediaModelView, OperationSummary, ProvenanceChainView, ProvenanceHopView, RenderDocument, RenderEntry, RenderEntryRef, RenderObjectEditContext, RenderObjectDetail, SemanticSourceView, SourceLocatorRangeView, SourceLocatorView, StyleSourceOperation, StyleSourceView, TextSegmentView, TextSourceView, WriteTargetView, } from "./protocol/render.js";
9
+ export type { ComponentSemanticDescriptor, ConditionalDetailView, DynamicConfidenceView, DynamicDataBindingView, DynamicDataDetailView, DynamicDataSummaryView, DynamicEvidenceView, DynamicSourceKindView, DynamicSourceTypeView, DynamicTargetKindView, EffectiveWriteTargetView, OperationSummary, ProvenanceChainView, ProvenanceHopView, RenderDocument, RenderEntry, RenderEntryRef, RenderObjectEditContext, RenderObjectDetail, SemanticSourceView, SourceLocatorRangeView, SourceLocatorView, StyleSourceOperation, StyleSourceView, TextSegmentView, TextSourceView, WriteTargetView, } from "./protocol/render.js";
@@ -1,27 +1,27 @@
1
- import type {
2
- SiteEditInstrumentationOptions,
3
- SiteEditInstrumentationResult,
4
- } from "./site-edit-instrumentation.js";
5
-
6
- declare function siteEditInstrumentationLoader(
7
- this: {
8
- cacheable?: () => void;
9
- async?: () => (
10
- error?: Error | null,
11
- code?: string,
12
- inputSourceMap?: unknown,
13
- ) => void;
14
- resourcePath?: string;
15
- getOptions?: () => { projectRoot?: string };
16
- },
17
- source: string,
18
- inputSourceMap?: unknown,
19
- ): void;
20
-
21
- declare namespace siteEditInstrumentationLoader {
22
- function instrumentSiteEditRuntimeAttributes(
23
- options: SiteEditInstrumentationOptions,
24
- ): SiteEditInstrumentationResult;
25
- }
26
-
27
- export = siteEditInstrumentationLoader;
1
+ import type {
2
+ SiteEditInstrumentationOptions,
3
+ SiteEditInstrumentationResult,
4
+ } from "./site-edit-instrumentation.js";
5
+
6
+ declare function siteEditInstrumentationLoader(
7
+ this: {
8
+ cacheable?: () => void;
9
+ async?: () => (
10
+ error?: Error | null,
11
+ code?: string,
12
+ inputSourceMap?: unknown,
13
+ ) => void;
14
+ resourcePath?: string;
15
+ getOptions?: () => { projectRoot?: string };
16
+ },
17
+ source: string,
18
+ inputSourceMap?: unknown,
19
+ ): void;
20
+
21
+ declare namespace siteEditInstrumentationLoader {
22
+ function instrumentSiteEditRuntimeAttributes(
23
+ options: SiteEditInstrumentationOptions,
24
+ ): SiteEditInstrumentationResult;
25
+ }
26
+
27
+ export = siteEditInstrumentationLoader;
@@ -1,3 +1,3 @@
1
- import siteEditInstrumentationLoader = require("./site-edit-instrumentation-loader.cjs");
2
-
3
- export = siteEditInstrumentationLoader;
1
+ import siteEditInstrumentationLoader = require("./site-edit-instrumentation-loader.cjs");
2
+
3
+ export = siteEditInstrumentationLoader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcp-dev/site-edit-engine",
3
- "version": "0.10.6",
3
+ "version": "0.10.8",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -60,7 +60,7 @@
60
60
  "@babel/parser": "^7.29.3",
61
61
  "@babel/traverse": "^7.29.0",
62
62
  "@babel/types": "^7.29.0",
63
- "@vcp-dev/contracts": "0.10.6",
63
+ "@vcp-dev/contracts": "0.10.8",
64
64
  "yaml": "^2.9.0"
65
65
  },
66
66
  "devDependencies": {