@yoobic/yobi 8.1.0-45 → 8.1.0-46

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.
@@ -79,9 +79,13 @@ let YooFormPermissionsComponent = class {
79
79
  return (((_a = params.data.user) === null || _a === void 0 ? void 0 : _a.firstName) || '') + (((_b = params.data.user) === null || _b === void 0 ? void 0 : _b.lastName) || '') + (((_c = params.data.user) === null || _c === void 0 ? void 0 : _c.email) || '');
80
80
  },
81
81
  headerName: overlays.translate('USER'),
82
- headerValueGetter: () => {
83
- var _a, _b;
84
- return (((_a = this.userRoles) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.userRoles.length.toLocaleString() + ' ' : '') + overlays.translate(((_b = this.userRoles) === null || _b === void 0 ? void 0 : _b.length) > 1 ? 'USERS' : 'USER');
82
+ headerValueGetter: (params) => {
83
+ var _a;
84
+ let total = ((_a = this.userRoles) === null || _a === void 0 ? void 0 : _a.length) || 0;
85
+ if (params === null || params === void 0 ? void 0 : params.api) {
86
+ total = params.api.getDisplayedRowCount();
87
+ }
88
+ return (total > 0 ? total.toLocaleString() + ' ' : '') + overlays.translate(total > 1 ? 'USERS' : 'USER');
85
89
  }
86
90
  },
87
91
  {
@@ -1138,6 +1138,7 @@ let YooGridComponent = class {
1138
1138
  else if (this.isAgGrid() && this.isLocal) {
1139
1139
  if (this.gridApi && !this.disconnected) {
1140
1140
  this.gridApi.setQuickFilter(this.searchText);
1141
+ this.gridApi.refreshHeader();
1141
1142
  }
1142
1143
  }
1143
1144
  else if (!this.isMarkerFocusing && !this.disconnected) {
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-d565915c.js');
6
6
  const overlays = require('./overlays-885aa637.js');
7
7
  require('./index-7f276896.js');
8
- const index$1 = require('./index-290beb18.js');
9
8
  const commonHelpers = require('./common-helpers-01100ede.js');
10
9
  const dimensionsHelpers = require('./dimensions-helpers-54685523.js');
11
10
  require('./lodash-a046a0e1.js');
@@ -52,7 +51,6 @@ let YooLoginComponent = class {
52
51
  this.hideTitleAndFooterForIpadMini = false;
53
52
  this.inputValidators = [{ name: 'required' }];
54
53
  this.inputUIValidation = { valid: false, invalid: false };
55
- this.lockAssignPress = false;
56
54
  }
57
55
  get isEmailValid() {
58
56
  var _a;
@@ -89,7 +87,7 @@ let YooLoginComponent = class {
89
87
  }
90
88
  (_a = overlays.ScreenOrientation === null || overlays.ScreenOrientation === void 0 ? void 0 : overlays.ScreenOrientation.onChange) === null || _a === void 0 ? void 0 : _a.call(overlays.ScreenOrientation).subscribe(() => index.forceUpdate(this));
91
89
  if (this.ssoOnly) {
92
- index$1.assignPressActions(this.poweredByElement, { lockAssignPress: this.lockAssignPress }, () => (this.hideLoginForm = false));
90
+ this.poweredByElement.onclick = () => { this.hideLoginForm = false; };
93
91
  }
94
92
  }
95
93
  componentDidUpdate() {
@@ -3,7 +3,6 @@ import { debounce, disableKeyboardResize, enableKeyboardResize, getContrastColor
3
3
  // getUserLanguageKeys,
4
4
  isAndroid, isChromatic, isIonic, isIOS, isIphone5, isIphoneSE, isIphoneX, isNativeMobile, isTablet, isWeb, LoginFocusAnimation, setStatusBarDarkMode, showActionSheet, translate } from '@shared/utils';
5
5
  import { Component, Element, Event, forceUpdate, h, Host, Method, Prop, State, Watch } from '@stencil/core';
6
- import { assignPressActions } from '../../../utils/gesture';
7
6
  import { getAppContext, querySelectorAllDeep } from '../../../utils/helpers/common-helpers';
8
7
  import { getElementDimensions } from '../../../utils/helpers/dimensions-helpers';
9
8
  const MIN_SCREEN_SIZE_LEFT_PANEL = 900;
@@ -38,7 +37,6 @@ export class YooLoginComponent {
38
37
  this.hideTitleAndFooterForIpadMini = false;
39
38
  this.inputValidators = [{ name: 'required' }];
40
39
  this.inputUIValidation = { valid: false, invalid: false };
41
- this.lockAssignPress = false;
42
40
  }
43
41
  get isEmailValid() {
44
42
  var _a;
@@ -75,7 +73,7 @@ export class YooLoginComponent {
75
73
  }
76
74
  (_a = ScreenOrientation === null || ScreenOrientation === void 0 ? void 0 : ScreenOrientation.onChange) === null || _a === void 0 ? void 0 : _a.call(ScreenOrientation).subscribe(() => forceUpdate(this));
77
75
  if (this.ssoOnly) {
78
- assignPressActions(this.poweredByElement, { lockAssignPress: this.lockAssignPress }, () => (this.hideLoginForm = false));
76
+ this.poweredByElement.onclick = () => { this.hideLoginForm = false; };
79
77
  }
80
78
  }
81
79
  componentDidUpdate() {
@@ -65,9 +65,13 @@ export class YooFormPermissionsComponent {
65
65
  return (((_a = params.data.user) === null || _a === void 0 ? void 0 : _a.firstName) || '') + (((_b = params.data.user) === null || _b === void 0 ? void 0 : _b.lastName) || '') + (((_c = params.data.user) === null || _c === void 0 ? void 0 : _c.email) || '');
66
66
  },
67
67
  headerName: translate('USER'),
68
- headerValueGetter: () => {
69
- var _a, _b;
70
- return (((_a = this.userRoles) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.userRoles.length.toLocaleString() + ' ' : '') + translate(((_b = this.userRoles) === null || _b === void 0 ? void 0 : _b.length) > 1 ? 'USERS' : 'USER');
68
+ headerValueGetter: (params) => {
69
+ var _a;
70
+ let total = ((_a = this.userRoles) === null || _a === void 0 ? void 0 : _a.length) || 0;
71
+ if (params === null || params === void 0 ? void 0 : params.api) {
72
+ total = params.api.getDisplayedRowCount();
73
+ }
74
+ return (total > 0 ? total.toLocaleString() + ' ' : '') + translate(total > 1 ? 'USERS' : 'USER');
71
75
  }
72
76
  },
73
77
  {
@@ -1061,6 +1061,7 @@ export class YooGridComponent {
1061
1061
  else if (this.isAgGrid() && this.isLocal) {
1062
1062
  if (this.gridApi && !this.disconnected) {
1063
1063
  this.gridApi.setQuickFilter(this.searchText);
1064
+ this.gridApi.refreshHeader();
1064
1065
  }
1065
1066
  }
1066
1067
  else if (!this.isMarkerFocusing && !this.disconnected) {
@@ -75,9 +75,13 @@ let YooFormPermissionsComponent = class {
75
75
  return (((_a = params.data.user) === null || _a === void 0 ? void 0 : _a.firstName) || '') + (((_b = params.data.user) === null || _b === void 0 ? void 0 : _b.lastName) || '') + (((_c = params.data.user) === null || _c === void 0 ? void 0 : _c.email) || '');
76
76
  },
77
77
  headerName: translate('USER'),
78
- headerValueGetter: () => {
79
- var _a, _b;
80
- return (((_a = this.userRoles) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.userRoles.length.toLocaleString() + ' ' : '') + translate(((_b = this.userRoles) === null || _b === void 0 ? void 0 : _b.length) > 1 ? 'USERS' : 'USER');
78
+ headerValueGetter: (params) => {
79
+ var _a;
80
+ let total = ((_a = this.userRoles) === null || _a === void 0 ? void 0 : _a.length) || 0;
81
+ if (params === null || params === void 0 ? void 0 : params.api) {
82
+ total = params.api.getDisplayedRowCount();
83
+ }
84
+ return (total > 0 ? total.toLocaleString() + ' ' : '') + translate(total > 1 ? 'USERS' : 'USER');
81
85
  }
82
86
  },
83
87
  {
@@ -1134,6 +1134,7 @@ let YooGridComponent = class {
1134
1134
  else if (this.isAgGrid() && this.isLocal) {
1135
1135
  if (this.gridApi && !this.disconnected) {
1136
1136
  this.gridApi.setQuickFilter(this.searchText);
1137
+ this.gridApi.refreshHeader();
1137
1138
  }
1138
1139
  }
1139
1140
  else if (!this.isMarkerFocusing && !this.disconnected) {
@@ -1,7 +1,6 @@
1
1
  import { r as registerInstance, j as createEvent, f as forceUpdate, h, i as Host, e as getElement } from './index-f6e6bee2.js';
2
2
  import { cq as setStatusBarDarkMode, ab as disableKeyboardResize, x as debounce, cr as LoginFocusAnimation, S as ScreenOrientation, ac as enableKeyboardResize, m as isNativeMobile, q as isTablet, ce as isIonic, V as isIphone5, B as isIOS, ag as showActionSheet, t as translate, w as isWeb, cs as getContrastColorName, W as isIphoneSE, n as isAndroid, i as isChromatic, A as isIphoneX } from './overlays-23c93344.js';
3
3
  import './index-635ca72c.js';
4
- import { a as assignPressActions } from './index-edcad767.js';
5
4
  import { f as querySelectorAllDeep, b as getAppContext } from './common-helpers-27835fe0.js';
6
5
  import { g as getElementDimensions } from './dimensions-helpers-74309fae.js';
7
6
  import './lodash-2317d9a5.js';
@@ -48,7 +47,6 @@ let YooLoginComponent = class {
48
47
  this.hideTitleAndFooterForIpadMini = false;
49
48
  this.inputValidators = [{ name: 'required' }];
50
49
  this.inputUIValidation = { valid: false, invalid: false };
51
- this.lockAssignPress = false;
52
50
  }
53
51
  get isEmailValid() {
54
52
  var _a;
@@ -85,7 +83,7 @@ let YooLoginComponent = class {
85
83
  }
86
84
  (_a = ScreenOrientation === null || ScreenOrientation === void 0 ? void 0 : ScreenOrientation.onChange) === null || _a === void 0 ? void 0 : _a.call(ScreenOrientation).subscribe(() => forceUpdate(this));
87
85
  if (this.ssoOnly) {
88
- assignPressActions(this.poweredByElement, { lockAssignPress: this.lockAssignPress }, () => (this.hideLoginForm = false));
86
+ this.poweredByElement.onclick = () => { this.hideLoginForm = false; };
89
87
  }
90
88
  }
91
89
  componentDidUpdate() {
@@ -75,9 +75,13 @@ let YooFormPermissionsComponent = class {
75
75
  return (((_a = params.data.user) === null || _a === void 0 ? void 0 : _a.firstName) || '') + (((_b = params.data.user) === null || _b === void 0 ? void 0 : _b.lastName) || '') + (((_c = params.data.user) === null || _c === void 0 ? void 0 : _c.email) || '');
76
76
  },
77
77
  headerName: translate('USER'),
78
- headerValueGetter: () => {
79
- var _a, _b;
80
- return (((_a = this.userRoles) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.userRoles.length.toLocaleString() + ' ' : '') + translate(((_b = this.userRoles) === null || _b === void 0 ? void 0 : _b.length) > 1 ? 'USERS' : 'USER');
78
+ headerValueGetter: (params) => {
79
+ var _a;
80
+ let total = ((_a = this.userRoles) === null || _a === void 0 ? void 0 : _a.length) || 0;
81
+ if (params === null || params === void 0 ? void 0 : params.api) {
82
+ total = params.api.getDisplayedRowCount();
83
+ }
84
+ return (total > 0 ? total.toLocaleString() + ' ' : '') + translate(total > 1 ? 'USERS' : 'USER');
81
85
  }
82
86
  },
83
87
  {
@@ -1134,6 +1134,7 @@ let YooGridComponent = class {
1134
1134
  else if (this.isAgGrid() && this.isLocal) {
1135
1135
  if (this.gridApi && !this.disconnected) {
1136
1136
  this.gridApi.setQuickFilter(this.searchText);
1137
+ this.gridApi.refreshHeader();
1137
1138
  }
1138
1139
  }
1139
1140
  else if (!this.isMarkerFocusing && !this.disconnected) {
@@ -1,7 +1,6 @@
1
1
  import { r as registerInstance, j as createEvent, f as forceUpdate, h, i as Host, e as getElement } from './index-f6e6bee2.js';
2
2
  import { cq as setStatusBarDarkMode, ab as disableKeyboardResize, x as debounce, cr as LoginFocusAnimation, S as ScreenOrientation, ac as enableKeyboardResize, m as isNativeMobile, q as isTablet, ce as isIonic, V as isIphone5, B as isIOS, ag as showActionSheet, t as translate, w as isWeb, cs as getContrastColorName, W as isIphoneSE, n as isAndroid, i as isChromatic, A as isIphoneX } from './overlays-23c93344.js';
3
3
  import './index-635ca72c.js';
4
- import { a as assignPressActions } from './index-edcad767.js';
5
4
  import { f as querySelectorAllDeep, b as getAppContext } from './common-helpers-27835fe0.js';
6
5
  import { g as getElementDimensions } from './dimensions-helpers-74309fae.js';
7
6
  import './lodash-2317d9a5.js';
@@ -48,7 +47,6 @@ let YooLoginComponent = class {
48
47
  this.hideTitleAndFooterForIpadMini = false;
49
48
  this.inputValidators = [{ name: 'required' }];
50
49
  this.inputUIValidation = { valid: false, invalid: false };
51
- this.lockAssignPress = false;
52
50
  }
53
51
  get isEmailValid() {
54
52
  var _a;
@@ -85,7 +83,7 @@ let YooLoginComponent = class {
85
83
  }
86
84
  (_a = ScreenOrientation === null || ScreenOrientation === void 0 ? void 0 : ScreenOrientation.onChange) === null || _a === void 0 ? void 0 : _a.call(ScreenOrientation).subscribe(() => forceUpdate(this));
87
85
  if (this.ssoOnly) {
88
- assignPressActions(this.poweredByElement, { lockAssignPress: this.lockAssignPress }, () => (this.hideLoginForm = false));
86
+ this.poweredByElement.onclick = () => { this.hideLoginForm = false; };
89
87
  }
90
88
  }
91
89
  componentDidUpdate() {
@@ -62,7 +62,6 @@ export declare class YooLoginComponent implements ComponentInterface {
62
62
  private inputValidators;
63
63
  private inputUIValidation;
64
64
  private poweredByElement;
65
- private lockAssignPress;
66
65
  private get isEmailValid();
67
66
  private get isPasswordValid();
68
67
  onLeftPanelChanged(newValue: boolean): void;
@@ -0,0 +1,923 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ type ProgressCallback = (event: ProgressEvent) => void;
3
+
4
+ type Percentage = string;
5
+
6
+ interface PinturaMetadata {
7
+ [key: string]: any;
8
+ }
9
+
10
+ // prettier-ignore
11
+ /**
12
+ * A matrix of 20 digits based on the SVG <feColorMatrix> filter
13
+ *
14
+ * @example
15
+ * ```
16
+ * R G B A W
17
+ * R | 1 0 0 0 0
18
+ * G | 0 1 0 0 0
19
+ * B | 0 0 1 0 0
20
+ * A | 0 0 0 1 0
21
+ * ```
22
+ * @link Utility to generate a color matrix: https://fecolormatrix.com
23
+ * @link More information on color matrices: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feColorMatrix
24
+ */
25
+ type ColorMatrix = [
26
+ number, number, number, number, number,
27
+ number, number, number, number, number,
28
+ number, number, number, number, number,
29
+ number, number, number, number, number
30
+ ];
31
+
32
+ // prettier-ignore
33
+ /**
34
+ * A matrix of 9 digits based on the SVG <feConvolveMatrix> filter
35
+ *
36
+ * @example
37
+ * ```
38
+ * 1 0 0
39
+ * 0 1 0
40
+ * 0 0 1
41
+ * ```
42
+ * @link More information on convolution matrices: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feConvolveMatrix
43
+ */
44
+ type ConvolutionMatrix = [
45
+ number, number, number,
46
+ number, number, number,
47
+ number, number, number
48
+ ];
49
+
50
+ type Color = number[];
51
+
52
+ type TextAlign = 'left' | 'center' | 'right';
53
+
54
+ type TextLayout = 'auto-width' | 'auto-height' | 'fixed-size';
55
+
56
+ type SizeCategory =
57
+ | 'extraSmall'
58
+ | 'small'
59
+ | 'mediumSmall'
60
+ | 'medium'
61
+ | 'mediumLarge'
62
+ | 'large'
63
+ | 'extraLarge';
64
+
65
+ type LineEndStyle =
66
+ | 'bar'
67
+ | 'arrow'
68
+ | 'arrowSolid'
69
+ | 'circle'
70
+ | 'circleSolid'
71
+ | 'square'
72
+ | 'squareSolid';
73
+
74
+ interface ColorPalette {
75
+ transparent?: Color;
76
+ white?: Color;
77
+ silver?: Color;
78
+ gray?: Color;
79
+ black?: Color;
80
+ navy?: Color;
81
+ blue?: Color;
82
+ aqua?: Color;
83
+ teal?: Color;
84
+ olive?: Color;
85
+ green?: Color;
86
+ yellow?: Color;
87
+ orange?: Color;
88
+ red?: Color;
89
+ maroon?: Color;
90
+ fuchsia?: Color;
91
+ purple?: Color;
92
+ }
93
+
94
+ type SizeCategories = Record<SizeCategory, Percentage | number>;
95
+
96
+ interface LocaleCollection {
97
+ [shapeProperty: string]: string;
98
+ }
99
+
100
+ type LocaleString = string | ((locale: LocaleCollection) => string);
101
+
102
+ interface Vector {
103
+ x: number;
104
+ y: number;
105
+ }
106
+
107
+ interface Size {
108
+ width: number;
109
+ height: number;
110
+ }
111
+
112
+ interface Rect {
113
+ x: number;
114
+ y: number;
115
+ width: number;
116
+ height: number;
117
+ }
118
+
119
+ interface ShapeToolOptions {
120
+ position?: string;
121
+ }
122
+
123
+ interface Shape {
124
+ x?: number | Percentage;
125
+ y?: number | Percentage;
126
+ width?: number | Percentage;
127
+ height?: number | Percentage;
128
+ left?: number | Percentage;
129
+ top?: number | Percentage;
130
+ right?: number | Percentage;
131
+ bottom?: number | Percentage;
132
+ rx?: number | Percentage;
133
+ ry?: number | Percentage;
134
+ x1?: number | Percentage;
135
+ y1?: number | Percentage;
136
+ x2?: number | Percentage;
137
+ y2?: number | Percentage;
138
+ x3?: number | Percentage;
139
+ y3?: number | Percentage;
140
+ strokeColor?: Color;
141
+ strokeWidth?: number | Percentage;
142
+ cornerRadius?: number | Percentage;
143
+ fontSize?: number | Percentage;
144
+ fontFamily?: string;
145
+ lineHeight?: number;
146
+ textAlign?: undefined | 'left' | 'center' | 'right';
147
+ text?: string;
148
+ aspectRatio?: number;
149
+ rotation?: number;
150
+ points?: Vector[];
151
+ color?: Color;
152
+ backgroundColor?: Color;
153
+ eraseRadius?: number;
154
+ lineStart?:
155
+ | undefined
156
+ | 'bar'
157
+ | 'arrow'
158
+ | 'arrow-solid'
159
+ | 'square'
160
+ | 'square-solid'
161
+ | 'circle'
162
+ | 'circle-solid';
163
+ lineEnd?:
164
+ | undefined
165
+ | 'bar'
166
+ | 'arrow'
167
+ | 'arrow-solid'
168
+ | 'square'
169
+ | 'square-solid'
170
+ | 'circle'
171
+ | 'circle-solid';
172
+ isSelected?: boolean;
173
+ readonly context?: Rect | Size;
174
+ readonly isDraft?: boolean;
175
+ readonly isComplete?: boolean;
176
+ readonly isError?: boolean;
177
+ readonly isLoading?: boolean;
178
+ readonly isEditing?: boolean;
179
+ readonly isFormatted?: boolean;
180
+ disableStyle?: boolean | string[];
181
+ disableErase?: boolean;
182
+ disableSelect?: boolean;
183
+ disableRemove?: boolean;
184
+ disableDuplicate?: boolean;
185
+ disableReorder?: boolean;
186
+ disableFlip?: boolean;
187
+ disableInput?: boolean | ((text: string) => string);
188
+ disableManipulate?: boolean;
189
+ disableMove?: boolean;
190
+ disableResize?: boolean;
191
+ disableRotate?: boolean;
192
+ disableTextLayout?: boolean | TextLayout[];
193
+ }
194
+
195
+ type SvelteComponent = any;
196
+ type SvelteComponentProps = any;
197
+
198
+ type ShapeControl = [
199
+ // Component to use
200
+ SvelteComponent,
201
+
202
+ // Component properties to map
203
+ {
204
+ title?: LocaleString;
205
+ label?: LocaleString;
206
+ options?: SvelteComponentProps;
207
+ optionIconStyle?: LocaleString;
208
+ optionLabelStyle?: LocaleString;
209
+ }
210
+ ];
211
+
212
+ type ShapeColorOption = [Color, string] | [Color, string, any];
213
+ type ShapeSizeOption = [number | Percentage, string] | [number | Percentage, string, any];
214
+ type ShapeLineEndOption = [LineEndStyle, string] | [LineEndStyle, string, any];
215
+ type ShapeFontFamilyOption = [string, string] | [string, string, any];
216
+ type ShapeFontStyleOption = [string, string] | [string, string, any];
217
+
218
+ interface ShapeControlOptions {
219
+ colorOptions?: false | ShapeColorOption[];
220
+ strokeWidthOptions?: false | ShapeSizeOption[];
221
+ lineEndStyleOptions?: false | ShapeLineEndOption[];
222
+ fontFamilyOptions?: false | ShapeFontFamilyOption[];
223
+ fontStyleOptions?: false | ShapeFontStyleOption[];
224
+ fontSizeOptions?: false | ShapeSizeOption[];
225
+ textAlignOptions?: false | [TextAlign, string][];
226
+ lineHeightOptions?: false | [number, string][];
227
+ }
228
+
229
+ interface ShapeControlConfiguration {
230
+ // A mapping of a shapeProperty to a Component
231
+ [shapeProperty: string]: ShapeControl;
232
+ }
233
+
234
+ type StickerSrc = string; // emoji or URL
235
+
236
+ interface StickerTemplate {
237
+ thumb?: StickerSrc;
238
+ src?: StickerSrc;
239
+ width?: number;
240
+ height?: number;
241
+ alt?: string;
242
+ disabled?: boolean;
243
+ shape?: Shape;
244
+ mount?: (
245
+ element: HTMLElement,
246
+ sticker: StickerTemplate
247
+ ) => { update?: (sticker: StickerTemplate) => void; destroy?: () => void };
248
+ }
249
+
250
+ type Sticker = StickerSrc | StickerTemplate;
251
+
252
+ interface StickerGroupOptions {
253
+ icon?: string;
254
+ hideLabel?: boolean;
255
+ disabled?: boolean;
256
+ }
257
+
258
+ type StickerGroup = [string, Sticker[]] | [string, Sticker[], StickerGroupOptions];
259
+
260
+ type ImageSource = File | Blob | string | HTMLImageElement | HTMLCanvasElement;
261
+
262
+ interface Store {
263
+ subscribe: (value: (value: any) => void) => () => void;
264
+ set?: (value: any) => void;
265
+ update?: (fn: (value: any) => any) => void;
266
+ }
267
+
268
+ interface StoreCollection {
269
+ [shapeProperty: string]: Store;
270
+ }
271
+
272
+ type Filter = () => ColorMatrix;
273
+
274
+ interface Effect {
275
+ base: number;
276
+ min: number;
277
+ max: number;
278
+ getLabel?: (value: number) => number;
279
+ getStore: (stores: StoreCollection) => Store;
280
+ getValue: (store: Store) => number;
281
+ setValue: (store: Store, value: number) => void;
282
+ }
283
+
284
+ interface EditorHistory {
285
+ undo: () => number;
286
+ redo: () => number;
287
+ revert: () => void;
288
+ write: (imageState?: any) => void;
289
+ get: () => any[];
290
+ set: (imageStates: any[]) => void;
291
+ readonly length: number;
292
+ }
293
+
294
+ interface EditorMethods {
295
+ on: (event: string, cb: (detail?: any) => void) => void;
296
+ loadImage: (
297
+ src: ImageSource,
298
+ options: ImageOptions
299
+ ) => Promise<PinturaDefaultImageReaderResult>;
300
+ editImage: (
301
+ src: ImageSource,
302
+ options: ImageOptions
303
+ ) => Promise<PinturaDefaultImageWriterResult>;
304
+ processImage: () => Promise<PinturaDefaultImageWriterResult>;
305
+ abortProcessImage: () => void;
306
+ updateImage: (src: ImageSource) => Promise<PinturaDefaultImageReaderResult>;
307
+ updateImagePreview: (src: ImageSource) => void;
308
+ readonly history: EditorHistory;
309
+ close: () => void;
310
+ destroy: () => void;
311
+ }
312
+
313
+ type CropOption = [number | undefined, string];
314
+
315
+ type SizeOption = [[number, number], string];
316
+
317
+ type CropPresetOption = CropOption | SizeOption;
318
+
319
+ type OptionGroup = [string, any[]] | [string, any[], any];
320
+
321
+ interface CropPluginOptions {
322
+ cropAutoCenterImageSelectionTimeout?: undefined | number;
323
+ cropWillRenderImageSelectionGuides?:
324
+ | undefined
325
+ | ((
326
+ interaction: string,
327
+ interactionFraction: number
328
+ ) => { rows: number; cols: number; opacity: number });
329
+ cropEnableButtonFlipHorizontal?: boolean;
330
+ cropEnableButtonFlipVertical?: boolean;
331
+ cropEnableButtonRotateLeft?: boolean;
332
+ cropEnableButtonRotateRight?: boolean;
333
+ cropEnableButtonToggleCropLimit?: boolean;
334
+ cropEnableCenterImageSelection?: boolean;
335
+ cropEnableImageSelection?: boolean;
336
+ cropEnableInfoIndicator?: boolean;
337
+ cropEnableLimitWheelInputToCropSelection?: boolean;
338
+ cropEnableRotationInput?: boolean;
339
+ cropEnableSelectPreset?: boolean;
340
+ cropEnableZoomInput?: boolean;
341
+ cropEnableZoomMatchImageAspectRatio?: boolean;
342
+ cropEnableZoomTowardsWheelPosition?: boolean;
343
+ cropImageSelectionCornerStyle?: undefined | 'hook' | 'round' | 'invisible';
344
+ cropSelectPresetOptions?: OptionGroup[] | CropPresetOption[];
345
+ cropEnableRotateMatchImageAspectRatio?: 'never' | 'custom' | 'always';
346
+ }
347
+
348
+ interface ShapeToolButtonOptions {
349
+ icon?: string;
350
+ }
351
+
352
+ type ShapeTool = [string, LocaleString] | [string, LocaleString, ShapeToolButtonOptions];
353
+
354
+ interface MarkupEditorPropertier {
355
+ markupEditorToolbar?: [string, LocaleString, any][];
356
+ markupEditorToolStyles?: MarkupEditorToolStyleDefaults;
357
+ markupEditorShapeStyleControls?: MarkupEditorShapeStyleControlDefaults;
358
+ markupEditorToolSelectRadius?: number;
359
+ }
360
+
361
+ interface AnnotatePluginOptions extends MarkupEditorPropertier {
362
+ annotateActiveTool?: string;
363
+ annotateEnableButtonFlipVertical?: boolean;
364
+ annotatePresets?: Sticker[] | StickerGroup[];
365
+ }
366
+
367
+ interface DecoratePluginOptions extends MarkupEditorPropertier {
368
+ decorateActiveTool?: string;
369
+ decorateEnableButtonFlipVertical?: boolean;
370
+ decoratePresets?: Sticker[] | StickerGroup[];
371
+ }
372
+
373
+ interface FilterPluginOptions {
374
+ filterFunctions?: { [key: string]: Filter };
375
+ filterOptions?: any;
376
+ }
377
+
378
+ interface FinetunePluginOptions {
379
+ finetuneControlConfiguration?: { [key: string]: Effect };
380
+ finetuneOptions?: any;
381
+ }
382
+
383
+ interface ResizePluginOptions {
384
+ resizeMaxSize?: Size;
385
+ resizeMinSize?: Size;
386
+ }
387
+
388
+ interface StickerPluginOptions {
389
+ stickers?: Sticker[] | StickerGroup[];
390
+ stickerStickToImage?: boolean;
391
+ stickersEnableButtonFlipVertical?: boolean;
392
+ }
393
+
394
+ interface ImageOptions {
395
+ readonly size: Size;
396
+ readonly aspectRatio: number;
397
+ readonly cropSize: Size;
398
+ readonly cropRectAspectRatio: number;
399
+ readonly file: File;
400
+ readonly loadState: any;
401
+ readonly processState: any;
402
+ readonly rotationRange: [number, number];
403
+ backgroundColor?: Color;
404
+ colorMatrix?: ColorMatrix;
405
+ convolutionMatrix?: ConvolutionMatrix;
406
+ crop?: Rect;
407
+ cropAspectRatio?: number | undefined;
408
+ cropLimitToImage?: boolean;
409
+ cropMaxSize?: Size;
410
+ cropMinSize?: Size;
411
+ annotation?: Shape[];
412
+ decoration?: Shape[];
413
+ flipX?: boolean;
414
+ flipY?: boolean;
415
+ gamma?: number;
416
+ noise?: number;
417
+ rotation?: number;
418
+ vignette?: number;
419
+ targetSize?: Size;
420
+ metadata?: PinturaMetadata;
421
+ state?: any;
422
+ }
423
+
424
+ interface EditorImageOptionsReadonly {
425
+ readonly imageSize: Size;
426
+ readonly imageAspectRatio: number;
427
+ readonly imageCropSize: Size;
428
+ readonly imageCropRectAspectRatio: number;
429
+ readonly imageFile: File;
430
+ readonly imageLoadState: any;
431
+ readonly imageProcessState: any;
432
+ readonly imageRotationRange: [number, number];
433
+ }
434
+
435
+ interface EditorImageOptions {
436
+ imageBackgroundColor?: Color;
437
+ imageColorMatrix?: ColorMatrix;
438
+ imageConvolutionMatrix?: ConvolutionMatrix;
439
+ imageCrop?: Rect;
440
+ imageCropAspectRatio?: number | undefined;
441
+ imageCropLimitToImage?: boolean;
442
+ imageCropMaxSize?: Size;
443
+ imageCropMinSize?: Size;
444
+ imageAnnotation?: Shape[];
445
+ imageDecoration?: Shape[];
446
+ imageFlipX?: boolean;
447
+ imageFlipY?: boolean;
448
+ imageGamma?: number;
449
+ imageNoise?: number;
450
+ imageRotation?: number;
451
+ imageVignette?: number;
452
+ imageTargetSize?: Size;
453
+ imageMetadata?: PinturaMetadata;
454
+ imageState?: any;
455
+ }
456
+
457
+ interface EditorOptionsReadonly {
458
+ readonly element?: HTMLElement;
459
+ readonly stores?: any[];
460
+ readonly images?: any;
461
+ }
462
+
463
+ interface PinturaNodeOptions {
464
+ [key: string]: any;
465
+ }
466
+
467
+ type PinturaComponent = 'Button' | 'Dropdown';
468
+
469
+ type PinturaNodeType = string | SvelteComponent | PinturaComponent;
470
+
471
+ // ignore for TypeScript 3.x
472
+ type PinturaNode =
473
+ | [PinturaNodeType, string]
474
+ | [PinturaNodeType, string, PinturaNodeOptions]
475
+ | [PinturaNodeType, string, PinturaNode[]]
476
+ | [PinturaNodeType, string, PinturaNodeOptions, PinturaNode[]];
477
+
478
+ type PinturaEditorStatus = string | [string] | [string, number] | [string, false] | undefined;
479
+
480
+ interface EditorOptions {
481
+ id?: string;
482
+ class?: string;
483
+ animations?: boolean;
484
+ src?: ImageSource;
485
+ util?: string;
486
+ utils?: string[];
487
+ disabled?: boolean;
488
+ status?: PinturaEditorStatus;
489
+ elasticityMultiplier?: number;
490
+ layoutDirectionPreference?: 'auto' | 'horizontal' | 'vertical';
491
+ imageSourceToImageData?: (src: any) => Promise<ImageData>;
492
+ previewImageDataMaxSize?: Size;
493
+ previewUpscale?: boolean;
494
+ enableButtonClose?: boolean;
495
+ enableButtonExport?: boolean;
496
+ enableButtonResetHistory?: boolean;
497
+ enableButtonRevert?: boolean;
498
+ enableNavigateHistory?: boolean;
499
+ enableToolbar?: boolean;
500
+ enableUtils?: boolean;
501
+ enableDropImage?: boolean;
502
+ enablePasteImage?: boolean;
503
+ handleEvent?: (type: string, detail: any) => void;
504
+ willRevert?: () => Promise<boolean>;
505
+ willProcessImage?: () => Promise<boolean>;
506
+ willRenderCanvas?: (
507
+ shapes: {
508
+ decorationShapes: Shape[];
509
+ annotationShapes: Shape[];
510
+ interfaceShapes: Shape[];
511
+ },
512
+ state: any
513
+ ) => {
514
+ decorationShapes: Shape[];
515
+ annotationShapes: Shape[];
516
+ interfaceShapes: Shape[];
517
+ };
518
+ willSetHistoryInitialState?: (initialState: any) => any;
519
+ willRenderToolbar?: (nodes: PinturaNode[], env: any) => PinturaNode[];
520
+ beforeSelectShape?: (current: Shape | undefined, target: Shape) => boolean;
521
+ beforeDeselectShape?: (current: Shape, target: Shape | undefined) => boolean;
522
+ beforeAddShape?: (shape: Shape) => boolean;
523
+ beforeRemoveShape?: (shape: Shape) => boolean;
524
+ beforeUpdateShape?: (shape: Shape, props: any, context: Rect) => Shape;
525
+ willRenderShapeControls?: (nodes: PinturaNode[], shapeId: string) => PinturaNode[];
526
+ willRenderPresetToolbar?: (
527
+ nodes: PinturaNode[],
528
+ addPreset: () => any,
529
+ env: any
530
+ ) => PinturaNode[];
531
+ }
532
+
533
+ interface PinturaEditorOptions
534
+ extends EditorOptions,
535
+ EditorImageOptions,
536
+ AnnotatePluginOptions,
537
+ CropPluginOptions,
538
+ DecoratePluginOptions,
539
+ FilterPluginOptions,
540
+ FinetunePluginOptions,
541
+ StickerPluginOptions {
542
+ locale: any;
543
+ imageReader: any[];
544
+ imageWriter?: any[];
545
+ imageOrienter?: any;
546
+ }
547
+
548
+ interface PinturaEditorDefaultOptions
549
+ extends EditorOptions,
550
+ EditorImageOptions,
551
+ AnnotatePluginOptions,
552
+ CropPluginOptions,
553
+ DecoratePluginOptions,
554
+ FilterPluginOptions,
555
+ FinetunePluginOptions,
556
+ StickerPluginOptions {
557
+ locale?: any;
558
+ imageReader?: any[];
559
+ imageWriter?: any[];
560
+ imageOrienter?: any;
561
+ }
562
+
563
+ interface PinturaEditorHeadlessOptions extends EditorImageOptions {
564
+ imageReader?: any[];
565
+ imageWriter?: any[];
566
+ }
567
+
568
+ interface PinturaEditor
569
+ extends EditorMethods,
570
+ PinturaEditorOptions,
571
+ EditorOptionsReadonly,
572
+ EditorImageOptionsReadonly {}
573
+
574
+ interface PinturaEditorModalOptions {
575
+ preventZoomViewport?: boolean;
576
+ readonly modal?: HTMLElement;
577
+ }
578
+
579
+ interface PinturaEditorModal extends PinturaEditor, PinturaEditorModalOptions {
580
+ show: () => void;
581
+ hide: () => void;
582
+ }
583
+
584
+ // Default image reader and writer
585
+ interface PinturaDefaultImageReaderResult {
586
+ readonly src: ImageSource;
587
+ readonly dest: File;
588
+ readonly size: Size;
589
+ }
590
+
591
+ interface PinturaDefaultImageWriterResult {
592
+ readonly src: ImageSource;
593
+ readonly dest: File;
594
+ readonly imageState: any;
595
+ readonly store: any;
596
+ }
597
+
598
+ interface PinturaTargetSize {
599
+ width?: number;
600
+ height?: number;
601
+ fit?: 'contain' | 'cover' | 'force';
602
+ upscale?: boolean;
603
+ }
604
+
605
+ interface PinturaDefaultImageReaderOptions {
606
+ orientImage?: boolean;
607
+ outputProps?: string[];
608
+ preprocessImageFile?: (file: File, options: any, onprogress: ProgressCallback) => Promise<File>;
609
+ }
610
+
611
+ type PinturaStoreField = [string, string] | [string, Blob | File, string];
612
+
613
+ interface PinturaDefaultImageWriterOptions {
614
+ canvasMemoryLimit?: number;
615
+ orientImage?: boolean;
616
+ copyImageHead?: boolean;
617
+ mimeType?: string;
618
+ quality?: number;
619
+ format?: 'file' | 'imageData' | 'canvas';
620
+ renameFile?: (file: File) => string;
621
+ targetSize?: PinturaTargetSize;
622
+ store?:
623
+ | string
624
+ | { url: string; dataset?: (imageState: any) => PinturaStoreField[] }
625
+ | ((imageState: any, options: any, onprogress: ProgressCallback) => Promise<any>);
626
+ outputProps?: string[];
627
+ preprocessImageSource?: (
628
+ imageSource: Blob | File,
629
+ options: any,
630
+ onprogress: ProgressCallback
631
+ ) => Promise<Blob | File>;
632
+ preprocessImageState?: (
633
+ imageState: any,
634
+ options: any,
635
+ onprogress: ProgressCallback
636
+ ) => Promise<any>;
637
+ postprocessImageData?: (
638
+ imageData: any,
639
+ options: any,
640
+ onprogress: ProgressCallback
641
+ ) => Promise<ImageData>;
642
+ }
643
+
644
+ interface PinturaImageOrienter {
645
+ read: (file: Blob | File, onprogress?: ProgressCallback) => Promise<number>;
646
+ apply: (imageData: ImageData, orientation: number) => ImageData;
647
+ }
648
+
649
+ // exports
650
+ export const setPlugins: (...plugins: any[]) => void;
651
+
652
+ export const getEditorDefaults: (
653
+ options?: PinturaEditorDefaultOptions
654
+ ) => PinturaEditorDefaultOptions;
655
+
656
+ export const appendEditor: (
657
+ target: HTMLElement | string,
658
+ options?: PinturaEditorOptions
659
+ ) => PinturaEditor;
660
+
661
+ export const appendDefaultEditor: (
662
+ target: HTMLElement | string,
663
+ options?: PinturaEditorDefaultOptions
664
+ ) => PinturaEditor;
665
+
666
+ export const appendEditors: (
667
+ target: HTMLElement | string,
668
+ options?: PinturaEditorOptions
669
+ ) => PinturaEditor[];
670
+
671
+ export const appendDefaultEditors: (
672
+ target: HTMLElement | string,
673
+ options?: PinturaEditorDefaultOptions
674
+ ) => PinturaEditor[];
675
+
676
+ export const overlayEditor: (
677
+ target: HTMLElement | string,
678
+ options?: PinturaEditorOptions
679
+ ) => PinturaEditor;
680
+
681
+ export const overlayDefaultEditor: (
682
+ target: HTMLElement | string,
683
+ options?: PinturaEditorDefaultOptions
684
+ ) => PinturaEditor;
685
+
686
+ export const openEditor: (options: PinturaEditorOptions) => PinturaEditorModal;
687
+
688
+ export const openDefaultEditor: (options: PinturaEditorDefaultOptions) => PinturaEditorModal;
689
+
690
+ export const defineCustomElements: (options?: PinturaEditorOptions) => Promise<PinturaEditor>;
691
+
692
+ export const defineDefaultCustomElements: (
693
+ options?: PinturaEditorDefaultOptions
694
+ ) => Promise<PinturaEditor>;
695
+
696
+ export const processImage: (
697
+ src: ImageSource,
698
+ options: PinturaEditorHeadlessOptions
699
+ ) => Promise<PinturaDefaultImageWriterResult>;
700
+
701
+ export const processDefaultImage: (
702
+ src: ImageSource,
703
+ options: PinturaEditorHeadlessOptions
704
+ ) => Promise<PinturaDefaultImageWriterResult>;
705
+
706
+ export const createDefaultImageReader: (options?: PinturaDefaultImageReaderOptions) => any[];
707
+
708
+ export const createDefaultImageWriter: (options?: PinturaDefaultImageWriterOptions) => any[];
709
+
710
+ export const createDefaultImageOrienter: () => PinturaImageOrienter;
711
+
712
+ // node tree helpers
713
+ export function createNode(
714
+ name: PinturaNodeType,
715
+ id: string,
716
+ props: PinturaNodeOptions | undefined,
717
+ children: PinturaNode[]
718
+ ): PinturaNode;
719
+
720
+ export function createNode(name: PinturaNodeType, id: string): PinturaNode;
721
+
722
+ export function createNode(name: PinturaNodeType, id: string, children: PinturaNode[]): PinturaNode;
723
+
724
+ export function createNode(
725
+ name: PinturaNodeType,
726
+ id: string,
727
+ props: PinturaNodeOptions
728
+ ): PinturaNode;
729
+
730
+ export function findNode(id: string, haystack: PinturaNode | PinturaNode[]): void;
731
+ export function appendNode(node: PinturaNode, haystack: PinturaNode | PinturaNode[]): void;
732
+ export function removeNode(id: string): void;
733
+ export function insertNodeBefore(
734
+ node: PinturaNode,
735
+ targetId: string,
736
+ haystack: PinturaNode | PinturaNode[]
737
+ ): void;
738
+ export function insertNodeAfter(
739
+ node: PinturaNode,
740
+ targetId: string,
741
+ haystack: PinturaNode | PinturaNode[]
742
+ ): void;
743
+
744
+ // utils
745
+ export const supportsWebGL: () => boolean;
746
+ export const degToRad: (deg: number) => number;
747
+ export const colorStringToColorArray: (Color: string) => Color;
748
+ export const legacyDataToImageState: (data: any) => ImageOptions;
749
+ export const dispatchEditorEvents: (
750
+ editor: PinturaEditor,
751
+ element: HTMLElement,
752
+ options?: { prefix?: string }
753
+ ) => any[];
754
+ export const blobToFile: (blob: Blob) => File;
755
+ export const isSupported: () => boolean;
756
+
757
+ // locale
758
+ export const locale_en_gb: LocaleCollection;
759
+
760
+ //
761
+ // markup editor
762
+ //
763
+ interface MarkupEditorToolStyleDefaults {
764
+ sharpie: [Shape, ShapeToolOptions];
765
+ line: [Shape, ShapeToolOptions];
766
+ arrow: [Shape, ShapeToolOptions];
767
+ rectangle: [Shape, ShapeToolOptions];
768
+ ellipse: [Shape, ShapeToolOptions];
769
+ text: [Shape, ShapeToolOptions];
770
+ [custom: string]: [Shape, ShapeToolOptions];
771
+ }
772
+
773
+ interface MarkupEditorShapeStyleControlDefaults {
774
+ backgroundColor: undefined | ShapeControl;
775
+ strokeColor: undefined | ShapeControl;
776
+ strokeWidth: undefined | ShapeControl;
777
+ lineStart: undefined | ShapeControl;
778
+ lineEnd: undefined | ShapeControl;
779
+ color: undefined | ShapeControl;
780
+ fontFamily: undefined | ShapeControl;
781
+ // fontStyle_fontWeight: undefined | ShapeControl;
782
+ fontSize: undefined | ShapeControl;
783
+ textAlign: undefined | ShapeControl;
784
+ // lineHeight: undefined | ShapeControl;
785
+ }
786
+
787
+ type ToolbarItem =
788
+ | string
789
+ | [string, { disabled?: boolean; icon: string }]
790
+ | [string, LocaleString, { disabled?: boolean; icon: string }];
791
+
792
+ /**
793
+ * Create tools available in the markup editor
794
+ */
795
+ export const createMarkupEditorToolbar: (tools?: ToolbarItem[]) => [string, LocaleString, any][];
796
+
797
+ /**
798
+ * Create default shape styles for each tool, optionally add custom shape styles
799
+ */
800
+
801
+ export const createMarkupEditorToolStyles: (toolStyles?: {
802
+ [key: string]: [Shape, ShapeToolOptions];
803
+ }) => MarkupEditorToolStyleDefaults;
804
+
805
+ /**
806
+ * Create a custom tool style based on one of the existing types
807
+ */
808
+ export const createMarkupEditorToolStyle: (
809
+ type: 'path' | 'rectangle' | 'ellipse' | 'line' | 'text',
810
+ shape?: Shape,
811
+ options?: ShapeToolOptions
812
+ ) => [Shape, ShapeToolOptions];
813
+
814
+ /**
815
+ * Create default shape style controls
816
+ */
817
+ export const createMarkupEditorShapeStyleControls: (
818
+ shapeControlOptions?: ShapeControlOptions
819
+ ) => MarkupEditorShapeStyleControlDefaults;
820
+
821
+ export const createDefaultColorOptions: () => ColorPalette;
822
+ export const createDefaultFontSizeOptions: () => number[];
823
+ export const createDefaultFontScaleOptions: () => SizeCategories;
824
+ export const createDefaultStrokeWidthOptions: () => number[];
825
+ export const createDefaultStrokeScaleOptions: () => SizeCategories;
826
+ export const createDefaultLineEndStyleOptions: () => LineEndStyle[];
827
+ export const createDefaultFontFamilyOptions: () => [string, string][];
828
+ export const createDefaultFontStyleOptions: () => [string, string][];
829
+ export const createDefaultTextAlignOptions: () => TextAlign[];
830
+
831
+ export const createMarkupEditorColorOptions: (colors: ColorPalette) => ShapeColorOption[];
832
+ export const createMarkupEditorFontSizeOptions: (sizes: number[]) => ShapeSizeOption[];
833
+ export const createMarkupEditorFontScaleOptions: (sizes: SizeCategories) => ShapeSizeOption[];
834
+ export const createMarkupEditorStrokeWidthOptions: (widths: number[]) => ShapeSizeOption[];
835
+ export const createMarkupEditorStrokeScaleOptions: (sizes: SizeCategories) => ShapeSizeOption[];
836
+ export const createMarkupEditorFontFamilyOptions: (
837
+ families: [string, string][]
838
+ ) => ShapeFontFamilyOption[];
839
+ export const createMarkupEditorFontStyleOptions: (
840
+ styles: [string, string][]
841
+ ) => ShapeFontStyleOption[];
842
+ export const createMarkupEditorLineEndStyleOptions: (
843
+ styles: LineEndStyle[]
844
+ ) => [LineEndStyle, string][];
845
+
846
+ export const createMarkupEditorBackgroundColorControl: (colors: ShapeColorOption[]) => ShapeControl;
847
+ export const createMarkupEditorStrokeColorControl: (
848
+ colors: ShapeColorOption[],
849
+ options?: { defaultStrokeWidth: number | string }
850
+ ) => ShapeControl;
851
+ export const createMarkupEditorStrokeWidthControl: (widths: ShapeSizeOption[]) => ShapeControl;
852
+ export const createMarkupEditorLineStartStyleControl: (
853
+ styles: [LineEndStyle, string][]
854
+ ) => ShapeControl;
855
+ export const createMarkupEditorLineEndStyleControl: (
856
+ styles: [LineEndStyle, string][]
857
+ ) => ShapeControl;
858
+ export const createMarkupEditorFontColorControl: (colors: ShapeColorOption[]) => ShapeControl;
859
+ export const createMarkupEditorFontFamilyControl: (
860
+ fontFamilies: [string, string][]
861
+ ) => ShapeControl;
862
+ export const createMarkupEditorFontStyleControl: (fontStyles: [string, string][]) => ShapeControl;
863
+ export const createMarkupEditorFontSizeControl: (sizes: ShapeSizeOption[]) => ShapeControl;
864
+ export const createMarkupEditorTextAlignControl: (textAlignments: TextAlign[]) => ShapeControl;
865
+ export const createMarkupEditorLineHeightControl: (lineHeights: [number, string][]) => ShapeControl;
866
+
867
+ export const markup_editor_defaults: {
868
+ markupEditorToolbar: [string, LocaleString, any][];
869
+ markupEditorToolStyles: MarkupEditorToolStyleDefaults;
870
+ markupEditorShapeStyleControls: MarkupEditorShapeStyleControlDefaults;
871
+ };
872
+
873
+ export const markup_editor_locale_en_gb: LocaleCollection;
874
+
875
+ //
876
+ // plugins
877
+ //
878
+ interface PinturaUtilPlugin {
879
+ util: [string, any];
880
+ }
881
+
882
+ export const plugin_annotate: PinturaUtilPlugin;
883
+ export const plugin_crop: PinturaUtilPlugin;
884
+ export const plugin_decorate: PinturaUtilPlugin;
885
+ export const plugin_filter: PinturaUtilPlugin;
886
+ export const plugin_finetune: PinturaUtilPlugin;
887
+ export const plugin_resize: PinturaUtilPlugin;
888
+ export const plugin_sticker: PinturaUtilPlugin;
889
+
890
+ export const plugin_annotate_locale_en_gb: LocaleCollection;
891
+ export const plugin_crop_locale_en_gb: LocaleCollection;
892
+ export const plugin_decorate_locale_en_gb: LocaleCollection;
893
+ export const plugin_filter_locale_en_gb: LocaleCollection;
894
+ export const plugin_finetune_locale_en_gb: LocaleCollection;
895
+ export const plugin_resize_locale_en_gb: LocaleCollection;
896
+ export const plugin_sticker_locale_en_gb: LocaleCollection;
897
+
898
+ export const plugin_filter_defaults: FilterPluginOptions;
899
+ export const plugin_finetune_defaults: FinetunePluginOptions;
900
+
901
+ export const effectBrightness: Effect;
902
+ export const effectContrast: Effect;
903
+ export const effectSaturation: Effect;
904
+ export const effectExposure: Effect;
905
+ export const effectGamma: Effect;
906
+ export const effectVignette: Effect;
907
+ export const effectClarity: Effect;
908
+ export const effectTemperature: Effect;
909
+
910
+ export const filterPastel: Filter;
911
+ export const filterChrome: Filter;
912
+ export const filterFade: Filter;
913
+ export const filterWarm: Filter;
914
+ export const filterCold: Filter;
915
+ export const filterInvert: Filter;
916
+ export const filterMonoDefault: Filter;
917
+ export const filterMonoNoir: Filter;
918
+ export const filterMonoWash: Filter;
919
+ export const filterMonoStark: Filter;
920
+ export const filterSepiaDefault: Filter;
921
+ export const filterSepiaBlues: Filter;
922
+ export const filterSepiaRust: Filter;
923
+ export const filterSepiaColor: Filter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "8.1.0-45",
3
+ "version": "8.1.0-46",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",