@sap-ux/preview-middleware 0.7.12 → 0.7.13

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.
@@ -10,6 +10,14 @@ import type { Manifest, UI5FlexLayer } from '@sap-ux/project-access';
10
10
  export type EnhancedRouter = Router & {
11
11
  getAppPages?: () => string[];
12
12
  };
13
+ export interface CustomConnector {
14
+ applyConnector: string;
15
+ writeConnector: string;
16
+ custom: boolean;
17
+ }
18
+ export interface FlexConnector {
19
+ connector: string;
20
+ }
13
21
  /**
14
22
  * Internal structure used to fill the sandbox.html template
15
23
  */
@@ -25,11 +33,7 @@ export interface TemplateConfig {
25
33
  ui5: {
26
34
  libs: string;
27
35
  theme: string;
28
- flex: {
29
- applyConnector: string;
30
- writeConnector: string;
31
- custom: boolean;
32
- }[];
36
+ flex: (CustomConnector | FlexConnector)[];
33
37
  bootstrapOptions: string;
34
38
  resources: Record<string, string>;
35
39
  };
package/dist/base/flp.js CHANGED
@@ -280,6 +280,9 @@ class FlpSandbox {
280
280
  applyConnector: workspaceConnectorPath,
281
281
  writeConnector: workspaceConnectorPath,
282
282
  custom: true
283
+ },
284
+ {
285
+ connector: 'LocalStorageConnector'
283
286
  }
284
287
  ];
285
288
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Apreview-middleware"
11
11
  },
12
- "version": "0.7.12",
12
+ "version": "0.7.13",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",