@arcadeai/design-system 2.3.0 → 3.0.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/{arcade-DzMbb7xi.js → arcade-CHE48l2C.js} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/ui/atoms/accordion.js +16 -16
- package/dist/components/ui/atoms/alert-dialog.js +25 -25
- package/dist/components/ui/atoms/avatar.js +7 -7
- package/dist/components/ui/atoms/checkbox.js +34 -34
- package/dist/components/ui/atoms/dropdown-menu.js +31 -31
- package/dist/components/ui/atoms/hover-card.js +19 -19
- package/dist/components/ui/atoms/popover.js +9 -9
- package/dist/components/ui/atoms/progress.js +11 -11
- package/dist/components/ui/atoms/radio-group.js +29 -29
- package/dist/components/ui/atoms/resizable.js +1 -1
- package/dist/components/ui/atoms/scroll-area.js +40 -40
- package/dist/components/ui/atoms/select.js +17 -17
- package/dist/components/ui/atoms/sidebar.js +4 -1
- package/dist/components/ui/atoms/slider.js +35 -35
- package/dist/components/ui/atoms/switch.js +15 -15
- package/dist/components/ui/atoms/tabs.js +13 -13
- package/dist/components/ui/atoms/tooltip.js +22 -22
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +6 -5
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/toolkit-picker-trigger.js +20 -23
- package/dist/components/ui/molecules/toolkit-selection-summary.js +16 -19
- package/dist/components/ui/organisms/toolkit-picker/components/action-buttons.js +6 -6
- package/dist/components/ui/organisms/toolkit-picker/components/filter-badges.js +9 -12
- package/dist/components/ui/organisms/toolkit-picker/components/search-input.js +12 -11
- package/dist/components/ui/organisms/toolkit-picker/components/select-button.js +5 -4
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-card-with-selection.js +4 -7
- package/dist/components/ui/organisms/toolkit-picker/components/toolkit-list.js +5 -4
- package/dist/components/ui/organisms/toolkit-picker/components/tools-list.js +21 -21
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-filter.test.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-search.test.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/hooks/use-toolkit-picker-selection.test.js +2 -2
- package/dist/components/ui/organisms/toolkit-picker/mocks/toolkit-collection.js +19 -23
- package/dist/components/ui/organisms/toolkit-picker/toolkit-picker.test.js +1773 -1729
- package/dist/components/ui/utils/memo.test.js +1 -1
- package/dist/lib/arcade/arcade.js +1 -1
- package/dist/lib/arcade/arcade.test.js +2 -2
- package/dist/lib/utils.test.js +1 -1
- package/dist/main.js +195 -188
- package/dist/metadata/index.d.ts +1 -0
- package/dist/metadata/index.js +23 -16
- package/dist/metadata/toolkit-icons.d.ts +27 -0
- package/dist/metadata/toolkit-icons.js +227 -0
- package/dist/metadata/toolkits.js +341 -643
- package/dist/metadata/types.d.ts +1 -3
- package/dist/metadata/utils.d.ts +15 -0
- package/dist/metadata/utils.js +15 -8
- package/dist/{react-resizable-panels.browser-DggUboAp.js → react-resizable-panels.browser-31wAXhAV.js} +2 -1
- package/dist/{react.esm-DUaR5u-J.js → react.esm-I5_wjDW6.js} +17509 -15389
- package/dist/{toolkit-card-BWuG_NJi.js → toolkit-card-nuE_5OvN.js} +4 -3
- package/dist/{vi.bdSIJ99Y-Bs-viS39.js → vi.bdSIJ99Y-DBnM2VfT.js} +1296 -1315
- package/package.json +34 -34
- package/dist/components/ui/atoms/icons/utils.d.ts +0 -43
- package/dist/components/ui/atoms/icons/utils.js +0 -33
package/dist/metadata/types.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type OAuthCatalogue = {
|
|
|
17
17
|
/**
|
|
18
18
|
* TOOLKITS
|
|
19
19
|
*/
|
|
20
|
-
export type ToolkitType = 'arcade' | 'verified' | 'community' | 'auth';
|
|
20
|
+
export type ToolkitType = 'arcade' | 'arcade_starter' | 'verified' | 'community' | 'auth';
|
|
21
21
|
export type ToolkitCategory = 'all' | 'productivity' | 'social' | 'development' | 'entertainment' | 'search' | 'payments' | 'sales' | 'databases' | 'customer-support';
|
|
22
22
|
export type Toolkit = {
|
|
23
23
|
id: string;
|
|
@@ -25,8 +25,6 @@ export type Toolkit = {
|
|
|
25
25
|
isBYOC: boolean;
|
|
26
26
|
isPro: boolean;
|
|
27
27
|
publicIconUrl: string;
|
|
28
|
-
icon: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
29
|
-
summary: string;
|
|
30
28
|
docsLink: string;
|
|
31
29
|
relativeDocsLink: string;
|
|
32
30
|
type: ToolkitType;
|
package/dist/metadata/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ToolkitCatalogueEntry } from './toolkit-icons';
|
|
1
2
|
import { OAuthCatalogue, OAuthProviderIdType } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* OAUTH PROVIDERS
|
|
@@ -14,3 +15,17 @@ export declare const findPrebuiltProviderById: (id: string) => OAuthCatalogue |
|
|
|
14
15
|
* Check if a provider ID corresponds to a prebuilt provider
|
|
15
16
|
*/
|
|
16
17
|
export declare const isPrebuiltProvider: (providerId: string) => boolean;
|
|
18
|
+
/**
|
|
19
|
+
* TOOLKITS
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Check if a toolkit name exists in the catalogue
|
|
23
|
+
*/
|
|
24
|
+
export declare const isKnownToolkit: (toolkitName: string) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Find a toolkit by its name, with case-insensitive matching
|
|
27
|
+
* @returns Toolkit object with ID, or undefined if not found
|
|
28
|
+
*/
|
|
29
|
+
export declare const findToolkitByName: (toolkitName: string) => (ToolkitCatalogueEntry & {
|
|
30
|
+
id: string;
|
|
31
|
+
}) | undefined;
|
package/dist/metadata/utils.js
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { PREBUILT_OAUTH_PROVIDERS as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { PREBUILT_OAUTH_PROVIDERS as r } from "./oauth-providers.js";
|
|
2
|
+
import { TOOLKIT_CATALOGUE as e, TOOLKITS as n } from "./toolkits.js";
|
|
3
|
+
const T = (o) => r.find(
|
|
4
|
+
(i) => i.provider_id === o || i.id === o
|
|
5
|
+
), c = (o) => r.find((i) => i.id === o), l = (o) => r.some(
|
|
6
|
+
(i) => i.provider_id === o || i.id === o
|
|
7
|
+
), P = (o) => Object.keys(e).some(
|
|
8
|
+
(i) => i.toLowerCase() === o.toLowerCase()
|
|
9
|
+
), a = (o) => n.find(
|
|
10
|
+
(t) => t.label.toLowerCase() === o.toLowerCase()
|
|
6
11
|
);
|
|
7
12
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
c as findPrebuiltProviderById,
|
|
14
|
+
T as findPrebuiltProviderByProviderId,
|
|
15
|
+
a as findToolkitByName,
|
|
16
|
+
P as isKnownToolkit,
|
|
17
|
+
l as isPrebuiltProvider
|
|
11
18
|
};
|
|
@@ -303,7 +303,8 @@ function Ne(e) {
|
|
|
303
303
|
x: n,
|
|
304
304
|
y: t
|
|
305
305
|
} = Re(e);
|
|
306
|
-
if (ce &&
|
|
306
|
+
if (ce && // Skip this check for "pointerleave" events, else Firefox triggers a false positive (see #514)
|
|
307
|
+
e.type !== "pointerleave" && e.buttons === 0 && (ce = !1, Ie("up", e)), !ce) {
|
|
307
308
|
const {
|
|
308
309
|
target: r
|
|
309
310
|
} = e;
|