@spiffcommerce/theme-bridge 1.1.0 → 1.3.0

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 +27 -8
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -27,19 +27,29 @@ type SpiffThemeLoader = {
27
27
  setContext(context: SpiffThemeContext): void;
28
28
  };
29
29
  interface SpiffThemeConfigurationFile {
30
- launchData: SpiffThemeLaunchData;
30
+ launchData: SpiffThemeConfigurationLaunchData;
31
31
  configurationSchema: SpiffThemeConfigurationSchema;
32
32
  }
33
33
  declare enum SpiffThemeFileType {
34
34
  Javascript = "Javascript",
35
35
  CSS = "CSS"
36
36
  }
37
+ interface SpiffThemeConfigurationLaunchData {
38
+ targetFiles: SpiffThemeConfigurationLaunchDataTargetFile[];
39
+ }
40
+ interface SpiffThemeConfigurationLaunchDataTargetFile {
41
+ filename: string;
42
+ type: SpiffThemeFileType;
43
+ mimeType: string;
44
+ }
37
45
  interface SpiffThemeLaunchData {
38
- targetFiles: {
39
- filename: string;
40
- type: SpiffThemeFileType;
41
- mimeType: string;
42
- }[];
46
+ targetFiles: SpiffThemeLaunchDataTargetFile[];
47
+ }
48
+ interface SpiffThemeLaunchDataTargetFile {
49
+ filename: string;
50
+ type: SpiffThemeFileType;
51
+ mimeType: string;
52
+ fileLink: string;
43
53
  }
44
54
  declare enum SpiffThemeConfigurationFieldType {
45
55
  SingleLineText = "SingleLineText",
@@ -67,10 +77,19 @@ interface SpiffThemeConfigurationSchemaField {
67
77
  }[];
68
78
  assetType?: string;
69
79
  }
80
+ interface SpiffThemeVersion {
81
+ id: string;
82
+ version: string;
83
+ createdAt: string;
84
+ updatedAt: string;
85
+ configurationSchema: SpiffThemeConfigurationSchema;
86
+ launchData: SpiffThemeLaunchData;
87
+ }
70
88
  interface SpiffThemeInstallConfiguration {
71
89
  id: string;
72
- name: string;
73
90
  themeInstallId: string;
91
+ name: string;
92
+ themeVersion: SpiffThemeVersion;
74
93
  createdAt: string;
75
94
  updatedAt: string;
76
95
  fields: SpiffThemeInstallConfigurationField[];
@@ -105,4 +124,4 @@ interface SpiffAsset {
105
124
  type SpiffDevOptions = Omit<SpiffThemeContextTransaction, "container"> | Omit<SpiffThemeContextBundle, "container">;
106
125
  declare function setSpiffDevOptions(container: HTMLElement | string, context: SpiffDevOptions): void;
107
126
 
108
- export { type GetBundleOptions, type SpiffAsset, SpiffAssetType, type SpiffDevOptions, SpiffThemeConfigurationFieldType, type SpiffThemeConfigurationFile, type SpiffThemeConfigurationSchema, type SpiffThemeConfigurationSchemaField, type SpiffThemeContext, type SpiffThemeContextBundle, type SpiffThemeContextTransaction, SpiffThemeFileType, type SpiffThemeInstallConfiguration, type SpiffThemeInstallConfigurationField, type SpiffThemeLaunchData, type SpiffThemeLoader, setSpiffDevOptions };
127
+ export { type GetBundleOptions, type SpiffAsset, SpiffAssetType, type SpiffDevOptions, SpiffThemeConfigurationFieldType, type SpiffThemeConfigurationFile, type SpiffThemeConfigurationLaunchData, type SpiffThemeConfigurationLaunchDataTargetFile, type SpiffThemeConfigurationSchema, type SpiffThemeConfigurationSchemaField, type SpiffThemeContext, type SpiffThemeContextBundle, type SpiffThemeContextTransaction, SpiffThemeFileType, type SpiffThemeInstallConfiguration, type SpiffThemeInstallConfigurationField, type SpiffThemeLaunchData, type SpiffThemeLaunchDataTargetFile, type SpiffThemeLoader, type SpiffThemeVersion, setSpiffDevOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/theme-bridge",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "tsc && vite build",