@wix/public-editor-platform-interfaces 1.0.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/README.md ADDED
@@ -0,0 +1 @@
1
+ public platform 2.0 types
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Duplicated types from DM
3
+ * to allow use them in public packages
4
+ */
5
+ export interface ViewModes {
6
+ MOBILE: string;
7
+ DESKTOP: string;
8
+ }
9
+ export interface ScopePointer extends Pointer {
10
+ type: 'scope';
11
+ }
12
+ export type PossibleViewModes = keyof ViewModes;
13
+ export interface Pointer {
14
+ id: string;
15
+ type: string;
16
+ innerPath?: string[] | string;
17
+ pageId?: string;
18
+ useLanguage?: string;
19
+ multilingual?: string;
20
+ noRefFallbacks?: boolean;
21
+ doNotSync?: boolean;
22
+ variants?: any[];
23
+ scope?: ScopePointer;
24
+ }
25
+ export interface CompRef extends Pointer {
26
+ type: PossibleViewModes;
27
+ }
28
+ export interface ComponentRef extends CompRef {
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Duplicated types from editor-platform-sdk-types/src/events/EventType.ts
3
+ * to allow use them in public packages
4
+ */
5
+ export declare enum EventType {
6
+ removeAppCompleted = "removeAppCompleted"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventType = void 0;
4
+ /**
5
+ * Duplicated types from editor-platform-sdk-types/src/events/EventType.ts
6
+ * to allow use them in public packages
7
+ */
8
+ var EventType;
9
+ (function (EventType) {
10
+ EventType["removeAppCompleted"] = "removeAppCompleted";
11
+ })(EventType || (exports.EventType = EventType = {}));
@@ -0,0 +1,4 @@
1
+ import * as WixSDKTypes from '@wix/sdk-types';
2
+ export { WixSDKTypes };
3
+ export { ComponentRef } from './ComponentRef';
4
+ export { EventType } from './EventType';
package/dist/index.js ADDED
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.EventType = exports.WixSDKTypes = void 0;
27
+ const WixSDKTypes = __importStar(require("@wix/sdk-types"));
28
+ exports.WixSDKTypes = WixSDKTypes;
29
+ var EventType_1 = require("./EventType");
30
+ Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return EventType_1.EventType; } });
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@wix/public-editor-platform-interfaces",
3
+ "version": "1.0.0",
4
+ "license": "UNLICENSED",
5
+ "contributors": [
6
+ {
7
+ "name": "editor-platform",
8
+ "email": "editor-platform@wix.com"
9
+ }
10
+ ],
11
+ "main": "dist/index.js",
12
+ "types": "dist/index.d.ts",
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "lint": "prettier --check ./src",
19
+ "lint:fix": "prettier --write ./src",
20
+ "test": "tsc --noEmit --emitDeclarationOnly false"
21
+ },
22
+ "lint-staged": {
23
+ "*.{js,ts}": "yarn lint"
24
+ },
25
+ "dependencies": {
26
+ "@wix/sdk-types": "^1.7.2"
27
+ },
28
+ "devDependencies": {
29
+ "@wix/deeplink-core": "^1.17.2",
30
+ "lint-staged": "^13.3.0",
31
+ "prettier": "^3.1.0",
32
+ "typescript": "~5.2.2"
33
+ },
34
+ "publishConfig": {
35
+ "registry": "https://registry.npmjs.org/",
36
+ "access": "public"
37
+ },
38
+ "wix": {
39
+ "artifact": {
40
+ "groupId": "com.wixpress",
41
+ "artifactId": "public-editor-platform-interfaces",
42
+ "targets": {
43
+ "static": false
44
+ }
45
+ },
46
+ "validations": {
47
+ "source": [
48
+ "lint"
49
+ ],
50
+ "postBuild": [
51
+ "test"
52
+ ]
53
+ }
54
+ },
55
+ "falconPackageHash": "3917b37ec67c4530b7fbf412eb164ff867aaf462e5d41ccecb0f386f"
56
+ }