bookito-widget 1.1.0 → 1.2.0

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,6 @@
1
1
  import { BookitoEventDatesType, BookitoEventFeedItemType, BookitoEventType, BookitoWidgetViewModeType } from '../model/widget.types';
2
2
  type __VLS_Props = {
3
+ backgroundColor?: string;
3
4
  currency?: string;
4
5
  dates?: BookitoEventDatesType;
5
6
  events: BookitoEventType[];
@@ -1,2 +1,7 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLAnchorElement>;
1
+ type __VLS_Props = {
2
+ backgroundColor?: string;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
5
+ rootElement: HTMLAnchorElement;
6
+ }, HTMLAnchorElement>;
2
7
  export default _default;
@@ -0,0 +1 @@
1
+ export declare function hslToRgb(hue: number, saturation: number, lightness: number): [number, number, number];
@@ -0,0 +1,15 @@
1
+ export type RgbColorType = {
2
+ red: number;
3
+ green: number;
4
+ blue: number;
5
+ alpha: number;
6
+ lightness: number;
7
+ };
8
+ export declare function readBackgroundColor(color?: string): {
9
+ red: number;
10
+ green: number;
11
+ blue: number;
12
+ alpha: number;
13
+ lightness: number;
14
+ } | undefined;
15
+ export declare function mixOverBackground(foreground: RgbColorType, background: RgbColorType): number;
@@ -0,0 +1,7 @@
1
+ export type PoweredByLogoVariantType = 'default' | 'light';
2
+ /**
3
+ * Dark reference color → light logo. Light reference color → default (dark) logo.
4
+ * The widget background wins. Without one, the theme background is the reference.
5
+ * A fully transparent widget color is unset. A partial one is mixed over the theme.
6
+ */
7
+ export declare function resolvePoweredByLogoVariant(widgetBackgroundColor?: string, themeBackgroundColor?: string): PoweredByLogoVariantType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bookito-widget",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Embeddable Bookito booking widget for hotel websites",
5
5
  "license": "MIT",
6
6
  "repository": {