@wix/public-editor-platform-interfaces 1.46.0 → 1.49.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.
@@ -77,6 +77,7 @@ export type BindingDetails = {
77
77
  };
78
78
  export type SelectBindingOptions = {
79
79
  bindingTargetDetails: BindingTargetDetails;
80
+ onApply: (bindingDetails: BindingDetails) => Promise<void>;
81
+ anchor?: HTMLElement;
80
82
  initialState?: BindingDetails;
81
- onApply?: (bindingDetails: BindingDetails) => Promise<void>;
82
83
  };
@@ -3,3 +3,4 @@ export * from './styles';
3
3
  export * from './definitions';
4
4
  export * from './css-properties';
5
5
  export * from './pages';
6
+ export * from './routers';
package/dist/sdk/index.js CHANGED
@@ -19,3 +19,4 @@ __exportStar(require("./styles"), exports);
19
19
  __exportStar(require("./definitions"), exports);
20
20
  __exportStar(require("./css-properties"), exports);
21
21
  __exportStar(require("./pages"), exports);
22
+ __exportStar(require("./routers"), exports);
@@ -7,6 +7,13 @@ export interface IPage {
7
7
  getPageId(): Promise<string | undefined>;
8
8
  equals(other: IPage): boolean;
9
9
  }
10
+ export interface IRouterPage extends IPage {
11
+ getPageRole(): Promise<string>;
12
+ updatePageRole(pageRole: string): Promise<void>;
13
+ isConnected(): Promise<boolean>;
14
+ connect(pageRole: string): Promise<void>;
15
+ disconnect(): Promise<void>;
16
+ }
10
17
  export interface AddExtensionOptions {
11
18
  title?: string;
12
19
  slug?: string;
@@ -0,0 +1,12 @@
1
+ import type { IRouterPage } from './pages';
2
+ export interface IRouter {
3
+ getExtensionId(): Promise<string | undefined>;
4
+ getPrefix(): Promise<string>;
5
+ getConfig(): Promise<object>;
6
+ listConnectablePages(): Promise<IRouterPage[]>;
7
+ listConnectedPages(): Promise<IRouterPage[]>;
8
+ updatePrefix(prefix: string): Promise<void>;
9
+ updateConfig(config: object): Promise<void>;
10
+ remove(): Promise<void>;
11
+ equals(other: IRouter): boolean;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/public-editor-platform-interfaces",
3
- "version": "1.46.0",
3
+ "version": "1.49.0",
4
4
  "license": "UNLICENSED",
5
5
  "contributors": [
6
6
  {
@@ -52,5 +52,5 @@
52
52
  ]
53
53
  }
54
54
  },
55
- "falconPackageHash": "01e4f71f213d822782cca19d4dc919906bb4584c66cf9aa3b61a75a6"
55
+ "falconPackageHash": "365699277a039851edf07dbd47b881314d7b1833f962d6cb7c0b486b"
56
56
  }