@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.
- package/dist/product/pages/ContentPageViewPage.js +1 -1
- package/dist/product/pages/ContentPageViewPage.js.map +1 -1
- package/dist/product/pages/ProductCatalogPage.js +2 -2
- package/dist/product/pages/ProductCatalogPage.js.map +1 -1
- package/dist/product/pages/ProductViewPage.js +1 -1
- package/dist/product/pages/ProductViewPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js +2 -2
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +242 -231
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +293 -282
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +1 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +144 -136
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +188 -204
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +1 -1
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +95 -87
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +250 -239
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductForm.js +1 -1
- package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductCreatePage.js +1 -1
- package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.js +407 -396
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductEditPage.js +1 -1
- package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductsListPage.js +286 -275
- package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +1 -1
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +236 -225
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +261 -245
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
- package/dist/product-management/shared/components/feedback/ErrorState.js +1 -1
- package/dist/product-management/shared/components/feedback/ErrorState.js.map +1 -1
- package/dist/product-management/shared/components/feedback/LoadingState.js +1 -1
- package/dist/product-management/shared/components/feedback/LoadingState.js.map +1 -1
- package/dist/product-management/shared/hooks/useConfirmDialog.js +44 -0
- package/dist/product-management/shared/hooks/useConfirmDialog.js.map +1 -0
- 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 {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
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
|
|
14
|
-
let { id:
|
|
15
|
-
return
|
|
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__ */
|
|
18
|
-
}) :
|
|
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__ */
|
|
21
|
-
message:
|
|
21
|
+
children: /* @__PURE__ */ y(r, {
|
|
22
|
+
message: j.message,
|
|
22
23
|
action: {
|
|
23
|
-
label:
|
|
24
|
-
onClick: () =>
|
|
24
|
+
label: T("productCommon.retry", "Retry"),
|
|
25
|
+
onClick: () => M()
|
|
25
26
|
}
|
|
26
27
|
})
|
|
27
|
-
}) :
|
|
28
|
-
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-
|
|
29
|
-
children: [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
${
|
|
54
|
+
${k.isEnabled ? "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)]" : "bg-bg-sunken text-text-tertiary"}
|
|
53
55
|
`,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
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
|
-
${
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
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
|
-
}),
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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:
|
|
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__ */
|
|
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:
|
|
201
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
204
|
-
shortcutKey:
|
|
205
|
-
isSequence:
|
|
149
|
+
children: /* @__PURE__ */ y(f, {
|
|
150
|
+
shortcutKey: k.shortcutKey,
|
|
151
|
+
isSequence: k.isSequence
|
|
206
152
|
})
|
|
207
153
|
})] }),
|
|
208
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
|
|
209
155
|
className: "text-sm font-medium text-text-secondary",
|
|
210
|
-
children:
|
|
211
|
-
}), /* @__PURE__ */
|
|
156
|
+
children: T("shortcuts.eventName", "Event Name")
|
|
157
|
+
}), /* @__PURE__ */ y("dd", {
|
|
212
158
|
className: "mt-1",
|
|
213
|
-
children:
|
|
214
|
-
className: "text-text-
|
|
215
|
-
children:
|
|
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__ */
|
|
164
|
+
/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
|
|
219
165
|
className: "text-sm font-medium text-text-secondary",
|
|
220
|
-
children:
|
|
221
|
-
}), /* @__PURE__ */
|
|
166
|
+
children: T("shortcuts.category", "Category")
|
|
167
|
+
}), /* @__PURE__ */ y("dd", {
|
|
222
168
|
className: "mt-1",
|
|
223
|
-
children:
|
|
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:
|
|
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
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
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
|
-
|
|
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__ */
|
|
264
|
-
message:
|
|
274
|
+
children: /* @__PURE__ */ y(r, {
|
|
275
|
+
message: T("shortcuts.shortcutNotFound", "Shortcut not found"),
|
|
265
276
|
action: {
|
|
266
|
-
label:
|
|
267
|
-
onClick: () =>
|
|
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 {
|
|
284
|
+
export { S as ShortcutDetailPage };
|
|
274
285
|
|
|
275
286
|
//# sourceMappingURL=ShortcutDetailPage.js.map
|