@wix/headless-restaurants-olo 0.0.20 → 0.0.21
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.
|
@@ -35,12 +35,12 @@ const ModifierRadio = ({ modifierNameClassName, modifierPriceClassName, }) => {
|
|
|
35
35
|
const { modifier } = useModifierContext();
|
|
36
36
|
return (_jsx(RadioGroupPrimitive.Item, { className: "RadioGroupItem", value: modifier._id || '', id: modifier._id || undefined, disabled: !modifier.inStock, children: _jsxs("div", { style: { display: 'flex', alignItems: 'center' }, children: [_jsx(RadioGroupPrimitive.Indicator, { className: "RadioGroupIndicator" }), _jsxs("label", { className: "Label", htmlFor: modifier._id || undefined, children: [_jsx(Modifier.Name, { className: modifierNameClassName }), _jsx(Modifier.Price, { className: modifierPriceClassName })] })] }) }));
|
|
37
37
|
};
|
|
38
|
-
export const Description = React.forwardRef(({ ruleTypeMap, className, asChild, children }, ref) => {
|
|
38
|
+
export const Description = React.forwardRef(({ ruleTypeMap, className, asChild, children, ...otherProps }, ref) => {
|
|
39
39
|
return (_jsx(DescriptionComponent, { ruleTypeMap: ruleTypeMap, children: ({ description }) => {
|
|
40
40
|
if (!description) {
|
|
41
41
|
return null;
|
|
42
42
|
}
|
|
43
|
-
return (_jsx(AsChildSlot, { ref: ref, asChild: asChild,
|
|
43
|
+
return (_jsx(AsChildSlot, { ref: ref, asChild: asChild, "data-testid": TestIds.modifierGroupDescription, className: className, customElement: children, customElementProps: { description }, content: description, ...otherProps, children: _jsx("p", { className: className, children: description }) }));
|
|
44
44
|
} }));
|
|
45
45
|
});
|
|
46
46
|
Description.displayName = 'ItemDetailsModifierGroup.Description';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ItemService, ItemServiceDefinition, loadItemServiceConfig, ItemServiceConfig, } from './item-details-service.js';
|
|
2
2
|
export { OLOSettingsService, OLOSettingsServiceDefinition, loadOLOSettingsServiceConfig, type OLOSettingsServiceConfig, type OLOSettingsServiceAPI, } from './olo-settings-service.js';
|
|
3
|
-
export { AvailabilityStatus, AvailabilityStatusMap, AddToCartButtonState, AddToCartButtonLabelMap, } from './common-types.js';
|
|
3
|
+
export { AvailabilityStatus, AvailabilityStatusMap, RuleType, RuleTypeMap, AddToCartButtonState, AddToCartButtonLabelMap, } from './common-types.js';
|
|
4
4
|
export { FulfillmentsService, FulfillmentsServiceDefinition, loadFulfillmentsServiceConfig, } from './fulfillments-service.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ItemService, ItemServiceDefinition, loadItemServiceConfig, } from './item-details-service.js';
|
|
2
2
|
export { OLOSettingsService, OLOSettingsServiceDefinition, loadOLOSettingsServiceConfig, } from './olo-settings-service.js';
|
|
3
|
-
export { AvailabilityStatus, AddToCartButtonState, } from './common-types.js';
|
|
3
|
+
export { AvailabilityStatus, RuleType, AddToCartButtonState, } from './common-types.js';
|
|
4
4
|
export { FulfillmentsService, FulfillmentsServiceDefinition, loadFulfillmentsServiceConfig, } from './fulfillments-service.js';
|
|
@@ -35,12 +35,12 @@ const ModifierRadio = ({ modifierNameClassName, modifierPriceClassName, }) => {
|
|
|
35
35
|
const { modifier } = useModifierContext();
|
|
36
36
|
return (_jsx(RadioGroupPrimitive.Item, { className: "RadioGroupItem", value: modifier._id || '', id: modifier._id || undefined, disabled: !modifier.inStock, children: _jsxs("div", { style: { display: 'flex', alignItems: 'center' }, children: [_jsx(RadioGroupPrimitive.Indicator, { className: "RadioGroupIndicator" }), _jsxs("label", { className: "Label", htmlFor: modifier._id || undefined, children: [_jsx(Modifier.Name, { className: modifierNameClassName }), _jsx(Modifier.Price, { className: modifierPriceClassName })] })] }) }));
|
|
37
37
|
};
|
|
38
|
-
export const Description = React.forwardRef(({ ruleTypeMap, className, asChild, children }, ref) => {
|
|
38
|
+
export const Description = React.forwardRef(({ ruleTypeMap, className, asChild, children, ...otherProps }, ref) => {
|
|
39
39
|
return (_jsx(DescriptionComponent, { ruleTypeMap: ruleTypeMap, children: ({ description }) => {
|
|
40
40
|
if (!description) {
|
|
41
41
|
return null;
|
|
42
42
|
}
|
|
43
|
-
return (_jsx(AsChildSlot, { ref: ref, asChild: asChild,
|
|
43
|
+
return (_jsx(AsChildSlot, { ref: ref, asChild: asChild, "data-testid": TestIds.modifierGroupDescription, className: className, customElement: children, customElementProps: { description }, content: description, ...otherProps, children: _jsx("p", { className: className, children: description }) }));
|
|
44
44
|
} }));
|
|
45
45
|
});
|
|
46
46
|
Description.displayName = 'ItemDetailsModifierGroup.Description';
|
package/dist/services/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ItemService, ItemServiceDefinition, loadItemServiceConfig, ItemServiceConfig, } from './item-details-service.js';
|
|
2
2
|
export { OLOSettingsService, OLOSettingsServiceDefinition, loadOLOSettingsServiceConfig, type OLOSettingsServiceConfig, type OLOSettingsServiceAPI, } from './olo-settings-service.js';
|
|
3
|
-
export { AvailabilityStatus, AvailabilityStatusMap, AddToCartButtonState, AddToCartButtonLabelMap, } from './common-types.js';
|
|
3
|
+
export { AvailabilityStatus, AvailabilityStatusMap, RuleType, RuleTypeMap, AddToCartButtonState, AddToCartButtonLabelMap, } from './common-types.js';
|
|
4
4
|
export { FulfillmentsService, FulfillmentsServiceDefinition, loadFulfillmentsServiceConfig, } from './fulfillments-service.js';
|
package/dist/services/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ItemService, ItemServiceDefinition, loadItemServiceConfig, } from './item-details-service.js';
|
|
2
2
|
export { OLOSettingsService, OLOSettingsServiceDefinition, loadOLOSettingsServiceConfig, } from './olo-settings-service.js';
|
|
3
|
-
export { AvailabilityStatus, AddToCartButtonState, } from './common-types.js';
|
|
3
|
+
export { AvailabilityStatus, RuleType, AddToCartButtonState, } from './common-types.js';
|
|
4
4
|
export { FulfillmentsService, FulfillmentsServiceDefinition, loadFulfillmentsServiceConfig, } from './fulfillments-service.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/headless-restaurants-olo",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"groupId": "com.wixpress.headless-components"
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
-
"falconPackageHash": "
|
|
79
|
+
"falconPackageHash": "f37611f34c998ddbafb2644d47fe9a63bdef10795d839b383e02dbf4"
|
|
80
80
|
}
|