@wix/editor 1.415.0 → 1.419.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/cjs/index.js +61 -53
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +61 -53
- package/dist/esm/index.js.map +1 -1
- package/dist/statics/index.js +61 -53
- package/dist/statics/index.js.map +1 -1
- package/dist/types/index.d.ts +10 -32
- package/package.json +4 -4
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
|
301
|
-
target: BindingTarget;
|
|
304
|
+
interface IDataBindingItem<T = unknown> {
|
|
302
305
|
role: string;
|
|
306
|
+
config: Record<string, T>;
|
|
303
307
|
}
|
|
304
|
-
interface
|
|
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: Record<string, any>);
|
|
323
|
-
update(data: Partial<IDataBindingItem>): any;
|
|
324
|
-
delete(): any;
|
|
325
|
-
get connectionConfig(): Record<string, any>;
|
|
326
|
-
}
|
|
327
314
|
declare class BindingsSDKShape extends BaseSDKShape {
|
|
328
|
-
get(
|
|
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;
|
|
340
|
-
}
|
|
341
319
|
declare class BindingsProvidersSDKShape extends BaseSDKShape {
|
|
342
|
-
list(bindingTarget: BindingTarget): Promise<
|
|
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.
|
|
3
|
+
"version": "1.419.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.
|
|
34
|
-
"@wix/editor-platform-environment-api": "1.
|
|
33
|
+
"@wix/editor-platform-contexts": "1.81.0",
|
|
34
|
+
"@wix/editor-platform-environment-api": "1.82.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": "
|
|
65
|
+
"falconPackageHash": "bf3683498a0ed2c0075c1b16ca58f662abf4270d17c490dc9ce19aa3"
|
|
66
66
|
}
|