@spiffcommerce/core 16.0.0-beta.7 → 16.0.0-beta.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/package.json +8 -11
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _spiffcommerce_papyrus from '@spiffcommerce/papyrus';
2
2
  import { OptionResource, VariantResource, Step, AnyStepData, FrameOffsets, PatternImageData, Region, SilentStepData, Placeable, StepStorage, CanvasCommand, CommandContext, ILayout, LayoutState, SerializableStep, Workflow, CommandState, GlobalPropertyConfiguration, LayoutsState, Asset, MaterialResource, AssetType, StepType, GlobalPropertyConfigurationAspect, AspectType, Theme, StepAspect, FrameStepData, CreateElementCommand, FrameElement, IllustrationStepData, IllustrationElement, ColorDefinition, LayoutData, MaterialStepData, ModelStepData, TextStepData, TextboxElement, TextFillImage, FontData, GroupCommand, PictureStepData, QuestionStepData, ShapeStepData, ModuleStepData, DigitalContentStepData, FrameData as FrameData$1, BulkStepData, InformationStepData } from '@spiffcommerce/papyrus';
3
3
  export { Animatable, AnyStepData, Asset, AssetType, BringForwardCommand, BringToBackCommand, BringToFrontCommand, BulkStepData, CanvasCommand, ColorDefinition, ColorProfileProps, CommandContext, CommandState, CreateElementCommand, CreateLayoutCommand, DeleteElementCommand, DigitalContentStepData, FontAlignmentCommand, FontColorCommand, FontSizeCommand, FontSourceCommand, FrameElement, FrameStepData, GroupCommand, ILayout, IllustrationElement, IllustrationStepData, ImageElement, InformationStepData, LayoutData, LayoutElement, LayoutElementFactory, LayoutElementType, LayoutsState, MaterialStepData, ModelStepData, ModuleStepData, MoveCommand, OptionResource, PictureStepData, QuestionStepData, ResizeCommand, RotateCommand, SendBackwardsCommand, ShapeStepData, Step, StepAspect, StepAspectType, StepStorage, StepType, TextChangeCommand, TextStepData, TextboxElement, Theme, UnitOfMeasurement, VariantResource, Workflow, WorkflowPanel, dataUrlFromExternalUrl, determineCorrectFontSizeAndLines, findElement, frameDataCache, generate, generateSVGWithUnknownColors, getAttributesFromArrayBuffer, getAxisAlignedBoundingBox, getFrameData, getSvgElement, loadFontFromDataUrl, loadFontFromExternalUrl, patternImageDataCache, registerFetchImplementation, registerWindowImplementation, rehydrateSerializedLayout } from '@spiffcommerce/papyrus';
4
- import { ApolloClient, FetchResult } from '@apollo/client/core';
4
+ import { ApolloClient, MutationOptions, FetchResult } from '@apollo/client/core';
5
5
  import * as lodash from 'lodash';
6
6
 
7
7
  declare class OptionService {
@@ -325,7 +325,7 @@ type StepSpecificStorageCallback = (selections: StepStorage) => void;
325
325
  type StorageCallback = (storage: WorkflowStorage) => void;
326
326
  type CurrentVariationRecordCallback = (variationRecord: null | VariationRecord) => void;
327
327
  type VariationRecordsCallback = (records: VariationRecord[]) => void;
328
- type StateMutationFunc = (options?: any) => Promise<FetchResult<any, Record<string, any>, Record<string, any>>>;
328
+ type StateMutationFunc = (options?: Omit<MutationOptions, "mutation">) => Promise<FetchResult<any, Record<string, any>, Record<string, any>>>;
329
329
  interface WorkflowManager {
330
330
  addPoller: (poller: Poller) => void;
331
331
  addConfirmCallback: (callback: ConfirmCallback) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "16.0.0-beta.7",
3
+ "version": "16.0.0-beta.8",
4
4
  "description": "Core client API for interacting with the Spiff Commerce backend.",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.umd.cjs",
@@ -27,34 +27,31 @@
27
27
  "author": "SpiffCommerce",
28
28
  "devDependencies": {
29
29
  "@ladle/react": "2.17.2",
30
+ "@preact/preset-vite": "^2.5.0",
30
31
  "@spiffcommerce/preview": "^3.3.1",
31
- "@types/enzyme": "^3.10.12",
32
32
  "@types/lodash.clonedeep": "^4.5.7",
33
33
  "@types/lodash.debounce": "^4.0.7",
34
34
  "@types/lodash.isequal": "^4.5.6",
35
35
  "@types/node-fetch": "^2.6.6",
36
- "@types/qrcode": "^1.3.5",
37
- "@types/react": "^17.0.2",
36
+ "@types/qrcode": "^1.5.2",
38
37
  "@types/react-syntax-highlighter": "^15.5.7",
39
- "@typescript-eslint/eslint-plugin": "^5.43.0",
40
- "@typescript-eslint/parser": "^5.43.0",
38
+ "@typescript-eslint/eslint-plugin": "^6.7.4",
39
+ "@typescript-eslint/parser": "^6.7.4",
41
40
  "canvas": "^2.11.2",
42
- "enzyme": "^3.11.0",
43
41
  "eslint": "^8.28.0",
44
42
  "happy-dom": "^12.1.5",
45
43
  "husky": "^8.0.1",
46
44
  "node-fetch": "^3.3.2",
47
- "react": "17.0.2",
48
- "react-dom": "17.0.2",
45
+ "preact": "^10.17.1",
49
46
  "react-syntax-highlighter": "^15.5.0",
50
47
  "tsup": "^7.2.0",
51
- "typescript": "5.0.3",
48
+ "typescript": "5.2.2",
52
49
  "vite": "^4.4.9",
53
50
  "vitest": "^0.34.6"
54
51
  },
55
52
  "dependencies": {
56
53
  "@apollo/client": "^3.8.3",
57
- "@spiffcommerce/papyrus": "5.0.7-alpha.13",
54
+ "@spiffcommerce/papyrus": "5.0.7-alpha.14",
58
55
  "graphql": "^16.8.0",
59
56
  "lodash.clonedeep": "^4.5.0",
60
57
  "lodash.debounce": "^4.0.8",