forstok-ui-lib 5.6.6 → 5.6.9

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/index.d.ts CHANGED
@@ -366,6 +366,13 @@ type TMasterProps = {
366
366
  evPickAll?: TMouseEvent;
367
367
  };
368
368
 
369
+ type TskuAddons = {
370
+ id?: number;
371
+ productId?: number;
372
+ masterProductId?: string;
373
+ imageUrl?: string;
374
+ sku?: string;
375
+ };
369
376
  type TOption = {
370
377
  readonly value: any;
371
378
  readonly label: string;
@@ -380,7 +387,7 @@ type TOption = {
380
387
  readonly label: string;
381
388
  localId?: string;
382
389
  }[];
383
- };
390
+ } & TskuAddons;
384
391
  type TLoadOption = (search: string, callback: () => void, { endCursor }: {
385
392
  endCursor: string;
386
393
  }) => Promise<{
@@ -401,8 +408,8 @@ type TActionMeta = ActionMeta<TOption>;
401
408
  type TSelectAsyncPaginate = {
402
409
  customOption?: (arg0: OptionProps) => void;
403
410
  MenuList?: any;
404
- evChange?: (newValue: OnChangeValue<TOption, false>, actionMeta?: ActionMeta<TOption>) => void;
405
- defaultValue?: OnChangeValue<TOption, boolean>;
411
+ evChange?: (newValue: TOnChangeValue, actionMeta?: ActionMeta<TOption>) => void;
412
+ defaultValue?: TOnChangeValue;
406
413
  loadOptionsOnMenuOpen?: boolean;
407
414
  noOptionsMessage?: ((obj: {
408
415
  inputValue: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "5.6.6",
3
+ "version": "5.6.9",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -4,6 +4,14 @@ import { CSSObject } from '@emotion/serialize'
4
4
  import type { TChannel } from '../../typeds/shares.typed';
5
5
  import type { TState } from '../../typeds';
6
6
 
7
+ type TskuAddons = {
8
+ id?: number
9
+ productId?: number
10
+ masterProductId?: string
11
+ imageUrl?: string
12
+ sku?: string
13
+ }
14
+
7
15
  export type TOption = {
8
16
  readonly value: any
9
17
  readonly label: string
@@ -18,7 +26,7 @@ export type TOption = {
18
26
  readonly label: string
19
27
  localId?: string
20
28
  }[]
21
- }
29
+ } & TskuAddons
22
30
 
23
31
  export type TLoadOption = (search: string, callback: () => void, { endCursor }: {
24
32
  endCursor: string;
@@ -45,8 +53,8 @@ export type TActionMeta = ActionMeta<TOption>
45
53
  export type TSelectAsyncPaginate = {
46
54
  customOption?: (arg0: OptionProps) => void
47
55
  MenuList?: any
48
- evChange?: (newValue: OnChangeValue<TOption, false>, actionMeta?: ActionMeta<TOption>) => void
49
- defaultValue?: OnChangeValue<TOption, boolean>
56
+ evChange?: (newValue: TOnChangeValue, actionMeta?: ActionMeta<TOption>) => void
57
+ defaultValue?: TOnChangeValue
50
58
  // loadOptions: TLoadOption | LoadOptions<unknown, GroupBase<unknown>, unknown>
51
59
  loadOptionsOnMenuOpen?: boolean
52
60
  noOptionsMessage?: ((obj: {