twenty-sdk 0.4.4 → 0.4.6-alpha
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/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/ui/index.cjs +398 -398
- package/dist/ui/index.mjs +52 -53
- package/package.json +25 -5
package/dist/ui/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export * from "twenty-ui";
|
|
2
1
|
import { R as s, n as p, p as xr, o as U, L as Ae, A as ke, m as Me, b as fe, P as be, v as Ie, y as Ce, d as we, a as xe, Z as Ee, W as Le, K as Be, Y as ze, M as Se, T as De, c as We, H as Je, I as Pe, h as Xe, e as _e, f as R, g as Re, x as Ge, F as Oe, U as Fe, u as Dt, i as je, r as Qe, j as Ke, k as Ve, l as $e, _ as e1, $ as t1, q as a1, z as n1, s as o1, t as r1, w as l1, B as i1, C as s1, D as c1, E as d1, G as h1, X as g1, V as p1, J as u1, N as y1, O as v1, S as m1, Q as A1, a0 as k1, a1 as M1, a2 as f1, a3 as b1, a4 as I1, a5 as C1, a6 as w1, a7 as x1, a8 as E1, a9 as x, aa as q, ab as Gt, ac as Jt, ad as Bo, ae as zo, af as C, ag as So, ah as Fn, ai as Er, aj as vn, ak as o, al as Lr, am as Br, an as zr, ao as Do, ap as Sr, aq as Dr, ar as Rr, as as Gr, at as Or, au as Fr, av as wn, aw as jr, ax as Qr, ay as Kr, az as Vr, aA as Ro, aB as Nr, aC as Zr, aD as Yr, aE as Tr, aF as Go, aG as qr, aH as Ur, aI as Hr, aJ as Wr, aK as Jr, aL as Pr, aM as hn, aN as Xr, aO as _r, aP as $r, aQ as e0, aR as t0, aS as Ua, aT as ae, aU as a0, aV as ao, aW as n0, aX as o0, aY as te, aZ as r0, a_ as Pa, a$ as Oo, b0 as jn, b1 as Qn, b2 as l0, b3 as i0, b4 as Fo, b5 as s0, b6 as J, b7 as L1, b8 as B1, b9 as z1, ba as S1, bb as D1, bc as R1, bd as G1, be as O1, bf as F1, bg as j1, bh as Q1, bi as K1, bj as V1, bk as N1, bl as Z1, bm as Y1, bn as T1, bo as q1, bp as U1, bq as H1, br as O, bs as W1, bt as J1, bu as P1, bv as X1, bw as _1, bx as $1, by as et, bz as Ha, bA as no, bB as tt, bC as at, bD as nt, bE as ot, bF as oo, bG as rt, bH as lt, bI as it, bJ as st, bK as ct, bL as dt, bM as ht, bN as gt, bO as pt, bP as ut, bQ as yt, bR as vt, bS as mt, bT as At, bU as kt, bV as Mt, bW as ft, bX as bt, bY as It, bZ as Ct, b_ as wt, b$ as xt, c0 as Et, c1 as Lt, c2 as Bt, c3 as c0, c4 as d0 } from "../input-r2MHVbqO.mjs";
|
|
3
|
-
import { c7 as
|
|
2
|
+
import { c7 as L7, cd as B7, ce as z7, cf as S7, cg as D7, ch as R7, ci as G7, cj as O7, c8 as F7, ck as j7, cl as Q7, cm as K7, cn as V7, co as N7, cp as Z7, cq as Y7, cr as T7, cs as q7, ct as U7, cu as H7, c9 as W7, cv as J7, ca as P7, cb as X7, cw as _7, cx as $7, cy as eu, cz as tu, cN as au, cA as nu, c6 as ou, cP as ru, cB as lu, cC as iu, cD as su, cE as cu, cF as du, cG as hu, cH as gu, cI as pu, cJ as uu, cK as yu, cO as vu, c5 as mu, cL as Au, cM as ku, cQ as Mu, cc as fu, cR as bu, cS as Iu, cT as Cu } from "../input-r2MHVbqO.mjs";
|
|
4
3
|
import { isNonEmptyString as na, isArray as h0, isString as Ja, isNumber as g0, isBoolean as p0, isUndefined as jo } from "@sniptt/guards";
|
|
5
4
|
import * as l from "react";
|
|
6
5
|
import aa, { useState as N, useRef as Ze, useEffect as K, useContext as $a, createContext as Qo, useLayoutEffect as u0, useCallback as Ko, useImperativeHandle as y0, useMemo as Vo, useId as v0 } from "react";
|
|
@@ -9272,9 +9271,9 @@ export {
|
|
|
9272
9271
|
No as ACCENT_DARK,
|
|
9273
9272
|
Vc as ACCENT_LIGHT,
|
|
9274
9273
|
Kn as ANIMATION,
|
|
9275
|
-
|
|
9274
|
+
L7 as AVATAR_PROPERTIES_BY_SIZE,
|
|
9276
9275
|
jp as AdvancedSettingsToggle,
|
|
9277
|
-
|
|
9276
|
+
B7 as AnimatedButton,
|
|
9278
9277
|
M8 as AnimatedCheckmark,
|
|
9279
9278
|
p7 as AnimatedCircleLoading,
|
|
9280
9279
|
u7 as AnimatedContainer,
|
|
@@ -9282,7 +9281,7 @@ export {
|
|
|
9282
9281
|
v7 as AnimatedEaseInOut,
|
|
9283
9282
|
kp as AnimatedExpandableContainer,
|
|
9284
9283
|
m7 as AnimatedFadeOut,
|
|
9285
|
-
|
|
9284
|
+
z7 as AnimatedLightIconButton,
|
|
9286
9285
|
Mp as AnimatedPlaceholder,
|
|
9287
9286
|
fp as AnimatedPlaceholderEmptyContainer,
|
|
9288
9287
|
wp as AnimatedPlaceholderEmptySubTitle,
|
|
@@ -9303,7 +9302,7 @@ export {
|
|
|
9303
9302
|
Fs as BACKGROUND,
|
|
9304
9303
|
wa as BACKGROUND_DARK,
|
|
9305
9304
|
xa as BACKGROUND_LIGHT,
|
|
9306
|
-
|
|
9305
|
+
S7 as BASE_CODE_EDITOR_THEME_ID,
|
|
9307
9306
|
Yc as BLUR_DARK,
|
|
9308
9307
|
Tc as BLUR_LIGHT,
|
|
9309
9308
|
Mr as BORDER_COMMON,
|
|
@@ -9313,7 +9312,7 @@ export {
|
|
|
9313
9312
|
Wc as BOX_SHADOW_LIGHT,
|
|
9314
9313
|
A8 as Banner,
|
|
9315
9314
|
ao as Button,
|
|
9316
|
-
|
|
9315
|
+
D7 as ButtonGroup,
|
|
9317
9316
|
Tp as CAL_LINK,
|
|
9318
9317
|
Jc as CODE_DARK,
|
|
9319
9318
|
Pc as CODE_LIGHT,
|
|
@@ -9323,37 +9322,37 @@ export {
|
|
|
9323
9322
|
Sp as CardContent,
|
|
9324
9323
|
Dp as CardFooter,
|
|
9325
9324
|
Rp as CardHeader,
|
|
9326
|
-
|
|
9325
|
+
R7 as CardPicker,
|
|
9327
9326
|
Qn as Checkbox,
|
|
9328
|
-
|
|
9327
|
+
G7 as CheckboxAccent,
|
|
9329
9328
|
l0 as CheckboxShape,
|
|
9330
9329
|
i0 as CheckboxSize,
|
|
9331
|
-
|
|
9332
|
-
|
|
9330
|
+
O7 as CheckboxVariant,
|
|
9331
|
+
F7 as Checkmark,
|
|
9333
9332
|
nr as Chip,
|
|
9334
9333
|
T2 as ChipAccent,
|
|
9335
9334
|
Y2 as ChipSize,
|
|
9336
9335
|
ar as ChipVariant,
|
|
9337
9336
|
up as CircularProgressBar,
|
|
9338
9337
|
Ps as ClickToActionLink,
|
|
9339
|
-
|
|
9340
|
-
|
|
9338
|
+
j7 as CodeEditor,
|
|
9339
|
+
Q7 as ColorPickerButton,
|
|
9341
9340
|
s0 as ColorSample,
|
|
9342
|
-
|
|
9343
|
-
|
|
9341
|
+
K7 as ColorSchemeCard,
|
|
9342
|
+
V7 as ColorSchemePicker,
|
|
9344
9343
|
f8 as CommandBlock,
|
|
9345
9344
|
Qp as ContactLink,
|
|
9346
|
-
|
|
9345
|
+
N7 as CoreEditorHeader,
|
|
9347
9346
|
js as DARK_BACKGROUND,
|
|
9348
9347
|
Qs as DARK_MOVING_IMAGE,
|
|
9349
9348
|
bp as EMPTY_PLACEHOLDER_TRANSITION_PROPS,
|
|
9350
9349
|
fr as FONT_COMMON,
|
|
9351
9350
|
br as FONT_DARK,
|
|
9352
9351
|
Ir as FONT_LIGHT,
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9356
|
-
|
|
9352
|
+
Z7 as FloatingButton,
|
|
9353
|
+
Y7 as FloatingButtonGroup,
|
|
9354
|
+
T7 as FloatingIconButton,
|
|
9355
|
+
q7 as FloatingIconButtonGroup,
|
|
9357
9356
|
tc as GITHUB_LINK,
|
|
9358
9357
|
R as GRAY_SCALE_DARK,
|
|
9359
9358
|
zt as GRAY_SCALE_DARK_ALPHA,
|
|
@@ -9420,8 +9419,8 @@ export {
|
|
|
9420
9419
|
dd as IconBroadcast,
|
|
9421
9420
|
hd as IconBrowserMaximize,
|
|
9422
9421
|
gd as IconBuildingSkyscraper,
|
|
9423
|
-
|
|
9424
|
-
|
|
9422
|
+
U7 as IconButton,
|
|
9423
|
+
H7 as IconButtonGroup,
|
|
9425
9424
|
Md as IconCalendar,
|
|
9426
9425
|
pd as IconCalendarDue,
|
|
9427
9426
|
ud as IconCalendarEvent,
|
|
@@ -9546,7 +9545,7 @@ export {
|
|
|
9546
9545
|
v3 as IconFileText,
|
|
9547
9546
|
m3 as IconFileUpload,
|
|
9548
9547
|
A3 as IconFileZip,
|
|
9549
|
-
|
|
9548
|
+
W7 as IconFilter,
|
|
9550
9549
|
M3 as IconFilterCog,
|
|
9551
9550
|
f3 as IconFilterOff,
|
|
9552
9551
|
b3 as IconFilterPlus,
|
|
@@ -9617,7 +9616,7 @@ export {
|
|
|
9617
9616
|
Eh as IconListCheck,
|
|
9618
9617
|
Lh as IconListDetails,
|
|
9619
9618
|
Bh as IconListNumbers,
|
|
9620
|
-
|
|
9619
|
+
J7 as IconListViewGrip,
|
|
9621
9620
|
Sh as IconLoader,
|
|
9622
9621
|
Rh as IconLock,
|
|
9623
9622
|
E8 as IconLockCustom,
|
|
@@ -9637,7 +9636,7 @@ export {
|
|
|
9637
9636
|
L8 as IconMicrosoft,
|
|
9638
9637
|
B8 as IconMicrosoftCalendar,
|
|
9639
9638
|
z8 as IconMicrosoftOutlook,
|
|
9640
|
-
|
|
9639
|
+
P7 as IconMinus,
|
|
9641
9640
|
Hh as IconMoneybag,
|
|
9642
9641
|
Wh as IconMoodSmile,
|
|
9643
9642
|
Jh as IconMoon,
|
|
@@ -9694,7 +9693,7 @@ export {
|
|
|
9694
9693
|
Zg as IconRocket,
|
|
9695
9694
|
Tg as IconRotate,
|
|
9696
9695
|
Yg as IconRotate2,
|
|
9697
|
-
|
|
9696
|
+
X7 as IconSearch,
|
|
9698
9697
|
qg as IconSend,
|
|
9699
9698
|
Hg as IconServer,
|
|
9700
9699
|
Ug as IconServer2,
|
|
@@ -9804,7 +9803,7 @@ export {
|
|
|
9804
9803
|
ap as IllustrationIconUser,
|
|
9805
9804
|
_ as IllustrationIconWrapper,
|
|
9806
9805
|
rp as Info,
|
|
9807
|
-
|
|
9806
|
+
_7 as InsideButton,
|
|
9808
9807
|
Ds as JsonArrayNode,
|
|
9809
9808
|
yr as JsonNestedNode,
|
|
9810
9809
|
ur as JsonNode,
|
|
@@ -9815,9 +9814,9 @@ export {
|
|
|
9815
9814
|
dn as JsonValueNode,
|
|
9816
9815
|
sl as LINK_CHIP_CLICK_OUTSIDE_ID,
|
|
9817
9816
|
gs as Label,
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
|
|
9817
|
+
$7 as LabelPosition,
|
|
9818
|
+
eu as LightButton,
|
|
9819
|
+
tu as LightIconButton,
|
|
9821
9820
|
jn as LightIconButtonGroup,
|
|
9822
9821
|
M5 as LinkChip,
|
|
9823
9822
|
Np as LinkType,
|
|
@@ -9825,10 +9824,10 @@ export {
|
|
|
9825
9824
|
Wa as MAIN_COLORS_DARK,
|
|
9826
9825
|
Ha as MAIN_COLORS_LIGHT,
|
|
9827
9826
|
Ua as MAIN_COLOR_NAMES,
|
|
9828
|
-
|
|
9827
|
+
au as MOBILE_VIEWPORT,
|
|
9829
9828
|
C0 as MODAL,
|
|
9830
9829
|
Ks as MOVING_IMAGE,
|
|
9831
|
-
|
|
9830
|
+
nu as MainButton,
|
|
9832
9831
|
Wp as MenuItem,
|
|
9833
9832
|
Jp as MenuItemAvatar,
|
|
9834
9833
|
Pp as MenuItemDraggable,
|
|
@@ -9850,21 +9849,21 @@ export {
|
|
|
9850
9849
|
Sc as NavigationBarItem,
|
|
9851
9850
|
s7 as NotificationCounter,
|
|
9852
9851
|
Rt as OverflowingTextWithTooltip,
|
|
9853
|
-
|
|
9852
|
+
ou as Pill,
|
|
9854
9853
|
yp as ProgressBar,
|
|
9855
|
-
|
|
9854
|
+
ru as REACT_APP_SERVER_BASE_URL,
|
|
9856
9855
|
ta as RGBA,
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9856
|
+
lu as Radio,
|
|
9857
|
+
iu as RadioGroup,
|
|
9858
|
+
su as RadioSize,
|
|
9860
9859
|
Vp as RawLink,
|
|
9861
|
-
|
|
9860
|
+
cu as RoundedIconButton,
|
|
9862
9861
|
cc as RoundedLink,
|
|
9863
9862
|
b0 as SECONDARY_COLORS_DARK,
|
|
9864
9863
|
Kc as SECONDARY_COLORS_LIGHT,
|
|
9865
9864
|
$c as SNACK_BAR_DARK,
|
|
9866
9865
|
e5 as SNACK_BAR_LIGHT,
|
|
9867
|
-
|
|
9866
|
+
du as SearchInput,
|
|
9868
9867
|
Fp as Section,
|
|
9869
9868
|
Gp as SectionAlignment,
|
|
9870
9869
|
Op as SectionFontColor,
|
|
@@ -9884,9 +9883,9 @@ export {
|
|
|
9884
9883
|
fn as StyledMenuItemSelect,
|
|
9885
9884
|
Hp as StyledNoIconFiller,
|
|
9886
9885
|
kr as StyledRightMenuItemContextualText,
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9886
|
+
hu as StyledTabButton,
|
|
9887
|
+
gu as StyledTabContainer,
|
|
9888
|
+
pu as StyledTabHover,
|
|
9890
9889
|
pp as StyledText,
|
|
9891
9890
|
ps as StyledTextContent,
|
|
9892
9891
|
us as StyledTextWrapper,
|
|
@@ -9900,40 +9899,40 @@ export {
|
|
|
9900
9899
|
Yt as TRANSPARENT_COLORS_DARK,
|
|
9901
9900
|
Ne as TRANSPARENT_COLORS_LIGHT,
|
|
9902
9901
|
qp as TWENTY_PRICING_LINK,
|
|
9903
|
-
|
|
9904
|
-
|
|
9902
|
+
uu as TabButton,
|
|
9903
|
+
yu as TabContent,
|
|
9905
9904
|
Hn as Tag,
|
|
9906
9905
|
zo as ThemeContext,
|
|
9907
|
-
|
|
9906
|
+
vu as ThemeContextProvider,
|
|
9908
9907
|
Oo as Toggle,
|
|
9909
9908
|
er as TooltipDelay,
|
|
9910
9909
|
k2 as TooltipPosition,
|
|
9911
9910
|
Yp as UndecoratedLink,
|
|
9912
9911
|
xr as VISIBILITY_HIDDEN,
|
|
9913
9912
|
f0 as VisibilityHidden,
|
|
9914
|
-
|
|
9915
|
-
|
|
9913
|
+
mu as VisibilityHiddenInput,
|
|
9914
|
+
Au as baseTransitionTiming,
|
|
9916
9915
|
Pl as createState,
|
|
9917
|
-
|
|
9916
|
+
ku as getBaseCodeEditorTheme,
|
|
9918
9917
|
Lo as getCommonStyles,
|
|
9919
9918
|
Ts as getDisplayValueByUrlType,
|
|
9920
9919
|
Gs as getExpandableAnimationConfig,
|
|
9921
9920
|
f7 as getMainColorNameFromPaletteColorName,
|
|
9922
9921
|
g7 as getNextThemeColor,
|
|
9923
9922
|
b7 as getOsControlSymbol,
|
|
9924
|
-
|
|
9923
|
+
Mu as getOsShortcutSeparator,
|
|
9925
9924
|
vr as getTransitionValues,
|
|
9926
9925
|
c0 as getUserDevice,
|
|
9927
9926
|
cr as iconsState,
|
|
9928
|
-
|
|
9927
|
+
fu as invalidAvatarUrlsState,
|
|
9929
9928
|
Ls as isArray,
|
|
9930
9929
|
ko as isNavigationModifierPressed,
|
|
9931
9930
|
Ap as isTwoFirstDepths,
|
|
9932
|
-
|
|
9933
|
-
|
|
9931
|
+
bu as stringToThemeColor,
|
|
9932
|
+
Iu as stringToThemeColorP3String,
|
|
9934
9933
|
Xl as themeColorSchema,
|
|
9935
9934
|
np as useIcons,
|
|
9936
|
-
|
|
9935
|
+
Cu as useIsMobile,
|
|
9937
9936
|
Da as useJsonTreeContextOrThrow,
|
|
9938
9937
|
B2 as useMouseDownNavigation,
|
|
9939
9938
|
vp as useProgressAnimation,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twenty-sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6-alpha",
|
|
4
4
|
"main": "dist/index.cjs",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,13 +9,12 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"README.md",
|
|
13
|
+
"package.json"
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "npx rimraf dist && npx vite build",
|
|
17
|
-
"
|
|
18
|
-
"postpack": "tsx ../twenty-utils/pack-scripts/postpack.ts"
|
|
17
|
+
"prepublishOnly": "npx rimraf dist && tsx ../twenty-utils/pack-scripts/prepack.ts && npx vite build && tsx ../twenty-utils/pack-scripts/postpack.ts"
|
|
19
18
|
},
|
|
20
19
|
"keywords": [
|
|
21
20
|
"twenty",
|
|
@@ -66,12 +65,33 @@
|
|
|
66
65
|
"lodash.camelcase": "^4.3.0",
|
|
67
66
|
"react": "^18.2.0",
|
|
68
67
|
"react-dom": "^18.2.0",
|
|
68
|
+
"twenty-shared": "workspace:*",
|
|
69
|
+
"twenty-ui": "workspace:*",
|
|
69
70
|
"typescript": "^5.9.2",
|
|
70
71
|
"uuid": "^13.0.0",
|
|
71
72
|
"vite": "^7.0.0",
|
|
72
73
|
"vite-tsconfig-paths": "^4.2.1",
|
|
73
74
|
"zod": "^4.1.11"
|
|
74
75
|
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@prettier/sync": "^0.5.2",
|
|
78
|
+
"@storybook/addon-vitest": "^10.1.11",
|
|
79
|
+
"@storybook/react-vite": "^10.1.11",
|
|
80
|
+
"@types/archiver": "^6.0.0",
|
|
81
|
+
"@types/fs-extra": "^11.0.0",
|
|
82
|
+
"@types/inquirer": "^9.0.0",
|
|
83
|
+
"@types/lodash.camelcase": "^4.3.7",
|
|
84
|
+
"@types/node": "^24.0.0",
|
|
85
|
+
"@types/react": "18.2.66",
|
|
86
|
+
"@types/react-dom": "18.2.22",
|
|
87
|
+
"@vitest/browser-playwright": "^4.0.17",
|
|
88
|
+
"playwright": "^1.56.1",
|
|
89
|
+
"storybook": "^10.1.11",
|
|
90
|
+
"ts-morph": "^25.0.0",
|
|
91
|
+
"tsx": "^4.7.0",
|
|
92
|
+
"vite-plugin-dts": "^4.5.4",
|
|
93
|
+
"wait-on": "^7.2.0"
|
|
94
|
+
},
|
|
75
95
|
"engines": {
|
|
76
96
|
"node": "^24.5.0",
|
|
77
97
|
"yarn": "^4.0.2"
|