@spiffcommerce/core 0.8.2 → 0.8.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/dist/types.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { Workflow, StepAspect, Step, AnyStepData, FrameOffsets, PatternImageData, IServerModel, Asset, MaterialResource, AssetType, ColorDefinition, IllustrationStepData, Region, ILayout, CreateElementCommand as _CreateElementCommand1, IllustrationElement as _IllustrationElement1, LayoutsState as _LayoutsState1, VariantResource, CanvasCommand, LayoutData as _LayoutData1, DigitalContentStepData, FrameStepData, FrameElement as _FrameElement1, MaterialStepData, ModelStepData, ModuleStepData, PatchworkStepData, PatchworkOffsets, PictureStepData, QuestionStepData, ShapeStepData, FontData, GroupCommand, TextboxElement as _TextboxElement1, TextStepData as _TextStepData1, StepStorage, SerializableStep, CommandState, OptionResource, CommandContext as _CommandContext1, Point, ScaleAxis, UnitOfMeasurement, StepType, CommandContext, CreateElementCommand, FontAlignmentCommand, FontColorCommand, FrameElement, generate, IllustrationElement, LayoutData, ImageElement, LayoutElement, LayoutElementFactory, LayoutsState, PatchworkElement, TextboxElement, TextChangeCommand, TextStepData } from "@spiffcommerce/papyrus";
2
2
  import { ApolloClient } from "@apollo/client";
3
- import { ThreeDPreviewService as _ThreeDPreviewService1, SpiffCommerce3DPreviewService, ThreeDPreviewService } from "@spiffcommerce/preview";
4
3
  import { ReactNode, Dispatch, FunctionComponent, RefObject, PointerEvent, KeyboardEvent, MouseEvent } from "react";
5
4
  export const gatherVaryingStepAspects: (workflow: Workflow) => StepAspect[];
6
5
  export interface WorkflowScene {
@@ -427,7 +426,7 @@ export interface WorkflowManager {
427
426
  getVariationRecords: () => VariationRecord[];
428
427
  getLayouts: () => ILayout[];
429
428
  getLayoutPreviewService: () => any;
430
- getPreviewService: () => _ThreeDPreviewService1 | undefined;
429
+ getPreviewService: () => any | undefined;
431
430
  getProductName: () => string | undefined;
432
431
  getProfanities: () => string[];
433
432
  getRegionElements: (stepName: string) => RegionElement[];
@@ -775,25 +774,6 @@ interface FrameData {
775
774
  */
776
775
  height: number;
777
776
  }
778
- /**
779
- * Defines the different behaviors supported by the camera system
780
- * for control when viewing a product.
781
- */
782
- export enum ProductCameraRig {
783
- Orbit = 0,
784
- Pan = 1
785
- }
786
- export type LoadProgressEventData = {
787
- /**
788
- * The total load value of the scene, this is an average of all
789
- * 'in progress' loading events. when all events are fully loaded this value will be 100.
790
- */
791
- readonly loadValue: number;
792
- /**
793
- * This value is true when the base model and scene have been initialized.
794
- */
795
- readonly sceneInitialized: boolean;
796
- };
797
777
  declare class OptionService {
798
778
  /**
799
779
  * Returns a promise that resolves once all options required for a given workflow
@@ -1157,11 +1137,11 @@ export class Client {
1157
1137
  * @param previewServiceConstructor A function called during initialization. Takes a class implementing ThreeDPreviewService in return.
1158
1138
  * @returns A workflow experience configured as requested.
1159
1139
  */
1160
- getWorkflowExperience(workflowId?: string, workflowState?: string, previewServiceConstructor?: (workflow: Workflow) => _ThreeDPreviewService1): Promise<WorkflowExperience>;
1140
+ getWorkflowExperience(workflowId?: string, workflowState?: string, previewServiceConstructor?: (workflow: Workflow) => any): Promise<WorkflowExperience>;
1161
1141
  /**
1162
1142
  * @returns The preview service that was provided during construction.
1163
1143
  */
1164
- getPreviewService(): _ThreeDPreviewService1;
1144
+ getPreviewService(): any;
1165
1145
  /**
1166
1146
  * @returns The product associated with this client.
1167
1147
  */
@@ -1242,7 +1222,5 @@ export class MockWorkflowManager implements WorkflowManager {
1242
1222
  export { CommandContext };
1243
1223
  export { generate, CreateElementCommand, TextChangeCommand, FontAlignmentCommand, FontColorCommand, LayoutElementFactory };
1244
1224
  export { LayoutElement, ImageElement, TextboxElement, TextStepData, FrameElement, PatchworkElement, IllustrationElement, LayoutData, LayoutsState };
1245
- export { SpiffCommerce3DPreviewService };
1246
- export { ThreeDPreviewService };
1247
1225
 
1248
1226
  //# sourceMappingURL=types.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Core client API for interacting with the Spiff Commerce backend.",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",
@@ -59,7 +59,6 @@
59
59
  "dependencies": {
60
60
  "@apollo/client": "^3.7.0",
61
61
  "@spiffcommerce/papyrus": "^1.4.0",
62
- "@spiffcommerce/preview": "^2.1.0",
63
62
  "canvg": "^4.0.1",
64
63
  "cross-fetch": "^3.1.5",
65
64
  "graphql": "^16.6.0",