@salla.sa/twilight-components 2.11.2 → 2.11.4

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.
Files changed (40) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/salla-button_37.cjs.entry.js +856 -346
  3. package/dist/cjs/salla-installment.cjs.entry.js +2 -2
  4. package/dist/cjs/twilight.cjs.js +1 -1
  5. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +48 -20
  6. package/dist/collection/components/salla-file-upload/salla-file-upload.js +278 -678
  7. package/dist/collection/components/salla-gifting/salla-gifting.js +24 -43
  8. package/dist/collection/components/salla-installment/salla-installment.js +2 -2
  9. package/dist/collection/components/salla-login-modal/salla-login-modal.js +21 -39
  10. package/dist/collection/components/salla-product-options/salla-product-options.js +27 -42
  11. package/dist/collection/components/salla-user-menu/salla-user-menu.js +1 -0
  12. package/dist/components/salla-datetime-picker2.js +8 -12
  13. package/dist/components/salla-file-upload2.js +783 -214
  14. package/dist/components/salla-gifting.js +22 -41
  15. package/dist/components/salla-installment.js +2 -2
  16. package/dist/components/salla-login-modal.js +21 -39
  17. package/dist/components/salla-product-options.js +26 -41
  18. package/dist/components/salla-user-menu.js +1 -0
  19. package/dist/esm/loader.js +1 -1
  20. package/dist/esm/salla-button_37.entry.js +856 -346
  21. package/dist/esm/salla-installment.entry.js +2 -2
  22. package/dist/esm/twilight.js +1 -1
  23. package/dist/esm-es5/loader.js +1 -1
  24. package/dist/esm-es5/salla-button_37.entry.js +11 -5
  25. package/dist/esm-es5/salla-installment.entry.js +1 -1
  26. package/dist/esm-es5/twilight.js +1 -1
  27. package/dist/twilight/p-0a16e246.system.js +1 -1
  28. package/dist/twilight/p-2e7701fe.entry.js +36 -0
  29. package/dist/twilight/{p-5ca2cbe3.system.entry.js → p-3db06115.system.entry.js} +11 -5
  30. package/dist/twilight/{p-82931e46.entry.js → p-7e9e675f.entry.js} +1 -1
  31. package/dist/twilight/{p-21aa165d.system.entry.js → p-a6821ab8.system.entry.js} +1 -1
  32. package/dist/twilight/twilight.esm.js +1 -1
  33. package/dist/types/components/salla-datetime-picker/salla-datetime-picker.d.ts +9 -3
  34. package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +52 -104
  35. package/dist/types/components/salla-gifting/salla-gifting.d.ts +13 -13
  36. package/dist/types/components/salla-product-options/interfaces.d.ts +1 -0
  37. package/dist/types/components/salla-product-options/salla-product-options.d.ts +3 -4
  38. package/dist/types/components.d.ts +81 -217
  39. package/package.json +5 -4
  40. package/dist/twilight/p-cfe3a7ef.entry.js +0 -30
@@ -7,7 +7,7 @@
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { Color, Options } from "./components/salla-color-picker/interfaces";
9
9
  import { DateLimit, DateOption, LocaleKey } from "./components/salla-datetime-picker/interfaces";
10
- import { FetchServerConfigFunction, FilePondFile, FilePondInitialFile, LoadServerConfigFunction, ProcessServerConfigFunction, RemoveServerConfigFunction, RestoreServerConfigFunction, RevertServerConfigFunction, ServerUrl } from "./components/salla-file-upload/interfaces";
10
+ import { FilePondFile } from "./components/salla-file-upload/interfaces";
11
11
  import { Item } from "./components/salla-loyalty/loyalty-schema";
12
12
  import { Phone } from "./components/salla-tel-input/interfaces";
13
13
  export namespace Components {
@@ -200,7 +200,7 @@ export namespace Components {
200
200
  */
201
201
  "appendTo": HTMLElement;
202
202
  /**
203
- * Defines how the date will be formatted in the aria-label for calendar days, using the same tokens as dateFormat. If you change this, you should choose a value that will make sense if a screen reader reads it out loud.
203
+ * Defines how the date will be formatted in the aria-label for calendar days, using the same tokens as dateFormat. If you change this, you should choose a value that will make sense if a screen reader reads it out loud.
204
204
  */
205
205
  "ariaDateFormat": string;
206
206
  /**
@@ -208,7 +208,7 @@ export namespace Components {
208
208
  */
209
209
  "autoFillDefaultTime": boolean;
210
210
  /**
211
- * Whether clicking on the input should open the picker. Set it to false if you only want to open the calendar programmatically with [open()]
211
+ * Whether clicking on the input should open the picker. Set it to false if you only want to open the calendar programmatically with [open()]
212
212
  */
213
213
  "clickOpens": boolean;
214
214
  /**
@@ -220,7 +220,7 @@ export namespace Components {
220
220
  */
221
221
  "conjunction"?: string;
222
222
  /**
223
- * A string of characters which are used to define how the date will be displayed in the input box. The supported characters are defined in the table below.
223
+ * A string of characters which are used to define how the date will be displayed in the input box. The supported characters are defined in the table below.
224
224
  */
225
225
  "dateFormat": string;
226
226
  /**
@@ -228,7 +228,7 @@ export namespace Components {
228
228
  */
229
229
  "dateParser": (date: string, format: string) => Date;
230
230
  /**
231
- * Sets the initial selected date(s). If you're using mode: "multiple" or a range calendar supply an Array of Date objects or an Array of date strings which follow your dateFormat. Otherwise, you can supply a single Date object or a date string.
231
+ * Sets the initial selected date(s). If you're using mode: "multiple" or a range calendar supply an Array of Date objects or an Array of date strings which follow your dateFormat. Otherwise, you can supply a single Date object or a date string.
232
232
  */
233
233
  "defaultDate": DateOption | DateOption[];
234
234
  /**
@@ -244,11 +244,11 @@ export namespace Components {
244
244
  */
245
245
  "defaultSeconds": number;
246
246
  /**
247
- * Disables certain dates, preventing them from being selected. See https://chmln.github.io/flatpickr/examples/#disabling-specific-dates
247
+ * Disables certain dates, preventing them from being selected. See https://chmln.github.io/flatpickr/examples/#disabling-specific-dates
248
248
  */
249
249
  "disable": DateLimit<DateOption>[];
250
250
  /**
251
- * Set this to true to always use the non-native picker on mobile devices. By default, Flatpickr utilizes native datetime widgets unless certain options (e.g. disable) are used.
251
+ * Set this to true to always use the non-native picker on mobile devices. By default, Flatpickr utilizes native datetime widgets unless certain options (e.g. disable) are used.
252
252
  */
253
253
  "disableMobile": boolean;
254
254
  /**
@@ -307,6 +307,10 @@ export namespace Components {
307
307
  * How the month should be displayed in the header of the calendar. If showMonths has a value greater than 1, the month is always shown as static.
308
308
  */
309
309
  "monthSelectorType": "dropdown" | "static";
310
+ /**
311
+ * the name for the input
312
+ */
313
+ "name": string;
310
314
  /**
311
315
  * HTML for the arrow icon, used to switch months.
312
316
  */
@@ -331,6 +335,10 @@ export namespace Components {
331
335
  * HTML for the left arrow icon, used to switch months.
332
336
  */
333
337
  "prevArrow": string;
338
+ /**
339
+ * Whether this input i required or not
340
+ */
341
+ "required": boolean;
334
342
  /**
335
343
  * Whether to display the current month name in shorthand mode, e.g. "Sep" instead "September"
336
344
  */
@@ -397,10 +405,6 @@ export namespace Components {
397
405
  * Enable or disable the revert processing button
398
406
  */
399
407
  "allowRevert": boolean;
400
- /**
401
- * Append intial file
402
- */
403
- "appendFile": (file: FilePondInitialFile) => Promise<FilePondInitialFile[]>;
404
408
  /**
405
409
  * Set to true to enable custom validity messages. FilePond will throw an error when a parent form is submitted and it contains invalid files.
406
410
  */
@@ -424,7 +428,7 @@ export namespace Components {
424
428
  /**
425
429
  * Show credits at the bottom of the upload element. Structure is like [{label,url}]
426
430
  */
427
- "credits"?: false;
431
+ "credits": false;
428
432
  /**
429
433
  * Sets the disabled attribute to the output field
430
434
  */
@@ -441,10 +445,18 @@ export namespace Components {
441
445
  * When enabled, files are validated before they are dropped. A file is not added when it's invalid.
442
446
  */
443
447
  "dropValidation": boolean;
448
+ /**
449
+ * If current file has id, pass it here, to be passed back in the `removed` event
450
+ */
451
+ "fileId"?: number;
444
452
  /**
445
453
  * Set to true to require the file to be successfully reverted before continuing.
446
454
  */
447
455
  "forceRevert": boolean;
456
+ /**
457
+ * json formData to be injected in the submit request
458
+ */
459
+ "formData": string;
448
460
  /**
449
461
  * The icon used for process actions
450
462
  */
@@ -477,99 +489,15 @@ export namespace Components {
477
489
  * Set to 'after' to add files to end of list (when dropped at the top of the list or added using browse or paste), set to 'before' to add files at start of list. Set to a compare function to automatically sort items when added
478
490
  */
479
491
  "itemInsertLocation": 'before' | 'after' | ((a: FilePondFile, b: FilePondFile) => number);
480
- /**
481
- * Label used for abort load button
482
- */
483
- "labelButtonAbortItemLoad": string;
484
- /**
485
- * Label used for abort upload button
486
- */
487
- "labelButtonAbortItemProcessing": string;
488
- /**
489
- * Label used for upload button
490
- */
491
- "labelButtonProcessItem": string;
492
- /**
493
- * Label used for remove button
494
- */
495
- "labelButtonRemoveItem": string;
496
- /**
497
- * Label used for retry load button
498
- */
499
- "labelButtonRetryItemLoad": string;
500
- /**
501
- * Label used for retry upload button
502
- */
503
- "labelButtonRetryItemProcessing": string;
504
- /**
505
- * Label used for undo upload button
506
- */
507
- "labelButtonUndoItemProcessing": string;
508
492
  /**
509
493
  * The decimal separator used to render numbers. By default this is determined automatically.
510
494
  */
511
495
  "labelDecimalSeparator": string;
512
- /**
513
- * Label used when file load failed
514
- */
515
- "labelFileLoadError": string;
516
- /**
517
- * Label used while loading a file
518
- */
519
- "labelFileLoading": string;
520
- /**
521
- * Label used when uploading a file
522
- */
523
- "labelFileProcessing": string;
524
- /**
525
- * Label used when upload was cancelled
526
- */
527
- "labelFileProcessingAborted": string;
528
- /**
529
- * Label used when file upload has completed
530
- */
531
- "labelFileProcessingComplete": string;
532
- /**
533
- * Label used when something went wrong during file upload
534
- */
535
- "labelFileProcessingError": string;
536
- /**
537
- * Label used when something went wrong during reverting the file upload
538
- */
539
- "labelFileProcessingRevertError": string;
540
- /**
541
- * Label used to indicate something went wrong when removing the file
542
- */
543
- "labelFileRemoveError": string;
544
- /**
545
- * Label used when no file size information was received
546
- */
547
- "labelFileSizeNotAvailable": string;
548
- /**
549
- * Label used while waiting for file size information.
550
- */
551
- "labelFileWaitingForSize": string;
552
496
  /**
553
497
  * Default label shown to indicate this is a drop area. FilePond will automatically bind browse file events to the element with CSS class .filepond--label-action
554
498
  * @default `${salla.lang.get('common.uploader.drag_and_drop')}<span class="filepond--label-action"> ${salla.lang.get('common.uploader.browse')} </span>`
555
499
  */
556
500
  "labelIdle": string;
557
- /**
558
- * Label shown when the field contains invalid files and is validated by the parent form.
559
- */
560
- "labelInvalidField": string;
561
- /**
562
- * Label used to indicate to the user that an action can be cancelled.
563
- */
564
- "labelTapToCancel": string;
565
- /**
566
- * Label used to indicate to the user that an action can be retried.
567
- */
568
- "labelTapToRetry": string;
569
- /**
570
- * Label used to indicate to the user that an action can be undone.
571
- */
572
- "labelTapToUndo": string;
573
501
  /**
574
502
  * The thousdands separator used to render numbers. By default this is determined automatically.
575
503
  */
@@ -583,31 +511,33 @@ export namespace Components {
583
511
  */
584
512
  "maxParallelUploads": number;
585
513
  /**
586
- * Sets the required attribute to the output field
514
+ * The submit request method.
587
515
  */
588
- "required": boolean;
516
+ "method": string;
517
+ /**
518
+ * File input name for the native formData
519
+ */
520
+ "name": string;
521
+ /**
522
+ * File input name in the request payload
523
+ */
524
+ "payloadName": string;
589
525
  /**
590
- * A server configuration object describing how FilePond should interact with the server.
526
+ * Sets the required attribute to the output field
591
527
  */
592
- "serverConfig": string | {
593
- url?: string
594
- timeout?: number
595
- headers?: { [key: string]: string | boolean | number };
596
- process?: string | ServerUrl | ProcessServerConfigFunction | null;
597
- revert?: string | ServerUrl | RevertServerConfigFunction | null;
598
- restore?: string | ServerUrl | RestoreServerConfigFunction | null;
599
- load?: string | ServerUrl | LoadServerConfigFunction | null;
600
- fetch?: string | ServerUrl | FetchServerConfigFunction | null;
601
- remove?: RemoveServerConfigFunction | null;
602
- };
528
+ "required": boolean;
603
529
  /**
604
530
  * Tells FilePond to store files in hidden file input elements so they can be posted along with normal form post. This only works if the browser supports the DataTransfer constructor (https://caniuse.com/mdn-api_datatransfer_datatransfer), this is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1 and higher.
605
531
  */
606
532
  "storeAsFile": boolean;
533
+ /**
534
+ * The url to submit the image into.
535
+ */
536
+ "url": string;
607
537
  /**
608
538
  * The uploaded image link or URL
609
539
  */
610
- "uploadedImage": string;
540
+ "value": string;
611
541
  }
612
542
  interface SallaGifting {
613
543
  /**
@@ -1969,7 +1899,7 @@ declare namespace LocalJSX {
1969
1899
  */
1970
1900
  "appendTo"?: HTMLElement;
1971
1901
  /**
1972
- * Defines how the date will be formatted in the aria-label for calendar days, using the same tokens as dateFormat. If you change this, you should choose a value that will make sense if a screen reader reads it out loud.
1902
+ * Defines how the date will be formatted in the aria-label for calendar days, using the same tokens as dateFormat. If you change this, you should choose a value that will make sense if a screen reader reads it out loud.
1973
1903
  */
1974
1904
  "ariaDateFormat"?: string;
1975
1905
  /**
@@ -1977,7 +1907,7 @@ declare namespace LocalJSX {
1977
1907
  */
1978
1908
  "autoFillDefaultTime"?: boolean;
1979
1909
  /**
1980
- * Whether clicking on the input should open the picker. Set it to false if you only want to open the calendar programmatically with [open()]
1910
+ * Whether clicking on the input should open the picker. Set it to false if you only want to open the calendar programmatically with [open()]
1981
1911
  */
1982
1912
  "clickOpens"?: boolean;
1983
1913
  /**
@@ -1989,7 +1919,7 @@ declare namespace LocalJSX {
1989
1919
  */
1990
1920
  "conjunction"?: string;
1991
1921
  /**
1992
- * A string of characters which are used to define how the date will be displayed in the input box. The supported characters are defined in the table below.
1922
+ * A string of characters which are used to define how the date will be displayed in the input box. The supported characters are defined in the table below.
1993
1923
  */
1994
1924
  "dateFormat"?: string;
1995
1925
  /**
@@ -1997,7 +1927,7 @@ declare namespace LocalJSX {
1997
1927
  */
1998
1928
  "dateParser"?: (date: string, format: string) => Date;
1999
1929
  /**
2000
- * Sets the initial selected date(s). If you're using mode: "multiple" or a range calendar supply an Array of Date objects or an Array of date strings which follow your dateFormat. Otherwise, you can supply a single Date object or a date string.
1930
+ * Sets the initial selected date(s). If you're using mode: "multiple" or a range calendar supply an Array of Date objects or an Array of date strings which follow your dateFormat. Otherwise, you can supply a single Date object or a date string.
2001
1931
  */
2002
1932
  "defaultDate"?: DateOption | DateOption[];
2003
1933
  /**
@@ -2013,11 +1943,11 @@ declare namespace LocalJSX {
2013
1943
  */
2014
1944
  "defaultSeconds"?: number;
2015
1945
  /**
2016
- * Disables certain dates, preventing them from being selected. See https://chmln.github.io/flatpickr/examples/#disabling-specific-dates
1946
+ * Disables certain dates, preventing them from being selected. See https://chmln.github.io/flatpickr/examples/#disabling-specific-dates
2017
1947
  */
2018
1948
  "disable"?: DateLimit<DateOption>[];
2019
1949
  /**
2020
- * Set this to true to always use the non-native picker on mobile devices. By default, Flatpickr utilizes native datetime widgets unless certain options (e.g. disable) are used.
1950
+ * Set this to true to always use the non-native picker on mobile devices. By default, Flatpickr utilizes native datetime widgets unless certain options (e.g. disable) are used.
2021
1951
  */
2022
1952
  "disableMobile"?: boolean;
2023
1953
  /**
@@ -2076,6 +2006,10 @@ declare namespace LocalJSX {
2076
2006
  * How the month should be displayed in the header of the calendar. If showMonths has a value greater than 1, the month is always shown as static.
2077
2007
  */
2078
2008
  "monthSelectorType"?: "dropdown" | "static";
2009
+ /**
2010
+ * the name for the input
2011
+ */
2012
+ "name"?: string;
2079
2013
  /**
2080
2014
  * HTML for the arrow icon, used to switch months.
2081
2015
  */
@@ -2104,6 +2038,10 @@ declare namespace LocalJSX {
2104
2038
  * HTML for the left arrow icon, used to switch months.
2105
2039
  */
2106
2040
  "prevArrow"?: string;
2041
+ /**
2042
+ * Whether this input i required or not
2043
+ */
2044
+ "required"?: boolean;
2107
2045
  /**
2108
2046
  * Whether to display the current month name in shorthand mode, e.g. "Sep" instead "September"
2109
2047
  */
@@ -2210,10 +2148,18 @@ declare namespace LocalJSX {
2210
2148
  * When enabled, files are validated before they are dropped. A file is not added when it's invalid.
2211
2149
  */
2212
2150
  "dropValidation"?: boolean;
2151
+ /**
2152
+ * If current file has id, pass it here, to be passed back in the `removed` event
2153
+ */
2154
+ "fileId"?: number;
2213
2155
  /**
2214
2156
  * Set to true to require the file to be successfully reverted before continuing.
2215
2157
  */
2216
2158
  "forceRevert"?: boolean;
2159
+ /**
2160
+ * json formData to be injected in the submit request
2161
+ */
2162
+ "formData"?: string;
2217
2163
  /**
2218
2164
  * The icon used for process actions
2219
2165
  */
@@ -2246,99 +2192,15 @@ declare namespace LocalJSX {
2246
2192
  * Set to 'after' to add files to end of list (when dropped at the top of the list or added using browse or paste), set to 'before' to add files at start of list. Set to a compare function to automatically sort items when added
2247
2193
  */
2248
2194
  "itemInsertLocation"?: 'before' | 'after' | ((a: FilePondFile, b: FilePondFile) => number);
2249
- /**
2250
- * Label used for abort load button
2251
- */
2252
- "labelButtonAbortItemLoad"?: string;
2253
- /**
2254
- * Label used for abort upload button
2255
- */
2256
- "labelButtonAbortItemProcessing"?: string;
2257
- /**
2258
- * Label used for upload button
2259
- */
2260
- "labelButtonProcessItem"?: string;
2261
- /**
2262
- * Label used for remove button
2263
- */
2264
- "labelButtonRemoveItem"?: string;
2265
- /**
2266
- * Label used for retry load button
2267
- */
2268
- "labelButtonRetryItemLoad"?: string;
2269
- /**
2270
- * Label used for retry upload button
2271
- */
2272
- "labelButtonRetryItemProcessing"?: string;
2273
- /**
2274
- * Label used for undo upload button
2275
- */
2276
- "labelButtonUndoItemProcessing"?: string;
2277
2195
  /**
2278
2196
  * The decimal separator used to render numbers. By default this is determined automatically.
2279
2197
  */
2280
2198
  "labelDecimalSeparator"?: string;
2281
- /**
2282
- * Label used when file load failed
2283
- */
2284
- "labelFileLoadError"?: string;
2285
- /**
2286
- * Label used while loading a file
2287
- */
2288
- "labelFileLoading"?: string;
2289
- /**
2290
- * Label used when uploading a file
2291
- */
2292
- "labelFileProcessing"?: string;
2293
- /**
2294
- * Label used when upload was cancelled
2295
- */
2296
- "labelFileProcessingAborted"?: string;
2297
- /**
2298
- * Label used when file upload has completed
2299
- */
2300
- "labelFileProcessingComplete"?: string;
2301
- /**
2302
- * Label used when something went wrong during file upload
2303
- */
2304
- "labelFileProcessingError"?: string;
2305
- /**
2306
- * Label used when something went wrong during reverting the file upload
2307
- */
2308
- "labelFileProcessingRevertError"?: string;
2309
- /**
2310
- * Label used to indicate something went wrong when removing the file
2311
- */
2312
- "labelFileRemoveError"?: string;
2313
- /**
2314
- * Label used when no file size information was received
2315
- */
2316
- "labelFileSizeNotAvailable"?: string;
2317
- /**
2318
- * Label used while waiting for file size information.
2319
- */
2320
- "labelFileWaitingForSize"?: string;
2321
2199
  /**
2322
2200
  * Default label shown to indicate this is a drop area. FilePond will automatically bind browse file events to the element with CSS class .filepond--label-action
2323
2201
  * @default `${salla.lang.get('common.uploader.drag_and_drop')}<span class="filepond--label-action"> ${salla.lang.get('common.uploader.browse')} </span>`
2324
2202
  */
2325
2203
  "labelIdle"?: string;
2326
- /**
2327
- * Label shown when the field contains invalid files and is validated by the parent form.
2328
- */
2329
- "labelInvalidField"?: string;
2330
- /**
2331
- * Label used to indicate to the user that an action can be cancelled.
2332
- */
2333
- "labelTapToCancel"?: string;
2334
- /**
2335
- * Label used to indicate to the user that an action can be retried.
2336
- */
2337
- "labelTapToRetry"?: string;
2338
- /**
2339
- * Label used to indicate to the user that an action can be undone.
2340
- */
2341
- "labelTapToUndo"?: string;
2342
2204
  /**
2343
2205
  * The thousdands separator used to render numbers. By default this is determined automatically.
2344
2206
  */
@@ -2351,40 +2213,42 @@ declare namespace LocalJSX {
2351
2213
  * The maxmimum number of files that can be uploaded in parallel
2352
2214
  */
2353
2215
  "maxParallelUploads"?: number;
2216
+ /**
2217
+ * The submit request method.
2218
+ */
2219
+ "method"?: string;
2220
+ /**
2221
+ * File input name for the native formData
2222
+ */
2223
+ "name"?: string;
2354
2224
  /**
2355
2225
  * Event emitted when the file is about to be removed. Returns boolean value.
2356
2226
  */
2357
- "onRemove"?: (event: SallaFileUploadCustomEvent<any>) => void;
2227
+ "onRemoved"?: (event: SallaFileUploadCustomEvent<any>) => void;
2358
2228
  /**
2359
2229
  * Event emitted when the file has been uploaded and link to the file has been recieved from the server. Returns string value.
2360
2230
  */
2361
2231
  "onUploaded"?: (event: SallaFileUploadCustomEvent<string>) => void;
2362
2232
  /**
2363
- * Sets the required attribute to the output field
2233
+ * File input name in the request payload
2364
2234
  */
2365
- "required"?: boolean;
2235
+ "payloadName"?: string;
2366
2236
  /**
2367
- * A server configuration object describing how FilePond should interact with the server.
2237
+ * Sets the required attribute to the output field
2368
2238
  */
2369
- "serverConfig"?: string | {
2370
- url?: string
2371
- timeout?: number
2372
- headers?: { [key: string]: string | boolean | number };
2373
- process?: string | ServerUrl | ProcessServerConfigFunction | null;
2374
- revert?: string | ServerUrl | RevertServerConfigFunction | null;
2375
- restore?: string | ServerUrl | RestoreServerConfigFunction | null;
2376
- load?: string | ServerUrl | LoadServerConfigFunction | null;
2377
- fetch?: string | ServerUrl | FetchServerConfigFunction | null;
2378
- remove?: RemoveServerConfigFunction | null;
2379
- };
2239
+ "required"?: boolean;
2380
2240
  /**
2381
2241
  * Tells FilePond to store files in hidden file input elements so they can be posted along with normal form post. This only works if the browser supports the DataTransfer constructor (https://caniuse.com/mdn-api_datatransfer_datatransfer), this is the case on Firefox, Chrome, Chromium powered browsers and Safari version 14.1 and higher.
2382
2242
  */
2383
2243
  "storeAsFile"?: boolean;
2244
+ /**
2245
+ * The url to submit the image into.
2246
+ */
2247
+ "url"?: string;
2384
2248
  /**
2385
2249
  * The uploaded image link or URL
2386
2250
  */
2387
- "uploadedImage"?: string;
2251
+ "value"?: string;
2388
2252
  }
2389
2253
  interface SallaGifting {
2390
2254
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/twilight-components",
3
- "version": "2.11.2",
3
+ "version": "2.11.4",
4
4
  "license": "GPL-3.0",
5
5
  "author": "Salla Team <support@salla.dev> (https://salla.dev)",
6
6
  "bugs": {
@@ -76,10 +76,11 @@
76
76
  "typescript": "^4.4.3"
77
77
  },
78
78
  "dependencies": {
79
- "@salla.sa/twilight": "^2.11.2",
80
- "@salla.sa/twilight-tailwind-theme": "^2.11.2",
79
+ "@salla.sa/twilight": "^2.11.4",
80
+ "@salla.sa/twilight-tailwind-theme": "^2.11.4",
81
81
  "animejs": "^3.2.1",
82
82
  "filepond": "^4.30.4",
83
+ "filepond-plugin-file-poster": "^2.5.1",
83
84
  "filepond-plugin-file-validate-size": "^2.2.7",
84
85
  "filepond-plugin-file-validate-type": "^1.2.8",
85
86
  "filepond-plugin-image-edit": "^1.6.3",
@@ -92,5 +93,5 @@
92
93
  "vanilla-lazyload": "^17.8.3",
93
94
  "vanilla-picker": "^2.12.1"
94
95
  },
95
- "gitHead": "d3068ae117446d50b43dae4d9c721bce74b89935"
96
+ "gitHead": "4f80255b82e000a0f4322ba0f013ebdc77ef7f20"
96
97
  }