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.
@@ -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 ? 'Saving…' : source ? 'Save changes' : 'Create connection'
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 ? 'Saving…' : 'Save credentials'
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 ? 'Stored' : 'Not set'
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…' : '{labels.endpoints.sampleSend}'
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: "Not set"
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: "A mapping is what says which endpoint feeds which target entity, and how missing rows are treated. Pick one on the Mappings tab; the history below still lists every run of this connection."
31
+ children: labels.runs.chooseMappingBody
32
32
  }),
33
33
  /*#__PURE__*/ _jsx(RunHistory, {
34
34
  actions: actions,
@@ -62,6 +62,8 @@ export type IntegrationsLabels = {
62
62
  newTitle: string;
63
63
  enabledBadge: string;
64
64
  disabledBadge: string;
65
+ saveChanges: string;
66
+ createSubmit: string;
65
67
  };
66
68
  runs: {
67
69
  /** The one-line summary above the buttons. */
@@ -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.807",
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",