nucleus-core-ts 0.9.807 → 0.9.809
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/fe/components/IntegrationsPage/components/ConnectionForm.js +1 -1
- package/dist/fe/components/IntegrationsPage/components/CredentialFields.js +1 -1
- package/dist/fe/components/IntegrationsPage/components/CredentialSlotRow.js +3 -1
- package/dist/fe/components/IntegrationsPage/components/EndpointSample.js +1 -1
- package/dist/fe/components/IntegrationsPage/components/FieldMappingRow.js +1 -1
- package/dist/fe/components/IntegrationsPage/components/RunsTab.js +1 -1
- package/dist/fe/components/IntegrationsPage/text/index.d.ts +2 -0
- package/dist/fe/components/IntegrationsPage/text/index.js +3 -1
- package/package.json +1 -1
|
@@ -106,7 +106,7 @@ export function ConnectionForm({ actions, source, loading = false, onSaved }) {
|
|
|
106
106
|
className: theme.button.primary,
|
|
107
107
|
disabled: saving,
|
|
108
108
|
type: "submit",
|
|
109
|
-
children: saving ?
|
|
109
|
+
children: saving ? labels.common.saving : source ? labels.connections.saveChanges : labels.connections.createSubmit
|
|
110
110
|
})
|
|
111
111
|
})
|
|
112
112
|
]
|
|
@@ -165,7 +165,7 @@ export function CredentialFields({ actions, source, loading = false }) {
|
|
|
165
165
|
disabled: busy,
|
|
166
166
|
onClick: handleSave,
|
|
167
167
|
type: "button",
|
|
168
|
-
children: busy ?
|
|
168
|
+
children: busy ? labels.common.saving : labels.auth.saveCredentials
|
|
169
169
|
})
|
|
170
170
|
}) : null
|
|
171
171
|
]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { cn } from '../../../utils/cn';
|
|
4
|
+
import { useLabels } from '../text/context';
|
|
4
5
|
import { integrationsPageTheme } from '../theme';
|
|
5
6
|
import { slotHint, slotLabel } from './credentialSlots';
|
|
6
7
|
import { describedBy } from './formSupport';
|
|
@@ -15,6 +16,7 @@ import { Badge, Field } from './Primitives';
|
|
|
15
16
|
* accident, roughly once.
|
|
16
17
|
*/ const theme = integrationsPageTheme;
|
|
17
18
|
export function CredentialSlotRow({ slot, source, value, maskedHint, disabled, onChange, onClear }) {
|
|
19
|
+
const labels = useLabels();
|
|
18
20
|
const id = `credential-${slot}`;
|
|
19
21
|
const label = slotLabel(slot, source);
|
|
20
22
|
const stored = maskedHint !== null && maskedHint.length > 0;
|
|
@@ -42,7 +44,7 @@ export function CredentialSlotRow({ slot, source, value, maskedHint, disabled, o
|
|
|
42
44
|
children: [
|
|
43
45
|
/*#__PURE__*/ _jsx(Badge, {
|
|
44
46
|
tone: stored ? 'success' : 'neutral',
|
|
45
|
-
children: stored ?
|
|
47
|
+
children: stored ? labels.auth.stored : labels.auth.notSet
|
|
46
48
|
}),
|
|
47
49
|
stored ? /*#__PURE__*/ _jsx("span", {
|
|
48
50
|
className: cn(theme.field.hint, 'truncate font-mono'),
|
|
@@ -62,7 +62,7 @@ export function EndpointSample({ endpoint, actions }) {
|
|
|
62
62
|
disabled: store.sampling || unfilled > 0,
|
|
63
63
|
onClick: run,
|
|
64
64
|
type: "button",
|
|
65
|
-
children: store.sampling ? 'Sampling…' :
|
|
65
|
+
children: store.sampling ? 'Sampling…' : labels.endpoints.sampleSend
|
|
66
66
|
})
|
|
67
67
|
]
|
|
68
68
|
}),
|
|
@@ -63,7 +63,7 @@ export function FieldMappingRow({ row, index, sourceListId, targetFields, isFirs
|
|
|
63
63
|
children: [
|
|
64
64
|
/*#__PURE__*/ _jsx("option", {
|
|
65
65
|
value: "",
|
|
66
|
-
children:
|
|
66
|
+
children: labels.mappings.notSet
|
|
67
67
|
}),
|
|
68
68
|
targetFields.map((field)=>/*#__PURE__*/ _jsx("option", {
|
|
69
69
|
value: field,
|
|
@@ -28,7 +28,7 @@ export function RunsTab({ actions, onSubscribeProgress }) {
|
|
|
28
28
|
}) : /*#__PURE__*/ _jsx(Notice, {
|
|
29
29
|
tone: "info",
|
|
30
30
|
title: labels.runs.chooseMappingTitle,
|
|
31
|
-
children:
|
|
31
|
+
children: labels.runs.chooseMappingBody
|
|
32
32
|
}),
|
|
33
33
|
/*#__PURE__*/ _jsx(RunHistory, {
|
|
34
34
|
actions: actions,
|
|
@@ -55,7 +55,9 @@
|
|
|
55
55
|
editTitle: 'Connection',
|
|
56
56
|
newTitle: 'New connection',
|
|
57
57
|
enabledBadge: 'Enabled',
|
|
58
|
-
disabledBadge: 'Off'
|
|
58
|
+
disabledBadge: 'Off',
|
|
59
|
+
saveChanges: 'Save changes',
|
|
60
|
+
createSubmit: 'Create connection'
|
|
59
61
|
},
|
|
60
62
|
runs: {
|
|
61
63
|
summary: (target, writeMode, missing)=>`Writes into ${target} · ${writeMode} · missing rows: ${missing}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nucleus-core-ts",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.809",
|
|
4
4
|
"description": "Production-ready, enterprise-grade TypeScript framework for building multi-tenant APIs",
|
|
5
5
|
"author": "Hidayet Can Özcan <hidayetcan@gmail.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|