delivapp-ordering 0.0.152 → 0.0.154
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.
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ISuboption } from './ISuboption';
|
|
2
2
|
import { HALF_OPTION } from '../../helpers/productConstructor';
|
|
3
|
+
export interface IConstructorOrder {
|
|
4
|
+
extraOrder: number;
|
|
5
|
+
extraIndex: number;
|
|
6
|
+
optionOrder: number;
|
|
7
|
+
optionIndex: number;
|
|
8
|
+
}
|
|
3
9
|
export interface IOption {
|
|
4
10
|
name?: string;
|
|
5
11
|
min: number;
|
|
@@ -15,5 +21,5 @@ export interface IOption {
|
|
|
15
21
|
pizzaOption: boolean;
|
|
16
22
|
suboptions: ISuboption[];
|
|
17
23
|
description?: string;
|
|
18
|
-
constructorOrder?:
|
|
24
|
+
constructorOrder?: IConstructorOrder;
|
|
19
25
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -460,6 +460,12 @@ interface SuboptionRadioSelectorProps {
|
|
|
460
460
|
}
|
|
461
461
|
declare const SuboptionRadioSelector: ({ max, freeLabel, ingredients, onSelect, currency, freeBudget }: SuboptionRadioSelectorProps) => React__default.JSX.Element;
|
|
462
462
|
|
|
463
|
+
interface IConstructorOrder {
|
|
464
|
+
extraOrder: number;
|
|
465
|
+
extraIndex: number;
|
|
466
|
+
optionOrder: number;
|
|
467
|
+
optionIndex: number;
|
|
468
|
+
}
|
|
463
469
|
interface IOption {
|
|
464
470
|
name?: string;
|
|
465
471
|
min: number;
|
|
@@ -475,7 +481,7 @@ interface IOption {
|
|
|
475
481
|
pizzaOption: boolean;
|
|
476
482
|
suboptions: ISuboption[];
|
|
477
483
|
description?: string;
|
|
478
|
-
constructorOrder?:
|
|
484
|
+
constructorOrder?: IConstructorOrder;
|
|
479
485
|
}
|
|
480
486
|
|
|
481
487
|
interface ProductConstructorProps {
|