@wix/public-editor-platform-interfaces 1.17.0 → 1.18.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.
@@ -0,0 +1,11 @@
1
+ export interface IElementBase<TType, TProps extends Record<string, any>> {
2
+ type: TType;
3
+ getProp: <K extends keyof TProps | string>(prop: K) => Promise<TProps[K] | null | undefined | void>;
4
+ setProp<K extends keyof TProps>(prop: K, value: TProps[K] | null | undefined): Promise<void>;
5
+ }
6
+ export type IElement = IElementBase<'text', {
7
+ text: string;
8
+ }> | IElementBase<'image', {
9
+ src: string;
10
+ responsive: boolean;
11
+ }> | IElementBase<null, Record<string, string | number | boolean>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/Inputs.js CHANGED
@@ -1,6 +1,2 @@
1
1
  "use strict";
2
- /**
3
- * Duplicated types from editor-platform-private-api / HostAPIBase.ts
4
- * to allow use them in public packages
5
- */
6
2
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import * as WixSDKTypes from '@wix/sdk-types';
2
2
  export { WixSDKTypes };
3
3
  export { ComponentRef } from './ComponentRef';
4
+ export { IElement } from './Elements';
4
5
  export { EventType } from './EventType';
5
6
  export { AccessToken } from './Token';
6
7
  export { DsItem } from './DataItem';
7
8
  export { Style, StyleRef } from './StyleData';
8
- export * from './Inputs';
9
+ export { OpenColorPickerFn, OpenLinkPanelFn } from './Inputs';
package/dist/index.js CHANGED
@@ -32,13 +32,9 @@ var __importStar = (this && this.__importStar) || (function () {
32
32
  return result;
33
33
  };
34
34
  })();
35
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
- };
38
35
  Object.defineProperty(exports, "__esModule", { value: true });
39
36
  exports.EventType = exports.WixSDKTypes = void 0;
40
37
  const WixSDKTypes = __importStar(require("@wix/sdk-types"));
41
38
  exports.WixSDKTypes = WixSDKTypes;
42
39
  var EventType_1 = require("./EventType");
43
40
  Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return EventType_1.EventType; } });
44
- __exportStar(require("./Inputs"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/public-editor-platform-interfaces",
3
- "version": "1.17.0",
3
+ "version": "1.18.0",
4
4
  "license": "UNLICENSED",
5
5
  "contributors": [
6
6
  {
@@ -51,5 +51,5 @@
51
51
  ]
52
52
  }
53
53
  },
54
- "falconPackageHash": "04971b2e29a37b1c9ef297e9b6f77457f8565bcb378bef7a136a637c"
54
+ "falconPackageHash": "7f5008ed5c2c1256699df24146d014fcb02356928d2cf77ce82be0d7"
55
55
  }