@wix/public-editor-platform-interfaces 1.16.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.
- package/dist/Elements.d.ts +11 -0
- package/dist/Elements.js +2 -0
- package/dist/Inputs.js +0 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.js +0 -4
- package/package.json +4 -4
|
@@ -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>>;
|
package/dist/Elements.js
ADDED
package/dist/Inputs.js
CHANGED
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
|
|
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.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"*.{js,ts}": "yarn lint"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@wix/sdk-types": "^1.
|
|
26
|
+
"@wix/sdk-types": "^1.13.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"lint-staged": "^13.3.0",
|
|
30
30
|
"prettier": "^3.4.2",
|
|
31
|
-
"typescript": "^5.7.
|
|
31
|
+
"typescript": "^5.7.3"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
]
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
"falconPackageHash": "
|
|
54
|
+
"falconPackageHash": "7f5008ed5c2c1256699df24146d014fcb02356928d2cf77ce82be0d7"
|
|
55
55
|
}
|