@hakit/core
Version:
A collection of React hooks and helpers for Home Assistant to easily communicate with the Home Assistant WebSocket API.
3 lines (2 loc) • 11.9 kB
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./utils/colors/convert-light-color.js"),o=require("./utils/colors/convert-color.js"),_=require("./utils/colors/colors.js"),E=require("./utils/colors/compute-color.js"),T=require("./utils/colors/hex.js"),y=require("./utils/colors/rgb.js"),h=require("./utils/colors/index.js"),D=require("./utils/colors/lab.js"),e=require("../index-iGClY3ec.cjs"),S=require("./utils/colors.js"),A=require("./utils/computeDomain.js"),d=require("./utils/supports-feature.js"),C=require("./utils/time/time-ago.js"),g=require("./utils/string.js"),a=require("./utils/number.js"),t=require("./utils/date.js"),N=require("./utils/stripPrefixFromEntityName.js"),r=require("./data/entity.js"),p=require("./HassConnect/token-storage.js"),n=require("../index-kv21QUm0.cjs"),R=require("./hooks/useEntities/index.js"),b=require("./hooks/useService/index.js"),f=require("./hooks/useLightBrightness/index.js"),I=require("./hooks/useLightTemperature/index.js"),L=require("./hooks/useLightColor/index.js"),v=require("./hooks/useLowDevices/index.js"),O=require("./hooks/useDevice/index.js"),F=require("./hooks/useHistory/index.js"),k=require("./hooks/useHistory/coordinates.js"),U=require("./hooks/useSubscribeEntity/index.js"),M=require("./hooks/useLogs/index.js"),x=require("./hooks/useHaStatus/index.js"),q=require("./hooks/useUser/index.js"),B=require("./hooks/useUsers/index.js"),W=require("./hooks/useWeather/index.js"),P=require("./hooks/useWeather/helpers.js"),c=require("./hooks/useLogs/logbook.js"),H=require("./hooks/useAreas/index.js"),Y=require("./hooks/useLocale/locales/index.js"),s=require("./utils/subscribe/areas.js"),V=require("./utils/subscribe/entities.js"),w=require("./utils/subscribe/floors.js"),z=require("./utils/subscribe/entity_sources.js"),u=require("./utils/subscribe/frontend_data.js"),l=require("./utils/subscribe/user.js"),G=require("./hooks/useTemplate/index.js"),Z=require("./hooks/useCamera/index.js"),j=require("./hooks/useLocaleData/index.js"),K=require("./hooks/useRegistryData/index.js"),X=require("./hooks/useFloors/index.js"),i=require("./hooks/useCamera/constants.js"),J=require("./types/autogenerated-types-by-domain.js"),Q=require("./hooks/useIcon/domains/battery.js");exports.rgbw2rgb=m.rgbw2rgb;exports.rgbww2rgb=m.rgbww2rgb;exports.temperature2rgb=m.temperature2rgb;exports.hex2rgb=o.hex2rgb;exports.hs2rgb=o.hs2rgb;exports.hsv2rgb=o.hsv2rgb;exports.lab2hex=o.lab2hex;exports.lab2rgb=o.lab2rgb;exports.rgb2hex=o.rgb2hex;exports.rgb2hs=o.rgb2hs;exports.rgb2hsv=o.rgb2hsv;exports.rgb2lab=o.rgb2lab;exports.COLORS=_.COLORS;exports.getColorByIndex=_.getColorByIndex;exports.THEME_COLORS=E.THEME_COLORS;exports.computeCssColor=E.computeCssColor;exports.expandHex=T.expandHex;exports.hexBlend=T.hexBlend;exports.getRGBContrastRatio=y.getRGBContrastRatio;exports.luminosity=y.luminosity;exports.rgbContrast=y.rgbContrast;exports.stateColorBrightness=h.stateColorBrightness;exports.labBrighten=D.labBrighten;exports.labDarken=D.labDarken;exports.DEFAULT_ENTITY_NAME=e.DEFAULT_ENTITY_NAME;exports.DOMAIN_ATTRIBUTES_FORMATTERS=e.DOMAIN_ATTRIBUTES_FORMATTERS;exports.DOMAIN_ATTRIBUTES_UNITS=e.DOMAIN_ATTRIBUTES_UNITS;exports.HassConnect=e.HassConnect;exports.TEMPERATURE_ATTRIBUTES=e.TEMPERATURE_ATTRIBUTES;exports.computeAreaName=e.computeAreaName;exports.computeAttributeValueDisplay=e.computeAttributeValueDisplay;exports.computeDefaultFavoriteColors=e.computeDefaultFavoriteColors;exports.computeDeviceName=e.computeDeviceName;exports.computeDeviceNameDisplay=e.computeDeviceNameDisplay;exports.computeDomainTitle=e.computeDomainTitle;exports.computeEntityEntryName=e.computeEntityEntryName;exports.computeEntityName=e.computeEntityName;exports.computeEntityNameDisplay=e.computeEntityNameDisplay;exports.computeEntityNameList=e.computeEntityNameList;exports.computeEntityRegistryName=e.computeEntityRegistryName;exports.computeFloorName=e.computeFloorName;exports.computeObjectId=e.computeObjectId;exports.computeStateDisplay=e.computeStateDisplay;exports.computeStateDisplayFromEntityAttributes=e.computeStateDisplayFromEntityAttributes;exports.computeStateName=e.computeStateName;exports.computeStateNameFromEntityAttributes=e.computeStateNameFromEntityAttributes;exports.devicesInArea=e.devicesInArea;exports.entityRegistryByEntityId=e.entityRegistryByEntityId;exports.entityRegistryById=e.entityRegistryById;exports.entityUseDeviceName=e.entityUseDeviceName;exports.fallbackDeviceName=e.fallbackDeviceName;exports.fetchEntityRegistryDisplay=e.fetchEntityRegistryDisplay;exports.findBatteryChargingEntity=e.findBatteryChargingEntity;exports.findBatteryEntity=e.findBatteryEntity;exports.getAutomaticEntityIds=e.getAutomaticEntityIds;exports.getDeviceContext=e.getDeviceContext;exports.getDeviceEntityDisplayLookup=e.getDeviceEntityDisplayLookup;exports.getDeviceEntityLookup=e.getDeviceEntityLookup;exports.getDeviceIntegrationLookup=e.getDeviceIntegrationLookup;exports.getDevices=e.getDevices;exports.getEntities=e.getEntities;exports.getEntityContext=e.getEntityContext;exports.getEntityEntryContext=e.getEntityEntryContext;exports.getEntityPlatformLookup=e.getEntityPlatformLookup;exports.getExtendedEntityRegistryEntries=e.getExtendedEntityRegistryEntries;exports.getExtendedEntityRegistryEntry=e.getExtendedEntityRegistryEntry;exports.getLightCurrentModeRgbColor=e.getLightCurrentModeRgbColor;exports.getWeatherUnit=e.getWeatherUnit;exports.lightIsInColorMode=e.lightIsInColorMode;exports.lightSupportsBrightness=e.lightSupportsBrightness;exports.lightSupportsColor=e.lightSupportsColor;exports.lightSupportsColorMode=e.lightSupportsColorMode;exports.lightSupportsFavoriteColors=e.lightSupportsFavoriteColors;exports.localize=e.localize;exports.removeConfigEntryFromDevice=e.removeConfigEntryFromDevice;exports.removeEntityRegistryEntry=e.removeEntityRegistryEntry;exports.sortDeviceRegistryByName=e.sortDeviceRegistryByName;exports.sortEntityRegistryByName=e.sortEntityRegistryByName;exports.stateActive=e.stateActive;exports.subscribeDeviceRegistry=e.subscribeDeviceRegistry;exports.subscribeEntityRegistryDisplay=e.subscribeEntityRegistryDisplay;exports.updateDeviceRegistryEntry=e.updateDeviceRegistryEntry;exports.updateEntityRegistryEntry=e.updateEntityRegistryEntry;exports.updateLocales=e.updateLocales;exports.useConfig=e.useConfig;exports.useHass=e.useHass;exports.useLocale=e.useLocale;exports.useLocales=e.useLocales;exports.useStore=e.useStore;exports.getCssColorValue=S.getCssColorValue;exports.computeDomain=A.computeDomain;exports.supportsFeatureFromAttributes=d.supportsFeatureFromAttributes;exports.timeAgo=C.timeAgo;exports.caseInsensitiveStringCompare=g.caseInsensitiveStringCompare;exports.stringCompare=g.stringCompare;exports.toReadableString=g.toReadableString;exports.formatNumber=a.formatNumber;exports.getDefaultFormatOptions=a.getDefaultFormatOptions;exports.getNumberFormatOptions=a.getNumberFormatOptions;exports.isNumericFromAttributes=a.isNumericFromAttributes;exports.isNumericState=a.isNumericState;exports.round=a.round;exports.LOCAL_TIME_ZONE=t.LOCAL_TIME_ZONE;exports.TimeFormat=t.TimeFormat;exports.TimeZone=t.TimeZone;exports.UNIT_TO_MILLISECOND_CONVERT=t.UNIT_TO_MILLISECOND_CONVERT;exports.checkValidDate=t.checkValidDate;exports.formatAmPmSuffix=t.formatAmPmSuffix;exports.formatDate=t.formatDate;exports.formatDateMonth=t.formatDateMonth;exports.formatDateMonthYear=t.formatDateMonthYear;exports.formatDateNumeric=t.formatDateNumeric;exports.formatDateShort=t.formatDateShort;exports.formatDateTime=t.formatDateTime;exports.formatDateTimeNumeric=t.formatDateTimeNumeric;exports.formatDateTimeWithBrowserDefaults=t.formatDateTimeWithBrowserDefaults;exports.formatDateTimeWithSeconds=t.formatDateTimeWithSeconds;exports.formatDateVeryShort=t.formatDateVeryShort;exports.formatDateWeekday=t.formatDateWeekday;exports.formatDateWeekdayDay=t.formatDateWeekdayDay;exports.formatDateWeekdayShort=t.formatDateWeekdayShort;exports.formatDateYear=t.formatDateYear;exports.formatDuration=t.formatDuration;exports.formatHour=t.formatHour;exports.formatMinute=t.formatMinute;exports.formatSeconds=t.formatSeconds;exports.formatShortDateTime=t.formatShortDateTime;exports.formatShortDateTimeWithConditionalYear=t.formatShortDateTimeWithConditionalYear;exports.formatShortDateTimeWithYear=t.formatShortDateTimeWithYear;exports.formatTime=t.formatTime;exports.formatTimeWithoutAmPm=t.formatTimeWithoutAmPm;exports.isDate=t.isDate;exports.isTimestamp=t.isTimestamp;exports.millisecondsToDuration=t.millisecondsToDuration;exports.resolveTimeZone=t.resolveTimeZone;exports.shouldUseAmPm=t.shouldUseAmPm;exports.stripPrefixFromEntityName=N.stripPrefixFromEntityName;exports.DEFAULT_STATES=r.DEFAULT_STATES;exports.DOMAINS_WITH_DYNAMIC_PICTURE=r.DOMAINS_WITH_DYNAMIC_PICTURE;exports.OFF=r.OFF;exports.OFF_STATES=r.OFF_STATES;exports.ON=r.ON;exports.UNAVAILABLE=r.UNAVAILABLE;exports.UNAVAILABLE_STATES=r.UNAVAILABLE_STATES;exports.UNIT_C=r.UNIT_C;exports.UNIT_F=r.UNIT_F;exports.UNKNOWN=r.UNKNOWN;exports.isOffState=r.isOffState;exports.isUnavailableState=r.isUnavailableState;exports.loadTokens=p.loadTokens;exports.saveTokens=p.saveTokens;exports.getIconByEntity=n.getIconByEntity;exports.useEntity=n.useEntity;exports.useIcon=n.useIcon;exports.useIconByDomain=n.useIconByDomain;exports.useIconByEntity=n.useIconByEntity;exports.useEntities=R.useEntities;exports.createService=b.createService;exports.useService=b.useService;exports.useLightBrightness=f.useLightBrightness;exports.useLightTemperature=I.useLightTemperature;exports.useLightColor=L.useLightColor;exports.useLowDevices=v.useLowDevices;exports.useDevice=O.useDevice;exports.useHistory=F.useHistory;exports.coordinates=k.coordinates;exports.useSubscribeEntity=U.useSubscribeEntity;exports.useLogs=M.useLogs;exports.useHaStatus=x.useHaStatus;exports.useUser=q.useUser;exports.useUsers=B.useUsers;exports.useWeather=W.useWeather;exports.getSupportedForecastTypes=P.getSupportedForecastTypes;exports.CONTINUOUS_DOMAINS=c.CONTINUOUS_DOMAINS;exports.createHistoricState=c.createHistoricState;exports.localizeStateMessage=c.localizeStateMessage;exports.localizeTriggerSource=c.localizeTriggerSource;exports.subscribeLogbook=c.subscribeLogbook;exports.useAreas=H.useAreas;exports.locales=Y.default;exports.areaCompare=s.areaCompare;exports.createAreaRegistryEntry=s.createAreaRegistryEntry;exports.deleteAreaRegistryEntry=s.deleteAreaRegistryEntry;exports.getAreaDeviceLookup=s.getAreaDeviceLookup;exports.getAreaEntityLookup=s.getAreaEntityLookup;exports.subscribeAreaRegistry=s.subscribeAreaRegistry;exports.updateAreaRegistryEntry=s.updateAreaRegistryEntry;exports.subscribeEntityRegistry=V.subscribeEntityRegistry;exports.subscribeFloorRegistry=w.subscribeFloorRegistry;exports.fetchEntitySourcesWithCache=z.fetchEntitySourcesWithCache;exports.DateFormat=u.DateFormat;exports.FirstWeekday=u.FirstWeekday;exports.NumberFormat=u.NumberFormat;exports.findAvailableLanguage=u.findAvailableLanguage;exports.getUserLocaleLanguage=u.getUserLocaleLanguage;exports.subscribeFrontendUserData=u.subscribeFrontendUserData;exports.subscribeUser=l.subscribeUser;exports.subscribeUsers=l.subscribeUsers;exports.userCollection=l.userCollection;exports.useTemplate=G.useTemplate;exports.useCamera=Z.useCamera;exports.useLocaleData=j.useLocaleData;exports.useRegistryData=K.useRegistryData;exports.useFloors=X.useFloors;exports.ASPECT_RATIO_DEFAULT=i.ASPECT_RATIO_DEFAULT;exports.CAMERA_ORIENTATIONS=i.CAMERA_ORIENTATIONS;exports.CAMERA_SUPPORT_ON_OFF=i.CAMERA_SUPPORT_ON_OFF;exports.CAMERA_SUPPORT_STREAM=i.CAMERA_SUPPORT_STREAM;exports.MAX_IMAGE_WIDTH=i.MAX_IMAGE_WIDTH;exports.STREAM_TYPE_HLS=i.STREAM_TYPE_HLS;exports.STREAM_TYPE_WEB_RTC=i.STREAM_TYPE_WEB_RTC;exports.LIGHT_COLOR_MODES=J.LIGHT_COLOR_MODES;exports.batteryIconByLevel=Q.batteryIconByLevel;
//# sourceMappingURL=index.js.map