@kosdev-code/kos-dispense-sdk 0.1.0-dev.5053
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/dispense-registration-manager-BZ5L3AWX.cjs +2 -0
- package/dispense-registration-manager-BZ5L3AWX.cjs.map +1 -0
- package/dispense-registration-manager-CB_nSTZw.js +1912 -0
- package/dispense-registration-manager-CB_nSTZw.js.map +1 -0
- package/extension-utils-CkYqorcG.js +381 -0
- package/extension-utils-CkYqorcG.js.map +1 -0
- package/extension-utils-DUel3wIz.cjs +2 -0
- package/extension-utils-DUel3wIz.cjs.map +1 -0
- package/extensions/control-pour-extension.d.ts +70 -0
- package/extensions/control-pour-extension.d.ts.map +1 -0
- package/extensions/index.d.ts +2 -0
- package/extensions/index.d.ts.map +1 -0
- package/index.cjs +2 -0
- package/index.cjs.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +133 -0
- package/index.js.map +1 -0
- package/models/constants/constants.d.ts +230 -0
- package/models/constants/constants.d.ts.map +1 -0
- package/models/constants/index.d.ts +2 -0
- package/models/constants/index.d.ts.map +1 -0
- package/models/index.d.ts +6 -0
- package/models/index.d.ts.map +1 -0
- package/models/models/assembly/assembly-model.d.ts +41 -0
- package/models/models/assembly/assembly-model.d.ts.map +1 -0
- package/models/models/assembly/assembly-registration.d.ts +81 -0
- package/models/models/assembly/assembly-registration.d.ts.map +1 -0
- package/models/models/assembly/board-utils.d.ts +6 -0
- package/models/models/assembly/board-utils.d.ts.map +1 -0
- package/models/models/assembly/holder-utils.d.ts +5 -0
- package/models/models/assembly/holder-utils.d.ts.map +1 -0
- package/models/models/assembly/index.d.ts +5 -0
- package/models/models/assembly/index.d.ts.map +1 -0
- package/models/models/assembly/nozzle-utils.d.ts +6 -0
- package/models/models/assembly/nozzle-utils.d.ts.map +1 -0
- package/models/models/assembly/pump-utils.d.ts +7 -0
- package/models/models/assembly/pump-utils.d.ts.map +1 -0
- package/models/models/assembly/services/assembly-services.d.ts +8 -0
- package/models/models/assembly/services/assembly-services.d.ts.map +1 -0
- package/models/models/assembly/services/index.d.ts +2 -0
- package/models/models/assembly/services/index.d.ts.map +1 -0
- package/models/models/assembly/types/index.d.ts +64 -0
- package/models/models/availability/availability-model.d.ts +89 -0
- package/models/models/availability/availability-model.d.ts.map +1 -0
- package/models/models/availability/index.d.ts +3 -0
- package/models/models/availability/index.d.ts.map +1 -0
- package/models/models/availability/types/index.d.ts +79 -0
- package/models/models/board/board-container-model.d.ts +23 -0
- package/models/models/board/board-container-model.d.ts.map +1 -0
- package/models/models/board/board-container-registration.d.ts +87 -0
- package/models/models/board/board-container-registration.d.ts.map +1 -0
- package/models/models/board/board-model.d.ts +18 -0
- package/models/models/board/board-model.d.ts.map +1 -0
- package/models/models/board/board-registration.d.ts +84 -0
- package/models/models/board/board-registration.d.ts.map +1 -0
- package/models/models/board/index.d.ts +5 -0
- package/models/models/board/index.d.ts.map +1 -0
- package/models/models/board/types/index.d.ts +36 -0
- package/models/models/board/types/services.d.ts +12 -0
- package/models/models/board/types/services.d.ts.map +1 -0
- package/models/models/board/utils/board-trouble-data-mapper.d.ts +7 -0
- package/models/models/board/utils/board-trouble-data-mapper.d.ts.map +1 -0
- package/models/models/board/utils/board-trouble-resolver.d.ts +7 -0
- package/models/models/board/utils/board-trouble-resolver.d.ts.map +1 -0
- package/models/models/device-assembly/device-assembly-model.d.ts +17 -0
- package/models/models/device-assembly/device-assembly-model.d.ts.map +1 -0
- package/models/models/device-assembly/device-assembly-registration.d.ts +89 -0
- package/models/models/device-assembly/device-assembly-registration.d.ts.map +1 -0
- package/models/models/device-assembly/index.d.ts +4 -0
- package/models/models/device-assembly/index.d.ts.map +1 -0
- package/models/models/device-assembly/types/index.d.ts +1 -0
- package/models/models/generic-pour/generic-pour-model.d.ts +53 -0
- package/models/models/generic-pour/generic-pour-model.d.ts.map +1 -0
- package/models/models/generic-pour/generic-pour-registration.d.ts +87 -0
- package/models/models/generic-pour/generic-pour-registration.d.ts.map +1 -0
- package/models/models/generic-pour/index.d.ts +5 -0
- package/models/models/generic-pour/index.d.ts.map +1 -0
- package/models/models/generic-pour/services/generic-pour-services.d.ts +16 -0
- package/models/models/generic-pour/services/generic-pour-services.d.ts.map +1 -0
- package/models/models/generic-pour/services/index.d.ts +2 -0
- package/models/models/generic-pour/services/index.d.ts.map +1 -0
- package/models/models/generic-pour/types/index.d.ts +5 -0
- package/models/models/holder/holder-model.d.ts +93 -0
- package/models/models/holder/holder-model.d.ts.map +1 -0
- package/models/models/holder/index.d.ts +5 -0
- package/models/models/holder/index.d.ts.map +1 -0
- package/models/models/holder/services/assignment-services.d.ts +25 -0
- package/models/models/holder/services/assignment-services.d.ts.map +1 -0
- package/models/models/holder/services/holder-services.d.ts +28 -0
- package/models/models/holder/services/holder-services.d.ts.map +1 -0
- package/models/models/holder/services/index.d.ts +3 -0
- package/models/models/holder/services/index.d.ts.map +1 -0
- package/models/models/holder/types/index.d.ts +170 -0
- package/models/models/holder/utils/holder-utils.d.ts +9 -0
- package/models/models/holder/utils/holder-utils.d.ts.map +1 -0
- package/models/models/holder-container/holder-container-model.d.ts +80 -0
- package/models/models/holder-container/holder-container-model.d.ts.map +1 -0
- package/models/models/holder-container/index.d.ts +3 -0
- package/models/models/holder-container/index.d.ts.map +1 -0
- package/models/models/holder-container/types/index.d.ts +69 -0
- package/models/models/index.d.ts +14 -0
- package/models/models/index.d.ts.map +1 -0
- package/models/models/ingredient/index.d.ts +4 -0
- package/models/models/ingredient/index.d.ts.map +1 -0
- package/models/models/ingredient/ingredient-model.d.ts +86 -0
- package/models/models/ingredient/ingredient-model.d.ts.map +1 -0
- package/models/models/ingredient/services/index.d.ts +2 -0
- package/models/models/ingredient/services/index.d.ts.map +1 -0
- package/models/models/ingredient/services/ingredient-services.d.ts +30 -0
- package/models/models/ingredient/services/ingredient-services.d.ts.map +1 -0
- package/models/models/ingredient/types/index.d.ts +67 -0
- package/models/models/ingredient-container/index.d.ts +3 -0
- package/models/models/ingredient-container/index.d.ts.map +1 -0
- package/models/models/ingredient-container/ingredient-container-model.d.ts +80 -0
- package/models/models/ingredient-container/ingredient-container-model.d.ts.map +1 -0
- package/models/models/ingredient-container/types/index.d.ts +67 -0
- package/models/models/nozzle/index.d.ts +5 -0
- package/models/models/nozzle/index.d.ts.map +1 -0
- package/models/models/nozzle/nozzle-model.d.ts +257 -0
- package/models/models/nozzle/nozzle-model.d.ts.map +1 -0
- package/models/models/nozzle/services/index.d.ts +2 -0
- package/models/models/nozzle/services/index.d.ts.map +1 -0
- package/models/models/nozzle/services/nozzle-services.d.ts +182 -0
- package/models/models/nozzle/services/nozzle-services.d.ts.map +1 -0
- package/models/models/nozzle/types/index.d.ts +85 -0
- package/models/models/pump/index.d.ts +4 -0
- package/models/models/pump/index.d.ts.map +1 -0
- package/models/models/pump/pump-model.d.ts +91 -0
- package/models/models/pump/pump-model.d.ts.map +1 -0
- package/models/models/pump/services/index.d.ts +2 -0
- package/models/models/pump/services/index.d.ts.map +1 -0
- package/models/models/pump/services/pump-services.d.ts +27 -0
- package/models/models/pump/services/pump-services.d.ts.map +1 -0
- package/models/models/pump/types/index.d.ts +56 -0
- package/models/models/pump/utils/pump-trouble-resolver.d.ts +8 -0
- package/models/models/pump/utils/pump-trouble-resolver.d.ts.map +1 -0
- package/models/models/pump-container/index.d.ts +3 -0
- package/models/models/pump-container/index.d.ts.map +1 -0
- package/models/models/pump-container/pump-container-model.d.ts +85 -0
- package/models/models/pump-container/pump-container-model.d.ts.map +1 -0
- package/models/models/pump-container/types/index.d.ts +31 -0
- package/models/models/types/assembly.d.ts +83 -0
- package/models/models/types/assembly.d.ts.map +1 -0
- package/models/models/types/index.d.ts +4 -0
- package/models/models/types/index.d.ts.map +1 -0
- package/models/models/types/intent.d.ts +19 -0
- package/models/models/types/intent.d.ts.map +1 -0
- package/models/models/types/pouring.d.ts +9 -0
- package/models/models/types/pouring.d.ts.map +1 -0
- package/models/utils/dispense-registration-manager.d.ts +28 -0
- package/models/utils/dispense-registration-manager.d.ts.map +1 -0
- package/models/utils/extension-utils.d.ts +266 -0
- package/models/utils/extension-utils.d.ts.map +1 -0
- package/models/utils/openapi.d.ts +9276 -0
- package/models/utils/registration.d.ts +4 -0
- package/models/utils/registration.d.ts.map +1 -0
- package/models/utils/service.d.ts +80 -0
- package/models/utils/service.d.ts.map +1 -0
- package/models.cjs +2 -0
- package/models.cjs.map +1 -0
- package/models.d.ts +1 -0
- package/models.js +42 -0
- package/models.js.map +1 -0
- package/package.json +39 -0
- package/pump-provider-86479YU2.cjs +2 -0
- package/pump-provider-86479YU2.cjs.map +1 -0
- package/pump-provider-DSyiDoPF.js +1304 -0
- package/pump-provider-DSyiDoPF.js.map +1 -0
- package/ui/contexts/assembly/assembly-provider.d.ts +12 -0
- package/ui/contexts/assembly/assembly-provider.d.ts.map +1 -0
- package/ui/contexts/assembly/index.d.ts +2 -0
- package/ui/contexts/assembly/index.d.ts.map +1 -0
- package/ui/contexts/availability/availability-provider.d.ts +13 -0
- package/ui/contexts/availability/availability-provider.d.ts.map +1 -0
- package/ui/contexts/availability/index.d.ts +2 -0
- package/ui/contexts/availability/index.d.ts.map +1 -0
- package/ui/contexts/board/board-provider.d.ts +13 -0
- package/ui/contexts/board/board-provider.d.ts.map +1 -0
- package/ui/contexts/board/index.d.ts +2 -0
- package/ui/contexts/board/index.d.ts.map +1 -0
- package/ui/contexts/board-container/board-container-provider.d.ts +12 -0
- package/ui/contexts/board-container/board-container-provider.d.ts.map +1 -0
- package/ui/contexts/board-container/index.d.ts +2 -0
- package/ui/contexts/board-container/index.d.ts.map +1 -0
- package/ui/contexts/cui-kit/cui-kit.d.ts +29 -0
- package/ui/contexts/cui-kit/cui-kit.d.ts.map +1 -0
- package/ui/contexts/cui-kit/index.d.ts +2 -0
- package/ui/contexts/cui-kit/index.d.ts.map +1 -0
- package/ui/contexts/device-assembly/device-assembly-provider.d.ts +12 -0
- package/ui/contexts/device-assembly/device-assembly-provider.d.ts.map +1 -0
- package/ui/contexts/device-assembly/index.d.ts +2 -0
- package/ui/contexts/device-assembly/index.d.ts.map +1 -0
- package/ui/contexts/holder/holder-provider.d.ts +13 -0
- package/ui/contexts/holder/holder-provider.d.ts.map +1 -0
- package/ui/contexts/holder/index.d.ts +2 -0
- package/ui/contexts/holder/index.d.ts.map +1 -0
- package/ui/contexts/holder-container/holder-container-provider.d.ts +13 -0
- package/ui/contexts/holder-container/holder-container-provider.d.ts.map +1 -0
- package/ui/contexts/holder-container/index.d.ts +2 -0
- package/ui/contexts/holder-container/index.d.ts.map +1 -0
- package/ui/contexts/index.d.ts +13 -0
- package/ui/contexts/index.d.ts.map +1 -0
- package/ui/contexts/ingredient/index.d.ts +2 -0
- package/ui/contexts/ingredient/index.d.ts.map +1 -0
- package/ui/contexts/ingredient/ingredient-provider.d.ts +13 -0
- package/ui/contexts/ingredient/ingredient-provider.d.ts.map +1 -0
- package/ui/contexts/ingredient-container/index.d.ts +2 -0
- package/ui/contexts/ingredient-container/index.d.ts.map +1 -0
- package/ui/contexts/ingredient-container/ingredient-container-provider.d.ts +13 -0
- package/ui/contexts/ingredient-container/ingredient-container-provider.d.ts.map +1 -0
- package/ui/contexts/nozzle/index.d.ts +2 -0
- package/ui/contexts/nozzle/index.d.ts.map +1 -0
- package/ui/contexts/nozzle/nozzle-provider.d.ts +13 -0
- package/ui/contexts/nozzle/nozzle-provider.d.ts.map +1 -0
- package/ui/contexts/pump/index.d.ts +2 -0
- package/ui/contexts/pump/index.d.ts.map +1 -0
- package/ui/contexts/pump/pump-provider.d.ts +13 -0
- package/ui/contexts/pump/pump-provider.d.ts.map +1 -0
- package/ui/hooks/assembly/index.d.ts +3 -0
- package/ui/hooks/assembly/index.d.ts.map +1 -0
- package/ui/hooks/assembly/use-assembly.d.ts +14 -0
- package/ui/hooks/assembly/use-assembly.d.ts.map +1 -0
- package/ui/hooks/assembly/with-assembly.d.ts +8 -0
- package/ui/hooks/assembly/with-assembly.d.ts.map +1 -0
- package/ui/hooks/availability/index.d.ts +3 -0
- package/ui/hooks/availability/index.d.ts.map +1 -0
- package/ui/hooks/availability/use-availability.d.ts +14 -0
- package/ui/hooks/availability/use-availability.d.ts.map +1 -0
- package/ui/hooks/availability/with-availability.d.ts +8 -0
- package/ui/hooks/availability/with-availability.d.ts.map +1 -0
- package/ui/hooks/board/index.d.ts +3 -0
- package/ui/hooks/board/index.d.ts.map +1 -0
- package/ui/hooks/board/use-board.d.ts +14 -0
- package/ui/hooks/board/use-board.d.ts.map +1 -0
- package/ui/hooks/board/with-board.d.ts +8 -0
- package/ui/hooks/board/with-board.d.ts.map +1 -0
- package/ui/hooks/board-container/index.d.ts +3 -0
- package/ui/hooks/board-container/index.d.ts.map +1 -0
- package/ui/hooks/board-container/use-board-container.d.ts +14 -0
- package/ui/hooks/board-container/use-board-container.d.ts.map +1 -0
- package/ui/hooks/board-container/with-board-container.d.ts +8 -0
- package/ui/hooks/board-container/with-board-container.d.ts.map +1 -0
- package/ui/hooks/cui-kit/index.d.ts +8 -0
- package/ui/hooks/cui-kit/index.d.ts.map +1 -0
- package/ui/hooks/cui-kit/use-ambient-attract-timers.d.ts +18 -0
- package/ui/hooks/cui-kit/use-ambient-attract-timers.d.ts.map +1 -0
- package/ui/hooks/cui-kit/use-beverages.d.ts +17 -0
- package/ui/hooks/cui-kit/use-beverages.d.ts.map +1 -0
- package/ui/hooks/cui-kit/use-brands.d.ts +17 -0
- package/ui/hooks/cui-kit/use-brands.d.ts.map +1 -0
- package/ui/hooks/cui-kit/use-cui-kit.d.ts +192 -0
- package/ui/hooks/cui-kit/use-cui-kit.d.ts.map +1 -0
- package/ui/hooks/cui-kit/use-default-cui-kit-lifecycle.d.ts +162 -0
- package/ui/hooks/cui-kit/use-default-cui-kit-lifecycle.d.ts.map +1 -0
- package/ui/hooks/cui-kit/use-dispense-lifecycle.d.ts +23 -0
- package/ui/hooks/cui-kit/use-dispense-lifecycle.d.ts.map +1 -0
- package/ui/hooks/cui-kit/use-dispense-timers.d.ts +17 -0
- package/ui/hooks/cui-kit/use-dispense-timers.d.ts.map +1 -0
- package/ui/hooks/cui-kit/use-flavors.d.ts +17 -0
- package/ui/hooks/cui-kit/use-flavors.d.ts.map +1 -0
- package/ui/hooks/device-assembly/index.d.ts +3 -0
- package/ui/hooks/device-assembly/index.d.ts.map +1 -0
- package/ui/hooks/device-assembly/use-device-assembly.d.ts +14 -0
- package/ui/hooks/device-assembly/use-device-assembly.d.ts.map +1 -0
- package/ui/hooks/device-assembly/with-device-assembly.d.ts +9 -0
- package/ui/hooks/device-assembly/with-device-assembly.d.ts.map +1 -0
- package/ui/hooks/generic-pour/index.d.ts +3 -0
- package/ui/hooks/generic-pour/index.d.ts.map +1 -0
- package/ui/hooks/generic-pour/use-generic-pour.d.ts +15 -0
- package/ui/hooks/generic-pour/use-generic-pour.d.ts.map +1 -0
- package/ui/hooks/generic-pour/with-generic-pour.d.ts +14 -0
- package/ui/hooks/generic-pour/with-generic-pour.d.ts.map +1 -0
- package/ui/hooks/holder/index.d.ts +3 -0
- package/ui/hooks/holder/index.d.ts.map +1 -0
- package/ui/hooks/holder/use-holder.d.ts +14 -0
- package/ui/hooks/holder/use-holder.d.ts.map +1 -0
- package/ui/hooks/holder/with-holder.d.ts +8 -0
- package/ui/hooks/holder/with-holder.d.ts.map +1 -0
- package/ui/hooks/holder-container/index.d.ts +3 -0
- package/ui/hooks/holder-container/index.d.ts.map +1 -0
- package/ui/hooks/holder-container/use-holder-container.d.ts +14 -0
- package/ui/hooks/holder-container/use-holder-container.d.ts.map +1 -0
- package/ui/hooks/holder-container/with-holder-container.d.ts +8 -0
- package/ui/hooks/holder-container/with-holder-container.d.ts.map +1 -0
- package/ui/hooks/index.d.ts +16 -0
- package/ui/hooks/index.d.ts.map +1 -0
- package/ui/hooks/ingredient/index.d.ts +4 -0
- package/ui/hooks/ingredient/index.d.ts.map +1 -0
- package/ui/hooks/ingredient/use-ingredient-pour.d.ts +49 -0
- package/ui/hooks/ingredient/use-ingredient-pour.d.ts.map +1 -0
- package/ui/hooks/ingredient/use-ingredient.d.ts +14 -0
- package/ui/hooks/ingredient/use-ingredient.d.ts.map +1 -0
- package/ui/hooks/ingredient/with-ingredient.d.ts +8 -0
- package/ui/hooks/ingredient/with-ingredient.d.ts.map +1 -0
- package/ui/hooks/ingredient-container/index.d.ts +3 -0
- package/ui/hooks/ingredient-container/index.d.ts.map +1 -0
- package/ui/hooks/ingredient-container/use-ingredient-container.d.ts +14 -0
- package/ui/hooks/ingredient-container/use-ingredient-container.d.ts.map +1 -0
- package/ui/hooks/ingredient-container/with-ingredient-container.d.ts +8 -0
- package/ui/hooks/ingredient-container/with-ingredient-container.d.ts.map +1 -0
- package/ui/hooks/nozzle/index.d.ts +3 -0
- package/ui/hooks/nozzle/index.d.ts.map +1 -0
- package/ui/hooks/nozzle/use-dispense-kit.d.ts +22 -0
- package/ui/hooks/nozzle/use-dispense-kit.d.ts.map +1 -0
- package/ui/hooks/nozzle/use-nozzle.d.ts +14 -0
- package/ui/hooks/nozzle/use-nozzle.d.ts.map +1 -0
- package/ui/hooks/nozzle/with-nozzle.d.ts +8 -0
- package/ui/hooks/nozzle/with-nozzle.d.ts.map +1 -0
- package/ui/hooks/nozzle-pour/index.d.ts +2 -0
- package/ui/hooks/nozzle-pour/index.d.ts.map +1 -0
- package/ui/hooks/nozzle-pour/use-nozzle-pour.d.ts +57 -0
- package/ui/hooks/nozzle-pour/use-nozzle-pour.d.ts.map +1 -0
- package/ui/hooks/pour/index.d.ts +2 -0
- package/ui/hooks/pour/index.d.ts.map +1 -0
- package/ui/hooks/pour/use-pour.d.ts +55 -0
- package/ui/hooks/pour/use-pour.d.ts.map +1 -0
- package/ui/hooks/pump/index.d.ts +3 -0
- package/ui/hooks/pump/index.d.ts.map +1 -0
- package/ui/hooks/pump/use-pump.d.ts +14 -0
- package/ui/hooks/pump/use-pump.d.ts.map +1 -0
- package/ui/hooks/pump/with-pump.d.ts +8 -0
- package/ui/hooks/pump/with-pump.d.ts.map +1 -0
- package/ui/hooks/utils/pour-strategy/hold-to-pour-intent-strategy.d.ts +5 -0
- package/ui/hooks/utils/pour-strategy/hold-to-pour-intent-strategy.d.ts.map +1 -0
- package/ui/hooks/utils/pour-strategy/hold-to-pour-strategy.d.ts +4 -0
- package/ui/hooks/utils/pour-strategy/hold-to-pour-strategy.d.ts.map +1 -0
- package/ui/hooks/utils/pour-strategy/index.d.ts +7 -0
- package/ui/hooks/utils/pour-strategy/index.d.ts.map +1 -0
- package/ui/hooks/utils/pour-strategy/pour-strategy.d.ts +16 -0
- package/ui/hooks/utils/pour-strategy/pour-strategy.d.ts.map +1 -0
- package/ui/hooks/utils/pour-strategy/tap-or-hold-to-pour-intent-strategy.d.ts +13 -0
- package/ui/hooks/utils/pour-strategy/tap-or-hold-to-pour-intent-strategy.d.ts.map +1 -0
- package/ui/hooks/utils/pour-strategy/tap-to-pour-intent-strategy.d.ts +5 -0
- package/ui/hooks/utils/pour-strategy/tap-to-pour-intent-strategy.d.ts.map +1 -0
- package/ui/hooks/utils/pour-strategy/tap-to-pour-strategy.d.ts +4 -0
- package/ui/hooks/utils/pour-strategy/tap-to-pour-strategy.d.ts.map +1 -0
- package/ui/index.d.ts +4 -0
- package/ui/index.d.ts.map +1 -0
- package/ui/utils/pour-context.d.ts +8 -0
- package/ui/utils/pour-context.d.ts.map +1 -0
- package/ui.cjs +2 -0
- package/ui.cjs.map +1 -0
- package/ui.d.ts +1 -0
- package/ui.js +75 -0
- package/ui.js.map +1 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { CuiKitType } from './use-cui-kit';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Hook that provides default CUI Kit lifecycle management with support for preflight checks.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* // Basic usage without preflight check
|
|
8
|
+
* const lifecycle = useDefaultCuiKitLifecycle({
|
|
9
|
+
* kit,
|
|
10
|
+
* inactivity: { idleTimeout: 60, areYouThereTimeoutOffset: 10 }
|
|
11
|
+
* });
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // With before callback to validate conditions before showing "Are You There"
|
|
15
|
+
* const lifecycle = useDefaultCuiKitLifecycle({
|
|
16
|
+
* kit,
|
|
17
|
+
* inactivity: { idleTimeout: 60, areYouThereTimeoutOffset: 10 },
|
|
18
|
+
* onBeforeAreYouThereTimer: async () => {
|
|
19
|
+
* // Check if user has items in cart
|
|
20
|
+
* if (cartItems.length === 0) {
|
|
21
|
+
* return false; // Skip "Are You There" if no items selected
|
|
22
|
+
* }
|
|
23
|
+
*
|
|
24
|
+
* // Check system status
|
|
25
|
+
* const systemStatus = await checkSystemAvailability();
|
|
26
|
+
* return systemStatus.isOperational;
|
|
27
|
+
* }
|
|
28
|
+
* });
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* // Advanced before callback with multiple conditions
|
|
32
|
+
* const onBeforeAreYouThereTimer = useCallback(async () => {
|
|
33
|
+
* // Don't show if pour is in progress
|
|
34
|
+
* if (pourInProgress) return false;
|
|
35
|
+
*
|
|
36
|
+
* // Don't show if maintenance mode is active
|
|
37
|
+
* const maintenance = await checkMaintenanceStatus();
|
|
38
|
+
* if (maintenance.active) return false;
|
|
39
|
+
*
|
|
40
|
+
* // Don't show if user has premium access (extended timeout)
|
|
41
|
+
* if (user?.isPremium) return false;
|
|
42
|
+
*
|
|
43
|
+
* return true; // Show "Are You There" screen
|
|
44
|
+
* }, [pourInProgress, user]);
|
|
45
|
+
*/
|
|
46
|
+
interface TimerProps {
|
|
47
|
+
/**
|
|
48
|
+
* The idle timeout in seconds. This is the time in seconds that the screen will wait before
|
|
49
|
+
* the current session is considered idle at which point the current selections will be cleared
|
|
50
|
+
* and the screen will return to the home screen.
|
|
51
|
+
*/
|
|
52
|
+
idleTimeout?: number;
|
|
53
|
+
/**
|
|
54
|
+
* This is the amount of time left in the idle timeout at which point the are you there screen will be shown.
|
|
55
|
+
*
|
|
56
|
+
* For example, if the idle timer was set to 60 seconds and the areYouThereTimeoutOffset was set to 10 seconds,
|
|
57
|
+
* the are you there screen would be shown after 50 seconds of inactivity to provide an opportunity for the user
|
|
58
|
+
* to indicate that they are still present.
|
|
59
|
+
*/
|
|
60
|
+
areYouThereTimeoutOffset?: number;
|
|
61
|
+
}
|
|
62
|
+
interface Props {
|
|
63
|
+
/**
|
|
64
|
+
* The CuiKit instance
|
|
65
|
+
*/
|
|
66
|
+
kit?: CuiKitType | null;
|
|
67
|
+
/**
|
|
68
|
+
* The timer configuration for the inactivity timer
|
|
69
|
+
*/
|
|
70
|
+
inactivity?: TimerProps;
|
|
71
|
+
/**
|
|
72
|
+
* An alternate timer configuration that is applied when a pour has been initiated
|
|
73
|
+
* in the current session. This is useful when the idle timeout should be different
|
|
74
|
+
* when a pour has been initiated.
|
|
75
|
+
*/
|
|
76
|
+
pour?: TimerProps;
|
|
77
|
+
/**
|
|
78
|
+
* Screen configuration to control the visibility and timing of the attract and ambient screens.
|
|
79
|
+
*/
|
|
80
|
+
screens?: {
|
|
81
|
+
/**
|
|
82
|
+
* The amount of time in seconds before the attract screen is shown.
|
|
83
|
+
*/
|
|
84
|
+
attractTimeout?: number;
|
|
85
|
+
/**
|
|
86
|
+
* The amount of time in seconds measured as an offset from the attract timeout
|
|
87
|
+
* that the ambient screen will be shown. For example, if the attract screen is to be
|
|
88
|
+
* show after 300 seconds and the ambient timeout is set to 120 seconds, the ambient screen will appear
|
|
89
|
+
* after 180 seconds and display for 120 seconds before the attract screen is shown.
|
|
90
|
+
*/
|
|
91
|
+
ambientTimeoutOffset?: number;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Optional callback function that executes when the areYouThere timer expires.
|
|
95
|
+
* If provided, this function will be called before showing the "Are You There" screen.
|
|
96
|
+
* The screen will only be shown if the callback returns true.
|
|
97
|
+
*
|
|
98
|
+
* @returns Promise<boolean> - Return true to show the "Are You There" screen, false to prevent it
|
|
99
|
+
*/
|
|
100
|
+
onBeforeAreYouThereTimer?: () => Promise<boolean>;
|
|
101
|
+
/**
|
|
102
|
+
* Defines what happens to timers when onBeforeAreYouThereTimer returns false.
|
|
103
|
+
* - "pause" - Pause the current timer (default)
|
|
104
|
+
* - "restart" - Restart the timer from the beginning
|
|
105
|
+
* - "none" - Do nothing, let timers continue as-is
|
|
106
|
+
*/
|
|
107
|
+
areYouThereRejectionPolicy?: "pause" | "restart" | "none";
|
|
108
|
+
}
|
|
109
|
+
interface LifecycleData {
|
|
110
|
+
/**
|
|
111
|
+
* Flag to indicate if the are you there timoute screen should be shown
|
|
112
|
+
* @type {boolean}
|
|
113
|
+
*/
|
|
114
|
+
showAreYouThere: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Callback that when invoked will reset the are you there timer and hide the screen
|
|
117
|
+
* @returns
|
|
118
|
+
*/
|
|
119
|
+
clearAreYouThere: () => void;
|
|
120
|
+
/**
|
|
121
|
+
* The countdown value for the are you there screen. This value is used to display the countdown.
|
|
122
|
+
* If a pour has been initiated at any point in the current session, the countdown value will be based
|
|
123
|
+
* on the pour idleTimeout and pour areYouThereTimeoutOffset value. Otherwise it will be based on the
|
|
124
|
+
* inactivity idleTimeout and areYouThereTimeoutOffset values.
|
|
125
|
+
* @type {number}
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
areYouThereCountdown: number;
|
|
129
|
+
/**
|
|
130
|
+
* Flag to indicate if the ambient screen should be shown
|
|
131
|
+
*/
|
|
132
|
+
showAmbientScreen: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Flag to indicate if the attract screen should be shown
|
|
135
|
+
*/
|
|
136
|
+
showAttractScreen: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Callback to pause and reset the screen timer. This will typically be called when a user
|
|
139
|
+
* interacts with the screen when the ambient or attract screen is show. This will set
|
|
140
|
+
* the `showAmbientScreen` and `showAttractScreen` flags to false and reset the timer.
|
|
141
|
+
*/
|
|
142
|
+
pauseScreenTimer: () => void;
|
|
143
|
+
/**
|
|
144
|
+
* Callback to restart the ambient screen timer. This will typically be called when a user
|
|
145
|
+
* interacts with the screen when the ambient or attract screen is show. This will set
|
|
146
|
+
* the `showAmbientScreen` and `showAttractScreen` flags to false and restart the timer.
|
|
147
|
+
*/
|
|
148
|
+
restartScreenTimer: () => void;
|
|
149
|
+
/**
|
|
150
|
+
* Callback to pause the idle timer. This is typically called when the user interacts with the screen
|
|
151
|
+
* and should pause the idle timer.
|
|
152
|
+
*/
|
|
153
|
+
pauseIdleTimer: () => void;
|
|
154
|
+
/**
|
|
155
|
+
* Callback to restart the idle timer. This is typically called when the user interacts with the screen
|
|
156
|
+
* and should restart the idle timer.
|
|
157
|
+
*/
|
|
158
|
+
restartIdleTimer: () => void;
|
|
159
|
+
}
|
|
160
|
+
export declare const useDefaultCuiKitLifecycle: ({ kit, inactivity, pour, screens, onBeforeAreYouThereTimer, areYouThereRejectionPolicy, }: Props) => LifecycleData;
|
|
161
|
+
export {};
|
|
162
|
+
//# sourceMappingURL=use-default-cui-kit-lifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-default-cui-kit-lifecycle.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/cui-kit/use-default-cui-kit-lifecycle.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAKhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,UAAU,UAAU;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AACD,UAAU,KAAK;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE;QACR;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;;;;WAKG;QACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;KAC/B,CAAC;IAEF;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAElD;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;CAC3D;AAED,UAAU,aAAa;IACrB;;;OAGG;IACH,eAAe,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAE7B;;;;;;;OAOG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAE7B;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAE/B;;;OAGG;IACH,cAAc,EAAE,MAAM,IAAI,CAAC;IAE3B;;;OAGG;IACH,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AACD,eAAO,MAAM,yBAAyB,8FAOnC,KAAK,KAAG,aAgTV,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AvailabilityModel } from '../../../models';
|
|
2
|
+
|
|
3
|
+
interface Props<BrandData extends Record<string, any> = any, BeverageData extends Record<string, any> = any, FlavorData extends Record<string, any> = any> {
|
|
4
|
+
onBrandSelected?: (brand: AvailabilityModel<BrandData>) => void;
|
|
5
|
+
onBrandCleared?: () => void;
|
|
6
|
+
onBeverageSelected?: (brand: AvailabilityModel<BeverageData>) => void;
|
|
7
|
+
onBeverageCleared?: () => void;
|
|
8
|
+
onFlavorSelected?: (brand: AvailabilityModel<FlavorData>) => void;
|
|
9
|
+
onFlavorCleared?: () => void;
|
|
10
|
+
onReturnToHome?: () => void;
|
|
11
|
+
onPour?: () => void;
|
|
12
|
+
onPourCancel?: () => void;
|
|
13
|
+
onBeforePourRejected?: () => void;
|
|
14
|
+
onAmbientTimer?: () => void;
|
|
15
|
+
onAttractTimer?: () => void;
|
|
16
|
+
onResumeAttractTimer?: () => void;
|
|
17
|
+
onIdleTimeout?: () => void;
|
|
18
|
+
onAreYouThereTimeout?: () => void;
|
|
19
|
+
onInit?: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const useDispenseLifecycle: ({ onInit, onBrandSelected, onBrandCleared, onBeverageCleared, onBeverageSelected, onFlavorCleared, onFlavorSelected, onReturnToHome, onPour, onPourCancel, onBeforePourRejected, onAmbientTimer, onAttractTimer, onResumeAttractTimer, onIdleTimeout, onAreYouThereTimeout, }: Props) => void;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=use-dispense-lifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-dispense-lifecycle.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/cui-kit/use-dispense-lifecycle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,UAAU,KAAK,CACb,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAC3C,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAC9C,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG;IAE5C,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IAChE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IACtE,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAClE,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AASD,eAAO,MAAM,oBAAoB,kRAiB9B,KAAK,SA8FP,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { KosTimer } from '@kosdev-code/kos-ui-sdk';
|
|
2
|
+
|
|
3
|
+
interface TimerProps {
|
|
4
|
+
defaultIdleTime?: number;
|
|
5
|
+
defaultAreYouThereTime?: number;
|
|
6
|
+
onIdleTimer?: VoidFunction;
|
|
7
|
+
onAreYouThereTimer?: VoidFunction;
|
|
8
|
+
onResetIdleTimer?: VoidFunction;
|
|
9
|
+
prefix?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const useCuiKitTimers: (props: TimerProps) => {
|
|
12
|
+
idleTimer: KosTimer | null;
|
|
13
|
+
restart: () => void;
|
|
14
|
+
pause: () => void;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=use-dispense-timers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-dispense-timers.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/cui-kit/use-dispense-timers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAI9E,UAAU,UAAU;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,kBAAkB,CAAC,EAAE,YAAY,CAAC;IAClC,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,eAAO,MAAM,eAAe,UAAW,UAAU;;;;CAwGhD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AvailabilityModel } from '../../../models';
|
|
2
|
+
import { IKosDataModel } from '@kosdev-code/kos-ui-sdk';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
onFlavorSelected?: (flavor: AvailabilityModel, flavors: AvailabilityModel[]) => void;
|
|
6
|
+
onFlavorCleared?: () => void;
|
|
7
|
+
companionType?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const useFlavors: <F extends Record<string, any> = any, C extends IKosDataModel = IKosDataModel>({ onFlavorSelected, onFlavorCleared, companionType, }: Props) => {
|
|
10
|
+
flavors: AvailabilityModel<F, Record<string, any>>[];
|
|
11
|
+
flavorCompanions: C[];
|
|
12
|
+
selectFlavor: (flavor: AvailabilityModel) => Promise<void>;
|
|
13
|
+
selectedFlavors: AvailabilityModel<any, Record<string, any>>[] | null;
|
|
14
|
+
clearFlavors: () => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=use-flavors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-flavors.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/cui-kit/use-flavors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,UAAU,KAAK;IACb,gBAAgB,CAAC,EAAE,CACjB,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,iBAAiB,EAAE,KACzB,IAAI,CAAC;IACV,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,eAAO,MAAM,UAAU,wIAOpB,KAAK;;;2BAqBW,iBAAiB;;;CAkCnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/device-assembly/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DeviceAssemblyModel } from '../../../models';
|
|
2
|
+
|
|
3
|
+
export declare const useDeviceAssembly: () => {
|
|
4
|
+
model: DeviceAssemblyModel | undefined;
|
|
5
|
+
ready: boolean;
|
|
6
|
+
error: string | undefined;
|
|
7
|
+
status: {
|
|
8
|
+
model: DeviceAssemblyModel | undefined;
|
|
9
|
+
ready: boolean;
|
|
10
|
+
error: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
KosModelLoader: import('react').FunctionComponent<import('react').PropsWithChildren<import('packages/sdk/kos-ui-sdk/src/ui/components/error-boundary/error-boundary').ErrorBoundaryProps & import('@kosdev-code/kos-ui-sdk').KosModelLoaderProps>>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=use-device-assembly.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-device-assembly.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/device-assembly/use-device-assembly.ts"],"names":[],"mappings":";AACA,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3E,eAAO,MAAM,iBAAiB;;;;;;;;;;CAS7B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DeviceAssemblyModel } from '../../../models';
|
|
2
|
+
|
|
3
|
+
interface DeviceAssemblyProps {
|
|
4
|
+
deviceAssembly: DeviceAssemblyModel;
|
|
5
|
+
}
|
|
6
|
+
type HoCDeviceAssemblyProps = DeviceAssemblyProps;
|
|
7
|
+
export declare function withDeviceAssembly<T extends HoCDeviceAssemblyProps = HoCDeviceAssemblyProps>(WrappedComponent: React.ComponentType<T>): (props: Omit<T, keyof DeviceAssemblyProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=with-device-assembly.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-device-assembly.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/device-assembly/with-device-assembly.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG3D,UAAU,mBAAmB;IAC3B,cAAc,EAAE,mBAAmB,CAAC;CACrC;AAED,KAAK,sBAAsB,GAAG,mBAAmB,CAAC;AAElD,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,EACzD,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,WACzB,KAAK,CAAC,EAAE,MAAM,mBAAmB,CAAC,sDASlD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/generic-pour/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { KosData } from '@kosdev-code/kos-ui-sdk';
|
|
2
|
+
import { GenericPourModel } from '@kosdev-code/kos-dispense-sdk';
|
|
3
|
+
|
|
4
|
+
export declare const useGenericPour: (id: string, servicePathFactory: (selectedId: string, context?: KosData<Record<string, any>>) => string, itemId?: string) => {
|
|
5
|
+
model: GenericPourModel | undefined;
|
|
6
|
+
ready: boolean;
|
|
7
|
+
error: string | undefined;
|
|
8
|
+
status: {
|
|
9
|
+
model: GenericPourModel | undefined;
|
|
10
|
+
ready: boolean;
|
|
11
|
+
error: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
KosModelLoader: import('react').FunctionComponent<import('react').PropsWithChildren<import('packages/sdk/kos-ui-sdk/src/ui/components/error-boundary/error-boundary').ErrorBoundaryProps & import('@kosdev-code/kos-ui-sdk').KosModelLoaderProps>>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=use-generic-pour.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-generic-pour.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/generic-pour/use-generic-pour.ts"],"names":[],"mappings":";AAAA,OAAO,EAEL,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,cAAc,OACrB,MAAM,sBACU,CAClB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC,KACnC,MAAM,WACF,MAAM;;;;;;;;;;CAchB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GenericPourModel } from '@kosdev-code/kos-dispense-sdk';
|
|
2
|
+
|
|
3
|
+
interface GenericPourProps {
|
|
4
|
+
genericPour: GenericPourModel;
|
|
5
|
+
}
|
|
6
|
+
interface Identifiable {
|
|
7
|
+
id: string;
|
|
8
|
+
servicePathFactory: (selectedId: string) => string;
|
|
9
|
+
itemId?: string;
|
|
10
|
+
}
|
|
11
|
+
type HoCGenericPourProps = GenericPourProps & Identifiable;
|
|
12
|
+
export declare function withGenericPour<T extends HoCGenericPourProps = HoCGenericPourProps>(WrappedComponent: React.ComponentType<T>): (props: Omit<T, keyof GenericPourProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=with-generic-pour.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-generic-pour.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/generic-pour/with-generic-pour.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,UAAU,gBAAgB;IACxB,WAAW,EAAE,gBAAgB,CAAC;CAC/B;AAED,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,mBAAmB,GAAG,gBAAgB,GAAG,YAAY,CAAC;AAE3D,wBAAgB,eAAe,CAC7B,CAAC,SAAS,mBAAmB,GAAG,mBAAmB,EACnD,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,WACzB,KAAK,CAAC,EAAE,MAAM,gBAAgB,CAAC,sDAa/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/holder/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HolderModel } from '../../../models';
|
|
2
|
+
|
|
3
|
+
export declare const useHolder: (id: string) => {
|
|
4
|
+
model: HolderModel<any> | undefined;
|
|
5
|
+
ready: boolean;
|
|
6
|
+
error: string | undefined;
|
|
7
|
+
status: {
|
|
8
|
+
model: HolderModel<any> | undefined;
|
|
9
|
+
ready: boolean;
|
|
10
|
+
error: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
KosModelLoader: import('react').FunctionComponent<import('react').PropsWithChildren<import('packages/sdk/kos-ui-sdk/src/ui/components/error-boundary/error-boundary').ErrorBoundaryProps & import('@kosdev-code/kos-ui-sdk').KosModelLoaderProps>>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=use-holder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-holder.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/holder/use-holder.ts"],"names":[],"mappings":";AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE3D,eAAO,MAAM,SAAS,OAAQ,MAAM;;;;;;;;;;CASnC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HolderModel } from '../../../models';
|
|
2
|
+
|
|
3
|
+
interface HolderProps {
|
|
4
|
+
holder: HolderModel;
|
|
5
|
+
}
|
|
6
|
+
export declare function withHolder<T extends HolderProps = HolderProps>(id: string, WrappedComponent: React.ComponentType<T>): (props: Omit<T, keyof HolderProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=with-holder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-holder.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/holder/with-holder.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,UAAU,WAAW;IACnB,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EAC5D,EAAE,EAAE,MAAM,EACV,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,WAEzB,KAAK,CAAC,EAAE,MAAM,WAAW,CAAC,sDAS1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/holder-container/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HolderContainerModel } from '../../../models';
|
|
2
|
+
|
|
3
|
+
export declare const useHolderContainer: () => {
|
|
4
|
+
model: HolderContainerModel<any> | undefined;
|
|
5
|
+
ready: boolean;
|
|
6
|
+
error: string | undefined;
|
|
7
|
+
status: {
|
|
8
|
+
model: HolderContainerModel<any> | undefined;
|
|
9
|
+
ready: boolean;
|
|
10
|
+
error: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
KosModelLoader: import('react').FunctionComponent<import('react').PropsWithChildren<import('packages/sdk/kos-ui-sdk/src/ui/components/error-boundary/error-boundary').ErrorBoundaryProps & import('@kosdev-code/kos-ui-sdk').KosModelLoaderProps>>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=use-holder-container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-holder-container.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/holder-container/use-holder-container.ts"],"names":[],"mappings":";AACA,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE7E,eAAO,MAAM,kBAAkB;;;;;;;;;;CAS9B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HolderContainerModel } from '../../../models';
|
|
2
|
+
|
|
3
|
+
interface HolderContainerProps {
|
|
4
|
+
holderContainer: HolderContainerModel;
|
|
5
|
+
}
|
|
6
|
+
export declare function withHolderContainer<T extends HolderContainerProps = HolderContainerProps>(WrappedComponent: React.ComponentType<T>): (props: Omit<T, keyof HolderContainerProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=with-holder-container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-holder-container.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/holder-container/with-holder-container.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAG5D,UAAU,oBAAoB;IAC5B,eAAe,EAAE,oBAAoB,CAAC;CACvC;AAED,wBAAgB,mBAAmB,CACjC,CAAC,SAAS,oBAAoB,GAAG,oBAAoB,EACrD,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,WACzB,KAAK,CAAC,EAAE,MAAM,oBAAoB,CAAC,sDASnD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './assembly';
|
|
2
|
+
export * from './availability';
|
|
3
|
+
export * from './board';
|
|
4
|
+
export * from './board-container';
|
|
5
|
+
export * from './cui-kit';
|
|
6
|
+
export * from './device-assembly';
|
|
7
|
+
export * from './holder';
|
|
8
|
+
export * from './holder-container';
|
|
9
|
+
export * from './ingredient';
|
|
10
|
+
export * from './ingredient-container';
|
|
11
|
+
export * from './nozzle';
|
|
12
|
+
export * from './nozzle-pour';
|
|
13
|
+
export * from './pour';
|
|
14
|
+
export * from './utils/pour-strategy';
|
|
15
|
+
export * from './generic-pour';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AAEtC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/ingredient/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { PourStrategy } from '../utils/pour-strategy/pour-strategy';
|
|
2
|
+
import { IntentAware } from '../../../models';
|
|
3
|
+
import { ReactDOMAttributes } from '@use-gesture/react/dist/declarations/src/types';
|
|
4
|
+
|
|
5
|
+
interface IngredientPourProps {
|
|
6
|
+
onPour?: () => void;
|
|
7
|
+
onPourCancel?: () => void;
|
|
8
|
+
intentContainer: IntentAware;
|
|
9
|
+
strategy?: PourStrategy<IntentAware>;
|
|
10
|
+
}
|
|
11
|
+
export interface IngredientPourResponse {
|
|
12
|
+
handlers: (...args: any[]) => ReactDOMAttributes;
|
|
13
|
+
cancel: () => void;
|
|
14
|
+
status?: {
|
|
15
|
+
canPour: boolean;
|
|
16
|
+
isPouring: boolean;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Hook that encapsulates the logic for handling ingredient pouring.
|
|
21
|
+
*
|
|
22
|
+
* The hook will return a number of gesture handlers that can be spread onto a DOM element.
|
|
23
|
+
* The hook will automatically detects if touch or mouse events are used.
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* @param onPour - callback initiated after pouring starts
|
|
27
|
+
* @param onPourCancel - callback initiated after pouring is cancelled
|
|
28
|
+
* @returns handlers - gesture handlers for nozzle pouring
|
|
29
|
+
*
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* const { handlers } = useIngredientPour({
|
|
33
|
+
* onPour: () => {
|
|
34
|
+
* console.log("Pouring started");
|
|
35
|
+
* },
|
|
36
|
+
* onPourCancel: () => {
|
|
37
|
+
* console.log("Pouring cancelled");
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
*
|
|
41
|
+
* <div {...handlers()} />
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* @see {@link IntentAware.performIntent}
|
|
45
|
+
* @see {@link usePressGesture}
|
|
46
|
+
**/
|
|
47
|
+
export declare const useIngredientPour: ({ onPour, onPourCancel, intentContainer, strategy, }: IngredientPourProps) => IngredientPourResponse;
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=use-ingredient-pour.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-ingredient-pour.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/ingredient/use-ingredient-pour.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACzF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEzE,UAAU,mBAAmB;IAC3B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,kBAAkB,CAAC;IACjD,MAAM,EAAE,MAAM,IAAI,CAAC;IAEnB,MAAM,CAAC,EAAE;QACP,OAAO,EAAE,OAAO,CAAC;QACjB,SAAS,EAAE,OAAO,CAAC;KACpB,CAAC;CACH;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2BI;AACJ,eAAO,MAAM,iBAAiB,yDAK3B,mBAAmB,KAAG,sBAiCxB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IngredientModel } from '../../../models';
|
|
2
|
+
|
|
3
|
+
export declare const useIngredient: () => {
|
|
4
|
+
model: IngredientModel<any> | undefined;
|
|
5
|
+
ready: boolean;
|
|
6
|
+
error: string | undefined;
|
|
7
|
+
status: {
|
|
8
|
+
model: IngredientModel<any> | undefined;
|
|
9
|
+
ready: boolean;
|
|
10
|
+
error: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
KosModelLoader: import('react').FunctionComponent<import('react').PropsWithChildren<import('packages/sdk/kos-ui-sdk/src/ui/components/error-boundary/error-boundary').ErrorBoundaryProps & import('@kosdev-code/kos-ui-sdk').KosModelLoaderProps>>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=use-ingredient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-ingredient.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/ingredient/use-ingredient.ts"],"names":[],"mappings":";AACA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEnE,eAAO,MAAM,aAAa;;;;;;;;;;CASzB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IngredientModel } from '../../../models';
|
|
2
|
+
|
|
3
|
+
interface IngredientProps {
|
|
4
|
+
ingredient: IngredientModel;
|
|
5
|
+
}
|
|
6
|
+
export declare function withIngredient<T extends IngredientProps = IngredientProps>(WrappedComponent: React.ComponentType<T>): (props: Omit<T, keyof IngredientProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=with-ingredient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-ingredient.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/ingredient/with-ingredient.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGvD,UAAU,eAAe;IACvB,UAAU,EAAE,eAAe,CAAC;CAC7B;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EACxE,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,WAEzB,KAAK,CAAC,EAAE,MAAM,eAAe,CAAC,sDAS9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/ingredient-container/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IngredientContainerModel } from '../../../models';
|
|
2
|
+
|
|
3
|
+
export declare const useIngredientContainer: () => {
|
|
4
|
+
model: IngredientContainerModel<{}> | undefined;
|
|
5
|
+
ready: boolean;
|
|
6
|
+
error: string | undefined;
|
|
7
|
+
status: {
|
|
8
|
+
model: IngredientContainerModel<{}> | undefined;
|
|
9
|
+
ready: boolean;
|
|
10
|
+
error: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
KosModelLoader: import('react').FunctionComponent<import('react').PropsWithChildren<import('packages/sdk/kos-ui-sdk/src/ui/components/error-boundary/error-boundary').ErrorBoundaryProps & import('@kosdev-code/kos-ui-sdk').KosModelLoaderProps>>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=use-ingredient-container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-ingredient-container.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/ingredient-container/use-ingredient-container.ts"],"names":[],"mappings":";AACA,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,sBAAsB;;;;;;;;;;CASlC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IngredientContainerModel } from '../../../models';
|
|
2
|
+
|
|
3
|
+
interface IngredientContainerProps {
|
|
4
|
+
ingredientContainer: IngredientContainerModel;
|
|
5
|
+
}
|
|
6
|
+
export declare function withIngredientContainer<T extends IngredientContainerProps = IngredientContainerProps>(WrappedComponent: React.ComponentType<T>): (props: Omit<T, keyof IngredientContainerProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=with-ingredient-container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-ingredient-container.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/ingredient-container/with-ingredient-container.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAGhE,UAAU,wBAAwB;IAChC,mBAAmB,EAAE,wBAAwB,CAAC;CAC/C;AAED,wBAAgB,uBAAuB,CACrC,CAAC,SAAS,wBAAwB,GAAG,wBAAwB,EAC7D,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,WACzB,KAAK,CAAC,EAAE,MAAM,wBAAwB,CAAC,sDASvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/nozzle/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AvailabilityModel } from '../../../models';
|
|
2
|
+
|
|
3
|
+
interface Props {
|
|
4
|
+
brandGroupName: string;
|
|
5
|
+
beverageGroupName: string;
|
|
6
|
+
flavorGroupName: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const useDispenseKit: ({ brandGroupName, beverageGroupName, flavorGroupName }?: Props) => {
|
|
9
|
+
[x: string]: {
|
|
10
|
+
[x: string]: AvailabilityModel<any, Record<string, any>> | AvailabilityModel<any, Record<string, any>>[] | null;
|
|
11
|
+
handlers?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
handlers: () => {
|
|
14
|
+
onSelected: (brand: AvailabilityModel) => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
selections: {
|
|
18
|
+
[x: string]: AvailabilityModel<any, Record<string, any>> | AvailabilityModel<any, Record<string, any>>[] | null;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=use-dispense-kit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-dispense-kit.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/nozzle/use-dispense-kit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIzD,UAAU,KAAK;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;CACzB;AACD,eAAO,MAAM,cAAc,4DAC+B,KAAK;;;;;;gCAyBnD,iBAAiB;;;;;;CAyD5B,CAAC"}
|