@yoobic/yobi 7.7.98 → 7.7.99
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/dist/cjs/{image-helpers-ea15b526.js → image-helpers-3385fd6f.js} +2 -2
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/yoo-ag-grid_96.cjs.entry.js +1 -1
- package/dist/cjs/yoo-avatar_5.cjs.entry.js +1 -1
- package/dist/cjs/yoo-card-header.cjs.entry.js +1 -1
- package/dist/cjs/yoo-card-list-image_12.cjs.entry.js +1 -1
- package/dist/cjs/yoo-podium.cjs.entry.js +1 -1
- package/dist/cjs/yoo-walkthrough.cjs.entry.js +1 -1
- package/dist/collection/utils/helpers/image-helpers.js +2 -2
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-83aa89ad.entry.js → p-0cd448c7.entry.js} +1 -1
- package/dist/design-system/p-2752aa83.js +1 -0
- package/dist/design-system/{p-e70980f6.entry.js → p-2d017575.entry.js} +1 -1
- package/dist/design-system/{p-4ef0efa6.entry.js → p-753e7b0d.entry.js} +1 -1
- package/dist/design-system/{p-cb9c30a3.entry.js → p-c4f7294a.entry.js} +1 -1
- package/dist/design-system/{p-6470e707.entry.js → p-cf343c67.entry.js} +1 -1
- package/dist/design-system/{p-59f99c7c.entry.js → p-dd2d4ef6.entry.js} +1 -1
- package/dist/esm/{image-helpers-6b281c05.js → image-helpers-2f8f9d5d.js} +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/yoo-ag-grid_96.entry.js +1 -1
- package/dist/esm/yoo-avatar_5.entry.js +1 -1
- package/dist/esm/yoo-card-header.entry.js +1 -1
- package/dist/esm/yoo-card-list-image_12.entry.js +1 -1
- package/dist/esm/yoo-podium.entry.js +1 -1
- package/dist/esm/yoo-walkthrough.entry.js +1 -1
- package/package.json +1 -1
- package/dist/design-system/p-486e9464.js +0 -1
|
@@ -4,11 +4,11 @@ import { a as isImageUrl, b as isBase64 } from './index-7a08441e.js';
|
|
|
4
4
|
|
|
5
5
|
async function getImageSize(src, onErr) {
|
|
6
6
|
const img = new Image();
|
|
7
|
-
if (src
|
|
7
|
+
if (src) {
|
|
8
8
|
img.src = isCloudinaryLink(src) ? new Cloudinary(src).quality('low').getUrl() : src;
|
|
9
9
|
await new Promise((resolve, reject) => {
|
|
10
10
|
img.onload = () => resolve(img.width);
|
|
11
|
-
img.onerror = () => reject(onErr === null || onErr === void 0 ? void 0 : onErr());
|
|
11
|
+
img.onerror = () => isImageUrl(src) || isBase64(src) && reject(onErr === null || onErr === void 0 ? void 0 : onErr());
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
return {
|
package/dist/esm/index.js
CHANGED
|
@@ -18,7 +18,7 @@ export { d as generateLabel, e as getDynamicProperty, f as getJSONHighlighted, g
|
|
|
18
18
|
export { c as blurActiveElement, d as convertValueForInputType, f as focusContentEditable, e as formatMinMaxDate, i as getFormBottomPosition, g as getTimeDisplayValue, n as initNumber, k as onFocus, h as onIconClicked, m as onInputBlurred, o as onInputClear, l as onInputFocused, j as onValidityChanged, s as setValidator, a as setValueAndResetInputValidity, b as setValueAndValidateInput, t as taskStyle, v as validate } from './form-input-helpers-da854059.js';
|
|
19
19
|
export { f as fixParagraphRandomEl, e as fuzzySearch, d as getInsertElementProp, g as getSelection, c as getTagHTML, i as isMentionTag, r as restoreCursorPosition, s as safeInsert, a as safeInsertElements, b as safeReplaceElement } from './form-text-area-helpers-eff7814d.js';
|
|
20
20
|
export { f as formatDistance, g as getGeolocation } from './geolocation-helpers-84299bd6.js';
|
|
21
|
-
export { d as applyViewBox, c as getFormattedImageURL, b as getImageScaleFactor, g as getImageSize, a as getResizedImageSize, u as updateSVGCustomColors } from './image-helpers-
|
|
21
|
+
export { d as applyViewBox, c as getFormattedImageURL, b as getImageScaleFactor, g as getImageSize, a as getResizedImageSize, u as updateSVGCustomColors } from './image-helpers-2f8f9d5d.js';
|
|
22
22
|
export { g as getIncentiveStatusBadgeSettings, c as getParticipant, a as getPositionText, b as getProgressText, e as getTotalSalesBreakdown, d as getUserScore } from './incentive-helpers-30a3bd55.js';
|
|
23
23
|
export { g as generateFilterGroups, b as getMapCSSClasses, h as hasSameMarkers, i as isMarkersLayer, a as isSelectedMarkersLayer, c as isWebGLSupported, l as layersFromKeys, s as showDirectionsActionSheet } from './map-helpers-50f15184.js';
|
|
24
24
|
export { a as intersectionObserve, i as isIntersectionObserverSupported, r as resizeObserve } from './observer-helpers-2c5c0591.js';
|
|
@@ -63,7 +63,7 @@ import { S as Sortable } from './sortable.esm-e5d5ca49.js';
|
|
|
63
63
|
import { m as map$1 } from './map-55451e6b.js';
|
|
64
64
|
import { i as isBoolean } from './isBoolean-80d45d8d.js';
|
|
65
65
|
import { c as createThemedClasses, a as createColorClasses, h as hostContext } from './theme-a67283b7.js';
|
|
66
|
-
import { c as getFormattedImageURL, g as getImageSize$1, a as getResizedImageSize, b as getImageScaleFactor } from './image-helpers-
|
|
66
|
+
import { c as getFormattedImageURL, g as getImageSize$1, a as getResizedImageSize, b as getImageScaleFactor } from './image-helpers-2f8f9d5d.js';
|
|
67
67
|
import { a as isAnnotationDeleted, b as isAnnotationValid, g as getElement$1, c as isAnnotationFocused, i as isAnnotationEmpty, k as isElementInsideContainer, d as getPointerCoordinates } from './annotations-helpers-d026cd25.js';
|
|
68
68
|
import { o as getDefaultAnnotationTextColor, f as saveTooltipContent, p as getAnnotationStyle, B as BUTTONS_CONFIG, A as ANIMATION_DELAY, q as getBoundingClient, t as isCanvasBlank, M as MENU_ITEMS, j as getDotToolTipElement, k as getDotInnerElement, S as SLIDER_THRESHOLD, L as LOADING_DELAY, u as prepareAnnotationsData, l as setDotIndexes, v as focusAnnotation, w as getAnnotationDraggableBounds, x as getFormattedAnnotationSize, y as getAbsoluteCenter, z as getRelativeCenter, C as showPredefinedTextsDialog, c as createDot, D as DOT_RADIUS, E as updateAnnotationLocal, F as createBaseAnnotation, G as removeLocalsFromAnnotations, H as EEditorActions, s as showDotTooltip, I as formatAnnotationsForExport, h as hideAllDotTooltips, J as deCenterAnnotation, n as getAnnotation, K as INIT_COORDS, N as setAnnotationPositionToClosestEdge } from './draggable-dots-helpers-64c79f38.js';
|
|
69
69
|
import { i as inRange } from './inRange-4b32e66e.js';
|
|
@@ -6,7 +6,7 @@ import { c as changeExtension, i as isGif } from './index-7a08441e.js';
|
|
|
6
6
|
import { a as getFromOfflineStorage } from './localForage-fb0baf03.js';
|
|
7
7
|
import './ResizeObserver.es-a8772c31.js';
|
|
8
8
|
import { A as cloudinary } from './common-helpers-f3296dd7.js';
|
|
9
|
-
import { d as applyViewBox, c as getFormattedImageURL } from './image-helpers-
|
|
9
|
+
import { d as applyViewBox, c as getFormattedImageURL } from './image-helpers-2f8f9d5d.js';
|
|
10
10
|
import { i as isIntersectionObserverSupported, a as intersectionObserve } from './observer-helpers-2c5c0591.js';
|
|
11
11
|
import { c as changeRgbOpacity } from './color-helpers-03a5e1b1.js';
|
|
12
12
|
import './toInteger-9e62a9cd.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, H as Host } from './index-27314512.js';
|
|
|
2
2
|
import { t as translate } from './rrule-5a2de9bb.js';
|
|
3
3
|
import './input-bar.interface-4e956599.js';
|
|
4
4
|
import './ResizeObserver.es-a8772c31.js';
|
|
5
|
-
import { u as updateSVGCustomColors } from './image-helpers-
|
|
5
|
+
import { u as updateSVGCustomColors } from './image-helpers-2f8f9d5d.js';
|
|
6
6
|
import './isUndefined-11cbe419.js';
|
|
7
7
|
import './isNumber-5a14c4d5.js';
|
|
8
8
|
import './index-7a08441e.js';
|
|
@@ -11,7 +11,7 @@ import { b as setValueAndValidateInput, s as setValidator } from './form-input-h
|
|
|
11
11
|
import { g as get } from './get-3cbd3bd6.js';
|
|
12
12
|
import { f as getPhotoSVG, k as isElementInsideContainer } from './annotations-helpers-d026cd25.js';
|
|
13
13
|
import { g as getElementDimensions } from './dimensions-helpers-74309fae.js';
|
|
14
|
-
import { u as updateSVGCustomColors } from './image-helpers-
|
|
14
|
+
import { u as updateSVGCustomColors } from './image-helpers-2f8f9d5d.js';
|
|
15
15
|
import { g as getRenderer } from './grid-renderers-f81f061f.js';
|
|
16
16
|
import { d as debounce$1 } from './debounce-1a5f66d4.js';
|
|
17
17
|
import { c as cloneDeep } from './cloneDeep-7e28f486.js';
|
|
@@ -3,7 +3,7 @@ import { E as getCssColor, P as Cloudinary, b as isWeb } from './rrule-5a2de9bb.
|
|
|
3
3
|
import './input-bar.interface-4e956599.js';
|
|
4
4
|
import './ResizeObserver.es-a8772c31.js';
|
|
5
5
|
import { f as getAppContext } from './common-helpers-f3296dd7.js';
|
|
6
|
-
import { u as updateSVGCustomColors } from './image-helpers-
|
|
6
|
+
import { u as updateSVGCustomColors } from './image-helpers-2f8f9d5d.js';
|
|
7
7
|
import { i as isNumber } from './isNumber-5a14c4d5.js';
|
|
8
8
|
import { g as get } from './get-3cbd3bd6.js';
|
|
9
9
|
import './isUndefined-11cbe419.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, a as getAssetPath, H as Hos
|
|
|
2
2
|
import { bh as isChromatic, t as translate } from './rrule-5a2de9bb.js';
|
|
3
3
|
import './input-bar.interface-4e956599.js';
|
|
4
4
|
import './ResizeObserver.es-a8772c31.js';
|
|
5
|
-
import { u as updateSVGCustomColors } from './image-helpers-
|
|
5
|
+
import { u as updateSVGCustomColors } from './image-helpers-2f8f9d5d.js';
|
|
6
6
|
import './isUndefined-11cbe419.js';
|
|
7
7
|
import './isNumber-5a14c4d5.js';
|
|
8
8
|
import './index-7a08441e.js';
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as i,P as t,M as a,E as n}from"./p-a966475f.js";import"./p-4d956bd4.js";import{a as o,b as e}from"./p-e37ba040.js";async function r(a,n){const r=new Image;return a&&(o(a)||e(a))&&(r.src=i(a)?new t(a).quality("low").getUrl():a,await new Promise(((i,t)=>{r.onload=()=>i(r.width),r.onerror=()=>t(null==n?void 0:n())}))),{width:r.width,height:r.height}}async function s(i){const{src:t,maxWidth:a,maxHeight:n,imgSize:o,onErr:e}=i||{},{width:s,height:g}=o||await r(t,e),h=s?Math.min(a/s,(n||a)/g):1;return{width:Math.floor((s||a)*(h||1)),height:Math.floor((g||n||a)*(h||1))}}async function g(i){const{src:t,maxWidth:a,maxHeight:n,imgSize:o,onErr:e}=i||{},{width:s,height:g}=o||await r(t,e);return parseFloat(Math.min(a/s,n/g).toFixed(2))}const h=i=>{let t=i;if(t){t.includes&&t.includes("file:")&&(t=a(t));const i=".";let n,o;t.split&&(n=t.split(i)),(null==n?void 0:n.pop)&&(o=n.pop()||""),(null==o?void 0:o.length)<5&&!["gif","jpg","png","svg"].includes(o)&&(t=[...n,"jpg"].join(i))}return t},d=i=>(null==i?void 0:i.replace)?i.replace(/#04CC99/gi,n("app-color")).replace(/#7577ff/gi,n("app-color")).replace(/#F46885/gi,n("danger-light")).replace(/#FFAABC/gi,n("danger-light-20")).replace(/#FFD2DC/gi,n("danger-light-40")):i,l=i=>{var t,a;const n=null===(t=i.getAttribute("width"))||void 0===t?void 0:t.replace("px",""),o=null===(a=i.getAttribute("height"))||void 0===a?void 0:a.replace("px","");return!i.getAttribute("viewBox")&&/^\d+$/.test(n)&&/^\d+$/.test(o)&&i.setAttribute("viewBox",`0 0 ${n} ${o}`),i};export{s as a,g as b,h as c,l as d,r as g,d as u}
|