@eightshift/ui-components 5.4.0 → 5.6.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.
- package/dist/{Button-CQ5ZZJ2w.js → Button-BhEIfWLY.js} +1 -1
- package/dist/{Dialog-BMgMUQuN.js → Dialog-B8p4Ymh7.js} +7 -7
- package/dist/{List-BiAnh5G5.js → List-Bll1lQEW.js} +1 -1
- package/dist/{ListBox-DggfiuO_.js → ListBox-CEpKw7yC.js} +5 -5
- package/dist/{OverlayArrow-DraDOoRn.js → OverlayArrow-DDfa8khI.js} +1 -1
- package/dist/{SearchField-DWGdCvnn.js → SearchField-D6mPli0i.js} +2 -2
- package/dist/{Select-BvggcFOX.js → Select-CHzjZxXy.js} +7 -7
- package/dist/{Select-ef7c0426.esm-CmTkSxDx.js → Select-ef7c0426.esm-BJmjGGzK.js} +1 -1
- package/dist/{SelectionManager-B6-b5NM2.js → SelectionManager-D77bfEbg.js} +2 -2
- package/dist/{Separator-B-xeqOkC.js → Separator-DcqCdD4k.js} +1 -1
- package/dist/{SharedElementTransition-fML-zIv6.js → SharedElementTransition-BjRNHsjx.js} +1 -1
- package/dist/_commonjsHelpers-BhWcALO8.js +38 -0
- package/dist/assets/style-admin.css +2 -8247
- package/dist/assets/style-editor.css +2 -8247
- package/dist/assets/style.css +2 -8253
- package/dist/assets/wp-font-enhancements.css +2 -8
- package/dist/assets/wp-ui-enhancements.css +2 -387
- package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -0
- package/dist/components/button/button.js +2 -2
- package/dist/components/checkbox/checkbox.js +2 -2
- package/dist/components/color-pickers/color-picker.js +1 -1
- package/dist/components/color-pickers/color-swatch.js +1 -1
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +2 -2
- package/dist/components/component-toggle/component-toggle.js +1 -1
- package/dist/components/draggable/draggable-handle.js +1 -1
- package/dist/components/draggable/draggable.js +2 -2
- package/dist/components/draggable-list/draggable-list-item.js +1 -1
- package/dist/components/draggable-list/draggable-list.js +2 -2
- package/dist/components/expandable/expandable.js +3 -3
- package/dist/components/index.js +2 -0
- package/dist/components/item-collection/item-collection.js +1 -1
- package/dist/components/link-input/link-input.js +11 -11
- package/dist/components/matrix-align/matrix-align.js +2 -1
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/modal/modal.js +4 -4
- package/dist/components/number-picker/number-picker.js +3 -3
- package/dist/components/option-select/option-select.js +1 -1
- package/dist/components/placeholders/file-picker-shell.js +72 -39
- package/dist/components/placeholders/file-placeholder.js +1 -1
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/repeater/repeater-item.js +1 -1
- package/dist/components/repeater/repeater.js +2 -2
- package/dist/components/responsive/mini-responsive.js +2 -1
- package/dist/components/responsive/responsive-legacy.js +2 -1
- package/dist/components/responsive/responsive.js +2 -1
- package/dist/components/responsive-preview/responsive-preview.js +2 -1
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +1 -1
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +3 -3
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/v2/async-multi-select.js +7 -6
- package/dist/components/select/v2/async-select.js +7 -6
- package/dist/components/select/v2/multi-select.js +8 -7
- package/dist/components/select/v2/shared.js +1 -1
- package/dist/components/select/v2/single-select.js +7 -7
- package/dist/components/slider/column-config-slider.js +1 -1
- package/dist/components/slider/utils.js +1 -1
- package/dist/components/smart-image/smart-image.js +159 -0
- package/dist/components/smart-image/worker-inline.js +4 -0
- package/dist/components/tabs/tabs.js +6 -6
- package/dist/components/toggle/switch.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +1 -1
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/{default-i18n-CN_q3KUs.js → default-i18n-DBm-GqWM.js} +167 -50
- package/dist/general-6STKQIrk.js +4371 -0
- package/dist/icons/icons.js +10 -0
- package/dist/icons/index.js +2 -0
- package/dist/icons/spinner.js +18 -0
- package/dist/{index-641ee5b8.esm-DVp0njHa.js → index-641ee5b8.esm-DiwvO-RP.js} +1 -1
- package/dist/{index-D8-Zjpbd.js → index-DjyEH0Gg.js} +1 -3
- package/dist/index.js +2 -0
- package/dist/{multi-select-components-CT_W0Cy9.js → multi-select-components-B3KuDyYd.js} +1 -1
- package/dist/{react-select-async.esm-Zl1LPaPb.js → react-select-async.esm-_4pk-41v.js} +3 -3
- package/dist/{react-select.esm-Bu36HujU.js → react-select.esm-BeuAkAyY.js} +3 -3
- package/dist/sha256-C56UDWfQ.js +533 -0
- package/dist/{useButton-v9ngEj50.js → useButton-B2EaQJT_.js} +1 -1
- package/dist/{useDragAndDrop-C08ZXv4F.js → useDragAndDrop-DUXKDS0N.js} +5 -5
- package/dist/{useFilter-BlkUH1Ma.js → useFilter-BPcJ-Jzv.js} +1 -1
- package/dist/{useListState-RdLrYsMP.js → useListState-DZycqxCn.js} +1 -1
- package/dist/{useNumberField-D16dDfYF.js → useNumberField-CEA9Q4w_.js} +1 -1
- package/dist/{usePress-DJskZBH9.js → usePress-BCEPS3hl.js} +1 -1
- package/dist/{useSingleSelectListState-n0AVMr3Y.js → useSingleSelectListState-BFZEfeqI.js} +1 -1
- package/dist/{useToggle-DSBDAfdw.js → useToggle-DNoP2bvV.js} +1 -1
- package/dist/utilities/general.js +10 -0
- package/dist/utilities/index.js +14 -2
- package/dist/utilities/web-workers.js +50 -0
- package/dist/workers/image-analysis.worker.js +52 -0
- package/package.json +17 -10
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { L as $507fabe10e71c6fb$export$98e20ec92f614cfe, u as $507fabe10e71c6fb$export$630ff653c5ada6a9, H as $6a7db85432448f7f$export$60278871457622de, F as $6a7db85432448f7f$export$29bf1b5f2c56cf63, e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, B as $c87311424ea30a05$export$9ac100e40613ea10, E as $c87311424ea30a05$export$7bef049ce92e4224, C as $c87311424ea30a05$export$78551043582a6a98, b as $c87311424ea30a05$export$fedb369cb70207f1, v as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useHover-BRDW3y7-.js";
|
|
2
|
-
import { c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-
|
|
3
|
-
import { k as $5e3802645cc19319$export$1c3ebcada18427bf } from "./Dialog-
|
|
2
|
+
import { c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-BhEIfWLY.js";
|
|
3
|
+
import { k as $5e3802645cc19319$export$1c3ebcada18427bf } from "./Dialog-B8p4Ymh7.js";
|
|
4
4
|
import React__default, { useState, useEffect, useRef, version, useCallback, useImperativeHandle, useMemo } from "react";
|
|
5
|
-
import { v as $ef06256079686ba0$export$f8aeda7b10753fa1, r as $c5a24bc478652b5f$export$1005530eda016c13, d as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./SelectionManager-
|
|
6
|
-
import { c as $62d8ded9296f3872$export$cfa2225e87938781 } from "./Separator-
|
|
5
|
+
import { v as $ef06256079686ba0$export$f8aeda7b10753fa1, r as $c5a24bc478652b5f$export$1005530eda016c13, d as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./SelectionManager-D77bfEbg.js";
|
|
6
|
+
import { c as $62d8ded9296f3872$export$cfa2225e87938781 } from "./Separator-DcqCdD4k.js";
|
|
7
7
|
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-eaZiN2tE.js";
|
|
8
8
|
import { e as $8ae05eaa5c114e9c$export$7f54fc3180508a52, k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, d as $bdb11010cef70236$export$f680877a34711e37, b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-cvK1vxO7.js";
|
|
9
9
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-DMOmz986.js";
|
|
10
|
-
import { r as reactDomExports } from "./index-
|
|
10
|
+
import { r as reactDomExports } from "./index-DjyEH0Gg.js";
|
|
11
11
|
var $103790afe9474d1c$export$60b7b4bcf3903d8e = /* @__PURE__ */ (function(DROP_OPERATION) {
|
|
12
12
|
DROP_OPERATION[DROP_OPERATION["none"] = 0] = "none";
|
|
13
13
|
DROP_OPERATION[DROP_OPERATION["cancel"] = 0] = "cancel";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as $325a3faab7a68acd$export$a16aca283550c30d } from "./Separator-
|
|
1
|
+
import { b as $325a3faab7a68acd$export$a16aca283550c30d } from "./Separator-DcqCdD4k.js";
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
3
|
function $bb77f239b46e8c72$export$3274cf84b703fff(options) {
|
|
4
4
|
let collator = $325a3faab7a68acd$export$a16aca283550c30d({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { version, useMemo, useCallback, useRef, useEffect } from "react";
|
|
2
|
-
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./SelectionManager-
|
|
2
|
+
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, a as $7613b1592d41b092$export$6cd28814d92fa9c9, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852 } from "./SelectionManager-D77bfEbg.js";
|
|
3
3
|
function $cdc5a6778b766db2$export$a9d04c5684123369(value) {
|
|
4
4
|
const pieces = version.split(".");
|
|
5
5
|
const major = parseInt(pieces[0], 10);
|
|
@@ -11,7 +11,7 @@ import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-BifIG
|
|
|
11
11
|
import { d as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input-8yja_IHC.js";
|
|
12
12
|
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-eaZiN2tE.js";
|
|
13
13
|
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-BCmkV-7c.js";
|
|
14
|
-
import { d as $319e236875307eab$export$d10ae4f68404609a, c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-
|
|
14
|
+
import { d as $319e236875307eab$export$d10ae4f68404609a, c as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-BhEIfWLY.js";
|
|
15
15
|
const $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX = new RegExp("^.*\\(.*\\).*$");
|
|
16
16
|
const $6c7bd7858deea686$var$NUMBERING_SYSTEMS = [
|
|
17
17
|
"latn",
|
|
@@ -2,7 +2,7 @@ import { D as $c87311424ea30a05$export$b7d78993b74f766d, C as $c87311424ea30a05$
|
|
|
2
2
|
import { $ as $14c0b72509d70225$export$b0d6fa1ab32e3295, a as $14c0b72509d70225$export$16a4697467175487 } from "./textSelection-DbCKqaw8.js";
|
|
3
3
|
import React__default, { useContext, createContext, useState, useRef, useMemo, useEffect } from "react";
|
|
4
4
|
import { e as $8ae05eaa5c114e9c$export$7f54fc3180508a52, b as $3ef42575df84b30b$export$9d1611c77c2fe928, p as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-cvK1vxO7.js";
|
|
5
|
-
import { r as reactDomExports } from "./index-
|
|
5
|
+
import { r as reactDomExports } from "./index-DjyEH0Gg.js";
|
|
6
6
|
const $ea8dcbcb9ea1b556$var$RouterContext = /* @__PURE__ */ createContext({
|
|
7
7
|
isNative: true,
|
|
8
8
|
open: $ea8dcbcb9ea1b556$var$openSyntheticLink,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-
|
|
1
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-DZycqxCn.js";
|
|
2
2
|
import { a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-BRDW3y7-.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./utils-cvK1vxO7.js";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-D2C6R0DK.js";
|
|
3
3
|
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-yV9VVy9R.js";
|
|
4
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
4
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-BCEPS3hl.js";
|
|
5
5
|
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useHover-BRDW3y7-.js";
|
|
6
6
|
function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
7
7
|
let { isDisabled = false, isReadOnly = false, value, name, form, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid", isInvalid, onPressStart, onPressEnd, onPressChange, onPress, onPressUp, onClick } = props;
|
package/dist/utilities/index.js
CHANGED
|
@@ -2,14 +2,24 @@ import { arrayMoveMultiple, fixIds } from "./array-helpers.js";
|
|
|
2
2
|
import { camelCase, has, isEmpty, isEqual, isObject, isPlainObject, isString, kebabCase, lowerFirst, pascalCase, snakeCase, upperFirst } from "./es-dash.js";
|
|
3
3
|
import { truncate, truncateEnd, truncateMiddle, unescapeHTML } from "./text-helpers.js";
|
|
4
4
|
import { debounce, throttle } from "./debounce-throttle.js";
|
|
5
|
-
import { c } from "../
|
|
5
|
+
import { a, b, d, c, g, i } from "../general-6STKQIrk.js";
|
|
6
|
+
import { c as c2 } from "../lite-DVmmD_-j.js";
|
|
7
|
+
import { s as sha256Exports } from "../sha256-C56UDWfQ.js";
|
|
8
|
+
const sha224 = sha256Exports.sha224;
|
|
9
|
+
const sha256 = sha256Exports.sha256;
|
|
6
10
|
export {
|
|
11
|
+
a as analyzeImage,
|
|
12
|
+
b as analyzeImageAsync,
|
|
13
|
+
d as analyzeImageData,
|
|
7
14
|
arrayMoveMultiple,
|
|
8
15
|
camelCase,
|
|
9
|
-
c as
|
|
16
|
+
c as checkTransparency,
|
|
17
|
+
c2 as clsx,
|
|
10
18
|
debounce,
|
|
11
19
|
fixIds,
|
|
20
|
+
g as getFileExtension,
|
|
12
21
|
has,
|
|
22
|
+
i as isColorDark,
|
|
13
23
|
isEmpty,
|
|
14
24
|
isEqual,
|
|
15
25
|
isObject,
|
|
@@ -18,6 +28,8 @@ export {
|
|
|
18
28
|
kebabCase,
|
|
19
29
|
lowerFirst,
|
|
20
30
|
pascalCase,
|
|
31
|
+
sha224,
|
|
32
|
+
sha256,
|
|
21
33
|
snakeCase,
|
|
22
34
|
throttle,
|
|
23
35
|
truncate,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
function useImageAnalysisWorker(workerRef, workerInline) {
|
|
2
|
+
const getOrCreateWorker = () => {
|
|
3
|
+
if (!workerRef.current) {
|
|
4
|
+
workerRef.current = createImageAnalysisWorker(workerInline);
|
|
5
|
+
workerRef.current.addEventListener("error", (e) => {
|
|
6
|
+
console.error("Worker error event:", e);
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
return workerRef.current;
|
|
10
|
+
};
|
|
11
|
+
const analyzeWithWorkerCb = async (imageBitmap, settings) => {
|
|
12
|
+
const worker = getOrCreateWorker();
|
|
13
|
+
return analyzeWithWorker(worker, imageBitmap, settings);
|
|
14
|
+
};
|
|
15
|
+
return { getOrCreateWorker, analyzeWithWorkerCb };
|
|
16
|
+
}
|
|
17
|
+
function createImageAnalysisWorker(workerInline) {
|
|
18
|
+
if (!workerInline || typeof workerInline !== "string" || workerInline.length < 100) {
|
|
19
|
+
throw new Error("Worker could not be created: inline worker code not available. Make sure the worker is properly bundled.");
|
|
20
|
+
}
|
|
21
|
+
const blob = new Blob([workerInline], { type: "application/javascript" });
|
|
22
|
+
return new Worker(URL.createObjectURL(blob), { type: "module" });
|
|
23
|
+
}
|
|
24
|
+
function analyzeWithWorker(worker, imageBitmap, settings) {
|
|
25
|
+
return new Promise((resolve, reject) => {
|
|
26
|
+
const handleMessage = (event) => {
|
|
27
|
+
const { success, data, error } = event.data;
|
|
28
|
+
if (success) {
|
|
29
|
+
resolve(data);
|
|
30
|
+
} else {
|
|
31
|
+
reject(new Error(error));
|
|
32
|
+
}
|
|
33
|
+
worker.removeEventListener("message", handleMessage);
|
|
34
|
+
worker.removeEventListener("error", handleError);
|
|
35
|
+
};
|
|
36
|
+
const handleError = (error) => {
|
|
37
|
+
reject(error);
|
|
38
|
+
worker.removeEventListener("message", handleMessage);
|
|
39
|
+
worker.removeEventListener("error", handleError);
|
|
40
|
+
};
|
|
41
|
+
worker.addEventListener("message", handleMessage);
|
|
42
|
+
worker.addEventListener("error", handleError);
|
|
43
|
+
worker.postMessage({ imageBitmap, settings }, [imageBitmap]);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
analyzeWithWorker,
|
|
48
|
+
createImageAnalysisWorker,
|
|
49
|
+
useImageAnalysisWorker
|
|
50
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { f as floatBufferFromCanvas, d as analyzeImageData, F as FLOAT_RGBA } from "../general-6STKQIrk.js";
|
|
2
|
+
self.onmessage = async (event) => {
|
|
3
|
+
const { imageBitmap, settings } = event.data;
|
|
4
|
+
try {
|
|
5
|
+
const result = await analyzeImageInWorker(imageBitmap, settings);
|
|
6
|
+
self.postMessage({ success: true, data: result });
|
|
7
|
+
} catch (error) {
|
|
8
|
+
self.postMessage({ success: false, error: error.message, stack: error.stack });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
async function analyzeImageInWorker(imageBitmap, rawSettings) {
|
|
12
|
+
const defaults = {
|
|
13
|
+
numColors: 3,
|
|
14
|
+
lightnessThreshold: 0.5,
|
|
15
|
+
yFrom: 0,
|
|
16
|
+
yTo: 1,
|
|
17
|
+
maxSize: 320,
|
|
18
|
+
alphaThreshold: 30
|
|
19
|
+
};
|
|
20
|
+
const settings = { ...defaults, ...rawSettings };
|
|
21
|
+
const { yFrom, yTo, maxSize } = settings;
|
|
22
|
+
const imageWidth = imageBitmap.width;
|
|
23
|
+
const imageHeight = imageBitmap.height;
|
|
24
|
+
if (!imageWidth || !imageHeight) return false;
|
|
25
|
+
let imageScale = 1;
|
|
26
|
+
if (imageWidth > maxSize || imageHeight > maxSize) {
|
|
27
|
+
imageScale = Math.min(maxSize / imageWidth, maxSize / imageHeight);
|
|
28
|
+
}
|
|
29
|
+
const imageWidthScaled = Math.floor(imageWidth * imageScale);
|
|
30
|
+
const imageHeightScaled = Math.floor(imageHeight * imageScale);
|
|
31
|
+
const srcX = 0;
|
|
32
|
+
const srcY = Math.floor(yFrom * imageHeight);
|
|
33
|
+
const srcW = Math.max(1, imageWidth);
|
|
34
|
+
const srcH = Math.max(1, Math.ceil((yTo - yFrom) * imageHeight));
|
|
35
|
+
const destW = Math.max(1, imageWidthScaled);
|
|
36
|
+
const destH = Math.max(1, Math.ceil((yTo - yFrom) * imageHeightScaled));
|
|
37
|
+
const colorCanvas = new OffscreenCanvas(destW, destH);
|
|
38
|
+
const colorContext = colorCanvas.getContext("2d");
|
|
39
|
+
colorContext.drawImage(imageBitmap, srcX, srcY, srcW, srcH, 0, 0, destW, destH);
|
|
40
|
+
const buffer = floatBufferFromCanvas(colorCanvas, FLOAT_RGBA);
|
|
41
|
+
const transparencyCanvas = new OffscreenCanvas(imageWidthScaled, imageHeightScaled);
|
|
42
|
+
const transparencyContext = transparencyCanvas.getContext("2d");
|
|
43
|
+
transparencyContext.drawImage(imageBitmap, 0, 0, imageWidth, imageHeight, 0, 0, imageWidthScaled, imageHeightScaled);
|
|
44
|
+
const imageData = transparencyContext.getImageData(0, 0, imageWidthScaled, imageHeightScaled).data;
|
|
45
|
+
return analyzeImageData({
|
|
46
|
+
buffer,
|
|
47
|
+
imageData,
|
|
48
|
+
width: imageWidthScaled,
|
|
49
|
+
height: imageHeightScaled,
|
|
50
|
+
settings
|
|
51
|
+
});
|
|
52
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eightshift/ui-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"dev": "vite",
|
|
36
36
|
"start": "vite",
|
|
37
|
-
"build": "vite build",
|
|
37
|
+
"build": "bun run update-scripts && vite build",
|
|
38
|
+
"update-scripts": "vite build --config vite.worker.config.js && node scripts/inline-worker.js",
|
|
38
39
|
"lint": "bun x eslint",
|
|
39
40
|
"preview": "vite preview"
|
|
40
41
|
},
|
|
@@ -55,18 +56,18 @@
|
|
|
55
56
|
"@eslint/compat": "^1.4.0",
|
|
56
57
|
"@react-stately/collections": "^3.12.8",
|
|
57
58
|
"@stylistic/eslint-plugin-js": "^4.4.1",
|
|
58
|
-
"@tailwindcss/vite": "^4.1.
|
|
59
|
+
"@tailwindcss/vite": "^4.1.15",
|
|
59
60
|
"@types/react": "^18.3.26",
|
|
60
61
|
"@types/react-dom": "^18.3.7",
|
|
61
62
|
"@vitejs/plugin-react-swc": "^4.1.0",
|
|
62
|
-
"@wordpress/i18n": "^6.
|
|
63
|
+
"@wordpress/i18n": "^6.6.0",
|
|
63
64
|
"autoprefixer": "^10.4.21",
|
|
64
65
|
"class-variance-authority": "^0.7.1",
|
|
65
66
|
"clsx": "^2.1.1",
|
|
66
67
|
"css-gradient-parser": "^0.0.18",
|
|
67
|
-
"eslint": "^9.
|
|
68
|
+
"eslint": "^9.38.0",
|
|
68
69
|
"eslint-config-prettier": "^10.1.8",
|
|
69
|
-
"eslint-plugin-jsdoc": "^
|
|
70
|
+
"eslint-plugin-jsdoc": "^61.1.5",
|
|
70
71
|
"eslint-plugin-prettier": "^5.5.4",
|
|
71
72
|
"glob": "^11.0.3",
|
|
72
73
|
"globals": "^16.4.0",
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
"lightningcss": "^1.30.2",
|
|
80
81
|
"postcss": "^8.5.6",
|
|
81
82
|
"prettier": "^3.6.2",
|
|
82
|
-
"prettier-plugin-tailwindcss": "^0.
|
|
83
|
+
"prettier-plugin-tailwindcss": "^0.7.1",
|
|
83
84
|
"react": "^18.3.1",
|
|
84
85
|
"react-aria": "^3.44.0",
|
|
85
86
|
"react-aria-components": "^1.13.0",
|
|
@@ -89,14 +90,20 @@
|
|
|
89
90
|
"react-select": "^5.10.2",
|
|
90
91
|
"react-stately": "^3.42.0",
|
|
91
92
|
"svg-to-jsx-string": "^0.1.1",
|
|
92
|
-
"tailwindcss": "^4.1.
|
|
93
|
+
"tailwindcss": "^4.1.15",
|
|
93
94
|
"tailwindcss-motion": "^1.1.1",
|
|
94
95
|
"tailwindcss-react-aria-components": "^2.0.1",
|
|
95
|
-
"vite": "^7.1.
|
|
96
|
+
"vite": "^7.1.11",
|
|
96
97
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
97
98
|
},
|
|
98
99
|
"dependencies": {
|
|
100
|
+
"@atom-universe/use-web-worker": "^2.2.1",
|
|
99
101
|
"@fontsource-variable/geist": "^5.2.8",
|
|
100
|
-
"@fontsource-variable/geist-mono": "^5.2.7"
|
|
102
|
+
"@fontsource-variable/geist-mono": "^5.2.7",
|
|
103
|
+
"@thi.ng/color": "^5.7.62",
|
|
104
|
+
"@thi.ng/pixel": "^7.5.10",
|
|
105
|
+
"@thi.ng/pixel-analysis": "^2.0.9",
|
|
106
|
+
"@thi.ng/pixel-dominant-colors": "^2.0.14",
|
|
107
|
+
"js-sha256": "^0.11.1"
|
|
101
108
|
}
|
|
102
109
|
}
|