@flamingo-stack/openframe-frontend-core 0.0.740 → 0.0.742
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/build/export-map.json +1 -1
- package/dist/{chunk-BV5WZVOP.cjs → chunk-32Q7K5OP.cjs} +254 -254
- package/dist/{chunk-ZLTCQKTD.cjs → chunk-3LW43GIJ.cjs} +6 -6
- package/dist/{chunk-VA7OMDZO.cjs → chunk-4FWURR3W.cjs} +50 -50
- package/dist/{chunk-EKGL5K5K.cjs → chunk-4LDU32OB.cjs} +17 -17
- package/dist/{chunk-VC4IV3AY.cjs → chunk-4PKORVOX.cjs} +2804 -954
- package/dist/{chunk-3ZIQOYNX.cjs → chunk-54EA4RLX.cjs} +8 -8
- package/dist/{chunk-YXKB5WRE.cjs → chunk-5MH6BRPY.cjs} +36 -36
- package/dist/{chunk-PQ2M7P2U.cjs → chunk-5TCIRWHL.cjs} +9 -9
- package/dist/{chunk-WFPCCBOM.cjs → chunk-7AM3AFM4.cjs} +10 -10
- package/dist/{chunk-7ZFCR7UY.cjs → chunk-ABLUMGCI.cjs} +3 -3
- package/dist/{chunk-PX7FY655.cjs → chunk-ASMNNSUQ.cjs} +3 -3
- package/dist/{chunk-HF7Z2E4W.cjs → chunk-BI3XBCQX.cjs} +2 -2
- package/dist/{chunk-SA7LDEVJ.cjs → chunk-CSJO7ZGN.cjs} +3 -3
- package/dist/{chunk-VOX4E6AX.cjs → chunk-DGFDBPO7.cjs} +7 -5
- package/dist/{chunk-KHXZFLIN.cjs → chunk-DKOLQPE7.cjs} +8 -2
- package/dist/{chunk-BDA5F6RM.cjs → chunk-DNFSMVXJ.cjs} +16 -16
- package/dist/{chunk-B3XBJCOD.cjs → chunk-H3UA7UY5.cjs} +7 -7
- package/dist/{chunk-2Y5Y4FLM.cjs → chunk-HDBY2URA.cjs} +64 -64
- package/dist/{chunk-UW3YXDC4.cjs → chunk-HIRVNBX5.cjs} +20 -20
- package/dist/{chunk-LLAC2UZ3.cjs → chunk-ISJXKKYW.cjs} +28 -28
- package/dist/{chunk-FICJS5OA.cjs → chunk-KTPR66EE.cjs} +4 -4
- package/dist/{chunk-7UIQPMBJ.cjs → chunk-L34TKFTS.cjs} +21 -164
- package/dist/{chunk-AAFW4STC.cjs → chunk-LU7TD6QS.cjs} +5 -5
- package/dist/{chunk-3HPB4H4C.cjs → chunk-NTGIQP7O.cjs} +7 -7
- package/dist/{chunk-WBANGORJ.cjs → chunk-OBODY7F3.cjs} +3 -3
- package/dist/{chunk-GABDE3FM.cjs → chunk-OWGLRE74.cjs} +19 -19
- package/dist/{chunk-CWRVTQUO.cjs → chunk-PS6T65KA.cjs} +101 -101
- package/dist/{chunk-IFS4AH77.cjs → chunk-QYLIHZKZ.cjs} +10 -10
- package/dist/{chunk-GVTDVS5U.cjs → chunk-R34JD6NP.cjs} +3 -3
- package/dist/{chunk-VU4CKUJW.cjs → chunk-R6SCSV2I.cjs} +103 -103
- package/dist/{chunk-II4QMH26.cjs → chunk-STEJZPIO.cjs} +3 -3
- package/dist/{chunk-4RLGLB45.cjs → chunk-T433HSL6.cjs} +47 -47
- package/dist/{chunk-DSVNFRY5.cjs → chunk-U2O5YQRP.cjs} +38 -38
- package/dist/{chunk-O67V3HJR.cjs → chunk-URVIPSAJ.cjs} +24 -24
- package/dist/{chunk-HYBMADYO.cjs → chunk-UWHCRIQQ.cjs} +22 -22
- package/dist/{chunk-GSWQZX23.cjs → chunk-UY6A6TEY.cjs} +2 -2
- package/dist/{chunk-D5KEWWLW.cjs → chunk-UZLRSFGG.cjs} +32 -32
- package/dist/{chunk-DUVOQHQI.cjs → chunk-W2RM764D.cjs} +7 -7
- package/dist/{chunk-NTJE6SM6.cjs → chunk-WI2OTGKC.cjs} +2 -2
- package/dist/{chunk-SFY4UYPY.cjs → chunk-WIHHA54J.cjs} +44 -44
- package/dist/{chunk-YRE3O65E.cjs → chunk-XAA5EZ5T.cjs} +12 -12
- package/dist/{chunk-KLI4OSRA.cjs → chunk-YQGDXH3M.cjs} +2 -2
- package/dist/{chunk-SWR22DOZ.cjs → chunk-Z2DQYKZA.cjs} +89 -89
- package/dist/{chunk-5SVOGLNK.cjs → chunk-ZIFYSLIM.cjs} +6 -6
- package/dist/{cloud-tenants-PVXDI5MU.cjs → cloud-tenants-6ICAL3HO.cjs} +34 -34
- package/dist/components/case-studies/index.cjs +37 -37
- package/dist/components/chat/index.cjs +17 -17
- package/dist/components/contact/index.cjs +25 -25
- package/dist/components/docs/index.cjs +28 -28
- package/dist/components/embeds/index.cjs +25 -25
- package/dist/components/faq/index.cjs +26 -26
- package/dist/components/features/capability-explorer.d.ts +9 -2
- package/dist/components/features/capability-explorer.d.ts.map +1 -1
- package/dist/components/features/capability-explorer.js +113 -6
- package/dist/components/features/index.cjs +162 -24
- package/dist/components/features/index.d.ts +1 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/index.js +1 -0
- package/dist/components/features/scripts/execution-cells.d.ts +65 -0
- package/dist/components/features/scripts/execution-cells.d.ts.map +1 -0
- package/dist/components/features/scripts/execution-cells.js +75 -0
- package/dist/components/features/scripts/execution-status.d.ts +48 -0
- package/dist/components/features/scripts/execution-status.d.ts.map +1 -0
- package/dist/components/features/scripts/execution-status.js +15 -0
- package/dist/components/features/scripts/index.d.ts +20 -0
- package/dist/components/features/scripts/index.d.ts.map +1 -0
- package/dist/components/features/scripts/index.js +59 -0
- package/dist/components/features/scripts/schedule-form/index.d.ts +18 -0
- package/dist/components/features/scripts/schedule-form/index.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/index.js +84 -0
- package/dist/components/features/scripts/schedule-form/schedule-enums.d.ts +24 -0
- package/dist/components/features/scripts/schedule-form/schedule-enums.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-enums.js +18 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-fields.d.ts +57 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-fields.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-fields.js +169 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-types.d.ts +138 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-types.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-form-types.js +72 -0
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.d.ts +54 -0
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-interval-input.js +60 -0
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts +29 -0
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-offline-fields.js +124 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.d.ts +52 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +244 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-search-field.d.ts +35 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-search-field.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-script-search-field.js +58 -0
- package/dist/components/features/scripts/schedule-form/schedule-scripts-field.d.ts +25 -0
- package/dist/components/features/scripts/schedule-form/schedule-scripts-field.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-scripts-field.js +66 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts +77 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing-fields.js +262 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing.d.ts +288 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing.d.ts.map +1 -0
- package/dist/components/features/scripts/schedule-form/schedule-timing.js +165 -0
- package/dist/components/features/scripts/script-cells.d.ts +11 -0
- package/dist/components/features/scripts/script-cells.d.ts.map +1 -0
- package/dist/components/features/scripts/script-cells.js +19 -0
- package/dist/components/features/scripts/script-executions-table.d.ts +58 -0
- package/dist/components/features/scripts/script-executions-table.d.ts.map +1 -0
- package/dist/components/features/scripts/script-executions-table.js +88 -0
- package/dist/components/features/scripts/script-schedules-table.d.ts +38 -0
- package/dist/components/features/scripts/script-schedules-table.d.ts.map +1 -0
- package/dist/components/features/scripts/script-schedules-table.js +71 -0
- package/dist/components/features/scripts/script-shell-badge.d.ts +9 -0
- package/dist/components/features/scripts/script-shell-badge.d.ts.map +1 -0
- package/dist/components/features/scripts/script-shell-badge.js +15 -0
- package/dist/components/features/scripts/scripts-table-columns.d.ts +162 -0
- package/dist/components/features/scripts/scripts-table-columns.d.ts.map +1 -0
- package/dist/components/features/scripts/scripts-table-columns.js +69 -0
- package/dist/components/features/scripts/scripts-table-shared.d.ts +19 -0
- package/dist/components/features/scripts/scripts-table-shared.d.ts.map +1 -0
- package/dist/components/features/scripts/scripts-table-shared.js +35 -0
- package/dist/components/features/scripts/scripts-table.d.ts +40 -0
- package/dist/components/features/scripts/scripts-table.d.ts.map +1 -0
- package/dist/components/features/scripts/scripts-table.js +84 -0
- package/dist/components/features/scripts/scripts-tabs.d.ts +5 -0
- package/dist/components/features/scripts/scripts-tabs.d.ts.map +1 -0
- package/dist/components/features/scripts/scripts-tabs.js +10 -0
- package/dist/components/features/scripts/shell-types.d.ts +13 -0
- package/dist/components/features/scripts/shell-types.d.ts.map +1 -0
- package/dist/components/features/scripts/shell-types.js +21 -0
- package/dist/components/help-center-pages/index.cjs +144 -144
- package/dist/components/index.cjs +224 -86
- package/dist/components/meeting-scheduler/index.cjs +74 -74
- package/dist/components/navigation/index.cjs +27 -27
- package/dist/components/onboarding-guides/index.cjs +27 -27
- package/dist/components/product-demo/fixtures/scripts.d.ts +34 -0
- package/dist/components/product-demo/fixtures/scripts.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/scripts.js +123 -0
- package/dist/components/product-demo/fixtures/shared.d.ts +8 -0
- package/dist/components/product-demo/fixtures/shared.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/shared.js +7 -1
- package/dist/components/product-demo/fixtures/software-update.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/software-update.js +1 -5
- package/dist/components/product-demo/index.cjs +16 -13
- package/dist/components/product-demo/product-screen.d.ts.map +1 -1
- package/dist/components/product-demo/product-screen.js +2 -1
- package/dist/components/product-demo/registry.d.ts.map +1 -1
- package/dist/components/product-demo/registry.js +2 -1
- package/dist/components/product-demo/screen-keys.cjs +2 -1
- package/dist/components/product-demo/screen-keys.d.ts +1 -0
- package/dist/components/product-demo/screen-keys.d.ts.map +1 -1
- package/dist/components/product-demo/screen-keys.js +2 -1
- package/dist/components/product-demo/screens/scripts.d.ts +11 -0
- package/dist/components/product-demo/screens/scripts.d.ts.map +1 -0
- package/dist/components/product-demo/screens/scripts.js +130 -0
- package/dist/components/related-content/index.cjs +12 -12
- package/dist/components/tickets/index.cjs +30 -30
- package/dist/components/ui/index.cjs +24 -24
- package/dist/{devices-TWEA7XOR.cjs → devices-OFP2IBKN.cjs} +30 -30
- package/dist/{embeddable-chat-6JKKFQEB.cjs → embeddable-chat-4C22MGNC.cjs} +92 -92
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +169 -31
- package/dist/{knowledge-4GQDBNQB.cjs → knowledge-KKBCSNUA.cjs} +29 -29
- package/dist/{logs-EVU6GJHZ.cjs → logs-X2GRNO57.cjs} +46 -46
- package/dist/{policies-OZUEA5YS.cjs → policies-35BXKB6P.cjs} +31 -31
- package/dist/{remote-session-DNFZ5OLY.cjs → remote-session-N4PJB5FW.cjs} +15 -15
- package/dist/scripts-KQYVQOLU.cjs +2112 -0
- package/dist/{software-update-BLIVYOY2.cjs → software-update-ED33WSKT.cjs} +36 -40
- package/dist/{tickets-board-CKZRB6YV.cjs → tickets-board-O753S4ZB.cjs} +31 -31
- package/dist/utils/embed-authed-fetch.d.ts +33 -0
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/embed-authed-fetch.js +3 -1
- package/dist/utils/index.cjs +3 -1
- package/dist/{video-file-player-ZH2ILAPO.cjs → video-file-player-QZ3YOLHO.cjs} +2 -2
- package/package.json +1 -1
- package/src/components/features/capability-explorer.tsx +134 -7
- package/src/components/features/index.ts +1 -0
- package/src/components/features/scripts/execution-cells.tsx +149 -0
- package/src/components/features/scripts/execution-status.ts +42 -0
- package/src/components/features/scripts/index.ts +42 -0
- package/src/components/features/scripts/schedule-form/index.ts +59 -0
- package/src/components/features/scripts/schedule-form/schedule-enums.ts +26 -0
- package/src/components/features/scripts/schedule-form/schedule-form-fields.tsx +249 -0
- package/src/components/features/scripts/schedule-form/schedule-form-types.ts +189 -0
- package/src/components/features/scripts/schedule-form/schedule-interval-input.tsx +121 -0
- package/src/components/features/scripts/schedule-form/schedule-offline-fields.tsx +218 -0
- package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +321 -0
- package/src/components/features/scripts/schedule-form/schedule-script-search-field.tsx +115 -0
- package/src/components/features/scripts/schedule-form/schedule-scripts-field.tsx +97 -0
- package/src/components/features/scripts/schedule-form/schedule-timing-fields.tsx +482 -0
- package/src/components/features/scripts/schedule-form/schedule-timing.ts +484 -0
- package/src/components/features/scripts/script-cells.tsx +29 -0
- package/src/components/features/scripts/script-executions-table.tsx +145 -0
- package/src/components/features/scripts/script-schedules-table.tsx +113 -0
- package/src/components/features/scripts/script-shell-badge.tsx +25 -0
- package/src/components/features/scripts/scripts-table-columns.ts +95 -0
- package/src/components/features/scripts/scripts-table-shared.tsx +43 -0
- package/src/components/features/scripts/scripts-table.tsx +124 -0
- package/src/components/features/scripts/scripts-tabs.ts +11 -0
- package/src/components/features/scripts/shell-types.ts +26 -0
- package/src/components/product-demo/fixtures/scripts.ts +186 -0
- package/src/components/product-demo/fixtures/shared.ts +7 -0
- package/src/components/product-demo/fixtures/software-update.ts +1 -7
- package/src/components/product-demo/product-screen.tsx +3 -1
- package/src/components/product-demo/registry.ts +1 -0
- package/src/components/product-demo/screen-keys.ts +1 -0
- package/src/components/product-demo/screens/scripts.tsx +192 -0
- package/src/utils/embed-authed-fetch.ts +42 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4FWURR3Wcjs = require('./chunk-4FWURR3W.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkPS6T65KAcjs = require('./chunk-PS6T65KA.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -21,9 +21,6 @@ var _chunkBF77UKGDcjs = require('./chunk-BF77UKGD.cjs');
|
|
|
21
21
|
var _chunkMCQY746Mcjs = require('./chunk-MCQY746M.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var _chunkEETTUAAFcjs = require('./chunk-EETTUAAF.cjs');
|
|
25
|
-
|
|
26
|
-
|
|
27
24
|
var _chunkHLNYSJLKcjs = require('./chunk-HLNYSJLK.cjs');
|
|
28
25
|
|
|
29
26
|
|
|
@@ -33,9 +30,6 @@ var _chunkG37H4CBTcjs = require('./chunk-G37H4CBT.cjs');
|
|
|
33
30
|
var _chunkIGDNUXHOcjs = require('./chunk-IGDNUXHO.cjs');
|
|
34
31
|
|
|
35
32
|
|
|
36
|
-
var _chunkMT45XX7Icjs = require('./chunk-MT45XX7I.cjs');
|
|
37
|
-
|
|
38
|
-
|
|
39
33
|
var _chunkZ3VXCBKRcjs = require('./chunk-Z3VXCBKR.cjs');
|
|
40
34
|
|
|
41
35
|
|
|
@@ -51,27 +45,18 @@ var _chunkUXUYT4WKcjs = require('./chunk-UXUYT4WK.cjs');
|
|
|
51
45
|
var _chunk5OG5ZTNMcjs = require('./chunk-5OG5ZTNM.cjs');
|
|
52
46
|
|
|
53
47
|
|
|
54
|
-
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
55
48
|
|
|
56
49
|
|
|
57
50
|
|
|
51
|
+
var _chunk5MH6BRPYcjs = require('./chunk-5MH6BRPY.cjs');
|
|
58
52
|
|
|
59
53
|
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
var _chunk7ZFCR7UYcjs = require('./chunk-7ZFCR7UY.cjs');
|
|
54
|
+
var _chunkABLUMGCIcjs = require('./chunk-ABLUMGCI.cjs');
|
|
64
55
|
|
|
65
56
|
|
|
66
57
|
var _chunkHOTM4UM6cjs = require('./chunk-HOTM4UM6.cjs');
|
|
67
58
|
|
|
68
59
|
|
|
69
|
-
var _chunkHTRILBJDcjs = require('./chunk-HTRILBJD.cjs');
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
var _chunkK6VWTUCHcjs = require('./chunk-K6VWTUCH.cjs');
|
|
73
|
-
|
|
74
|
-
|
|
75
60
|
var _chunk2QMBXGMQcjs = require('./chunk-2QMBXGMQ.cjs');
|
|
76
61
|
|
|
77
62
|
|
|
@@ -177,31 +162,31 @@ CveLink.displayName = "CveLink";
|
|
|
177
162
|
// src/components/platform/ShellTypeBadge.tsx
|
|
178
163
|
|
|
179
164
|
var shellIconMap = {
|
|
180
|
-
[
|
|
165
|
+
[_chunkPS6T65KAcjs.ShellTypeValues.POWERSHELL]: {
|
|
181
166
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
182
167
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
183
168
|
},
|
|
184
|
-
[
|
|
169
|
+
[_chunkPS6T65KAcjs.ShellTypeValues.CMD]: {
|
|
185
170
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
186
171
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
187
172
|
},
|
|
188
|
-
[
|
|
173
|
+
[_chunkPS6T65KAcjs.ShellTypeValues.BASH]: {
|
|
189
174
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
190
175
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
191
176
|
},
|
|
192
|
-
[
|
|
177
|
+
[_chunkPS6T65KAcjs.ShellTypeValues.PYTHON]: {
|
|
193
178
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
194
179
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
195
180
|
},
|
|
196
|
-
[
|
|
181
|
+
[_chunkPS6T65KAcjs.ShellTypeValues.NUSHELL]: {
|
|
197
182
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
198
183
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
199
184
|
},
|
|
200
|
-
[
|
|
185
|
+
[_chunkPS6T65KAcjs.ShellTypeValues.DENO]: {
|
|
201
186
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
202
187
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
203
188
|
},
|
|
204
|
-
[
|
|
189
|
+
[_chunkPS6T65KAcjs.ShellTypeValues.SHELL]: {
|
|
205
190
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
206
191
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
207
192
|
}
|
|
@@ -212,7 +197,7 @@ var defaultIconConfig = {
|
|
|
212
197
|
};
|
|
213
198
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
214
199
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
215
|
-
const label =
|
|
200
|
+
const label = _chunkPS6T65KAcjs.getShellLabel.call(void 0, normalizedType);
|
|
216
201
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
217
202
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
218
203
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -228,11 +213,11 @@ function formatSupportedPlatforms(platforms) {
|
|
|
228
213
|
if (!platforms || platforms.length === 0) {
|
|
229
214
|
return "All Platforms";
|
|
230
215
|
}
|
|
231
|
-
return platforms.map((platform) =>
|
|
216
|
+
return platforms.map((platform) => _chunkPS6T65KAcjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
232
217
|
}
|
|
233
218
|
function InfoCell({ label, value, avatar, className }) {
|
|
234
219
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
235
|
-
avatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative size-8 shrink-0 overflow-hidden rounded-full border border-ods-border bg-ods-bg", children: avatar.photoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHOTM4UM6cjs.next_image_default, { src: avatar.photoUrl, alt: avatar.name, className: "object-cover", fill: true, sizes: "32px", unoptimized: true }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex size-full items-center justify-center text-ods-text-secondary text-h6", children: avatar.initials ||
|
|
220
|
+
avatar && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative size-8 shrink-0 overflow-hidden rounded-full border border-ods-border bg-ods-bg", children: avatar.photoUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHOTM4UM6cjs.next_image_default, { src: avatar.photoUrl, alt: avatar.name, className: "object-cover", fill: true, sizes: "32px", unoptimized: true }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex size-full items-center justify-center text-ods-text-secondary text-h6", children: avatar.initials || _chunkABLUMGCIcjs.nameInitials.call(void 0, avatar.name) }) }),
|
|
236
221
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
237
222
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", title: value, children: value }),
|
|
238
223
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
@@ -248,7 +233,7 @@ var ScriptInfoSection = ({
|
|
|
248
233
|
author,
|
|
249
234
|
className
|
|
250
235
|
}) => {
|
|
251
|
-
const shellLabel =
|
|
236
|
+
const shellLabel = _chunkPS6T65KAcjs.getShellLabel.call(void 0, shellType);
|
|
252
237
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
253
238
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", className), children: [
|
|
254
239
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-b border-ods-border p-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1", children: [
|
|
@@ -269,133 +254,6 @@ var ScriptInfoSection = ({
|
|
|
269
254
|
};
|
|
270
255
|
ScriptInfoSection.displayName = "ScriptInfoSection";
|
|
271
256
|
|
|
272
|
-
// src/components/platform/ScriptArguments.tsx
|
|
273
|
-
var _lucidereact = require('lucide-react');
|
|
274
|
-
|
|
275
|
-
var SECRET_MASK = "**********";
|
|
276
|
-
var STORED_SECRET_KEY_HINT = "A stored secret can't be renamed \u2014 delete it and add a new one";
|
|
277
|
-
var ScriptArguments = ({
|
|
278
|
-
arguments: args,
|
|
279
|
-
onArgumentsChange,
|
|
280
|
-
keyPlaceholder = "Enter Key",
|
|
281
|
-
valuePlaceholder = "Enter Value (empty=flag)",
|
|
282
|
-
addButtonLabel = "Add Script Argument",
|
|
283
|
-
addSecretButtonLabel,
|
|
284
|
-
disabled = false,
|
|
285
|
-
className,
|
|
286
|
-
titleLabel
|
|
287
|
-
}) => {
|
|
288
|
-
const handleKeyChange = (id, newKey) => {
|
|
289
|
-
if (!onArgumentsChange) return;
|
|
290
|
-
const updated = args.map((arg) => arg.id === id ? { ...arg, key: newKey } : arg);
|
|
291
|
-
onArgumentsChange(updated);
|
|
292
|
-
};
|
|
293
|
-
const handleValueChange = (id, newValue) => {
|
|
294
|
-
if (!onArgumentsChange) return;
|
|
295
|
-
const updated = args.map((arg) => arg.id === id ? { ...arg, value: newValue } : arg);
|
|
296
|
-
onArgumentsChange(updated);
|
|
297
|
-
};
|
|
298
|
-
const handleDelete = (id) => {
|
|
299
|
-
if (!onArgumentsChange) return;
|
|
300
|
-
const updated = args.filter((arg) => arg.id !== id);
|
|
301
|
-
onArgumentsChange(updated);
|
|
302
|
-
};
|
|
303
|
-
const handleAdd = (secret = false) => {
|
|
304
|
-
if (!onArgumentsChange) return;
|
|
305
|
-
const newArg = {
|
|
306
|
-
id: _chunkJKX2C3I2cjs.randomId.call(void 0, ),
|
|
307
|
-
key: "",
|
|
308
|
-
value: "",
|
|
309
|
-
// Only set on a secret, so a plain pair keeps the shape it always had.
|
|
310
|
-
...secret && { secret: true }
|
|
311
|
-
};
|
|
312
|
-
onArgumentsChange([...args, newArg]);
|
|
313
|
-
};
|
|
314
|
-
const isFirstRow = (index) => index === 0;
|
|
315
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex flex-col gap-2", className), children: [
|
|
316
|
-
args.map((arg, index) => {
|
|
317
|
-
const isStoredSecret = Boolean(arg.secret && arg.hasStoredValue);
|
|
318
|
-
const showsMask = isStoredSecret && !arg.value;
|
|
319
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-end gap-2", children: [
|
|
320
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
321
|
-
isFirstRow(index) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6VWTUCHcjs.Label, { spacing: "tight", children: titleLabel }),
|
|
322
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
323
|
-
_chunkHTRILBJDcjs.Input,
|
|
324
|
-
{
|
|
325
|
-
value: arg.key,
|
|
326
|
-
onChange: (e) => handleKeyChange(arg.id, e.target.value),
|
|
327
|
-
placeholder: keyPlaceholder,
|
|
328
|
-
disabled,
|
|
329
|
-
readOnly: isStoredSecret,
|
|
330
|
-
title: isStoredSecret ? STORED_SECRET_KEY_HINT : void 0,
|
|
331
|
-
startAdornment: arg.secret ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMT45XX7Icjs.LockIcon, { role: "img", "aria-label": "Secret" }) : void 0
|
|
332
|
-
}
|
|
333
|
-
)
|
|
334
|
-
] }),
|
|
335
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
336
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
_chunkHTRILBJDcjs.Input,
|
|
338
|
-
{
|
|
339
|
-
type: arg.secret ? "password" : void 0,
|
|
340
|
-
autoComplete: arg.secret ? "new-password" : void 0,
|
|
341
|
-
value: arg.value,
|
|
342
|
-
onChange: (e) => handleValueChange(arg.id, e.target.value),
|
|
343
|
-
placeholder: showsMask ? SECRET_MASK : valuePlaceholder,
|
|
344
|
-
disabled,
|
|
345
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
346
|
-
!arg.value && "placeholder:text-ods-text-muted",
|
|
347
|
-
// The mask reads as a value that is there, not as a prompt to fill one in.
|
|
348
|
-
showsMask && "[&_input]:placeholder:text-ods-text-primary"
|
|
349
|
-
)
|
|
350
|
-
}
|
|
351
|
-
) }),
|
|
352
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
353
|
-
_chunk2QMBXGMQcjs.Button,
|
|
354
|
-
{
|
|
355
|
-
type: "button",
|
|
356
|
-
variant: "outline",
|
|
357
|
-
size: "icon",
|
|
358
|
-
onClick: () => handleDelete(arg.id),
|
|
359
|
-
disabled,
|
|
360
|
-
"aria-label": "Delete argument",
|
|
361
|
-
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Trash2, { className: "size-4 content-md:size-6", color: "var(--color-error)" })
|
|
362
|
-
}
|
|
363
|
-
)
|
|
364
|
-
] })
|
|
365
|
-
] }, arg.id);
|
|
366
|
-
}),
|
|
367
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-wrap justify-start gap-[var(--spacing-system-xs)]", children: [
|
|
368
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
369
|
-
_chunk2QMBXGMQcjs.Button,
|
|
370
|
-
{
|
|
371
|
-
type: "button",
|
|
372
|
-
variant: "outline",
|
|
373
|
-
size: "small",
|
|
374
|
-
onClick: () => handleAdd(),
|
|
375
|
-
disabled,
|
|
376
|
-
className: "self-start",
|
|
377
|
-
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEETTUAAFcjs.PlusCircleIcon, { className: "text-ods-text-secondary" }),
|
|
378
|
-
children: addButtonLabel
|
|
379
|
-
}
|
|
380
|
-
),
|
|
381
|
-
addSecretButtonLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
382
|
-
_chunk2QMBXGMQcjs.Button,
|
|
383
|
-
{
|
|
384
|
-
type: "button",
|
|
385
|
-
variant: "outline",
|
|
386
|
-
size: "small",
|
|
387
|
-
onClick: () => handleAdd(true),
|
|
388
|
-
disabled,
|
|
389
|
-
className: "self-start",
|
|
390
|
-
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMT45XX7Icjs.LockIcon, { className: "text-ods-text-secondary" }),
|
|
391
|
-
children: addSecretButtonLabel
|
|
392
|
-
}
|
|
393
|
-
)
|
|
394
|
-
] })
|
|
395
|
-
] });
|
|
396
|
-
};
|
|
397
|
-
ScriptArguments.displayName = "ScriptArguments";
|
|
398
|
-
|
|
399
257
|
// src/components/shared/onboarding/onboarding-step-card.tsx
|
|
400
258
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
401
259
|
|
|
@@ -423,7 +281,7 @@ function OnboardingStepCard({
|
|
|
423
281
|
onSkip();
|
|
424
282
|
};
|
|
425
283
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
426
|
-
|
|
284
|
+
_chunk5MH6BRPYcjs.InteractiveCard,
|
|
427
285
|
{
|
|
428
286
|
clickable: false,
|
|
429
287
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
@@ -449,7 +307,7 @@ function OnboardingStepCard({
|
|
|
449
307
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[32px] w-[100px] animate-pulse rounded-[6px] bg-ods-border" }),
|
|
450
308
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[32px] w-[120px] animate-pulse rounded-[6px] bg-ods-border" })
|
|
451
309
|
] }) : isCompleted ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
452
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
310
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.StatusBadge, { text: "COMPLETED", variant: "card", colorScheme: "success" }),
|
|
453
311
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
454
312
|
_chunk2QMBXGMQcjs.Button,
|
|
455
313
|
{
|
|
@@ -460,7 +318,7 @@ function OnboardingStepCard({
|
|
|
460
318
|
children: step.completedText
|
|
461
319
|
}
|
|
462
320
|
)
|
|
463
|
-
] }) : isSkipped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
321
|
+
] }) : isSkipped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5MH6BRPYcjs.StatusBadge, { text: "SKIPPED", variant: "card", colorScheme: "default" }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
464
322
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", onClick: handleSkip, children: "Skip Step" }),
|
|
465
323
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "accent", onClick: handleAction, disabled: isProcessing, leftIcon: step.actionIcon("black"), children: step.actionText })
|
|
466
324
|
] })
|
|
@@ -495,7 +353,7 @@ function OnboardingWalkthrough({
|
|
|
495
353
|
isStepSkipped,
|
|
496
354
|
allStepsComplete,
|
|
497
355
|
markMultipleComplete
|
|
498
|
-
} =
|
|
356
|
+
} = _chunk4FWURR3Wcjs.useOnboardingState.call(void 0, storageKey);
|
|
499
357
|
const hasAutoMarkedRef = _react.useRef.call(void 0, false);
|
|
500
358
|
const autoMarkingInProgressRef = _react.useRef.call(void 0, false);
|
|
501
359
|
const lastCompletionStatusRef = _react.useRef.call(void 0, null);
|
|
@@ -577,7 +435,7 @@ function OnboardingWalkthrough({
|
|
|
577
435
|
const isAllComplete = allStepsComplete(steps);
|
|
578
436
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "w-full space-y-4", className), children: [
|
|
579
437
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start justify-between gap-3 md:flex-row md:items-center md:gap-0", children: [
|
|
580
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
438
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk5MH6BRPYcjs.SECTION_HEADING_CLASS, children: _chunk5MH6BRPYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
581
439
|
isLoadingCompletion ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[48px] w-full animate-pulse rounded-[6px] bg-ods-border md:w-[160px]" }) : isAllComplete ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "accent", onClick: handleDismiss, className: "w-full md:w-auto", children: "Close Onboarding" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "outline", onClick: handleDismiss, className: "w-full md:w-auto", children: "Skip Onboarding" })
|
|
582
440
|
] }),
|
|
583
441
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, spacing), children: steps.map((step) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -606,5 +464,4 @@ function OnboardingWalkthrough({
|
|
|
606
464
|
|
|
607
465
|
|
|
608
466
|
|
|
609
|
-
|
|
610
|
-
exports.ANNOUNCEMENT_DEFAULT_ICON = ANNOUNCEMENT_DEFAULT_ICON; exports.ANNOUNCEMENT_CTA_DEFAULTS = ANNOUNCEMENT_CTA_DEFAULTS; exports.AVAILABLE_SVG_ICONS = AVAILABLE_SVG_ICONS; exports.SoftwareInfo = SoftwareInfo; exports.SoftwareSourceBadge = SoftwareSourceBadge; exports.CveLink = CveLink; exports.ShellTypeBadge = ShellTypeBadge; exports.ScriptInfoSection = ScriptInfoSection; exports.ScriptArguments = ScriptArguments; exports.OnboardingStepCard = OnboardingStepCard; exports.OnboardingWalkthrough = OnboardingWalkthrough;
|
|
467
|
+
exports.ANNOUNCEMENT_DEFAULT_ICON = ANNOUNCEMENT_DEFAULT_ICON; exports.ANNOUNCEMENT_CTA_DEFAULTS = ANNOUNCEMENT_CTA_DEFAULTS; exports.AVAILABLE_SVG_ICONS = AVAILABLE_SVG_ICONS; exports.SoftwareInfo = SoftwareInfo; exports.SoftwareSourceBadge = SoftwareSourceBadge; exports.CveLink = CveLink; exports.ShellTypeBadge = ShellTypeBadge; exports.ScriptInfoSection = ScriptInfoSection; exports.OnboardingStepCard = OnboardingStepCard; exports.OnboardingWalkthrough = OnboardingWalkthrough;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkKTPR66EEcjs = require('./chunk-KTPR66EE.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkDGFDBPO7cjs = require('./chunk-DGFDBPO7.cjs');
|
|
9
9
|
|
|
10
10
|
// src/hooks/ui/use-drag-and-drop-enabled.ts
|
|
11
|
-
var DRAG_AND_DROP_MEDIA_QUERY = `(pointer: fine) and (hover: hover) and ${
|
|
11
|
+
var DRAG_AND_DROP_MEDIA_QUERY = `(pointer: fine) and (hover: hover) and ${_chunkKTPR66EEcjs.breakpoints.md}`;
|
|
12
12
|
function useDragAndDropEnabled() {
|
|
13
|
-
return _nullishCoalesce(
|
|
13
|
+
return _nullishCoalesce(_chunkKTPR66EEcjs.useMediaQuery.call(void 0, DRAG_AND_DROP_MEDIA_QUERY), () => ( false));
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// src/hooks/ui/use-horizontal-scrollbar.ts
|
|
@@ -236,7 +236,7 @@ function useLocalStorage(key, initialValue, options) {
|
|
|
236
236
|
});
|
|
237
237
|
const validate = _optionalChain([options, 'optionalAccess', _ => _.validate]);
|
|
238
238
|
const storage = _react.useMemo.call(void 0,
|
|
239
|
-
() =>
|
|
239
|
+
() => _chunkDGFDBPO7cjs.createLocalStorageAdapter.call(void 0, { key, validate, logTag: `[useLocalStorage:${key}]` }),
|
|
240
240
|
[key, validate]
|
|
241
241
|
);
|
|
242
242
|
const [storedValue, setStoredValue] = _react.useState.call(void 0, () => _nullishCoalesce(storage.load(), () => ( initialValue)));
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunk24I6RFVUcjs = require('./chunk-24I6RFVU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkR34JD6NPcjs = require('./chunk-R34JD6NP.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkDGFDBPO7cjs = require('./chunk-DGFDBPO7.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -49,7 +49,7 @@ function useResizablePanelSize({
|
|
|
49
49
|
storageKey
|
|
50
50
|
}) {
|
|
51
51
|
const storage = _react.useMemo.call(void 0,
|
|
52
|
-
() => enabled && storageKey ?
|
|
52
|
+
() => enabled && storageKey ? _chunkDGFDBPO7cjs.createLocalStorageAdapter.call(void 0, {
|
|
53
53
|
key: `${storageKey}${CHOSEN_SIZE_KEY_SUFFIX}`,
|
|
54
54
|
validate: isStoredPanelSize,
|
|
55
55
|
logTag: `[panel-size:${storageKey}]`
|
|
@@ -63,7 +63,7 @@ function useResizablePanelSize({
|
|
|
63
63
|
const clampSize = _react.useCallback.call(void 0,
|
|
64
64
|
(value) => {
|
|
65
65
|
const ceiling = available > 0 ? Math.min(maxSize, available - reserve) : maxSize;
|
|
66
|
-
return
|
|
66
|
+
return _chunkASMNNSUQcjs.clamp.call(void 0, value, minSize, Math.max(minSize, ceiling));
|
|
67
67
|
},
|
|
68
68
|
[available, reserve, minSize, maxSize]
|
|
69
69
|
);
|
|
@@ -396,7 +396,7 @@ var DrawerContent = _react.forwardRef.call(void 0,
|
|
|
396
396
|
ref: panelRef,
|
|
397
397
|
className: _chunk3ATAYP36cjs.cn.call(void 0, drawerPanelVariants({ side, flush, size }), className, panelClassName),
|
|
398
398
|
style: { ...sizeStyle, ...panelStyle },
|
|
399
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
399
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkR34JD6NPcjs.ViewportBreakpoints, { children })
|
|
400
400
|
}
|
|
401
401
|
)
|
|
402
402
|
]
|
|
@@ -459,7 +459,7 @@ function HoverDropdown({
|
|
|
459
459
|
const timeoutRef = _react.useRef.call(void 0, void 0);
|
|
460
460
|
const containerRef = _react.useRef.call(void 0, null);
|
|
461
461
|
const panelRef = _react.useRef.call(void 0, null);
|
|
462
|
-
|
|
462
|
+
_chunkDGFDBPO7cjs.useIsomorphicLayoutEffect.call(void 0, () => {
|
|
463
463
|
const el = panelRef.current;
|
|
464
464
|
const container = containerRef.current;
|
|
465
465
|
if (!el || !container) return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYQGDXH3Mcjs = require('./chunk-YQGDXH3M.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -179,11 +179,11 @@ function UnifiedPagination({
|
|
|
179
179
|
}, 0);
|
|
180
180
|
};
|
|
181
181
|
if (totalPages <= 1) {
|
|
182
|
-
return reserveSpace ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none invisible", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
182
|
+
return reserveSpace ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none invisible", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYQGDXH3Mcjs.Pagination, { currentPage: 1, totalPages: 1, onPageChange: () => {
|
|
183
183
|
} }) }) }) : null;
|
|
184
184
|
}
|
|
185
185
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
186
|
-
|
|
186
|
+
_chunkYQGDXH3Mcjs.Pagination,
|
|
187
187
|
{
|
|
188
188
|
currentPage,
|
|
189
189
|
totalPages,
|
|
@@ -14,7 +14,7 @@ var _chunkC7GIHB3Vcjs = require('./chunk-C7GIHB3V.cjs');
|
|
|
14
14
|
var _chunkHFNBMV5Mcjs = require('./chunk-HFNBMV5M.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkWI2OTGKCcjs = require('./chunk-WI2OTGKC.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
@@ -25,18 +25,18 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkQYLIHZKZcjs = require('./chunk-QYLIHZKZ.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkABLUMGCIcjs = require('./chunk-ABLUMGCI.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkKTPR66EEcjs = require('./chunk-KTPR66EE.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
var _chunkHOTM4UM6cjs = require('./chunk-HOTM4UM6.cjs');
|
|
@@ -65,10 +65,10 @@ function formatTicketRelativeTime(iso) {
|
|
|
65
65
|
if (diffMin < 60) return `${diffMin} min ago`;
|
|
66
66
|
const diffHours = Math.floor(diffMin / 60);
|
|
67
67
|
if (diffHours < 24) return diffHours === 1 ? "1 hour ago" : `${diffHours} hours ago`;
|
|
68
|
-
return
|
|
68
|
+
return _chunkABLUMGCIcjs.formatDateWithTimezone.call(void 0, date, null, "numeric");
|
|
69
69
|
}
|
|
70
70
|
function formatTicketFullTimestamp(iso) {
|
|
71
|
-
return
|
|
71
|
+
return _chunkABLUMGCIcjs.formatDateWithTimezone.call(void 0, iso, null, "numericDateTime");
|
|
72
72
|
}
|
|
73
73
|
function formatRelativeTime(timestamp) {
|
|
74
74
|
return formatRelativeTimeFrom(timestamp, /* @__PURE__ */ new Date());
|
|
@@ -94,7 +94,7 @@ function formatRelativeTimeFrom(timestamp, now) {
|
|
|
94
94
|
const weeks = Math.floor(diffInDays / 7);
|
|
95
95
|
return `${weeks}w ago`;
|
|
96
96
|
}
|
|
97
|
-
return
|
|
97
|
+
return _chunkABLUMGCIcjs.formatDateWithTimezone.call(void 0, targetTime, null, {
|
|
98
98
|
month: "short",
|
|
99
99
|
day: "numeric",
|
|
100
100
|
year: targetTime.getUTCFullYear() !== now.getUTCFullYear() ? "numeric" : void 0
|
|
@@ -106,7 +106,7 @@ function formatAbsoluteDate(timestamp, options = {}) {
|
|
|
106
106
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatAbsoluteDate:", timestamp);
|
|
107
107
|
return "Invalid date";
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return _chunkABLUMGCIcjs.formatDateWithTimezone.call(void 0, targetTime, _nullishCoalesce(options.timeZone, () => ( null)), {
|
|
110
110
|
year: "numeric",
|
|
111
111
|
month: "short",
|
|
112
112
|
day: "numeric",
|
|
@@ -119,7 +119,7 @@ function formatDateTime(timestamp, options = {}) {
|
|
|
119
119
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatDateTime:", timestamp);
|
|
120
120
|
return "Invalid date";
|
|
121
121
|
}
|
|
122
|
-
return
|
|
122
|
+
return _chunkABLUMGCIcjs.formatDateWithTimezone.call(void 0, targetTime, _nullishCoalesce(options.timeZone, () => ( null)), {
|
|
123
123
|
...ZONED_DATE_FIELDS_MEDIUM_DATETIME,
|
|
124
124
|
...options
|
|
125
125
|
});
|
|
@@ -281,13 +281,13 @@ function TicketStatusTag({
|
|
|
281
281
|
const config = getTicketStatusConfig(status);
|
|
282
282
|
const customStyle = color ? {
|
|
283
283
|
"--tag-bg": color,
|
|
284
|
-
"--tag-bg-hover":
|
|
285
|
-
"--tag-bg-active":
|
|
286
|
-
color:
|
|
284
|
+
"--tag-bg-hover": _chunkQYLIHZKZcjs.deriveHoverColor.call(void 0, color),
|
|
285
|
+
"--tag-bg-active": _chunkQYLIHZKZcjs.deriveActiveColor.call(void 0, color),
|
|
286
|
+
color: _chunkQYLIHZKZcjs.getReadableTextColor.call(void 0, color)
|
|
287
287
|
} : void 0;
|
|
288
288
|
const customColorClasses = color ? "bg-[var(--tag-bg)] hover:bg-[var(--tag-bg-hover)] active:bg-[var(--tag-bg-active)]" : void 0;
|
|
289
289
|
const tag = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
290
|
-
|
|
290
|
+
_chunkABLUMGCIcjs.Tag,
|
|
291
291
|
{
|
|
292
292
|
label: _nullishCoalesce(label, () => ( config.label)),
|
|
293
293
|
variant: _nullishCoalesce(variant, () => ( config.variant)),
|
|
@@ -330,7 +330,7 @@ function TicketStatusTag({
|
|
|
330
330
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
331
331
|
// Reuse the tag's variant styling, but split into a label section and a
|
|
332
332
|
// separated chevron section (the common dropdown-button seam).
|
|
333
|
-
|
|
333
|
+
_chunkABLUMGCIcjs.tagVariants.call(void 0, { variant: _nullishCoalesce(variant, () => ( config.variant)) }),
|
|
334
334
|
"w-fit shrink-0 items-stretch justify-start gap-0 overflow-hidden p-0",
|
|
335
335
|
"disabled:cursor-not-allowed disabled:opacity-60",
|
|
336
336
|
// Custom color: bg/hover/active from the CSS vars set above.
|
|
@@ -618,7 +618,7 @@ function ToolCallRow({ call, expanded, onToggle, batchStatus, execution, showExe
|
|
|
618
618
|
onClick: onToggle,
|
|
619
619
|
className: "flex w-full cursor-pointer items-start gap-[var(--spacing-system-xsf)] p-[var(--spacing-system-sf)] text-left",
|
|
620
620
|
children: [
|
|
621
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
621
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWI2OTGKCcjs.ToolIcon, { toolType, size: 16 }) }),
|
|
622
622
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
623
623
|
"div",
|
|
624
624
|
{
|
|
@@ -774,13 +774,13 @@ ApprovalBatchMessage.displayName = "ApprovalBatchMessage";
|
|
|
774
774
|
|
|
775
775
|
|
|
776
776
|
var MARK_IMAGE_SIZES = "96px";
|
|
777
|
-
function AgentMark({ agent, className = "", color =
|
|
778
|
-
const identity =
|
|
777
|
+
function AgentMark({ agent, className = "", color = _chunkQYLIHZKZcjs.AGENT_GLYPH_COLOR }) {
|
|
778
|
+
const identity = _chunkQYLIHZKZcjs.useAgentIdentityIcon.call(void 0, agent);
|
|
779
779
|
if (_optionalChain([identity, 'optionalAccess', _15 => _15.url])) {
|
|
780
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: _chunk3ATAYP36cjs.cn.call(void 0, "relative inline-block overflow-hidden rounded-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHOTM4UM6cjs.next_image_default, { src: identity.url, alt: "", fill: true, sizes: MARK_IMAGE_SIZES, className:
|
|
780
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: _chunk3ATAYP36cjs.cn.call(void 0, "relative inline-block overflow-hidden rounded-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHOTM4UM6cjs.next_image_default, { src: identity.url, alt: "", fill: true, sizes: MARK_IMAGE_SIZES, className: _chunkQYLIHZKZcjs.AGENT_PICTURE_CLASS }) });
|
|
781
781
|
}
|
|
782
782
|
if (_optionalChain([identity, 'optionalAccess', _16 => _16.name])) {
|
|
783
|
-
return _react.createElement.call(void 0,
|
|
783
|
+
return _react.createElement.call(void 0, _chunkKTPR66EEcjs.resolveIcon.call(void 0, identity.name), {
|
|
784
784
|
className,
|
|
785
785
|
"aria-hidden": true,
|
|
786
786
|
color,
|