@wix/public-editor-platform-interfaces 1.40.0 → 1.42.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.
@@ -1,4 +1,6 @@
1
- import { ProviderType } from './Providers';
1
+ import { FunctionParameter } from '@wix/app-extensions/trusted';
2
+ import { ElementDataDefinition } from './sdk';
3
+ import { ProviderArrayItem, ProviderFunctionItem, ProviderObjectItem, ProviderSimpleItem, ProviderTextEnumItem, ProviderType } from './Providers';
2
4
  export declare const UNBIND_ALL: "ALL";
3
5
  export type UnbindAll = typeof UNBIND_ALL;
4
6
  export interface BindingProperties {
@@ -50,3 +52,31 @@ export interface ListBindingsOptions {
50
52
  providerIdentifiers?: string[];
51
53
  providerTypes?: ProviderType[];
52
54
  }
55
+ export type BaseCandidate = {
56
+ itemPath: string;
57
+ };
58
+ export type SimpleCandidate = ProviderSimpleItem & BaseCandidate;
59
+ export type TextEnumCandidate = ProviderTextEnumItem & BaseCandidate;
60
+ export type ArrayCandidate = ProviderArrayItem & BaseCandidate;
61
+ export type FunctionCandidate = ProviderFunctionItem & BaseCandidate & {
62
+ asCallback: boolean;
63
+ };
64
+ export type ObjectCandidate = ProviderObjectItem & BaseCandidate;
65
+ export type ItemCandidate = ArrayCandidate | FunctionCandidate | ObjectCandidate | SimpleCandidate | TextEnumCandidate;
66
+ export type BindingCandidate = {
67
+ displayName: string;
68
+ itemCandidates: ItemCandidate[];
69
+ providerIdentifier: string;
70
+ providerType: ProviderType;
71
+ };
72
+ export type BindingTargetDetails = ElementDataDefinition | FunctionParameter;
73
+ export type BindingDetails = {
74
+ providerType: ProviderType;
75
+ providerIdentifier: string;
76
+ providerItem: PropertyBinding;
77
+ };
78
+ export type SelectBindingOptions = {
79
+ bindingTargetDetails: BindingTargetDetails;
80
+ initialState?: BindingDetails;
81
+ onApply?: (bindingDetails: BindingDetails) => Promise<void>;
82
+ };
@@ -0,0 +1,6 @@
1
+ export declare const PlatformRealtimeChannels: {
2
+ readonly ROUTER_REFRESH: {
3
+ readonly name: "editor-platform-channel";
4
+ readonly resourceId: "router-refresh";
5
+ };
6
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlatformRealtimeChannels = void 0;
4
+ const PLATFORM_CHANNEL_NAME = 'editor-platform-channel';
5
+ exports.PlatformRealtimeChannels = {
6
+ ROUTER_REFRESH: {
7
+ name: PLATFORM_CHANNEL_NAME,
8
+ resourceId: 'router-refresh',
9
+ },
10
+ };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as WixSDKTypes from '@wix/sdk-types';
2
2
  export { WixSDKTypes };
3
3
  export { ComponentRef } from './ComponentRef';
4
+ export { PlatformRealtimeChannels } from './Channels';
4
5
  export { IElement } from './Elements';
5
6
  export { EventType } from './EventType';
6
7
  export { AccessToken } from './Token';
package/dist/index.js CHANGED
@@ -36,9 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.PublicDmTypes = exports.EventType = exports.WixSDKTypes = void 0;
39
+ exports.PublicDmTypes = exports.EventType = exports.PlatformRealtimeChannels = exports.WixSDKTypes = void 0;
40
40
  const WixSDKTypes = __importStar(require("@wix/sdk-types"));
41
41
  exports.WixSDKTypes = WixSDKTypes;
42
+ var Channels_1 = require("./Channels");
43
+ Object.defineProperty(exports, "PlatformRealtimeChannels", { enumerable: true, get: function () { return Channels_1.PlatformRealtimeChannels; } });
42
44
  var EventType_1 = require("./EventType");
43
45
  Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return EventType_1.EventType; } });
44
46
  __exportStar(require("./Providers"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/public-editor-platform-interfaces",
3
- "version": "1.40.0",
3
+ "version": "1.42.0",
4
4
  "license": "UNLICENSED",
5
5
  "contributors": [
6
6
  {
@@ -52,5 +52,5 @@
52
52
  ]
53
53
  }
54
54
  },
55
- "falconPackageHash": "a8c951ca90455f089a3982bab36d21f4e7525ffa07a5eb1201a8378e"
55
+ "falconPackageHash": "c8d3f4ad7e8d64136b9dd0d1200a82c24ee6b3b2f3ccf8f38c82d3fd"
56
56
  }