@open-mercato/enterprise 0.6.7 → 0.6.8-canary.319.1.5b4be4bc52

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.
Files changed (59) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/TERMS.md +19 -6
  3. package/dist/modules/record_locks/backend/settings/record-locks/page.js +1 -1
  4. package/dist/modules/record_locks/backend/settings/record-locks/page.js.map +2 -2
  5. package/dist/modules/record_locks/i18n/ko.json +78 -0
  6. package/dist/modules/record_locks/widgets/injection/record-locking/widget.client.js +2 -2
  7. package/dist/modules/record_locks/widgets/injection/record-locking/widget.client.js.map +2 -2
  8. package/dist/modules/security/api/i18n.js +1 -0
  9. package/dist/modules/security/api/i18n.js.map +2 -2
  10. package/dist/modules/security/api/mfa/_shared.js +25 -0
  11. package/dist/modules/security/api/mfa/_shared.js.map +2 -2
  12. package/dist/modules/security/api/mfa/methods/[id]/route.js +1 -1
  13. package/dist/modules/security/api/mfa/methods/[id]/route.js.map +2 -2
  14. package/dist/modules/security/api/mfa/provider/[providername]/route.js +15 -3
  15. package/dist/modules/security/api/mfa/provider/[providername]/route.js.map +2 -2
  16. package/dist/modules/security/api/mfa/recovery-codes/regenerate/route.js +1 -1
  17. package/dist/modules/security/api/mfa/recovery-codes/regenerate/route.js.map +2 -2
  18. package/dist/modules/security/backend/profile/security/page.js +3 -2
  19. package/dist/modules/security/backend/profile/security/page.js.map +2 -2
  20. package/dist/modules/security/backend/security/enforcement/page.js +2 -1
  21. package/dist/modules/security/backend/security/enforcement/page.js.map +2 -2
  22. package/dist/modules/security/backend/security/sudo/page.js +2 -1
  23. package/dist/modules/security/backend/security/sudo/page.js.map +2 -2
  24. package/dist/modules/security/backend/security/users/page.js +2 -1
  25. package/dist/modules/security/backend/security/users/page.js.map +2 -2
  26. package/dist/modules/security/components/MfaEnrollmentNotice.js +1 -1
  27. package/dist/modules/security/components/MfaEnrollmentNotice.js.map +2 -2
  28. package/dist/modules/security/extension-points.js +17 -0
  29. package/dist/modules/security/extension-points.js.map +7 -0
  30. package/dist/modules/security/i18n/ko.json +487 -0
  31. package/dist/modules/security/lib/enforcement-redirect.js +36 -14
  32. package/dist/modules/security/lib/enforcement-redirect.js.map +2 -2
  33. package/dist/modules/security/setup.js +1 -1
  34. package/dist/modules/security/setup.js.map +2 -2
  35. package/dist/modules/sso/i18n/ko.json +148 -0
  36. package/dist/modules/sso/services/accountLinkingService.js +2 -2
  37. package/dist/modules/sso/services/accountLinkingService.js.map +2 -2
  38. package/dist/modules/system_status_overlays/i18n/ko.json +8 -0
  39. package/package.json +10 -9
  40. package/src/modules/record_locks/backend/settings/record-locks/page.tsx +1 -1
  41. package/src/modules/record_locks/i18n/ko.json +78 -0
  42. package/src/modules/record_locks/widgets/injection/record-locking/widget.client.tsx +2 -2
  43. package/src/modules/security/api/i18n.ts +1 -0
  44. package/src/modules/security/api/mfa/_shared.ts +48 -0
  45. package/src/modules/security/api/mfa/methods/[id]/route.ts +1 -1
  46. package/src/modules/security/api/mfa/provider/[providername]/route.ts +13 -1
  47. package/src/modules/security/api/mfa/recovery-codes/regenerate/route.ts +1 -1
  48. package/src/modules/security/backend/profile/security/page.tsx +3 -2
  49. package/src/modules/security/backend/security/enforcement/page.tsx +2 -1
  50. package/src/modules/security/backend/security/sudo/page.tsx +2 -1
  51. package/src/modules/security/backend/security/users/page.tsx +2 -1
  52. package/src/modules/security/components/MfaEnrollmentNotice.tsx +1 -1
  53. package/src/modules/security/extension-points.ts +14 -0
  54. package/src/modules/security/i18n/ko.json +487 -0
  55. package/src/modules/security/lib/enforcement-redirect.ts +50 -15
  56. package/src/modules/security/setup.ts +1 -1
  57. package/src/modules/sso/i18n/ko.json +148 -0
  58. package/src/modules/sso/services/accountLinkingService.ts +2 -2
  59. package/src/modules/system_status_overlays/i18n/ko.json +8 -0
@@ -1,2 +1,2 @@
1
- [build:enterprise] found 326 entry points
1
+ [build:enterprise] found 328 entry points
2
2
  [build:enterprise] built successfully
package/TERMS.md CHANGED
@@ -70,13 +70,15 @@ LICENSOR: OPEN MERCATO SP. Z O.O. · VERSION 2.2 · EFFECTIVE: JULY 2026
70
70
 
71
71
  5.1. Term; paid access. The Contract begins on the Effective Date stated in the Order Form and remains in force for the billing period stated in the Order Form (the "Billing Period"). The Billing Period constitutes the contractual commitment period for the Contract. Unless either party gives timely notice of non-renewal under Section 5.2, including following Licensee's objection to updated Terms under Section 9.6, or the Contract is terminated earlier in accordance with Section 5.4, the Contract automatically renews for successive Billing Periods of the same length. Licensee's rights to access and use the Software and to receive the services under the Contract apply only during the then-current Billing Period and are subject to payment of the applicable fees in accordance with Section 4.
72
72
 
73
- 5.2. Non-renewal for convenience. Either party may elect not to renew the Contract for convenience by giving written notice to the other party. Non-renewal is effective only at the end of the then-current Billing Period. If the Billing Period is annual, notice of non-renewal must be given at least thirty (30) days before the end of the then-current Billing Period. If the Billing Period is monthly, notice of non-renewal must be given at least seven (7) days before the end of the then-current Billing Period. For clarity, neither party may terminate the Contract for convenience before the end of the then-current Billing Period.
73
+ 5.2. Non-renewal for convenience. Either party may elect not to renew the Contract for convenience by giving written notice to the other party. Non-renewal is effective only at the end of a Billing Period. Notice of non-renewal must be given at least three (3) months in advance and takes effect at the end of the first Billing Period ending on or after expiry of that notice period. For clarity, neither party may terminate the Contract for convenience before the end of the then-current Billing Period.
74
74
 
75
75
  5.3. Suspension and termination for non-payment. If any undisputed fee is not paid when due, Licensor may suspend Licensee's access to the Software, services, and enterprise-only resources until all overdue amounts are paid. Non-payment of undisputed fees constitutes a material breach capable of termination under Section 5.4, and any notice given under this Section 5.3 may also constitute notice of material breach under Section 5.4 if it identifies the non-payment as a material breach. Termination on grounds of non-payment does not relieve Licensee from its obligation to pay all fees due for the then-current Billing Period.
76
76
 
77
77
  5.4. Termination for cause. Either party may terminate the Contract with immediate effect if the other party materially breaches the Contract and fails to cure that breach within ten (10) days after receiving written notice specifying the breach. Either party may also terminate the Contract with immediate effect, to the extent permitted by applicable law, if the other party becomes insolvent, is unable to pay its debts as they fall due, makes an assignment for the benefit of creditors, enters into liquidation, bankruptcy, administration, receivership, restructuring, or similar proceedings, has a receiver, administrator, trustee, or similar officer appointed over all or a material part of its assets, or ceases or threatens to cease carrying on business.
78
78
 
79
- 5.5. Effect of termination. Upon termination, (a) Licensee's rights to access and use the Software as provided under the Contract end as of the effective termination date, (b) Licensor may disable or terminate Licensee's access to enterprise-only channels, materials, repositories, binaries, upgrade packages, updates, and similar resources provided under the Contract, and (c) Licensor's obligation to provide the services in Section 3 ends as of the effective termination date. For clarity, termination of the Contract does not terminate any open-source license terms that may apply to Open-Source Components obtained independently of Licensor's enterprise distribution.
79
+ 5.5. Effect of termination. Subject to Section 5.6, upon termination, (a) Licensee's rights to access and use the Software as provided under the Contract end as of the effective termination date, (b) Licensor may disable or terminate Licensee's access to enterprise-only channels, materials, repositories, binaries, upgrade packages, updates, and similar resources provided under the Contract, and (c) Licensor's obligation to provide the services in Section 3 ends as of the effective termination date. For clarity, termination of the Contract does not terminate any open-source license terms that may apply to Open-Source Components obtained independently of Licensor's enterprise distribution.
80
+
81
+ 5.6. Continued use of the deployed Software after the Contract ends (no vendor lock-in). Notwithstanding Section 5.5(a), Licensor grants Licensee a perpetual, non-exclusive, non-transferable, non-sublicensable license to continue to install, run, and use the Retained Version for Licensee's internal business purposes and within the licensed project scope stated in Section 2.2, where the Contract ends by expiry, by non-renewal under Section 5.2, or by termination for non-payment under Sections 5.3 and 5.4, provided that all fees accrued up to the effective end date have been paid. "Retained Version" means the version of the Software last made available to Licensee by Licensor under the Contract before that date. The Retained Version is provided "as is" and carries no updates, security patches, new features, upgrade packages, enterprise-only resources, or services under Section 3, and Licensor has no obligation to provide any of them. Sections 2.4 (Restrictions), 2.6 (Ownership), 6 (Disclaimer; limitation of liability), and 8.1 (Confidentiality) continue to apply to the Retained Version. This Section 5.6 does not apply where Licensor terminates the Contract under Section 5.4 for an uncured material breach by Licensee other than non-payment, and it does not restore access to the resources described in Section 5.5(b).
80
82
 
81
83
  ### Disclaimer; limitation of liability
82
84
 
@@ -154,6 +156,7 @@ Licensing model
154
156
  Per project, not per seat. The license is charged per Open Mercato project / per monorepo - never per developer or per end user.
155
157
 
156
158
  * Unlimited Seats - no limits on the number of users or servers within a given system, so your licensing never blocks customer or team growth.
159
+ * No vendor lock-in - if the subscription ends, you keep running the version of the enterprise modules you already have, for as long as you want. What stops are updates, security patches, new features and support. The full rule is in the Terms, cl. 5.6.
157
160
  * Revenue-based tiering - the applicable tier is determined by the Licensee's annual revenue.
158
161
  * Usage verification ("Phone Home") - for on-premise deployments, the system reports aggregate user/usage counts to Open Mercato. This enables transparent billing verification without Open Mercato needing standing access to your code repository.
159
162
 
@@ -161,6 +164,15 @@ Project definition: single business domain / department / business purpose or go
161
164
 
162
165
  ### 03 - TIERS
163
166
 
167
+ Starter Pack - where every engagement begins
168
+
169
+ Every engagement starts with the purchase of a Starter Pack license and a sandbox. The license purchase opens the option of any further collaboration - discovery workshops, Proof of Concept and implementation work with Open Mercato and its Implementation Partners. The Starter Pack includes:
170
+
171
+ * Sandbox - an Open Mercato project sandbox for your team and coding agents.
172
+ * 1-hour onboarding session - an introduction to the sandbox, AI-engineering and Open Mercato, run by our Customer Success Manager.
173
+
174
+ The Starter Pack fee is set out in the Order Form / at checkout and applies until the Proof of Concept starts. From POC launch, the subscription is billed according to the tiers below.
175
+
164
176
  Subscription tiers
165
177
 
166
178
  Three tiers scale the level of service with company size. All tiers include the Enterprise Software Package and unlimited seats. Prices are net; annual billing is available at a 10% discount.
@@ -181,7 +193,7 @@ Services by tier
181
193
 
182
194
  | SERVICE / CAPABILITY | BASIC | MEDIUM | ENTERPRISE |
183
195
  |---|---|---|---|
184
- | Enterprise software modules (MFA, SSO & Directory Sync, Record Locking, Agents Orchestrator). If your license expires, you can continue using these modules in their last deployed version, but they will no longer receive updates, security patches, new features, or ongoing support. | Included | Included | Included |
196
+ | Enterprise software modules (MFA, SSO & Directory Sync, Record Locking, Agents Orchestrator). If the subscription ends, you keep running the version of these modules you already have (Terms, cl. 5.6); they stop receiving updates, security patches, new features, and support. | Included | Included | Included |
185
197
  | Unlimited users & servers (per instance / project / monorepo) | Included | Included | Included |
186
198
  | Time-limited offer: Open Mercato project sandboxes with dev/staging and production environment, CI/CD and AI SDLC pipeline (backup & 7-day restore) — early access (beta) | 1 active project | 3 active projects | 10 active projects |
187
199
  | Priority support (AI-assisted helpdesk via Discord / ticketing / automatic issue triage by selected Github accounts) | up to 5 Accounts, 1 issue in the pipeline | up to 10 Accounts, includes Discord, 3 issues in the pipeline | Unlimited Accounts, includes Discord, 10 issues in the pipeline |
@@ -237,9 +249,10 @@ How the engagement works
237
249
 
238
250
  Open Mercato with their Implementation Partners works directly with end customers and runs these processes end-to-end. The path is designed to de-risk adoption and transfer AI-engineering capability to customer's team:
239
251
 
240
- 1. Paid discovery workshop - align on the use case, architecture and the way of working.
241
- 2. Paid Proof of Concept - a working, scoped POC that proves value and teaches the customer's team the Open Mercato Way.
242
- 3. Enterprise Subscription - license the platform so your team can extend the system independently, on a safe, certified foundation.
252
+ 1. Starter Pack license & sandbox - every engagement starts here. Purchasing the license opens the option of any further collaboration and gives your team a sandbox from day one.
253
+ 2. Paid discovery workshop - align on the use case, architecture and the way of working.
254
+ 3. Paid Proof of Concept - a working, scoped POC that proves value and teaches the customer's team the Open Mercato Way. From POC launch, the subscription is billed according to the applicable tier (Section 03).
255
+ 4. Enterprise Subscription - license the platform so your team can extend the system independently, on a safe, certified foundation.
243
256
 
244
257
  Implementation Partners. Certified software consultancies handle efficient delivery. The cheaper Basic tier makes the license easy for partners to attach to their projects. Partners do not build or modify the commercial core.
245
258
 
@@ -135,7 +135,7 @@ function RecordLockingSettingsPage() {
135
135
  ]
136
136
  }
137
137
  ),
138
- /* @__PURE__ */ jsx(Alert, { variant: "info", children: /* @__PURE__ */ jsxs(AlertDescription, { children: [
138
+ /* @__PURE__ */ jsx(Alert, { status: "information", children: /* @__PURE__ */ jsxs(AlertDescription, { children: [
139
139
  /* @__PURE__ */ jsxs("p", { children: [
140
140
  /* @__PURE__ */ jsxs("strong", { children: [
141
141
  t("record_locks.settings.strategy_optimistic", "Optimistic"),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../src/modules/record_locks/backend/settings/record-locks/page.tsx"],
4
- "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport Link from 'next/link'\nimport { useT } from '@open-mercato/shared/lib/i18n/context'\nimport { apiCall, apiCallOrThrow } from '@open-mercato/ui/backend/utils/apiCall'\nimport { flash } from '@open-mercato/ui/backend/FlashMessages'\nimport { TagsInput } from '@open-mercato/ui/backend/inputs'\nimport { Button } from '@open-mercato/ui/primitives/button'\nimport { Input } from '@open-mercato/ui/primitives/input'\nimport { Label } from '@open-mercato/ui/primitives/label'\nimport { Alert, AlertDescription } from '@open-mercato/ui/primitives/alert'\nimport { Switch } from '@open-mercato/ui/primitives/switch'\nimport { Spinner } from '@open-mercato/ui/primitives/spinner'\nimport { E } from '@open-mercato/core/generated-shims/entities.ids.generated'\nimport { DEFAULT_RECORD_LOCK_SETTINGS } from '../../../lib/config'\n\ntype RecordLockSettings = {\n enabled: boolean\n strategy: 'optimistic' | 'pessimistic'\n timeoutSeconds: number\n heartbeatSeconds: number\n enabledResources: string[]\n allowForceUnlock: boolean\n allowIncomingOverride: boolean\n notifyOnConflict: boolean\n}\n\nconst DEFAULT_SETTINGS: RecordLockSettings = {\n ...DEFAULT_RECORD_LOCK_SETTINGS,\n}\n\nconst RECORD_LOCK_RESOURCE_ALIASES = [\n 'customers.person',\n 'customers.company',\n 'customers.deal',\n 'sales.quote',\n 'sales.order',\n]\n\nconst RECORD_LOCK_RESOURCE_SUGGESTIONS = Array.from(\n new Set([\n ...Object.values(E).flatMap((moduleEntities) =>\n Object.values(moduleEntities).flatMap((entityId) => {\n if (typeof entityId !== 'string' || !entityId.includes(':')) return []\n return [entityId.replace(':', '.')]\n })\n ),\n ...RECORD_LOCK_RESOURCE_ALIASES,\n ]),\n).sort((left, right) => left.localeCompare(right))\n\nexport default function RecordLockingSettingsPage() {\n const t = useT()\n const [settings, setSettings] = React.useState<RecordLockSettings>(DEFAULT_SETTINGS)\n const [loading, setLoading] = React.useState(true)\n const [saving, setSaving] = React.useState(false)\n\n const normalizeResources = React.useCallback((input: string[]): string[] => {\n const seen = new Set<string>()\n const out: string[] = []\n for (const raw of input) {\n const resource = typeof raw === 'string' ? raw.trim() : ''\n if (!resource || seen.has(resource)) continue\n seen.add(resource)\n out.push(resource)\n }\n return out\n }, [])\n\n const load = React.useCallback(async () => {\n setLoading(true)\n try {\n const call = await apiCall<{ settings?: RecordLockSettings }>('/api/record_locks/settings')\n const next = call.result?.settings ?? DEFAULT_SETTINGS\n setSettings({\n ...next,\n enabledResources: normalizeResources(next.enabledResources ?? []),\n })\n } catch {\n flash(t('record_locks.settings.save_error', 'Failed to load settings'), 'error')\n } finally {\n setLoading(false)\n }\n }, [normalizeResources, t])\n\n React.useEffect(() => {\n void load()\n }, [load])\n\n const onSave = React.useCallback(async () => {\n setSaving(true)\n try {\n const payload: RecordLockSettings = {\n ...settings,\n enabledResources: normalizeResources(settings.enabledResources ?? []),\n }\n const call = await apiCallOrThrow<{ settings?: RecordLockSettings }>(\n '/api/record_locks/settings',\n {\n method: 'POST',\n headers: { 'content-type': 'application/json' },\n body: JSON.stringify(payload),\n },\n { errorMessage: t('record_locks.settings.save_error', 'Failed to save settings') },\n )\n\n const next = call.result?.settings ?? payload\n setSettings({\n ...next,\n enabledResources: normalizeResources(next.enabledResources ?? []),\n })\n flash(t('record_locks.settings.saved', 'Settings saved'), 'success')\n } catch {\n flash(t('record_locks.settings.save_error', 'Failed to save settings'), 'error')\n } finally {\n setSaving(false)\n }\n }, [normalizeResources, settings, t])\n\n if (loading) {\n return (\n <div className=\"p-6\">\n <Spinner />\n </div>\n )\n }\n\n return (\n <div className=\"max-w-2xl space-y-6 p-6\">\n <div>\n <h1 className=\"text-2xl font-semibold\">{t('record_locks.settings.title', 'Record locking')}</h1>\n <p className=\"mt-1 text-sm text-muted-foreground\">\n {t('record_locks.settings.description', 'Configure optimistic/pessimistic locking and conflict handling.')}\n </p>\n </div>\n\n <div className=\"space-y-5 rounded-lg border p-4\">\n <div className=\"flex items-center justify-between gap-4\">\n <Label htmlFor=\"record-lock-enabled\">{t('record_locks.settings.enabled', 'Enable record locking')}</Label>\n <Switch\n id=\"record-lock-enabled\"\n checked={settings.enabled}\n onCheckedChange={(checked) => setSettings((prev) => ({ ...prev, enabled: checked }))}\n />\n </div>\n\n <div className=\"space-y-2\">\n <Label htmlFor=\"record-lock-strategy\">{t('record_locks.settings.strategy', 'Strategy')}</Label>\n <select\n id=\"record-lock-strategy\"\n className=\"h-10 w-full rounded-md border bg-background px-3 text-sm\"\n value={settings.strategy}\n onChange={(event) => setSettings((prev) => ({\n ...prev,\n strategy: event.target.value === 'pessimistic' ? 'pessimistic' : 'optimistic',\n }))}\n >\n <option value=\"optimistic\">{t('record_locks.settings.strategy_optimistic', 'Optimistic')}</option>\n <option value=\"pessimistic\">{t('record_locks.settings.strategy_pessimistic', 'Pessimistic')}</option>\n </select>\n <Alert variant=\"info\">\n <AlertDescription>\n <p>\n <strong>{t('record_locks.settings.strategy_optimistic', 'Optimistic')}:</strong>{' '}\n {t(\n 'record_locks.settings.strategy_help_optimistic',\n 'Multiple users can edit at the same time; conflicts are checked on save.',\n )}\n </p>\n <p className=\"mt-1\">\n <strong>{t('record_locks.settings.strategy_pessimistic', 'Pessimistic')}:</strong>{' '}\n {t(\n 'record_locks.settings.strategy_help_pessimistic',\n 'First editor acquires the lock and blocks concurrent edits until release.',\n )}\n </p>\n </AlertDescription>\n </Alert>\n </div>\n\n <div className=\"grid gap-4 sm:grid-cols-2\">\n <div className=\"space-y-2\">\n <Label htmlFor=\"record-lock-timeout\">{t('record_locks.settings.timeout_seconds', 'Lock timeout (seconds)')}</Label>\n <Input\n id=\"record-lock-timeout\"\n type=\"number\"\n min={30}\n max={3600}\n value={settings.timeoutSeconds}\n onChange={(event) => setSettings((prev) => ({\n ...prev,\n timeoutSeconds: Math.max(30, Math.min(3600, Number(event.target.value) || 30)),\n }))}\n />\n </div>\n <div className=\"space-y-2\">\n <Label htmlFor=\"record-lock-heartbeat\">{t('record_locks.settings.heartbeat_seconds', 'Heartbeat interval (seconds)')}</Label>\n <Input\n id=\"record-lock-heartbeat\"\n type=\"number\"\n min={5}\n max={300}\n value={settings.heartbeatSeconds}\n onChange={(event) => setSettings((prev) => ({\n ...prev,\n heartbeatSeconds: Math.max(5, Math.min(300, Number(event.target.value) || 5)),\n }))}\n />\n </div>\n </div>\n\n <div className=\"space-y-2\">\n <Label>{t('record_locks.settings.enabled_resources', 'Enabled resources')}</Label>\n <TagsInput\n value={settings.enabledResources}\n onChange={(next) => setSettings((prev) => ({ ...prev, enabledResources: normalizeResources(next) }))}\n suggestions={RECORD_LOCK_RESOURCE_SUGGESTIONS}\n allowCustomValues\n disabled={saving}\n placeholder={t(\n 'record_locks.settings.enabled_resources_placeholder',\n 'Add resource kind and press Enter',\n )}\n />\n <p className=\"text-xs text-muted-foreground\">\n {t(\n 'record_locks.settings.enabled_resources_hint',\n 'Pick from suggestions or type a custom resource kind.',\n )}\n </p>\n </div>\n\n <div className=\"flex items-center justify-between gap-4\">\n <Label htmlFor=\"record-lock-force-unlock\">{t('record_locks.settings.allow_force_unlock', 'Allow force unlock')}</Label>\n <Switch\n id=\"record-lock-force-unlock\"\n checked={settings.allowForceUnlock}\n onCheckedChange={(checked) => setSettings((prev) => ({ ...prev, allowForceUnlock: checked }))}\n />\n </div>\n\n <div className=\"flex items-center justify-between gap-4\">\n <Label htmlFor=\"record-lock-allow-incoming-override\">\n {t('record_locks.settings.allow_incoming_override', 'Allow overriding incoming changes')}\n </Label>\n <Switch\n id=\"record-lock-allow-incoming-override\"\n checked={settings.allowIncomingOverride}\n onCheckedChange={(checked) => setSettings((prev) => ({ ...prev, allowIncomingOverride: checked }))}\n />\n </div>\n <p className=\"text-xs text-muted-foreground\">\n {t(\n 'record_locks.settings.allow_incoming_override_hint',\n 'Users still need the record_locks.override_incoming feature in their role or user ACL to keep their version during conflicts.'\n )}{' '}\n <Link href=\"/backend/users\" className=\"underline underline-offset-2 hover:text-foreground\">\n {t('record_locks.settings.allow_incoming_override_permissions_link', 'Check permissions')}\n </Link>\n </p>\n\n <div className=\"flex items-center justify-between gap-4\">\n <Label htmlFor=\"record-lock-notify-conflict\">{t('record_locks.settings.notify_on_conflict', 'Notify on conflict')}</Label>\n <Switch\n id=\"record-lock-notify-conflict\"\n checked={settings.notifyOnConflict}\n onCheckedChange={(checked) => setSettings((prev) => ({ ...prev, notifyOnConflict: checked }))}\n />\n </div>\n\n <div className=\"pt-2\">\n <Button onClick={() => void onSave()} disabled={saving}>\n {saving ? t('ui.forms.status.saving', 'Saving...') : t('record_locks.settings.save', 'Save settings')}\n </Button>\n </div>\n </div>\n </div>\n )\n}\n"],
5
- "mappings": ";AA2HQ,cAOF,YAPE;AAzHR,YAAY,WAAW;AACvB,OAAO,UAAU;AACjB,SAAS,YAAY;AACrB,SAAS,SAAS,sBAAsB;AACxC,SAAS,aAAa;AACtB,SAAS,iBAAiB;AAC1B,SAAS,cAAc;AACvB,SAAS,aAAa;AACtB,SAAS,aAAa;AACtB,SAAS,OAAO,wBAAwB;AACxC,SAAS,cAAc;AACvB,SAAS,eAAe;AACxB,SAAS,SAAS;AAClB,SAAS,oCAAoC;AAa7C,MAAM,mBAAuC;AAAA,EAC3C,GAAG;AACL;AAEA,MAAM,+BAA+B;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAM,mCAAmC,MAAM;AAAA,EAC7C,oBAAI,IAAI;AAAA,IACN,GAAG,OAAO,OAAO,CAAC,EAAE;AAAA,MAAQ,CAAC,mBAC3B,OAAO,OAAO,cAAc,EAAE,QAAQ,CAAC,aAAa;AAClD,YAAI,OAAO,aAAa,YAAY,CAAC,SAAS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UAAC;AAAA;AAAA,YACC,IAAG;AAAA,YACH,SAAS,SAAS;AAAA,YAClB,iBAAiB,CAAC,YAAY,YAAY,CAAC,UAAU,EAAE,GAAG,MAAM,kBAAkB,QAAQ,EAAE;AAAA;AAAA,QAC9F;AAAA,SACF;AAAA,MAEA,qBAAC,SAAI,WAAU,2CACb;AAAA,4BAAC,SAAM,SAAQ,uCACZ,YAAE,iDAAiD,mCAAmC,GACzF;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,IAAG;AAAA,YACH,SAAS,SAAS;AAAA,YAClB,iBAAiB,CAAC,YAAY,YAAY,CAAC,UAAU,EAAE,GAAG,MAAM,uBAAuB,QAAQ,EAAE;AAAA;AAAA,QACnG;AAAA,SACF;AAAA,MACA,qBAAC,OAAE,WAAU,iCACV;AAAA;AAAA,UACC;AAAA,UACA;AAAA,QACF;AAAA,QAAG;AAAA,QACH,oBAAC,QAAK,MAAK,kBAAiB,WAAU,sDACnC,YAAE,kEAAkE,mBAAmB,GAC1F;AAAA,SACF;AAAA,MAEA,qBAAC,SAAI,WAAU,2CACb;AAAA,4BAAC,SAAM,SAAQ,+BAA+B,YAAE,4CAA4C,oBAAoB,GAAE;AAAA,QAClH;AAAA,UAAC;AAAA;AAAA,YACC,IAAG;AAAA,YACH,SAAS,SAAS;AAAA,YAClB,iBAAiB,CAAC,YAAY,YAAY,CAAC,UAAU,EAAE,GAAG,MAAM,kBAAkB,QAAQ,EAAE;AAAA;AAAA,QAC9F;AAAA,SACF;AAAA,MAEA,oBAAC,SAAI,WAAU,QACb,8BAAC,UAAO,SAAS,MAAM,KAAK,OAAO,GAAG,UAAU,QAC7C,mBAAS,EAAE,0BAA0B,WAAW,IAAI,EAAE,8BAA8B,eAAe,GACtG,GACF;AAAA,OACF;AAAA,KACF;AAEJ;",
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport Link from 'next/link'\nimport { useT } from '@open-mercato/shared/lib/i18n/context'\nimport { apiCall, apiCallOrThrow } from '@open-mercato/ui/backend/utils/apiCall'\nimport { flash } from '@open-mercato/ui/backend/FlashMessages'\nimport { TagsInput } from '@open-mercato/ui/backend/inputs'\nimport { Button } from '@open-mercato/ui/primitives/button'\nimport { Input } from '@open-mercato/ui/primitives/input'\nimport { Label } from '@open-mercato/ui/primitives/label'\nimport { Alert, AlertDescription } from '@open-mercato/ui/primitives/alert'\nimport { Switch } from '@open-mercato/ui/primitives/switch'\nimport { Spinner } from '@open-mercato/ui/primitives/spinner'\nimport { E } from '@open-mercato/core/generated-shims/entities.ids.generated'\nimport { DEFAULT_RECORD_LOCK_SETTINGS } from '../../../lib/config'\n\ntype RecordLockSettings = {\n enabled: boolean\n strategy: 'optimistic' | 'pessimistic'\n timeoutSeconds: number\n heartbeatSeconds: number\n enabledResources: string[]\n allowForceUnlock: boolean\n allowIncomingOverride: boolean\n notifyOnConflict: boolean\n}\n\nconst DEFAULT_SETTINGS: RecordLockSettings = {\n ...DEFAULT_RECORD_LOCK_SETTINGS,\n}\n\nconst RECORD_LOCK_RESOURCE_ALIASES = [\n 'customers.person',\n 'customers.company',\n 'customers.deal',\n 'sales.quote',\n 'sales.order',\n]\n\nconst RECORD_LOCK_RESOURCE_SUGGESTIONS = Array.from(\n new Set([\n ...Object.values(E).flatMap((moduleEntities) =>\n Object.values(moduleEntities).flatMap((entityId) => {\n if (typeof entityId !== 'string' || !entityId.includes(':')) return []\n return [entityId.replace(':', '.')]\n })\n ),\n ...RECORD_LOCK_RESOURCE_ALIASES,\n ]),\n).sort((left, right) => left.localeCompare(right))\n\nexport default function RecordLockingSettingsPage() {\n const t = useT()\n const [settings, setSettings] = React.useState<RecordLockSettings>(DEFAULT_SETTINGS)\n const [loading, setLoading] = React.useState(true)\n const [saving, setSaving] = React.useState(false)\n\n const normalizeResources = React.useCallback((input: string[]): string[] => {\n const seen = new Set<string>()\n const out: string[] = []\n for (const raw of input) {\n const resource = typeof raw === 'string' ? raw.trim() : ''\n if (!resource || seen.has(resource)) continue\n seen.add(resource)\n out.push(resource)\n }\n return out\n }, [])\n\n const load = React.useCallback(async () => {\n setLoading(true)\n try {\n const call = await apiCall<{ settings?: RecordLockSettings }>('/api/record_locks/settings')\n const next = call.result?.settings ?? DEFAULT_SETTINGS\n setSettings({\n ...next,\n enabledResources: normalizeResources(next.enabledResources ?? []),\n })\n } catch {\n flash(t('record_locks.settings.save_error', 'Failed to load settings'), 'error')\n } finally {\n setLoading(false)\n }\n }, [normalizeResources, t])\n\n React.useEffect(() => {\n void load()\n }, [load])\n\n const onSave = React.useCallback(async () => {\n setSaving(true)\n try {\n const payload: RecordLockSettings = {\n ...settings,\n enabledResources: normalizeResources(settings.enabledResources ?? []),\n }\n const call = await apiCallOrThrow<{ settings?: RecordLockSettings }>(\n '/api/record_locks/settings',\n {\n method: 'POST',\n headers: { 'content-type': 'application/json' },\n body: JSON.stringify(payload),\n },\n { errorMessage: t('record_locks.settings.save_error', 'Failed to save settings') },\n )\n\n const next = call.result?.settings ?? payload\n setSettings({\n ...next,\n enabledResources: normalizeResources(next.enabledResources ?? []),\n })\n flash(t('record_locks.settings.saved', 'Settings saved'), 'success')\n } catch {\n flash(t('record_locks.settings.save_error', 'Failed to save settings'), 'error')\n } finally {\n setSaving(false)\n }\n }, [normalizeResources, settings, t])\n\n if (loading) {\n return (\n <div className=\"p-6\">\n <Spinner />\n </div>\n )\n }\n\n return (\n <div className=\"max-w-2xl space-y-6 p-6\">\n <div>\n <h1 className=\"text-2xl font-semibold\">{t('record_locks.settings.title', 'Record locking')}</h1>\n <p className=\"mt-1 text-sm text-muted-foreground\">\n {t('record_locks.settings.description', 'Configure optimistic/pessimistic locking and conflict handling.')}\n </p>\n </div>\n\n <div className=\"space-y-5 rounded-lg border p-4\">\n <div className=\"flex items-center justify-between gap-4\">\n <Label htmlFor=\"record-lock-enabled\">{t('record_locks.settings.enabled', 'Enable record locking')}</Label>\n <Switch\n id=\"record-lock-enabled\"\n checked={settings.enabled}\n onCheckedChange={(checked) => setSettings((prev) => ({ ...prev, enabled: checked }))}\n />\n </div>\n\n <div className=\"space-y-2\">\n <Label htmlFor=\"record-lock-strategy\">{t('record_locks.settings.strategy', 'Strategy')}</Label>\n <select\n id=\"record-lock-strategy\"\n className=\"h-10 w-full rounded-md border bg-background px-3 text-sm\"\n value={settings.strategy}\n onChange={(event) => setSettings((prev) => ({\n ...prev,\n strategy: event.target.value === 'pessimistic' ? 'pessimistic' : 'optimistic',\n }))}\n >\n <option value=\"optimistic\">{t('record_locks.settings.strategy_optimistic', 'Optimistic')}</option>\n <option value=\"pessimistic\">{t('record_locks.settings.strategy_pessimistic', 'Pessimistic')}</option>\n </select>\n <Alert status=\"information\">\n <AlertDescription>\n <p>\n <strong>{t('record_locks.settings.strategy_optimistic', 'Optimistic')}:</strong>{' '}\n {t(\n 'record_locks.settings.strategy_help_optimistic',\n 'Multiple users can edit at the same time; conflicts are checked on save.',\n )}\n </p>\n <p className=\"mt-1\">\n <strong>{t('record_locks.settings.strategy_pessimistic', 'Pessimistic')}:</strong>{' '}\n {t(\n 'record_locks.settings.strategy_help_pessimistic',\n 'First editor acquires the lock and blocks concurrent edits until release.',\n )}\n </p>\n </AlertDescription>\n </Alert>\n </div>\n\n <div className=\"grid gap-4 sm:grid-cols-2\">\n <div className=\"space-y-2\">\n <Label htmlFor=\"record-lock-timeout\">{t('record_locks.settings.timeout_seconds', 'Lock timeout (seconds)')}</Label>\n <Input\n id=\"record-lock-timeout\"\n type=\"number\"\n min={30}\n max={3600}\n value={settings.timeoutSeconds}\n onChange={(event) => setSettings((prev) => ({\n ...prev,\n timeoutSeconds: Math.max(30, Math.min(3600, Number(event.target.value) || 30)),\n }))}\n />\n </div>\n <div className=\"space-y-2\">\n <Label htmlFor=\"record-lock-heartbeat\">{t('record_locks.settings.heartbeat_seconds', 'Heartbeat interval (seconds)')}</Label>\n <Input\n id=\"record-lock-heartbeat\"\n type=\"number\"\n min={5}\n max={300}\n value={settings.heartbeatSeconds}\n onChange={(event) => setSettings((prev) => ({\n ...prev,\n heartbeatSeconds: Math.max(5, Math.min(300, Number(event.target.value) || 5)),\n }))}\n />\n </div>\n </div>\n\n <div className=\"space-y-2\">\n <Label>{t('record_locks.settings.enabled_resources', 'Enabled resources')}</Label>\n <TagsInput\n value={settings.enabledResources}\n onChange={(next) => setSettings((prev) => ({ ...prev, enabledResources: normalizeResources(next) }))}\n suggestions={RECORD_LOCK_RESOURCE_SUGGESTIONS}\n allowCustomValues\n disabled={saving}\n placeholder={t(\n 'record_locks.settings.enabled_resources_placeholder',\n 'Add resource kind and press Enter',\n )}\n />\n <p className=\"text-xs text-muted-foreground\">\n {t(\n 'record_locks.settings.enabled_resources_hint',\n 'Pick from suggestions or type a custom resource kind.',\n )}\n </p>\n </div>\n\n <div className=\"flex items-center justify-between gap-4\">\n <Label htmlFor=\"record-lock-force-unlock\">{t('record_locks.settings.allow_force_unlock', 'Allow force unlock')}</Label>\n <Switch\n id=\"record-lock-force-unlock\"\n checked={settings.allowForceUnlock}\n onCheckedChange={(checked) => setSettings((prev) => ({ ...prev, allowForceUnlock: checked }))}\n />\n </div>\n\n <div className=\"flex items-center justify-between gap-4\">\n <Label htmlFor=\"record-lock-allow-incoming-override\">\n {t('record_locks.settings.allow_incoming_override', 'Allow overriding incoming changes')}\n </Label>\n <Switch\n id=\"record-lock-allow-incoming-override\"\n checked={settings.allowIncomingOverride}\n onCheckedChange={(checked) => setSettings((prev) => ({ ...prev, allowIncomingOverride: checked }))}\n />\n </div>\n <p className=\"text-xs text-muted-foreground\">\n {t(\n 'record_locks.settings.allow_incoming_override_hint',\n 'Users still need the record_locks.override_incoming feature in their role or user ACL to keep their version during conflicts.'\n )}{' '}\n <Link href=\"/backend/users\" className=\"underline underline-offset-2 hover:text-foreground\">\n {t('record_locks.settings.allow_incoming_override_permissions_link', 'Check permissions')}\n </Link>\n </p>\n\n <div className=\"flex items-center justify-between gap-4\">\n <Label htmlFor=\"record-lock-notify-conflict\">{t('record_locks.settings.notify_on_conflict', 'Notify on conflict')}</Label>\n <Switch\n id=\"record-lock-notify-conflict\"\n checked={settings.notifyOnConflict}\n onCheckedChange={(checked) => setSettings((prev) => ({ ...prev, notifyOnConflict: checked }))}\n />\n </div>\n\n <div className=\"pt-2\">\n <Button onClick={() => void onSave()} disabled={saving}>\n {saving ? t('ui.forms.status.saving', 'Saving...') : t('record_locks.settings.save', 'Save settings')}\n </Button>\n </div>\n </div>\n </div>\n )\n}\n"],
5
+ "mappings": ";AA2HQ,cAOF,YAPE;AAzHR,YAAY,WAAW;AACvB,OAAO,UAAU;AACjB,SAAS,YAAY;AACrB,SAAS,SAAS,sBAAsB;AACxC,SAAS,aAAa;AACtB,SAAS,iBAAiB;AAC1B,SAAS,cAAc;AACvB,SAAS,aAAa;AACtB,SAAS,aAAa;AACtB,SAAS,OAAO,wBAAwB;AACxC,SAAS,cAAc;AACvB,SAAS,eAAe;AACxB,SAAS,SAAS;AAClB,SAAS,oCAAoC;AAa7C,MAAM,mBAAuC;AAAA,EAC3C,GAAG;AACL;AAEA,MAAM,+BAA+B;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAM,mCAAmC,MAAM;AAAA,EAC7C,oBAAI,IAAI;AAAA,IACN,GAAG,OAAO,OAAO,CAAC,EAAE;AAAA,MAAQ,CAAC,mBAC3B,OAAO,OAAO,cAAc,EAAE,QAAQ,CAAC,aAAa;AAClD,YAAI,OAAO,aAAa,YAAY,CAAC,SAAS,SAAS,GAAG,EAAG,QAAO,CAAC;AACrE,eAAO,CAAC,SAAS,QAAQ,KAAK,GAAG,CAAC;AAAA,MACpC,CAAC;AAAA,IACH;AAAA,IACA,GAAG;AAAA,EACL,CAAC;AACH,EAAE,KAAK,CAAC,MAAM,UAAU,KAAK,cAAc,KAAK,CAAC;AAElC,SAAR,4BAA6C;AAClD,QAAM,IAAI,KAAK;AACf,QAAM,CAAC,UAAU,WAAW,IAAI,MAAM,SAA6B,gBAAgB;AACnF,QAAM,CAAC,SA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YACH,SAAS,SAAS;AAAA,YAClB,iBAAiB,CAAC,YAAY,YAAY,CAAC,UAAU,EAAE,GAAG,MAAM,uBAAuB,QAAQ,EAAE;AAAA;AAAA,QACnG;AAAA,SACF;AAAA,MACA,qBAAC,OAAE,WAAU,iCACV;AAAA;AAAA,UACC;AAAA,UACA;AAAA,QACF;AAAA,QAAG;AAAA,QACH,oBAAC,QAAK,MAAK,kBAAiB,WAAU,sDACnC,YAAE,kEAAkE,mBAAmB,GAC1F;AAAA,SACF;AAAA,MAEA,qBAAC,SAAI,WAAU,2CACb;AAAA,4BAAC,SAAM,SAAQ,+BAA+B,YAAE,4CAA4C,oBAAoB,GAAE;AAAA,QAClH;AAAA,UAAC;AAAA;AAAA,YACC,IAAG;AAAA,YACH,SAAS,SAAS;AAAA,YAClB,iBAAiB,CAAC,YAAY,YAAY,CAAC,UAAU,EAAE,GAAG,MAAM,kBAAkB,QAAQ,EAAE;AAAA;AAAA,QAC9F;AAAA,SACF;AAAA,MAEA,oBAAC,SAAI,WAAU,QACb,8BAAC,UAAO,SAAS,MAAM,KAAK,OAAO,GAAG,UAAU,QAC7C,mBAAS,EAAE,0BAA0B,WAAW,IAAI,EAAE,8BAA8B,eAAe,GACtG,GACF;AAAA,OACF;AAAA,KACF;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,78 @@
1
+ {
2
+ "record_locks.banner.active_users_label": "활성 사용자",
3
+ "record_locks.banner.contention_notice": "다른 사용자가 이 레코드를 편집 중에 열었습니다. 저장 시 충돌이 발생할 수 있습니다.",
4
+ "record_locks.banner.local_machine": "로컬 기기",
5
+ "record_locks.banner.locked_by_other": "이 레코드는 현재 다른 사용자가 잠그고 있습니다.",
6
+ "record_locks.banner.mine": "현재 이 레코드를 편집 중입니다.",
7
+ "record_locks.banner.optimistic_notice": "다른 사용자가 이 레코드를 편집하고 있습니다. 저장 시 충돌이 발생할 수 있습니다.",
8
+ "record_locks.banner.participants_notice": "여러 사용자가 현재 이 레코드에 있습니다.",
9
+ "record_locks.banner.same_user_session": "이 레코드는 이미 다른 세션에서 열려 있습니다.",
10
+ "record_locks.banner.take_over": "편집 권한 가져오기",
11
+ "record_locks.banner.take_over_pending": "가져오는 중...",
12
+ "record_locks.conflict.accept_incoming": "수신된 변경 사항 적용",
13
+ "record_locks.conflict.accept_incoming_failed": "수신된 변경 사항을 적용할 수 없습니다. 새로고침 후 다시 시도하세요.",
14
+ "record_locks.conflict.accept_mine": "내 변경 사항 유지",
15
+ "record_locks.conflict.cancel": "취소",
16
+ "record_locks.conflict.current_label": "현재",
17
+ "record_locks.conflict.description": "편집을 시작한 후 다른 사용자가 이 레코드를 변경했습니다.",
18
+ "record_locks.conflict.display_value": "표시 값",
19
+ "record_locks.conflict.empty_value": "(비어 있음)",
20
+ "record_locks.conflict.field": "필드",
21
+ "record_locks.conflict.incoming_label": "수신됨",
22
+ "record_locks.conflict.incoming_value": "수신된 값",
23
+ "record_locks.conflict.keep_editing": "계속 편집",
24
+ "record_locks.conflict.mine_value": "내 값",
25
+ "record_locks.conflict.no_field_details": "이 레코드에 대한 필드 수준 충돌 세부 정보를 사용할 수 없습니다. 계속하려면 해결 방법을 선택하세요.",
26
+ "record_locks.conflict.override_blocked_notice": "수신된 변경 사항을 재정의할 권한이 없어 내 버전을 유지할 수 없습니다.",
27
+ "record_locks.conflict.record_deleted_description": "편집하는 동안 다른 사용자가 이 레코드를 삭제했습니다. 예기치 않은 결과를 방지하기 위해 저장이 차단됩니다.",
28
+ "record_locks.conflict.record_deleted_title": "레코드가 삭제되었습니다",
29
+ "record_locks.conflict.refresh_page": "페이지 새로고침",
30
+ "record_locks.conflict.refresh_required": "충돌 세부 정보를 확인할 수 없습니다. 충돌 데이터를 새로고침하려면 다시 저장하세요.",
31
+ "record_locks.conflict.retry_save_after_accept_mine": "변경 사항을 적용하려면 다시 저장을 클릭하세요.",
32
+ "record_locks.conflict.title": "충돌이 감지되었습니다",
33
+ "record_locks.errors.acquire_failed": "레코드 잠금 상태를 불러오지 못했습니다.",
34
+ "record_locks.errors.force_release_failed": "편집 권한을 가져오지 못했습니다.",
35
+ "record_locks.errors.force_release_unavailable": "가져오기가 비활성화되었거나 잠금이 더 이상 활성 상태가 아니므로 강제 해제를 사용할 수 없습니다.",
36
+ "record_locks.notifications.actions.accept_incoming": "수신 내용 적용",
37
+ "record_locks.notifications.actions.accept_mine": "수신 내용 거부",
38
+ "record_locks.notifications.actions.see_incoming_changes": "수신된 변경 사항 보기",
39
+ "record_locks.notifications.actions.see_lock_contention": "레코드 열기",
40
+ "record_locks.notifications.conflict_detected.body": "저장 내용이 더 최근의 변경 사항과 충돌했습니다. 변경된 필드: {changedFields}.",
41
+ "record_locks.notifications.conflict_detected.title": "편집 충돌이 감지되었습니다",
42
+ "record_locks.notifications.conflict_resolved.body": "레코드 충돌이 해결되었습니다.",
43
+ "record_locks.notifications.conflict_resolved.title": "충돌이 해결되었습니다",
44
+ "record_locks.notifications.incoming_changes.body": "다른 사용자가 이 레코드를 업데이트했습니다. 변경된 필드: {changedFields}.",
45
+ "record_locks.notifications.incoming_changes.title": "수신된 변경 사항이 있습니다",
46
+ "record_locks.notifications.lock_contended.body": "다른 사용자가 현재 편집 중인 레코드를 열었습니다. 저장 시 충돌이 발생할 수 있습니다.",
47
+ "record_locks.notifications.lock_contended.title": "다른 사용자가 회원님의 레코드를 열었습니다",
48
+ "record_locks.notifications.lock_force_released.body": "다른 사용자가 회원님의 레코드 잠금을 강제로 해제했습니다.",
49
+ "record_locks.notifications.lock_force_released.title": "잠금이 강제로 해제되었습니다",
50
+ "record_locks.notifications.participant_joined.body": "다른 사용자가 편집 중에 이 레코드를 열었습니다.",
51
+ "record_locks.notifications.participant_joined.title": "새 참여자가 참여했습니다",
52
+ "record_locks.notifications.participant_left.body": "한 사용자가 이 레코드를 떠났습니다 (하트비트 만료).",
53
+ "record_locks.notifications.participant_left.title": "참여자가 떠났습니다",
54
+ "record_locks.notifications.record_deleted.body": "열어 두었던 레코드가 다른 사용자에 의해 삭제되었습니다.",
55
+ "record_locks.notifications.record_deleted.title": "열린 레코드가 삭제되었습니다",
56
+ "record_locks.settings.allow_force_unlock": "강제 잠금 해제 허용",
57
+ "record_locks.settings.allow_incoming_override": "수신된 변경 사항 재정의 허용",
58
+ "record_locks.settings.allow_incoming_override_hint": "충돌 시 자신의 버전을 유지하려면 역할이나 사용자 ACL에 record_locks.override_incoming 기능이 필요합니다.",
59
+ "record_locks.settings.allow_incoming_override_permissions_link": "권한 확인",
60
+ "record_locks.settings.description": "낙관적/비관적 잠금 및 충돌 처리를 구성합니다.",
61
+ "record_locks.settings.enabled": "레코드 잠금 활성화",
62
+ "record_locks.settings.enabled_resources": "활성화된 리소스",
63
+ "record_locks.settings.enabled_resources_hint": "제안 목록에서 선택하거나 커스텀 리소스 종류를 입력하세요.",
64
+ "record_locks.settings.enabled_resources_placeholder": "리소스 종류를 추가하고 Enter를 누르세요",
65
+ "record_locks.settings.heartbeat_seconds": "하트비트 간격 (초)",
66
+ "record_locks.settings.notify_on_conflict": "충돌 시 알림",
67
+ "record_locks.settings.save": "설정 저장",
68
+ "record_locks.settings.save_error": "설정 저장에 실패했습니다",
69
+ "record_locks.settings.saved": "설정이 저장되었습니다",
70
+ "record_locks.settings.strategy": "전략",
71
+ "record_locks.settings.strategy_help_optimistic": "여러 사용자가 동시에 편집할 수 있으며, 저장 시 충돌을 확인합니다.",
72
+ "record_locks.settings.strategy_help_pessimistic": "첫 번째 편집자가 잠금을 획득하고 해제될 때까지 동시 편집을 차단합니다.",
73
+ "record_locks.settings.strategy_optimistic": "낙관적",
74
+ "record_locks.settings.strategy_pessimistic": "비관적",
75
+ "record_locks.settings.timeout_seconds": "잠금 시간 초과 (초)",
76
+ "record_locks.settings.title": "레코드 잠금",
77
+ "record_locks.title": "레코드 잠금"
78
+ }
@@ -1002,11 +1002,11 @@ function RecordLockingWidget({
1002
1002
  afterLabel: t("record_locks.conflict.current_label", "Current")
1003
1003
  }
1004
1004
  ) : null,
1005
- (state?.conflict?.changes?.length ?? 0) === 0 ? !isRecordDeleted ? /* @__PURE__ */ jsx(Alert, { variant: "info", children: /* @__PURE__ */ jsx(AlertDescription, { children: t(
1005
+ (state?.conflict?.changes?.length ?? 0) === 0 ? !isRecordDeleted ? /* @__PURE__ */ jsx(Alert, { status: "information", children: /* @__PURE__ */ jsx(AlertDescription, { children: t(
1006
1006
  "record_locks.conflict.no_field_details",
1007
1007
  "Field-level conflict details are unavailable for this record. Choose a resolution to continue."
1008
1008
  ) }) }) : null : null,
1009
- showOverrideBlockedNotice ? /* @__PURE__ */ jsx(Alert, { variant: "warning", children: /* @__PURE__ */ jsx(AlertDescription, { children: t(
1009
+ showOverrideBlockedNotice ? /* @__PURE__ */ jsx(Alert, { status: "warning", children: /* @__PURE__ */ jsx(AlertDescription, { children: t(
1010
1010
  "record_locks.conflict.override_blocked_notice",
1011
1011
  "You cannot keep your version because you do not have permission to override incoming changes."
1012
1012
  ) }) }) : null,