@workos-inc/widgets 1.20.3-next.1793998900035 → 1.21.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/CHANGELOG.md +3 -8
- package/dist/cjs/widgets/organization-switcher/organization-switcher.cjs +2 -2
- package/dist/cjs/widgets/organization-switcher/organization-switcher.cjs.map +1 -1
- package/dist/cjs/widgets/pipes/pipes-connections.cjs +15 -15
- package/dist/cjs/widgets/pipes/pipes-connections.cjs.map +1 -1
- package/dist/cjs/widgets/pipes/pipes-credential-attribution.cjs +2 -2
- package/dist/cjs/widgets/pipes/pipes-credential-attribution.cjs.map +1 -1
- package/dist/cjs/widgets/pipes/pipes.cjs +6 -6
- package/dist/cjs/widgets/pipes/pipes.cjs.map +1 -1
- package/dist/cjs/widgets/pipes-admin/pipes-admin.cjs +15 -15
- package/dist/cjs/widgets/pipes-admin/pipes-admin.cjs.map +1 -1
- package/dist/cjs/widgets/user-sessions/user-sessions.cjs +1 -1
- package/dist/cjs/widgets/user-sessions/user-sessions.cjs.map +1 -1
- package/dist/esm/widgets/organization-switcher/organization-switcher.js +2 -2
- package/dist/esm/widgets/organization-switcher/organization-switcher.js.map +1 -1
- package/dist/esm/widgets/pipes/pipes-connections.js +15 -15
- package/dist/esm/widgets/pipes/pipes-connections.js.map +1 -1
- package/dist/esm/widgets/pipes/pipes-credential-attribution.js +2 -2
- package/dist/esm/widgets/pipes/pipes-credential-attribution.js.map +1 -1
- package/dist/esm/widgets/pipes/pipes.js +6 -6
- package/dist/esm/widgets/pipes/pipes.js.map +1 -1
- package/dist/esm/widgets/pipes-admin/pipes-admin.js +15 -15
- package/dist/esm/widgets/pipes-admin/pipes-admin.js.map +1 -1
- package/dist/esm/widgets/user-sessions/user-sessions.js +1 -1
- package/dist/esm/widgets/user-sessions/user-sessions.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/organization-switcher/organization-switcher.tsx +2 -2
- package/src/widgets/pipes/pipes-connections.tsx +15 -15
- package/src/widgets/pipes/pipes-credential-attribution.tsx +2 -2
- package/src/widgets/pipes/pipes.tsx +6 -6
- package/src/widgets/pipes-admin/pipes-admin.tsx +15 -15
- package/src/widgets/user-sessions/user-sessions.tsx +1 -1
|
@@ -74,7 +74,7 @@ const OrganizationSwitcher: React.FC<OrganizationSwitcherProps> = ({
|
|
|
74
74
|
variant={variant}
|
|
75
75
|
{...domProps}
|
|
76
76
|
message={translate({
|
|
77
|
-
id: "
|
|
77
|
+
id: "aZ7eyn",
|
|
78
78
|
defaultMessage: "No organizations found",
|
|
79
79
|
description:
|
|
80
80
|
"Shown in the disabled organization switcher when the user belongs to no organizations",
|
|
@@ -86,7 +86,7 @@ const OrganizationSwitcher: React.FC<OrganizationSwitcherProps> = ({
|
|
|
86
86
|
const currentOrganizationName =
|
|
87
87
|
currentOrganization?.name ??
|
|
88
88
|
translate({
|
|
89
|
-
id: "
|
|
89
|
+
id: "OLi4Va",
|
|
90
90
|
defaultMessage: "Select an organization",
|
|
91
91
|
description:
|
|
92
92
|
"Placeholder in the organization switcher trigger when the user has organizations but none is active",
|
|
@@ -212,7 +212,7 @@ const ConnectionNameField: React.FC<ConnectionNameFieldProps> = ({
|
|
|
212
212
|
const translate = useTranslation();
|
|
213
213
|
const placeholder = translate({
|
|
214
214
|
defaultMessage: "e.g. Marketing",
|
|
215
|
-
id: "
|
|
215
|
+
id: "pWC98E",
|
|
216
216
|
description: "Placeholder for the connection name input",
|
|
217
217
|
});
|
|
218
218
|
|
|
@@ -222,14 +222,14 @@ const ConnectionNameField: React.FC<ConnectionNameFieldProps> = ({
|
|
|
222
222
|
<Label htmlFor={id}>
|
|
223
223
|
<Translation
|
|
224
224
|
defaultMessage="Name"
|
|
225
|
-
id="
|
|
225
|
+
id="KdgU9T"
|
|
226
226
|
description="Label for the connection name input"
|
|
227
227
|
/>
|
|
228
228
|
</Label>
|
|
229
229
|
<Text size="1" color="gray">
|
|
230
230
|
<Translation
|
|
231
231
|
defaultMessage="Optional"
|
|
232
|
-
id="
|
|
232
|
+
id="2Yy441"
|
|
233
233
|
description="Hint beside the connection name input saying it can be left empty"
|
|
234
234
|
/>
|
|
235
235
|
</Text>
|
|
@@ -291,7 +291,7 @@ const RenameConnectionDialog: React.FC<RenameConnectionDialogProps> = ({
|
|
|
291
291
|
|
|
292
292
|
const placeholder = translate({
|
|
293
293
|
defaultMessage: "e.g. Marketing",
|
|
294
|
-
id: "
|
|
294
|
+
id: "pWC98E",
|
|
295
295
|
description: "Placeholder for the connection name input",
|
|
296
296
|
});
|
|
297
297
|
|
|
@@ -301,7 +301,7 @@ const RenameConnectionDialog: React.FC<RenameConnectionDialogProps> = ({
|
|
|
301
301
|
<Dialog.Title size="3" weight="bold">
|
|
302
302
|
<Translation
|
|
303
303
|
defaultMessage="Rename {integrationName} connection"
|
|
304
|
-
id="
|
|
304
|
+
id="c1jT5Q"
|
|
305
305
|
description="Dialog title for renaming one connection to a provider"
|
|
306
306
|
values={{ integrationName }}
|
|
307
307
|
/>
|
|
@@ -309,7 +309,7 @@ const RenameConnectionDialog: React.FC<RenameConnectionDialogProps> = ({
|
|
|
309
309
|
<Dialog.Description color="gray" mt="1">
|
|
310
310
|
<Translation
|
|
311
311
|
defaultMessage="Give this connection a name to tell it apart from your other {integrationName} connections."
|
|
312
|
-
id="
|
|
312
|
+
id="Ptf2r1"
|
|
313
313
|
description="Explains what a connection name is for"
|
|
314
314
|
values={{ integrationName }}
|
|
315
315
|
/>
|
|
@@ -321,7 +321,7 @@ const RenameConnectionDialog: React.FC<RenameConnectionDialogProps> = ({
|
|
|
321
321
|
{errorMessage ?? (
|
|
322
322
|
<Translation
|
|
323
323
|
defaultMessage="An error occurred while renaming this connection. Please try again."
|
|
324
|
-
id="
|
|
324
|
+
id="0grPwn"
|
|
325
325
|
description="Error message when renaming a connection fails"
|
|
326
326
|
/>
|
|
327
327
|
)}
|
|
@@ -335,7 +335,7 @@ const RenameConnectionDialog: React.FC<RenameConnectionDialogProps> = ({
|
|
|
335
335
|
{warning.code === DUPLICATE_LABEL_WARNING ? (
|
|
336
336
|
<Translation
|
|
337
337
|
defaultMessage="Saved. Another {integrationName} connection already uses this name, so you may want to pick one that tells them apart."
|
|
338
|
-
id="
|
|
338
|
+
id="eB4eyQ"
|
|
339
339
|
description="Notice after renaming a connection to a name another connection to the same provider already has"
|
|
340
340
|
values={{ integrationName }}
|
|
341
341
|
/>
|
|
@@ -368,7 +368,7 @@ const RenameConnectionDialog: React.FC<RenameConnectionDialogProps> = ({
|
|
|
368
368
|
<Label htmlFor={`rename-connection-${installation.id}`}>
|
|
369
369
|
<Translation
|
|
370
370
|
defaultMessage="Name"
|
|
371
|
-
id="
|
|
371
|
+
id="KdgU9T"
|
|
372
372
|
description="Label for the connection name input"
|
|
373
373
|
/>
|
|
374
374
|
</Label>
|
|
@@ -389,7 +389,7 @@ const RenameConnectionDialog: React.FC<RenameConnectionDialogProps> = ({
|
|
|
389
389
|
{warnings.length > 0 ? (
|
|
390
390
|
<Translation
|
|
391
391
|
defaultMessage="Done"
|
|
392
|
-
id="
|
|
392
|
+
id="YlARFG"
|
|
393
393
|
description="Button to close the rename dialog after a name was saved with a warning"
|
|
394
394
|
/>
|
|
395
395
|
) : (
|
|
@@ -408,7 +408,7 @@ const RenameConnectionDialog: React.FC<RenameConnectionDialogProps> = ({
|
|
|
408
408
|
>
|
|
409
409
|
<Translation
|
|
410
410
|
defaultMessage="Save"
|
|
411
|
-
id="
|
|
411
|
+
id="JmvID+"
|
|
412
412
|
description="Button to save a connection's new name"
|
|
413
413
|
/>
|
|
414
414
|
</Button>
|
|
@@ -435,7 +435,7 @@ const ConnectionCountStatus: React.FC<ConnectionCountStatusProps> = ({
|
|
|
435
435
|
<Status state="neutral">
|
|
436
436
|
<Translation
|
|
437
437
|
defaultMessage="{count} connections"
|
|
438
|
-
id="
|
|
438
|
+
id="ZarniP"
|
|
439
439
|
description="Status for a provider grouping two or more connections, giving how many"
|
|
440
440
|
values={{ count }}
|
|
441
441
|
/>
|
|
@@ -447,7 +447,7 @@ const RenameMenuLabel: React.FC = () => {
|
|
|
447
447
|
return (
|
|
448
448
|
<Translation
|
|
449
449
|
defaultMessage="Rename"
|
|
450
|
-
id="
|
|
450
|
+
id="iiQbUM"
|
|
451
451
|
description="Menu option to rename one connection"
|
|
452
452
|
/>
|
|
453
453
|
);
|
|
@@ -457,7 +457,7 @@ const ConnectAnotherAccountMenuLabel: React.FC = () => {
|
|
|
457
457
|
return (
|
|
458
458
|
<Translation
|
|
459
459
|
defaultMessage="Connect another account"
|
|
460
|
-
id="
|
|
460
|
+
id="SNK0to"
|
|
461
461
|
description="Menu option to add another connection to the same provider"
|
|
462
462
|
/>
|
|
463
463
|
);
|
|
@@ -467,7 +467,7 @@ const AddConnectionButtonLabel: React.FC = () => {
|
|
|
467
467
|
return (
|
|
468
468
|
<Translation
|
|
469
469
|
defaultMessage="Add connection"
|
|
470
|
-
id="
|
|
470
|
+
id="DFzo7c"
|
|
471
471
|
description="Button to add another connection to a provider that already has several"
|
|
472
472
|
/>
|
|
473
473
|
);
|
|
@@ -30,7 +30,7 @@ function usePipesCredentialAttribution() {
|
|
|
30
30
|
"Shared credentials must be attributed to the signed-in user. The application must omit PipesAdmin's userId prop or pass the signed-in user's WorkOS user ID.",
|
|
31
31
|
description:
|
|
32
32
|
"Configuration error when the host-supplied PipesAdmin user ID differs from the authenticated user",
|
|
33
|
-
id: "
|
|
33
|
+
id: "jhlRXY",
|
|
34
34
|
})
|
|
35
35
|
: !userId
|
|
36
36
|
? translate({
|
|
@@ -38,7 +38,7 @@ function usePipesCredentialAttribution() {
|
|
|
38
38
|
"Shared credentials require an acting WorkOS user. The application must use a user-backed session or supply the acting person's WorkOS user ID through PipesAdmin's userId prop when using an application credential token.",
|
|
39
39
|
description:
|
|
40
40
|
"Configuration guidance for shared credential writes without an acting user; no user ID entry is requested",
|
|
41
|
-
id: "
|
|
41
|
+
id: "LXD0s/",
|
|
42
42
|
})
|
|
43
43
|
: undefined;
|
|
44
44
|
|
|
@@ -2510,7 +2510,7 @@ const SharedConnectionStatus: React.FC<SharedConnectionStatusProps> = ({
|
|
|
2510
2510
|
<Status state="success">
|
|
2511
2511
|
<Translation
|
|
2512
2512
|
defaultMessage="Available"
|
|
2513
|
-
id="
|
|
2513
|
+
id="/jQjSu"
|
|
2514
2514
|
description="Status text for a shared connection the member can use"
|
|
2515
2515
|
/>
|
|
2516
2516
|
</Status>
|
|
@@ -2639,7 +2639,7 @@ const MemberConnectionStatus: React.FC<MemberConnectionStatusProps> = ({
|
|
|
2639
2639
|
) : (
|
|
2640
2640
|
<Translation
|
|
2641
2641
|
defaultMessage="Connected via OAuth"
|
|
2642
|
-
id="
|
|
2642
|
+
id="pJcK/M"
|
|
2643
2643
|
description="Status text for a connection established with OAuth"
|
|
2644
2644
|
/>
|
|
2645
2645
|
)}
|
|
@@ -2652,7 +2652,7 @@ const MemberConnectionStatus: React.FC<MemberConnectionStatusProps> = ({
|
|
|
2652
2652
|
{installation.auth_method === "api_key" ? (
|
|
2653
2653
|
<Translation
|
|
2654
2654
|
defaultMessage="Update your API key"
|
|
2655
|
-
id="
|
|
2655
|
+
id="+YLPTk"
|
|
2656
2656
|
description="Status text for a connection whose API key stopped working"
|
|
2657
2657
|
/>
|
|
2658
2658
|
) : (
|
|
@@ -2815,7 +2815,7 @@ const MemberConnectionActions: React.FC<MemberConnectionActionsProps> = ({
|
|
|
2815
2815
|
<Button variant="secondary" onClick={openApiKey}>
|
|
2816
2816
|
<Translation
|
|
2817
2817
|
defaultMessage="Update key"
|
|
2818
|
-
id="MP
|
|
2818
|
+
id="MP+aOE"
|
|
2819
2819
|
description="Button to replace the API key of a connection that stopped working"
|
|
2820
2820
|
/>
|
|
2821
2821
|
</Button>
|
|
@@ -3143,7 +3143,7 @@ const PipesSections: React.FC<PipesSectionsProps> = ({
|
|
|
3143
3143
|
title={
|
|
3144
3144
|
<Translation
|
|
3145
3145
|
defaultMessage="Shared connections"
|
|
3146
|
-
id="Fcd
|
|
3146
|
+
id="Fcd+bK"
|
|
3147
3147
|
description="Heading for the section listing connections the organization owns"
|
|
3148
3148
|
/>
|
|
3149
3149
|
}
|
|
@@ -3184,7 +3184,7 @@ const PipesSections: React.FC<PipesSectionsProps> = ({
|
|
|
3184
3184
|
title={
|
|
3185
3185
|
<Translation
|
|
3186
3186
|
defaultMessage="Your connections"
|
|
3187
|
-
id="
|
|
3187
|
+
id="+VDI3G"
|
|
3188
3188
|
description="Heading for the section listing the member's own connections"
|
|
3189
3189
|
/>
|
|
3190
3190
|
}
|
|
@@ -1064,7 +1064,7 @@ const DisconnectSharedConnectionDialog: React.FC<
|
|
|
1064
1064
|
<AlertDialog.Title>
|
|
1065
1065
|
<Translation
|
|
1066
1066
|
defaultMessage="Disconnect shared connection"
|
|
1067
|
-
id="
|
|
1067
|
+
id="squg8w"
|
|
1068
1068
|
description="Dialog title for disconnecting an organization-owned connection"
|
|
1069
1069
|
/>
|
|
1070
1070
|
</AlertDialog.Title>
|
|
@@ -1073,7 +1073,7 @@ const DisconnectSharedConnectionDialog: React.FC<
|
|
|
1073
1073
|
<Callout.Text>
|
|
1074
1074
|
<Translation
|
|
1075
1075
|
defaultMessage="An error occurred while disconnecting this connection. Please refresh the page and try again."
|
|
1076
|
-
id="
|
|
1076
|
+
id="4jVbNf"
|
|
1077
1077
|
description="Error message when disconnecting an organization-owned connection fails"
|
|
1078
1078
|
/>
|
|
1079
1079
|
</Callout.Text>
|
|
@@ -1082,7 +1082,7 @@ const DisconnectSharedConnectionDialog: React.FC<
|
|
|
1082
1082
|
<AlertDialog.Description>
|
|
1083
1083
|
<Translation
|
|
1084
1084
|
defaultMessage="Are you sure you want to disconnect the {integrationName} account your organization shares with everyone? Members will lose access to it."
|
|
1085
|
-
id="
|
|
1085
|
+
id="Z6BA1i"
|
|
1086
1086
|
description="Confirmation message for disconnecting an organization-owned connection"
|
|
1087
1087
|
values={{
|
|
1088
1088
|
integrationName: (
|
|
@@ -1163,7 +1163,7 @@ const AdminRow: React.FC<AdminRowProps> = ({
|
|
|
1163
1163
|
const translate = useTranslation();
|
|
1164
1164
|
const actionsTitle = translate({
|
|
1165
1165
|
defaultMessage: "More actions",
|
|
1166
|
-
id: "
|
|
1166
|
+
id: "Uul0bl",
|
|
1167
1167
|
description: "Accessible title for a provider row's overflow actions menu",
|
|
1168
1168
|
});
|
|
1169
1169
|
const promoted = actions.find((action) => action.promoted);
|
|
@@ -1267,7 +1267,7 @@ const ConnectedViaStatus: React.FC<ConnectedViaStatusProps> = ({ method }) => {
|
|
|
1267
1267
|
) : (
|
|
1268
1268
|
<Translation
|
|
1269
1269
|
defaultMessage="Connected via OAuth"
|
|
1270
|
-
id="
|
|
1270
|
+
id="pJcK/M"
|
|
1271
1271
|
description="Status text for a connection established with OAuth"
|
|
1272
1272
|
/>
|
|
1273
1273
|
)}
|
|
@@ -1280,7 +1280,7 @@ const DisabledForOrganizationStatus: React.FC = () => {
|
|
|
1280
1280
|
<Status state="neutral">
|
|
1281
1281
|
<Translation
|
|
1282
1282
|
defaultMessage="Disabled for your organization"
|
|
1283
|
-
id="
|
|
1283
|
+
id="CtyB4Q"
|
|
1284
1284
|
description="Status for a provider the organization has disabled"
|
|
1285
1285
|
/>
|
|
1286
1286
|
</Status>
|
|
@@ -1355,7 +1355,7 @@ const DisabledStatus: React.FC<DisabledStatusProps> = ({ configuration }) => {
|
|
|
1355
1355
|
<Status state="neutral">
|
|
1356
1356
|
<Translation
|
|
1357
1357
|
defaultMessage="Disabled by developer"
|
|
1358
|
-
id="
|
|
1358
|
+
id="yc3wqV"
|
|
1359
1359
|
description="Status text for a shared connection the developer has disabled"
|
|
1360
1360
|
/>
|
|
1361
1361
|
</Status>
|
|
@@ -1399,7 +1399,7 @@ const SharedConnectionAdminStatus: React.FC<
|
|
|
1399
1399
|
<Status state="warning">
|
|
1400
1400
|
<Translation
|
|
1401
1401
|
defaultMessage="Needs attention"
|
|
1402
|
-
id="
|
|
1402
|
+
id="m2et65"
|
|
1403
1403
|
description="Status for a shared connection that stopped working and needs the admin to fix it"
|
|
1404
1404
|
/>
|
|
1405
1405
|
</Status>
|
|
@@ -1526,14 +1526,14 @@ const SharedConnectionAccountRow: React.FC<SharedConnectionAccountRowProps> = ({
|
|
|
1526
1526
|
) : (
|
|
1527
1527
|
<Translation
|
|
1528
1528
|
defaultMessage="Rotate API key"
|
|
1529
|
-
id="
|
|
1529
|
+
id="H9wfJb"
|
|
1530
1530
|
description="Menu option to rotate an organization-owned API key"
|
|
1531
1531
|
/>
|
|
1532
1532
|
)
|
|
1533
1533
|
) : method === "client_credentials" ? (
|
|
1534
1534
|
<Translation
|
|
1535
1535
|
defaultMessage="Update client credentials"
|
|
1536
|
-
id="
|
|
1536
|
+
id="EapvF+"
|
|
1537
1537
|
description="Menu option to update an organization-owned integration's client credentials"
|
|
1538
1538
|
/>
|
|
1539
1539
|
) : (
|
|
@@ -1683,7 +1683,7 @@ const SharedConnectionAccountRow: React.FC<SharedConnectionAccountRowProps> = ({
|
|
|
1683
1683
|
nested ? null : needsOrganizationCredentials ? (
|
|
1684
1684
|
<Translation
|
|
1685
1685
|
defaultMessage="Enter your organization's OAuth client to make this connectable."
|
|
1686
|
-
id="
|
|
1686
|
+
id="fuTxTU"
|
|
1687
1687
|
description="Second line of a shared connection row whose organization OAuth credentials have not been entered yet"
|
|
1688
1688
|
/>
|
|
1689
1689
|
) : (
|
|
@@ -1832,7 +1832,7 @@ const ProviderSettingsItem: React.FC<ProviderSettingsItemProps> = ({
|
|
|
1832
1832
|
<Status state="neutral">
|
|
1833
1833
|
<Translation
|
|
1834
1834
|
defaultMessage="Not configured"
|
|
1835
|
-
id="
|
|
1835
|
+
id="1n86DJ"
|
|
1836
1836
|
description="Status for a provider whose organization credentials have not been entered yet"
|
|
1837
1837
|
/>
|
|
1838
1838
|
</Status>
|
|
@@ -2004,7 +2004,7 @@ const PipesAdminSections: React.FC<PipesAdminSectionsProps> = ({
|
|
|
2004
2004
|
title={
|
|
2005
2005
|
<Translation
|
|
2006
2006
|
defaultMessage="Shared connections"
|
|
2007
|
-
id="Fcd
|
|
2007
|
+
id="Fcd+bK"
|
|
2008
2008
|
description="Heading for the section listing connections the organization owns"
|
|
2009
2009
|
/>
|
|
2010
2010
|
}
|
|
@@ -2043,14 +2043,14 @@ const PipesAdminSections: React.FC<PipesAdminSectionsProps> = ({
|
|
|
2043
2043
|
title={
|
|
2044
2044
|
<Translation
|
|
2045
2045
|
defaultMessage="Provider settings"
|
|
2046
|
-
id="
|
|
2046
|
+
id="iYyowi"
|
|
2047
2047
|
description="Heading for the section of provider settings governing members' own connections"
|
|
2048
2048
|
/>
|
|
2049
2049
|
}
|
|
2050
2050
|
description={
|
|
2051
2051
|
<Translation
|
|
2052
2052
|
defaultMessage="What members of this organization can connect to, and with which scopes."
|
|
2053
|
-
id="
|
|
2053
|
+
id="au5JER"
|
|
2054
2054
|
description="Description of the provider settings section"
|
|
2055
2055
|
/>
|
|
2056
2056
|
}
|
|
@@ -190,7 +190,7 @@ const UserSession: React.FC<UserSessionProps> = ({
|
|
|
190
190
|
defaultMessage: "Unknown location",
|
|
191
191
|
description:
|
|
192
192
|
"Text for a session whose location could not be determined from its user agent",
|
|
193
|
-
id: "
|
|
193
|
+
id: "uMbGX5",
|
|
194
194
|
});
|
|
195
195
|
const timeAgo = useComparativeReadableDate({
|
|
196
196
|
date: session.lastActivityAt ? new Date(session.lastActivityAt) : null,
|