@streamoid/ui 0.5.0 → 0.5.1
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +23 -9
- package/dist/index.mjs +38 -24
- package/package.json +4 -2
package/dist/index.d.mts
CHANGED
|
@@ -740,7 +740,7 @@ interface IScTabSwitcherProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
740
740
|
scTabComptype?: string;
|
|
741
741
|
className?: string;
|
|
742
742
|
}
|
|
743
|
-
declare const ScTabSwitcher: ({ tabCount, component, component2, component3, component4, component5, className, ...props }: IScTabSwitcherProps) => JSX.Element;
|
|
743
|
+
declare const ScTabSwitcher: ({ tabCount, component, component2, component3, component4, component5, className, scTabCompicon: _scTabCompicon, scTabCompactive: _scTabCompactive, scTabComptype: _scTabComptype, ...props }: IScTabSwitcherProps) => JSX.Element;
|
|
744
744
|
|
|
745
745
|
interface IScTableHeaderProps {
|
|
746
746
|
type?: "default" | "pending";
|
package/dist/index.d.ts
CHANGED
|
@@ -740,7 +740,7 @@ interface IScTabSwitcherProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
740
740
|
scTabComptype?: string;
|
|
741
741
|
className?: string;
|
|
742
742
|
}
|
|
743
|
-
declare const ScTabSwitcher: ({ tabCount, component, component2, component3, component4, component5, className, ...props }: IScTabSwitcherProps) => JSX.Element;
|
|
743
|
+
declare const ScTabSwitcher: ({ tabCount, component, component2, component3, component4, component5, className, scTabCompicon: _scTabCompicon, scTabCompactive: _scTabCompactive, scTabComptype: _scTabComptype, ...props }: IScTabSwitcherProps) => JSX.Element;
|
|
744
744
|
|
|
745
745
|
interface IScTableHeaderProps {
|
|
746
746
|
type?: "default" | "pending";
|
package/dist/index.js
CHANGED
|
@@ -507,7 +507,7 @@ var ScPairtext = ({
|
|
|
507
507
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
508
508
|
var ScBillingHistoryTableList = ({
|
|
509
509
|
invoiceNumber = "# INV-2800-2026",
|
|
510
|
-
amount = "
|
|
510
|
+
amount = "\u20B9320.89",
|
|
511
511
|
date = "Nov 9th, 2025",
|
|
512
512
|
downloadLabel = "Download invoice",
|
|
513
513
|
className,
|
|
@@ -637,8 +637,12 @@ var ScButton = ({
|
|
|
637
637
|
className,
|
|
638
638
|
...props
|
|
639
639
|
}) => {
|
|
640
|
-
const noiseUrl = (0, import_react.
|
|
641
|
-
|
|
640
|
+
const [noiseUrl, setNoiseUrl] = (0, import_react.useState)("");
|
|
641
|
+
(0, import_react.useEffect)(() => {
|
|
642
|
+
if (variant !== "primary" || type !== "primary" || state !== "default" && state !== "disabled") {
|
|
643
|
+
setNoiseUrl("");
|
|
644
|
+
return;
|
|
645
|
+
}
|
|
642
646
|
const size2 = 128;
|
|
643
647
|
const canvas = document.createElement("canvas");
|
|
644
648
|
canvas.width = size2;
|
|
@@ -653,7 +657,7 @@ var ScButton = ({
|
|
|
653
657
|
imageData.data[i + 3] = 255;
|
|
654
658
|
}
|
|
655
659
|
ctx.putImageData(imageData, 0, 0);
|
|
656
|
-
|
|
660
|
+
setNoiseUrl(canvas.toDataURL("image/png"));
|
|
657
661
|
}, [variant, type, state]);
|
|
658
662
|
const strokeWidth = size === "sm" ? 1.25 : 1.5;
|
|
659
663
|
const styledIcon = (0, import_react.isValidElement)(icon) ? (0, import_react.cloneElement)(icon, { color: "currentColor", strokeWidth }) : icon;
|
|
@@ -1579,7 +1583,7 @@ var import_icons12 = require("@streamoid/icons");
|
|
|
1579
1583
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1580
1584
|
var ScPlanCard = ({
|
|
1581
1585
|
planName = "Pro",
|
|
1582
|
-
price = "
|
|
1586
|
+
price = "\u20B949.99 / month",
|
|
1583
1587
|
credits = "30,000 Credits",
|
|
1584
1588
|
type = "free",
|
|
1585
1589
|
features = [],
|
|
@@ -1675,7 +1679,14 @@ var ScPlanCard = ({
|
|
|
1675
1679
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: ScPlanCard_default.featuresSection, children: [
|
|
1676
1680
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: ScPlanCard_default.sectionTitle, children: section.section }),
|
|
1677
1681
|
section.features.map((feature, fIdx) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: ScPlanCard_default.featureRow, children: [
|
|
1678
|
-
section.icon || /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1682
|
+
section.icon || /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1683
|
+
import_icons12.SiconHome,
|
|
1684
|
+
{
|
|
1685
|
+
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)",
|
|
1686
|
+
size: 24,
|
|
1687
|
+
strokeWidth: 1.5
|
|
1688
|
+
}
|
|
1689
|
+
),
|
|
1679
1690
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: ScPlanCard_default.featureText, children: feature })
|
|
1680
1691
|
] }, fIdx))
|
|
1681
1692
|
] })
|
|
@@ -1719,7 +1730,7 @@ var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
|
1719
1730
|
var ScPlanDetailsCard = ({
|
|
1720
1731
|
planName = "Free",
|
|
1721
1732
|
planCredits = "30,000 credits",
|
|
1722
|
-
planPrice = "
|
|
1733
|
+
planPrice = "\u20B90.00 / month",
|
|
1723
1734
|
badgeText = "Active",
|
|
1724
1735
|
currentPlanLabel = "Current plan",
|
|
1725
1736
|
upgradeButtonText = "Upgrade",
|
|
@@ -2046,6 +2057,9 @@ var ScTabSwitcher = ({
|
|
|
2046
2057
|
component4,
|
|
2047
2058
|
component5,
|
|
2048
2059
|
className,
|
|
2060
|
+
scTabCompicon: _scTabCompicon,
|
|
2061
|
+
scTabCompactive: _scTabCompactive,
|
|
2062
|
+
scTabComptype: _scTabComptype,
|
|
2049
2063
|
...props
|
|
2050
2064
|
}) => {
|
|
2051
2065
|
const variantsClassName = ScTabSwitcher_default["tab-count-" + tabCount];
|
|
@@ -6081,7 +6095,7 @@ var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
|
6081
6095
|
var InvoiceHistoryMobile = ({
|
|
6082
6096
|
invoiceId = "# INV-2800-2026",
|
|
6083
6097
|
date = "Nov 9th, 2025",
|
|
6084
|
-
amount = "
|
|
6098
|
+
amount = "\u20B9320.89",
|
|
6085
6099
|
className
|
|
6086
6100
|
}) => {
|
|
6087
6101
|
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: InvoiceHistoryMobile_default.invoiceHistoryMobile + " " + (className ?? ""), children: [
|
|
@@ -6386,7 +6400,7 @@ var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
|
6386
6400
|
var ScPlanDetailsCardMobile = ({
|
|
6387
6401
|
planName = "Pro",
|
|
6388
6402
|
planCredits = "30,000 credits",
|
|
6389
|
-
planPrice = "
|
|
6403
|
+
planPrice = "\u20B90.00 / month",
|
|
6390
6404
|
badgeText = "Active",
|
|
6391
6405
|
currentPlanLabel = "Current plan",
|
|
6392
6406
|
upgradeButtonText = "Upgrade",
|
package/dist/index.mjs
CHANGED
|
@@ -397,7 +397,7 @@ var ScPairtext = ({
|
|
|
397
397
|
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
398
398
|
var ScBillingHistoryTableList = ({
|
|
399
399
|
invoiceNumber = "# INV-2800-2026",
|
|
400
|
-
amount = "
|
|
400
|
+
amount = "\u20B9320.89",
|
|
401
401
|
date = "Nov 9th, 2025",
|
|
402
402
|
downloadLabel = "Download invoice",
|
|
403
403
|
className,
|
|
@@ -466,7 +466,7 @@ var ScButton_default = {
|
|
|
466
466
|
|
|
467
467
|
// src/SC-Button/ScButton.tsx
|
|
468
468
|
import { SiconHome as SiconHome2 } from "@streamoid/icons";
|
|
469
|
-
import {
|
|
469
|
+
import { useState, useEffect, isValidElement, cloneElement } from "react";
|
|
470
470
|
import { Fragment as Fragment3, jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
471
471
|
if (typeof window !== "undefined" && CSS.registerProperty) {
|
|
472
472
|
const props = [
|
|
@@ -527,8 +527,12 @@ var ScButton = ({
|
|
|
527
527
|
className,
|
|
528
528
|
...props
|
|
529
529
|
}) => {
|
|
530
|
-
const noiseUrl =
|
|
531
|
-
|
|
530
|
+
const [noiseUrl, setNoiseUrl] = useState("");
|
|
531
|
+
useEffect(() => {
|
|
532
|
+
if (variant !== "primary" || type !== "primary" || state !== "default" && state !== "disabled") {
|
|
533
|
+
setNoiseUrl("");
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
532
536
|
const size2 = 128;
|
|
533
537
|
const canvas = document.createElement("canvas");
|
|
534
538
|
canvas.width = size2;
|
|
@@ -543,7 +547,7 @@ var ScButton = ({
|
|
|
543
547
|
imageData.data[i + 3] = 255;
|
|
544
548
|
}
|
|
545
549
|
ctx.putImageData(imageData, 0, 0);
|
|
546
|
-
|
|
550
|
+
setNoiseUrl(canvas.toDataURL("image/png"));
|
|
547
551
|
}, [variant, type, state]);
|
|
548
552
|
const strokeWidth = size === "sm" ? 1.25 : 1.5;
|
|
549
553
|
const styledIcon = isValidElement(icon) ? cloneElement(icon, { color: "currentColor", strokeWidth }) : icon;
|
|
@@ -788,7 +792,7 @@ var ScCalendar = ({
|
|
|
788
792
|
};
|
|
789
793
|
|
|
790
794
|
// src/SC-Credits usage card/ScCreditsUsageCard.tsx
|
|
791
|
-
import { useState } from "react";
|
|
795
|
+
import { useState as useState2 } from "react";
|
|
792
796
|
|
|
793
797
|
// src/SC-Credits usage card/ScCreditsUsageCard.module.css
|
|
794
798
|
var ScCreditsUsageCard_default = {
|
|
@@ -846,7 +850,7 @@ var ScCreditsUsageCard = ({
|
|
|
846
850
|
className,
|
|
847
851
|
...props
|
|
848
852
|
}) => {
|
|
849
|
-
const [btnHovered, setBtnHovered] =
|
|
853
|
+
const [btnHovered, setBtnHovered] = useState2(false);
|
|
850
854
|
const displayText = btnHovered && buyButtonHoverText ? buyButtonHoverText : buyButtonText;
|
|
851
855
|
return /* @__PURE__ */ jsxs12("div", { className: ScCreditsUsageCard_default.scCreditsUsageCard + " " + className, ...props, children: [
|
|
852
856
|
/* @__PURE__ */ jsxs12("div", { className: ScCreditsUsageCard_default.header, children: [
|
|
@@ -901,7 +905,7 @@ var ScCreditsUsageCard = ({
|
|
|
901
905
|
};
|
|
902
906
|
|
|
903
907
|
// src/SC-CreditWarningBanner/CreditWarningBanner.tsx
|
|
904
|
-
import { useState as
|
|
908
|
+
import { useState as useState3 } from "react";
|
|
905
909
|
import { SiconClose } from "@streamoid/icons";
|
|
906
910
|
import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
907
911
|
var STYLES = {
|
|
@@ -967,7 +971,7 @@ function CreditWarningBanner({
|
|
|
967
971
|
expanded = true,
|
|
968
972
|
onCollapsedClick
|
|
969
973
|
}) {
|
|
970
|
-
const [dismissed, setDismissed] =
|
|
974
|
+
const [dismissed, setDismissed] = useState3(false);
|
|
971
975
|
if (dismissed) return null;
|
|
972
976
|
const { bg, border, color } = STYLES[level];
|
|
973
977
|
if (!expanded) {
|
|
@@ -1085,7 +1089,7 @@ function CreditWarningBanner({
|
|
|
1085
1089
|
}
|
|
1086
1090
|
|
|
1087
1091
|
// src/SC-Dp/ScDp.tsx
|
|
1088
|
-
import { useState as
|
|
1092
|
+
import { useState as useState4 } from "react";
|
|
1089
1093
|
|
|
1090
1094
|
// src/SC-Dp/ScDp.module.css
|
|
1091
1095
|
var ScDp_default = {
|
|
@@ -1110,7 +1114,7 @@ function ScDp({
|
|
|
1110
1114
|
className,
|
|
1111
1115
|
style
|
|
1112
1116
|
}) {
|
|
1113
|
-
const [imageFailed, setImageFailed] =
|
|
1117
|
+
const [imageFailed, setImageFailed] = useState4(false);
|
|
1114
1118
|
const isProfile = variant === "profile";
|
|
1115
1119
|
const showImage = type === "image" && imageUrl && !imageFailed;
|
|
1116
1120
|
const containerClass = [
|
|
@@ -1469,7 +1473,7 @@ import { SiconCredits as SiconCredits2, SiconHome as SiconHome4 } from "@streamo
|
|
|
1469
1473
|
import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1470
1474
|
var ScPlanCard = ({
|
|
1471
1475
|
planName = "Pro",
|
|
1472
|
-
price = "
|
|
1476
|
+
price = "\u20B949.99 / month",
|
|
1473
1477
|
credits = "30,000 Credits",
|
|
1474
1478
|
type = "free",
|
|
1475
1479
|
features = [],
|
|
@@ -1565,7 +1569,14 @@ var ScPlanCard = ({
|
|
|
1565
1569
|
/* @__PURE__ */ jsxs18("div", { className: ScPlanCard_default.featuresSection, children: [
|
|
1566
1570
|
/* @__PURE__ */ jsx23("div", { className: ScPlanCard_default.sectionTitle, children: section.section }),
|
|
1567
1571
|
section.features.map((feature, fIdx) => /* @__PURE__ */ jsxs18("div", { className: ScPlanCard_default.featureRow, children: [
|
|
1568
|
-
section.icon || /* @__PURE__ */ jsx23(
|
|
1572
|
+
section.icon || /* @__PURE__ */ jsx23(
|
|
1573
|
+
SiconHome4,
|
|
1574
|
+
{
|
|
1575
|
+
color: "var(--alias-text-and-icons-tertiary, #9e9e9e)",
|
|
1576
|
+
size: 24,
|
|
1577
|
+
strokeWidth: 1.5
|
|
1578
|
+
}
|
|
1579
|
+
),
|
|
1569
1580
|
/* @__PURE__ */ jsx23("span", { className: ScPlanCard_default.featureText, children: feature })
|
|
1570
1581
|
] }, fIdx))
|
|
1571
1582
|
] })
|
|
@@ -1609,7 +1620,7 @@ import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
|
1609
1620
|
var ScPlanDetailsCard = ({
|
|
1610
1621
|
planName = "Free",
|
|
1611
1622
|
planCredits = "30,000 credits",
|
|
1612
|
-
planPrice = "
|
|
1623
|
+
planPrice = "\u20B90.00 / month",
|
|
1613
1624
|
badgeText = "Active",
|
|
1614
1625
|
currentPlanLabel = "Current plan",
|
|
1615
1626
|
upgradeButtonText = "Upgrade",
|
|
@@ -1936,6 +1947,9 @@ var ScTabSwitcher = ({
|
|
|
1936
1947
|
component4,
|
|
1937
1948
|
component5,
|
|
1938
1949
|
className,
|
|
1950
|
+
scTabCompicon: _scTabCompicon,
|
|
1951
|
+
scTabCompactive: _scTabCompactive,
|
|
1952
|
+
scTabComptype: _scTabComptype,
|
|
1939
1953
|
...props
|
|
1940
1954
|
}) => {
|
|
1941
1955
|
const variantsClassName = ScTabSwitcher_default["tab-count-" + tabCount];
|
|
@@ -2116,7 +2130,7 @@ var ScProfileSettingsComp_default = {
|
|
|
2116
2130
|
import { SiconBolt as SiconBolt3, SiconLock } from "@streamoid/icons";
|
|
2117
2131
|
|
|
2118
2132
|
// src/SC-textField/ScTextField.tsx
|
|
2119
|
-
import { useState as
|
|
2133
|
+
import { useState as useState5 } from "react";
|
|
2120
2134
|
|
|
2121
2135
|
// src/SC-textField/ScTextField.module.css
|
|
2122
2136
|
var ScTextField_default = {
|
|
@@ -2151,7 +2165,7 @@ var ScTextField = ({
|
|
|
2151
2165
|
style,
|
|
2152
2166
|
...props
|
|
2153
2167
|
}) => {
|
|
2154
|
-
const [focused, setFocused] =
|
|
2168
|
+
const [focused, setFocused] = useState5(false);
|
|
2155
2169
|
const derivedState = state ?? (props.disabled ? "disabled" : focused ? "active" : (props.value !== void 0 ? String(props.value).length > 0 : false) ? "filled" : "default");
|
|
2156
2170
|
const variantsClassName = ScTextField_default["state-" + derivedState] + " " + ScTextField_default["tf-group-" + tfGroup] + " " + ScTextField_default["label-group-" + labelGroup];
|
|
2157
2171
|
return /* @__PURE__ */ jsxs26(
|
|
@@ -3239,7 +3253,7 @@ function StreamoidSidebar({
|
|
|
3239
3253
|
// src/SC-Artifax-Sidebar/ScArtifaxSidebar.tsx
|
|
3240
3254
|
import {
|
|
3241
3255
|
useCallback,
|
|
3242
|
-
useState as
|
|
3256
|
+
useState as useState6
|
|
3243
3257
|
} from "react";
|
|
3244
3258
|
|
|
3245
3259
|
// src/SC-Artifax-Sidebar/ScArtifaxSidebar.module.css
|
|
@@ -3361,7 +3375,7 @@ var ScArtifaxSidebar = ({
|
|
|
3361
3375
|
style
|
|
3362
3376
|
}) => {
|
|
3363
3377
|
const isControlled = !!openSections;
|
|
3364
|
-
const [internalOpen, setInternalOpen] =
|
|
3378
|
+
const [internalOpen, setInternalOpen] = useState6(
|
|
3365
3379
|
() => {
|
|
3366
3380
|
const init = {};
|
|
3367
3381
|
sections.forEach((s) => {
|
|
@@ -3734,7 +3748,7 @@ var ScSlider = ({
|
|
|
3734
3748
|
};
|
|
3735
3749
|
|
|
3736
3750
|
// src/SC-WorkspaceSwitcher/streamoid-workspace-switcher.tsx
|
|
3737
|
-
import { useEffect, useRef as useRef2 } from "react";
|
|
3751
|
+
import { useEffect as useEffect2, useRef as useRef2 } from "react";
|
|
3738
3752
|
import {
|
|
3739
3753
|
SiconClose as SiconClose2,
|
|
3740
3754
|
SiconTeam as SiconTeam4,
|
|
@@ -3935,7 +3949,7 @@ function StreamoidWorkspaceSwitcher({
|
|
|
3935
3949
|
const loadingText = config?.loadingText || "Loading workspaces\u2026";
|
|
3936
3950
|
const currentWorkspaceText = config?.currentWorkspaceText || "Current workspace";
|
|
3937
3951
|
const switchWorkspaceText = config?.switchWorkspaceText || "Switch workspace";
|
|
3938
|
-
|
|
3952
|
+
useEffect2(() => {
|
|
3939
3953
|
if (!open) return;
|
|
3940
3954
|
function handleKeyDown(e) {
|
|
3941
3955
|
if (e.key === "Escape") onClose();
|
|
@@ -5345,7 +5359,7 @@ var ScWorkspaceCard = ({
|
|
|
5345
5359
|
};
|
|
5346
5360
|
|
|
5347
5361
|
// src/SC-WorkspaceSwitchCard/ScWorkspaceSwitchCard.tsx
|
|
5348
|
-
import { useState as
|
|
5362
|
+
import { useState as useState7 } from "react";
|
|
5349
5363
|
import { SiconSwitch as SiconSwitch3, SiconSettings as SiconSettings3, SiconLogout as SiconLogout3 } from "@streamoid/icons";
|
|
5350
5364
|
|
|
5351
5365
|
// src/SC-WorkspaceSwitchCard/ScWorkspaceSwitchCard.module.css
|
|
@@ -5386,7 +5400,7 @@ function ScWorkspaceSwitchCard({
|
|
|
5386
5400
|
onSettings,
|
|
5387
5401
|
onLeave
|
|
5388
5402
|
}) {
|
|
5389
|
-
const [internalHover, setInternalHover] =
|
|
5403
|
+
const [internalHover, setInternalHover] = useState7(false);
|
|
5390
5404
|
const isHover = hover !== void 0 ? hover : internalHover;
|
|
5391
5405
|
const isCurrent = type === "currentWS";
|
|
5392
5406
|
const isOther = type === "otherWS";
|
|
@@ -5984,7 +5998,7 @@ import { jsx as jsx78, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
|
5984
5998
|
var InvoiceHistoryMobile = ({
|
|
5985
5999
|
invoiceId = "# INV-2800-2026",
|
|
5986
6000
|
date = "Nov 9th, 2025",
|
|
5987
|
-
amount = "
|
|
6001
|
+
amount = "\u20B9320.89",
|
|
5988
6002
|
className
|
|
5989
6003
|
}) => {
|
|
5990
6004
|
return /* @__PURE__ */ jsxs69("div", { className: InvoiceHistoryMobile_default.invoiceHistoryMobile + " " + (className ?? ""), children: [
|
|
@@ -6289,7 +6303,7 @@ import { jsx as jsx84, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
|
6289
6303
|
var ScPlanDetailsCardMobile = ({
|
|
6290
6304
|
planName = "Pro",
|
|
6291
6305
|
planCredits = "30,000 credits",
|
|
6292
|
-
planPrice = "
|
|
6306
|
+
planPrice = "\u20B90.00 / month",
|
|
6293
6307
|
badgeText = "Active",
|
|
6294
6308
|
currentPlanLabel = "Current plan",
|
|
6295
6309
|
upgradeButtonText = "Upgrade",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamoid/ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
"build": "npm run build:js && npm run build:dts",
|
|
16
16
|
"build:js": "esbuild src/index.ts --bundle --loader:.module.css=local-css --external:react --external:react-dom --external:@streamoid/icons --outfile=dist/index.js --format=cjs && esbuild src/index.ts --bundle --loader:.module.css=local-css --external:react --external:react-dom --external:@streamoid/icons --outfile=dist/index.mjs --format=esm",
|
|
17
17
|
"build:dts": "tsup src/index.ts --dts-only",
|
|
18
|
-
"
|
|
18
|
+
"watch:js": "esbuild src/index.ts --bundle --loader:.module.css=local-css --external:react --external:react-dom --external:@streamoid/icons --outfile=dist/index.js --format=cjs --watch=forever & esbuild src/index.ts --bundle --loader:.module.css=local-css --external:react --external:react-dom --external:@streamoid/icons --outfile=dist/index.mjs --format=esm --watch=forever & wait",
|
|
19
|
+
"watch:dts": "tsup src/index.ts --dts-only --watch",
|
|
20
|
+
"dev": "sh -c 'npm run watch:js & npm run watch:dts & wait'",
|
|
19
21
|
"lint": "eslint src/"
|
|
20
22
|
},
|
|
21
23
|
"peerDependencies": {
|