@wix/editor 1.414.0 → 1.416.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.
@@ -293,53 +293,31 @@ declare class ControllersSDKShape extends BaseSDKShape {
293
293
  }
294
294
  declare const _default$2: ControllersSDKShape & _wix_sdk_types.HostModule<ControllersSDKShape, _wix_sdk_types.Host>;
295
295
 
296
+ /**
297
+ * Binding target for public SDK
298
+ */
296
299
  type BindingTarget = {
297
300
  type: 'dataItem';
298
301
  id: string;
302
+ subItemId?: string;
299
303
  };
300
- interface IBaseBindingItem {
301
- target: BindingTarget;
304
+ interface IDataBindingItem<T = unknown> {
302
305
  role: string;
306
+ config: Record<string, T>;
303
307
  }
304
- interface IDataBindingItem extends IBaseBindingItem {
305
- type: 'dataItem';
306
- config: Record<string, any>;
307
- }
308
- interface IBindingsProvider {
309
- select(): void;
310
- createBinding(data: IDataBindingItem): IBindingConnectionItem | null;
311
- }
312
- interface IBindingConnectionItem {
308
+ interface IBindingConnectionItem<T = unknown> {
313
309
  update(data: Partial<IDataBindingItem>): Promise<void>;
314
310
  delete(): Promise<void>;
311
+ config: Record<string, T>;
315
312
  }
316
313
 
317
- declare class BindingConnectionItem {
318
- private privateAPI;
319
- private compRef;
320
- private bindingTargetId;
321
- private config;
322
- constructor(privateAPI: any, compRef: ComponentRef, bindingTargetId: string, config: string);
323
- update(data: Partial<IDataBindingItem>): any;
324
- delete(): any;
325
- get connectionConfig(): string;
326
- }
327
314
  declare class BindingsSDKShape extends BaseSDKShape {
328
- get(bindingTarget: BindingTarget): Promise<IBindingConnectionItem | null>;
315
+ get(target: BindingTarget): Promise<IBindingConnectionItem | null>;
329
316
  }
330
317
  declare const _default$1: BindingsSDKShape & _wix_sdk_types.HostModule<BindingsSDKShape, _wix_sdk_types.Host>;
331
318
 
332
- declare class BindingsProvider implements IBindingsProvider {
333
- private privateAPI;
334
- private compRef;
335
- private dataItemTarget;
336
- name: string;
337
- constructor(privateAPI: any, compRef: ComponentRef, dataItemTarget: BindingTarget, name: string);
338
- select(): any;
339
- createBinding(data: IDataBindingItem): BindingConnectionItem | null;
340
- }
341
319
  declare class BindingsProvidersSDKShape extends BaseSDKShape {
342
- list(bindingTarget: BindingTarget): Promise<BindingsProvider[]>;
320
+ list(bindingTarget: BindingTarget): Promise<any>;
343
321
  }
344
322
  declare const _default: BindingsProvidersSDKShape & _wix_sdk_types.HostModule<BindingsProvidersSDKShape, _wix_sdk_types.Host>;
345
323
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor",
3
- "version": "1.414.0",
3
+ "version": "1.416.0",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Editor Platform <editor-platform-dev@wix.com>",
@@ -30,8 +30,8 @@
30
30
  "*.{js,ts}": "yarn lint"
31
31
  },
32
32
  "dependencies": {
33
- "@wix/editor-platform-contexts": "1.78.0",
34
- "@wix/editor-platform-environment-api": "1.78.0",
33
+ "@wix/editor-platform-contexts": "1.79.0",
34
+ "@wix/editor-platform-environment-api": "1.79.0",
35
35
  "@wix/monitoring-browser-sdk-host": "^0.1.8",
36
36
  "@wix/public-editor-platform-errors": "1.8.0",
37
37
  "@wix/public-editor-platform-interfaces": "1.25.0",
@@ -62,5 +62,5 @@
62
62
  ]
63
63
  }
64
64
  },
65
- "falconPackageHash": "fe5185bf0bc59df26403bb47bd4e300843e063f3bd985967fa49a6b1"
65
+ "falconPackageHash": "fbe5afc932065e551ec3faaf78d366185c385b9af1c23994845f7884"
66
66
  }