@burdenoff/microfe-product 2026.624.1 → 2026.624.3

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 (63) hide show
  1. package/dist/product/pages/ContentPageViewPage.js +1 -1
  2. package/dist/product/pages/ContentPageViewPage.js.map +1 -1
  3. package/dist/product/pages/ProductCatalogPage.js +2 -2
  4. package/dist/product/pages/ProductCatalogPage.js.map +1 -1
  5. package/dist/product/pages/ProductViewPage.js +1 -1
  6. package/dist/product/pages/ProductViewPage.js.map +1 -1
  7. package/dist/product-management/modules/content-pages/components/ContentPageForm.js +2 -2
  8. package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
  9. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +1 -1
  10. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
  11. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +242 -231
  12. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
  13. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +1 -1
  14. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
  15. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +293 -282
  16. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
  17. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +1 -1
  18. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
  19. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +1 -1
  20. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
  21. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +144 -136
  22. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
  23. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +1 -1
  24. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
  25. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +188 -204
  26. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
  27. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +1 -1
  28. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
  29. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +1 -1
  30. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
  31. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +95 -87
  32. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
  33. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +1 -1
  34. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
  35. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +250 -239
  36. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
  37. package/dist/product-management/modules/products/components/ProductForm.js +1 -1
  38. package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
  39. package/dist/product-management/modules/products/pages/ProductCreatePage.js +1 -1
  40. package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
  41. package/dist/product-management/modules/products/pages/ProductDetailPage.js +407 -396
  42. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  43. package/dist/product-management/modules/products/pages/ProductEditPage.js +1 -1
  44. package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
  45. package/dist/product-management/modules/products/pages/ProductsListPage.js +286 -275
  46. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
  47. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +1 -1
  48. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
  49. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +1 -1
  50. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
  51. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +236 -225
  52. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  53. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +1 -1
  54. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
  55. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +261 -245
  56. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
  57. package/dist/product-management/shared/components/feedback/ErrorState.js +1 -1
  58. package/dist/product-management/shared/components/feedback/ErrorState.js.map +1 -1
  59. package/dist/product-management/shared/components/feedback/LoadingState.js +1 -1
  60. package/dist/product-management/shared/components/feedback/LoadingState.js.map +1 -1
  61. package/dist/product-management/shared/hooks/useConfirmDialog.js +44 -0
  62. package/dist/product-management/shared/hooks/useConfirmDialog.js.map +1 -0
  63. package/package.json +1 -1
@@ -3,273 +3,284 @@ import { useProductConsole as t } from "../../../providers/ProductConsoleProvide
3
3
  import { LoadingState as n } from "../../../shared/components/feedback/LoadingState.js";
4
4
  import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.js";
5
5
  import { nativeConfirm as i, nativeImpact as a, nativeNotify as o } from "../../../../utils/nativeBridge.js";
6
- import { useDeleteShortcut as s, useShortcut as c, useToggleShortcut as l } from "../hooks/useShortcuts.js";
7
- import { ShortcutCategoryBadge as u } from "../components/ShortcutCategoryBadge.js";
8
- import { ShortcutKeyBadge as d } from "../components/ShortcutKeyBadge.js";
9
- import { ArrowLeft as f, SquarePen as p, ToggleLeft as m, ToggleRight as h, Trash2 as g } from "lucide-react";
10
- import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
11
- import { useParams as b } from "react-router-dom";
6
+ import { useConfirmDialog as s } from "../../../shared/hooks/useConfirmDialog.js";
7
+ import { useDeleteShortcut as c, useShortcut as l, useToggleShortcut as u } from "../hooks/useShortcuts.js";
8
+ import { ShortcutCategoryBadge as d } from "../components/ShortcutCategoryBadge.js";
9
+ import { ShortcutKeyBadge as f } from "../components/ShortcutKeyBadge.js";
10
+ import { ArrowLeft as p, SquarePen as m, ToggleLeft as h, ToggleRight as g, Trash2 as _ } from "lucide-react";
11
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
12
+ import { useParams as x } from "react-router-dom";
12
13
  //#region src/product-management/modules/shortcuts/pages/ShortcutDetailPage.tsx
13
- function x() {
14
- let { id: x } = b(), { navigate: S, basePath: C = "/products" } = t(), w = e(), T = x || "", { shortcut: E, loading: D, error: O, refetch: k } = c(T), { deleteShortcut: A, loading: j } = s(), { toggleShortcut: M, loading: N } = l();
15
- return D ? /* @__PURE__ */ v("div", {
14
+ function S() {
15
+ let { id: S } = x(), { navigate: C, basePath: w = "/products" } = t(), T = e(), { confirm: E, ConfirmDialog: D } = s(), O = S || "", { shortcut: k, loading: A, error: j, refetch: M } = l(O), { deleteShortcut: N, loading: P } = c(), { toggleShortcut: F, loading: I } = u();
16
+ return A ? /* @__PURE__ */ y("div", {
16
17
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
17
- children: /* @__PURE__ */ v(n, { message: w("shortcuts.loadingShortcut", "Loading shortcut...") })
18
- }) : O ? /* @__PURE__ */ v("div", {
18
+ children: /* @__PURE__ */ y(n, { message: T("shortcuts.loadingShortcut", "Loading shortcut...") })
19
+ }) : j ? /* @__PURE__ */ y("div", {
19
20
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
20
- children: /* @__PURE__ */ v(r, {
21
- message: O.message,
21
+ children: /* @__PURE__ */ y(r, {
22
+ message: j.message,
22
23
  action: {
23
- label: w("productCommon.retry", "Retry"),
24
- onClick: () => k()
24
+ label: T("productCommon.retry", "Retry"),
25
+ onClick: () => M()
25
26
  }
26
27
  })
27
- }) : E ? /* @__PURE__ */ y("div", {
28
- className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
29
- children: [/* @__PURE__ */ y("div", {
30
- className: "mb-6",
31
- children: [/* @__PURE__ */ y("button", {
32
- type: "button",
33
- onClick: () => S(`${C}/shortcuts`),
34
- className: "\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-colors duration-200\n ",
35
- children: [/* @__PURE__ */ v(f, { size: 18 }), w("shortcuts.backToShortcuts", "Back to Shortcuts")]
36
- }), /* @__PURE__ */ y("div", {
37
- className: "flex items-start justify-between",
38
- children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y("div", {
39
- className: "flex items-center gap-3 mb-2",
40
- children: [/* @__PURE__ */ v("h1", {
41
- className: "text-3xl font-bold text-text-primary",
42
- children: E.label
43
- }), /* @__PURE__ */ v(u, { category: E.category })]
44
- }), /* @__PURE__ */ y("div", {
45
- className: "flex items-center gap-3",
46
- children: [/* @__PURE__ */ v(d, {
47
- shortcutKey: E.shortcutKey,
48
- isSequence: E.isSequence
49
- }), /* @__PURE__ */ v("span", {
50
- className: `
28
+ }) : k ? /* @__PURE__ */ b("div", {
29
+ className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
30
+ children: [
31
+ /* @__PURE__ */ b("div", {
32
+ className: "mb-6",
33
+ children: [/* @__PURE__ */ b("button", {
34
+ type: "button",
35
+ onClick: () => C(`${w}/shortcuts`),
36
+ className: "\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-colors duration-200\n ",
37
+ children: [/* @__PURE__ */ y(p, { size: 18 }), T("shortcuts.backToShortcuts", "Back to Shortcuts")]
38
+ }), /* @__PURE__ */ b("div", {
39
+ className: "flex items-start justify-between",
40
+ children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("div", {
41
+ className: "flex items-center gap-3 mb-2",
42
+ children: [/* @__PURE__ */ y("h1", {
43
+ className: "text-3xl font-bold text-text-primary",
44
+ children: k.label
45
+ }), /* @__PURE__ */ y(d, { category: k.category })]
46
+ }), /* @__PURE__ */ b("div", {
47
+ className: "flex items-center gap-3",
48
+ children: [/* @__PURE__ */ y(f, {
49
+ shortcutKey: k.shortcutKey,
50
+ isSequence: k.isSequence
51
+ }), /* @__PURE__ */ y("span", {
52
+ className: `
51
53
  inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium
52
- ${E.isEnabled ? "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)]" : "bg-bg-sunken text-text-tertiary"}
54
+ ${k.isEnabled ? "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)]" : "bg-bg-sunken text-text-tertiary"}
53
55
  `,
54
- children: E.isEnabled ? w("shortcuts.enabled", "Enabled") : w("shortcuts.disabled", "Disabled")
55
- })]
56
- })] }), /* @__PURE__ */ y("div", {
57
- className: "flex items-center gap-2",
58
- children: [
59
- /* @__PURE__ */ v("button", {
60
- type: "button",
61
- onClick: async () => {
62
- if (E) {
63
- a("medium");
64
- try {
65
- await M(T, !E.isEnabled), k();
66
- } catch (e) {
67
- o("error"), console.error("Failed to toggle shortcut:", e);
56
+ children: k.isEnabled ? T("shortcuts.enabled", "Enabled") : T("shortcuts.disabled", "Disabled")
57
+ })]
58
+ })] }), /* @__PURE__ */ b("div", {
59
+ className: "flex items-center gap-2",
60
+ children: [
61
+ /* @__PURE__ */ y("button", {
62
+ type: "button",
63
+ onClick: async () => {
64
+ if (k) {
65
+ a("medium");
66
+ try {
67
+ await F(O, !k.isEnabled), M();
68
+ } catch (e) {
69
+ o("error"), console.error("Failed to toggle shortcut:", e);
70
+ }
68
71
  }
69
- }
70
- },
71
- disabled: N,
72
- className: `
72
+ },
73
+ disabled: I,
74
+ className: `
73
75
  inline-flex items-center gap-2 px-4 py-2
74
76
  rounded-lg
75
77
  transition-all duration-200
76
78
  font-medium
77
79
  disabled:opacity-50
78
- ${E.isEnabled ? "bg-surface text-text-primary border border-default hover:bg-bg-sunken" : "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)] border border-[var(--color-status-success)] hover:bg-[var(--color-status-success)] hover:text-white"}
80
+ ${k.isEnabled ? "bg-surface text-text-primary border border-default hover:bg-bg-sunken" : "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)] border border-[var(--color-status-success)] hover:bg-[var(--color-status-success)] hover:text-white"}
79
81
  `,
80
- children: E.isEnabled ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(m, { size: 18 }), w("shortcuts.disable", "Disable")] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(h, { size: 18 }), w("shortcuts.enable", "Enable")] })
81
- }),
82
- /* @__PURE__ */ y("button", {
83
- type: "button",
84
- onClick: () => S(`${C}/shortcuts/${T}/edit`),
85
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n ",
86
- children: [/* @__PURE__ */ v(p, { size: 18 }), w("shortcuts.edit", "Edit")]
87
- }),
88
- /* @__PURE__ */ y("button", {
89
- type: "button",
90
- onClick: async () => {
91
- a("medium");
92
- let e = w("shortcuts.confirmDelete", "Are you sure you want to delete this shortcut?"), t = await i({
93
- title: "Delete shortcut",
94
- message: e,
95
- okButtonTitle: "Delete",
96
- cancelButtonTitle: "Cancel"
97
- });
98
- if (t === null ? window.confirm(e) : t) try {
99
- await A(T), o("success"), S(`${C}/shortcuts`);
100
- } catch (e) {
101
- o("error"), console.error("Failed to delete shortcut:", e);
102
- }
103
- },
104
- disabled: j,
105
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-status-error-subtle)]\n text-[var(--color-status-error)]\n border border-[var(--color-status-error)]\n rounded-lg\n hover:bg-[var(--color-status-error)] hover:text-white\n transition-all duration-200\n font-medium\n disabled:opacity-50\n ",
106
- children: [/* @__PURE__ */ v(g, { size: 18 }), w("shortcuts.delete", "Delete")]
107
- })
108
- ]
109
- })]
110
- })]
111
- }), /* @__PURE__ */ y("div", {
112
- className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
113
- children: [/* @__PURE__ */ y("div", {
114
- className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] p-6",
115
- children: [/* @__PURE__ */ v("h2", {
116
- className: "text-lg font-semibold text-text-primary mb-4",
117
- children: w("shortcuts.shortcutDetails", "Shortcut Details")
118
- }), /* @__PURE__ */ y("dl", {
119
- className: "space-y-4",
120
- children: [
121
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
122
- className: "text-sm font-medium text-text-secondary",
123
- children: w("shortcuts.label", "Label")
124
- }), /* @__PURE__ */ v("dd", {
125
- className: "text-text-primary mt-1",
126
- children: E.label
127
- })] }),
128
- E.description && /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
129
- className: "text-sm font-medium text-text-secondary",
130
- children: w("shortcuts.description", "Description")
131
- }), /* @__PURE__ */ v("dd", {
132
- className: "text-text-primary mt-1",
133
- children: E.description
134
- })] }),
135
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
136
- className: "text-sm font-medium text-text-secondary",
137
- children: w("shortcuts.shortcutKey", "Shortcut Key")
138
- }), /* @__PURE__ */ v("dd", {
139
- className: "mt-1",
140
- children: /* @__PURE__ */ v(d, {
141
- shortcutKey: E.shortcutKey,
142
- isSequence: E.isSequence
143
- })
144
- })] }),
145
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
146
- className: "text-sm font-medium text-text-secondary",
147
- children: w("shortcuts.eventName", "Event Name")
148
- }), /* @__PURE__ */ v("dd", {
149
- className: "mt-1",
150
- children: /* @__PURE__ */ v("code", {
151
- className: "text-sm text-text-secondary bg-bg-sunken px-2 py-1 rounded font-mono",
152
- children: E.eventName
153
- })
154
- })] }),
155
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
156
- className: "text-sm font-medium text-text-secondary",
157
- children: w("shortcuts.category", "Category")
158
- }), /* @__PURE__ */ v("dd", {
159
- className: "mt-1",
160
- children: /* @__PURE__ */ v(u, { category: E.category })
161
- })] }),
162
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
163
- className: "text-sm font-medium text-text-secondary",
164
- children: w("shortcuts.product", "Product")
165
- }), /* @__PURE__ */ v("dd", {
166
- className: "text-text-primary mt-1",
167
- children: E.product?.name || /* @__PURE__ */ v("span", {
168
- className: "text-text-tertiary italic",
169
- children: w("shortcuts.globalAllProducts", "Global (All Products)")
82
+ children: k.isEnabled ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(h, { size: 18 }), T("shortcuts.disable", "Disable")] }) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(g, { size: 18 }), T("shortcuts.enable", "Enable")] })
83
+ }),
84
+ /* @__PURE__ */ b("button", {
85
+ type: "button",
86
+ onClick: () => C(`${w}/shortcuts/${O}/edit`),
87
+ className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n ",
88
+ children: [/* @__PURE__ */ y(m, { size: 18 }), T("shortcuts.edit", "Edit")]
89
+ }),
90
+ /* @__PURE__ */ b("button", {
91
+ type: "button",
92
+ onClick: async () => {
93
+ a("medium");
94
+ let e = T("shortcuts.confirmDelete", "Are you sure you want to delete this shortcut?"), t = await i({
95
+ title: "Delete shortcut",
96
+ message: e,
97
+ okButtonTitle: "Delete",
98
+ cancelButtonTitle: "Cancel"
99
+ });
100
+ if (t === null ? await E({
101
+ title: "Delete shortcut",
102
+ message: e,
103
+ okButtonTitle: "Delete",
104
+ cancelButtonTitle: "Cancel",
105
+ destructive: !0
106
+ }) : t) try {
107
+ await N(O), o("success"), C(`${w}/shortcuts`);
108
+ } catch (e) {
109
+ o("error"), console.error("Failed to delete shortcut:", e);
110
+ }
111
+ },
112
+ disabled: P,
113
+ className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-status-error-subtle)]\n text-[var(--color-status-error)]\n border border-[var(--color-status-error)]\n rounded-lg\n hover:bg-[var(--color-status-error)] hover:text-white\n transition-all duration-200\n font-medium\n disabled:opacity-50\n ",
114
+ children: [/* @__PURE__ */ y(_, { size: 18 }), T("shortcuts.delete", "Delete")]
170
115
  })
171
- })] }),
172
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
173
- className: "text-sm font-medium text-text-secondary",
174
- children: w("shortcuts.type", "Type")
175
- }), /* @__PURE__ */ v("dd", {
176
- className: "text-text-primary mt-1",
177
- children: E.isSequence ? w("shortcuts.keySequence", "Key Sequence") : w("shortcuts.keyCombination", "Key Combination")
178
- })] }),
179
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
180
- className: "text-sm font-medium text-text-secondary",
181
- children: w("shortcuts.sortOrder", "Sort Order")
182
- }), /* @__PURE__ */ v("dd", {
183
- className: "text-text-primary mt-1",
184
- children: E.sortOrder
185
- })] })
186
- ]
116
+ ]
117
+ })]
187
118
  })]
188
- }), /* @__PURE__ */ y("div", {
189
- className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] p-6",
190
- children: [
191
- /* @__PURE__ */ v("h2", {
119
+ }),
120
+ /* @__PURE__ */ b("div", {
121
+ className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
122
+ children: [/* @__PURE__ */ b("div", {
123
+ className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] p-6",
124
+ children: [/* @__PURE__ */ y("h2", {
192
125
  className: "text-lg font-semibold text-text-primary mb-4",
193
- children: w("shortcuts.platformKeys", "Platform Keys")
194
- }),
195
- /* @__PURE__ */ y("dl", {
126
+ children: T("shortcuts.shortcutDetails", "Shortcut Details")
127
+ }), /* @__PURE__ */ b("dl", {
196
128
  className: "space-y-4",
197
129
  children: [
198
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
130
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
131
+ className: "text-sm font-medium text-text-secondary",
132
+ children: T("shortcuts.label", "Label")
133
+ }), /* @__PURE__ */ y("dd", {
134
+ className: "text-text-primary mt-1",
135
+ children: k.label
136
+ })] }),
137
+ k.description && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
199
138
  className: "text-sm font-medium text-text-secondary",
200
- children: w("shortcuts.defaultKey", "Default Key")
201
- }), /* @__PURE__ */ v("dd", {
139
+ children: T("shortcuts.description", "Description")
140
+ }), /* @__PURE__ */ y("dd", {
141
+ className: "text-text-primary mt-1",
142
+ children: k.description
143
+ })] }),
144
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
145
+ className: "text-sm font-medium text-text-secondary",
146
+ children: T("shortcuts.shortcutKey", "Shortcut Key")
147
+ }), /* @__PURE__ */ y("dd", {
202
148
  className: "mt-1",
203
- children: /* @__PURE__ */ v(d, {
204
- shortcutKey: E.shortcutKey,
205
- isSequence: E.isSequence
149
+ children: /* @__PURE__ */ y(f, {
150
+ shortcutKey: k.shortcutKey,
151
+ isSequence: k.isSequence
206
152
  })
207
153
  })] }),
208
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
154
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
209
155
  className: "text-sm font-medium text-text-secondary",
210
- children: w("shortcuts.macKey", "Mac Key")
211
- }), /* @__PURE__ */ v("dd", {
156
+ children: T("shortcuts.eventName", "Event Name")
157
+ }), /* @__PURE__ */ y("dd", {
212
158
  className: "mt-1",
213
- children: E.macKey ? /* @__PURE__ */ v(d, { shortcutKey: E.macKey }) : /* @__PURE__ */ v("span", {
214
- className: "text-text-tertiary italic",
215
- children: w("shortcuts.sameAsDefault", "Same as default")
159
+ children: /* @__PURE__ */ y("code", {
160
+ className: "text-sm text-text-secondary bg-bg-sunken px-2 py-1 rounded font-mono",
161
+ children: k.eventName
216
162
  })
217
163
  })] }),
218
- /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("dt", {
164
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
219
165
  className: "text-sm font-medium text-text-secondary",
220
- children: w("shortcuts.windowsLinuxKey", "Windows/Linux Key")
221
- }), /* @__PURE__ */ v("dd", {
166
+ children: T("shortcuts.category", "Category")
167
+ }), /* @__PURE__ */ y("dd", {
222
168
  className: "mt-1",
223
- children: E.windowsKey ? /* @__PURE__ */ v(d, { shortcutKey: E.windowsKey }) : /* @__PURE__ */ v("span", {
169
+ children: /* @__PURE__ */ y(d, { category: k.category })
170
+ })] }),
171
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
172
+ className: "text-sm font-medium text-text-secondary",
173
+ children: T("shortcuts.product", "Product")
174
+ }), /* @__PURE__ */ y("dd", {
175
+ className: "text-text-primary mt-1",
176
+ children: k.product?.name || /* @__PURE__ */ y("span", {
224
177
  className: "text-text-tertiary italic",
225
- children: w("shortcuts.sameAsDefault", "Same as default")
178
+ children: T("shortcuts.globalAllProducts", "Global (All Products)")
226
179
  })
180
+ })] }),
181
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
182
+ className: "text-sm font-medium text-text-secondary",
183
+ children: T("shortcuts.type", "Type")
184
+ }), /* @__PURE__ */ y("dd", {
185
+ className: "text-text-primary mt-1",
186
+ children: k.isSequence ? T("shortcuts.keySequence", "Key Sequence") : T("shortcuts.keyCombination", "Key Combination")
187
+ })] }),
188
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
189
+ className: "text-sm font-medium text-text-secondary",
190
+ children: T("shortcuts.sortOrder", "Sort Order")
191
+ }), /* @__PURE__ */ y("dd", {
192
+ className: "text-text-primary mt-1",
193
+ children: k.sortOrder
227
194
  })] })
228
195
  ]
229
- }),
230
- /* @__PURE__ */ y("div", {
231
- className: "mt-6 pt-4 border-t border-default",
232
- children: [/* @__PURE__ */ v("h3", {
233
- className: "text-sm font-semibold text-text-secondary mb-3",
234
- children: w("shortcuts.timestamps", "Timestamps")
235
- }), /* @__PURE__ */ y("dl", {
236
- className: "space-y-2 text-sm",
237
- children: [/* @__PURE__ */ y("div", {
238
- className: "flex justify-between",
239
- children: [/* @__PURE__ */ v("dt", {
240
- className: "text-text-tertiary",
241
- children: w("shortcuts.created", "Created")
242
- }), /* @__PURE__ */ v("dd", {
243
- className: "text-text-primary",
244
- children: new Date(E.createdAt).toLocaleString()
245
- })]
246
- }), /* @__PURE__ */ y("div", {
247
- className: "flex justify-between",
248
- children: [/* @__PURE__ */ v("dt", {
249
- className: "text-text-tertiary",
250
- children: w("shortcuts.updated", "Updated")
251
- }), /* @__PURE__ */ v("dd", {
252
- className: "text-text-primary",
253
- children: new Date(E.updatedAt).toLocaleString()
196
+ })]
197
+ }), /* @__PURE__ */ b("div", {
198
+ className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] p-6",
199
+ children: [
200
+ /* @__PURE__ */ y("h2", {
201
+ className: "text-lg font-semibold text-text-primary mb-4",
202
+ children: T("shortcuts.platformKeys", "Platform Keys")
203
+ }),
204
+ /* @__PURE__ */ b("dl", {
205
+ className: "space-y-4",
206
+ children: [
207
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
208
+ className: "text-sm font-medium text-text-secondary",
209
+ children: T("shortcuts.defaultKey", "Default Key")
210
+ }), /* @__PURE__ */ y("dd", {
211
+ className: "mt-1",
212
+ children: /* @__PURE__ */ y(f, {
213
+ shortcutKey: k.shortcutKey,
214
+ isSequence: k.isSequence
215
+ })
216
+ })] }),
217
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
218
+ className: "text-sm font-medium text-text-secondary",
219
+ children: T("shortcuts.macKey", "Mac Key")
220
+ }), /* @__PURE__ */ y("dd", {
221
+ className: "mt-1",
222
+ children: k.macKey ? /* @__PURE__ */ y(f, { shortcutKey: k.macKey }) : /* @__PURE__ */ y("span", {
223
+ className: "text-text-tertiary italic",
224
+ children: T("shortcuts.sameAsDefault", "Same as default")
225
+ })
226
+ })] }),
227
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
228
+ className: "text-sm font-medium text-text-secondary",
229
+ children: T("shortcuts.windowsLinuxKey", "Windows/Linux Key")
230
+ }), /* @__PURE__ */ y("dd", {
231
+ className: "mt-1",
232
+ children: k.windowsKey ? /* @__PURE__ */ y(f, { shortcutKey: k.windowsKey }) : /* @__PURE__ */ y("span", {
233
+ className: "text-text-tertiary italic",
234
+ children: T("shortcuts.sameAsDefault", "Same as default")
235
+ })
236
+ })] })
237
+ ]
238
+ }),
239
+ /* @__PURE__ */ b("div", {
240
+ className: "mt-6 pt-4 border-t border-default",
241
+ children: [/* @__PURE__ */ y("h3", {
242
+ className: "text-sm font-semibold text-text-secondary mb-3",
243
+ children: T("shortcuts.timestamps", "Timestamps")
244
+ }), /* @__PURE__ */ b("dl", {
245
+ className: "space-y-2 text-sm",
246
+ children: [/* @__PURE__ */ b("div", {
247
+ className: "flex justify-between",
248
+ children: [/* @__PURE__ */ y("dt", {
249
+ className: "text-text-tertiary",
250
+ children: T("shortcuts.created", "Created")
251
+ }), /* @__PURE__ */ y("dd", {
252
+ className: "text-text-primary",
253
+ children: new Date(k.createdAt).toLocaleString()
254
+ })]
255
+ }), /* @__PURE__ */ b("div", {
256
+ className: "flex justify-between",
257
+ children: [/* @__PURE__ */ y("dt", {
258
+ className: "text-text-tertiary",
259
+ children: T("shortcuts.updated", "Updated")
260
+ }), /* @__PURE__ */ y("dd", {
261
+ className: "text-text-primary",
262
+ children: new Date(k.updatedAt).toLocaleString()
263
+ })]
254
264
  })]
255
265
  })]
256
- })]
257
- })
258
- ]
259
- })]
260
- })]
261
- }) : /* @__PURE__ */ v("div", {
266
+ })
267
+ ]
268
+ })]
269
+ }),
270
+ D
271
+ ]
272
+ }) : /* @__PURE__ */ y("div", {
262
273
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
263
- children: /* @__PURE__ */ v(r, {
264
- message: w("shortcuts.shortcutNotFound", "Shortcut not found"),
274
+ children: /* @__PURE__ */ y(r, {
275
+ message: T("shortcuts.shortcutNotFound", "Shortcut not found"),
265
276
  action: {
266
- label: w("shortcuts.goBack", "Go Back"),
267
- onClick: () => S(`${C}/shortcuts`)
277
+ label: T("shortcuts.goBack", "Go Back"),
278
+ onClick: () => C(`${w}/shortcuts`)
268
279
  }
269
280
  })
270
281
  });
271
282
  }
272
283
  //#endregion
273
- export { x as ShortcutDetailPage };
284
+ export { S as ShortcutDetailPage };
274
285
 
275
286
  //# sourceMappingURL=ShortcutDetailPage.js.map