@wix/public-editor-platform-interfaces 1.74.0 → 1.76.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/Element.d.ts +16 -3
- package/dist/sdk/pickers.d.ts +8 -0
- package/package.json +3 -3
package/dist/Element.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ElementData, ElementDataInput, ElementDataValue, ElementLink, ElementSort } from './sdk/data';
|
|
1
|
+
import type { ElementData, ElementDataInput, ElementDataValue, ElementFilter, ElementLink, ElementSort } from './sdk/data';
|
|
2
2
|
import type { ElementStyles, ElementStylesUpdate, ElementStylesRemoval } from './sdk/styles';
|
|
3
3
|
import type { ElementDataDefinitions, ElementPresetDefinitions, ElementStateDefinitions, ElementStyleDefinitions } from './sdk/definitions';
|
|
4
|
-
import type { IPickerModes, IFontFamily, IFontWeight, IFontFamilyAndWeight, ISelectLinkSharedOptions, IPanelOptions, SelectFontParams, SelectFontFamilyParams, SelectFontWeightParams, SelectMediaParams, SelectLinkParams, SelectSortParams, SelectColorParams, SelectTextThemeParams, SelectedTextTheme } from './sdk/pickers';
|
|
4
|
+
import type { IPickerModes, IFontFamily, IFontWeight, IFontFamilyAndWeight, ISelectLinkSharedOptions, IPanelOptions, SelectFontParams, SelectFontFamilyParams, SelectFontWeightParams, SelectMediaParams, SelectLinkParams, SelectSortParams, SelectFilterParams, SelectColorParams, SelectTextThemeParams, SelectedTextTheme } from './sdk/pickers';
|
|
5
5
|
import type { BackgroundPickerOptions } from './Inputs';
|
|
6
|
-
export type { IPickerModes, IFontFamily, IFontWeight, IFontFamilyAndWeight, ISelectLinkSharedOptions, IPanelOptions, SelectFontParams, SelectFontFamilyParams, SelectFontWeightParams, SelectMediaParams, SelectLinkParams, SelectSortParams, SelectColorParams, SelectTextThemeParams, SelectedTextTheme, };
|
|
6
|
+
export type { IPickerModes, IFontFamily, IFontWeight, IFontFamilyAndWeight, ISelectLinkSharedOptions, IPanelOptions, SelectFontParams, SelectFontFamilyParams, SelectFontWeightParams, SelectMediaParams, SelectLinkParams, SelectSortParams, SelectFilterParams, SelectColorParams, SelectTextThemeParams, SelectedTextTheme, };
|
|
7
7
|
/**
|
|
8
8
|
* Use `reactElements` from `@wix/editor` in a custom panel to read and update the component's styles,
|
|
9
9
|
* data, presets, and states, and to open editor pickers. Picker methods use {@link IPickerModes}. See each `select*` method for its parameter type.
|
|
@@ -444,6 +444,19 @@ export interface IElementSDK {
|
|
|
444
444
|
* ```
|
|
445
445
|
*/
|
|
446
446
|
selectSort(params: SelectSortParams): Promise<ElementSort | undefined>;
|
|
447
|
+
/**
|
|
448
|
+
* Opens the WQL filter panel for a filter data item.
|
|
449
|
+
*
|
|
450
|
+
* @param params - See {@link SelectFilterParams} and {@link IPickerModes}.
|
|
451
|
+
*
|
|
452
|
+
* @example
|
|
453
|
+
* ```ts
|
|
454
|
+
* import { reactElements } from '@wix/editor';
|
|
455
|
+
*
|
|
456
|
+
* const filter = await reactElements.selectFilter({ dataItemKey: 'productFilter' });
|
|
457
|
+
* ```
|
|
458
|
+
*/
|
|
459
|
+
selectFilter(params: SelectFilterParams): Promise<ElementFilter | undefined>;
|
|
447
460
|
/**
|
|
448
461
|
* Opens the color picker for selecting a color.
|
|
449
462
|
*
|
package/dist/sdk/pickers.d.ts
CHANGED
|
@@ -158,6 +158,14 @@ export type SelectSortParams = {
|
|
|
158
158
|
/** Pass a manifest key: field connected to `dataItemKey` in the manifest. See {@link IPickerModes}. */
|
|
159
159
|
dataItemKey: string;
|
|
160
160
|
};
|
|
161
|
+
/**
|
|
162
|
+
* Options for {@link IElementSDK.selectFilter | `reactElements.selectFilter()`}.
|
|
163
|
+
* Pass a manifest key for automatic editor handling. See {@link IPickerModes}.
|
|
164
|
+
*/
|
|
165
|
+
export type SelectFilterParams = {
|
|
166
|
+
/** Pass a manifest key: field connected to `dataItemKey` in the manifest. See {@link IPickerModes}. */
|
|
167
|
+
dataItemKey: string;
|
|
168
|
+
};
|
|
161
169
|
/**
|
|
162
170
|
* Options for {@link IElementSDK.selectColor | `reactElements.selectColor()`}.
|
|
163
171
|
* Pass either a manifest key or explicit options. See {@link IPickerModes}. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/public-editor-platform-interfaces",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.76.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"*.{js,ts}": "yarn lint"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@wix/app-extensions": "^1.0.
|
|
26
|
+
"@wix/app-extensions": "^1.0.69",
|
|
27
27
|
"@wix/sdk-types": "^1.17.8"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
"falconPackageHash": "
|
|
55
|
+
"falconPackageHash": "d42f1d1fbf60b871914e39dd17b1043e27363f893aba77b802441dc3"
|
|
56
56
|
}
|