@flamingo-stack/openframe-frontend-core 0.0.740 → 0.0.741
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-3ZIQOYNX.cjs → chunk-4XL4YEZM.cjs} +3 -3
- package/dist/{chunk-WFPCCBOM.cjs → chunk-7AM3AFM4.cjs} +10 -10
- package/dist/{chunk-KHXZFLIN.cjs → chunk-DKOLQPE7.cjs} +8 -2
- package/dist/{chunk-7UIQPMBJ.cjs → chunk-FQN6STIM.cjs} +1 -144
- package/dist/{chunk-ZLTCQKTD.cjs → chunk-I6UE6YVM.cjs} +2 -2
- package/dist/{chunk-VC4IV3AY.cjs → chunk-IK2RJUEA.cjs} +2049 -199
- package/dist/{chunk-D5KEWWLW.cjs → chunk-ITPEFCQ2.cjs} +10 -10
- package/dist/{chunk-2Y5Y4FLM.cjs → chunk-JFS6TZDX.cjs} +15 -15
- package/dist/{chunk-VU4CKUJW.cjs → chunk-LZ6NOVXX.cjs} +23 -23
- package/dist/{chunk-UW3YXDC4.cjs → chunk-QEUGYHFB.cjs} +4 -4
- package/dist/{chunk-II4QMH26.cjs → chunk-STEJZPIO.cjs} +3 -3
- package/dist/{chunk-4RLGLB45.cjs → chunk-XJ36TEGE.cjs} +11 -11
- package/dist/{chunk-BDA5F6RM.cjs → chunk-YQ37ZCD2.cjs} +2 -2
- package/dist/{chunk-LLAC2UZ3.cjs → chunk-ZJPDGVA6.cjs} +3 -3
- package/dist/{chunk-SWR22DOZ.cjs → chunk-ZYOS7LVQ.cjs} +22 -22
- package/dist/{cloud-tenants-PVXDI5MU.cjs → cloud-tenants-MVJK52I2.cjs} +12 -12
- package/dist/components/case-studies/index.cjs +10 -10
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/faq/index.cjs +3 -3
- 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 +140 -2
- 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 +44 -44
- package/dist/components/index.cjs +162 -24
- package/dist/components/meeting-scheduler/index.cjs +11 -11
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/onboarding-guides/index.cjs +4 -4
- 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/tickets/index.cjs +5 -5
- package/dist/components/ui/index.cjs +2 -2
- package/dist/{devices-TWEA7XOR.cjs → devices-W3S7Q2PG.cjs} +8 -8
- package/dist/index.cjs +143 -5
- package/dist/{knowledge-4GQDBNQB.cjs → knowledge-AIYQ4FC3.cjs} +6 -6
- package/dist/{logs-EVU6GJHZ.cjs → logs-7SHJ2ARE.cjs} +24 -24
- package/dist/{policies-OZUEA5YS.cjs → policies-EIZJ5SUP.cjs} +9 -9
- package/dist/{remote-session-DNFZ5OLY.cjs → remote-session-BZMNE6D2.cjs} +5 -5
- package/dist/scripts-J2FWC7E4.cjs +2112 -0
- package/dist/{software-update-BLIVYOY2.cjs → software-update-QAMNASVF.cjs} +13 -17
- package/dist/{tickets-board-CKZRB6YV.cjs → tickets-board-CEDHD3KB.cjs} +17 -17
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkIK2RJUEAcjs = require('./chunk-IK2RJUEA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkCKR42OBKcjs = require('./chunk-CKR42OBK.cjs');
|
|
@@ -48,7 +48,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunkIK2RJUEAcjs.EmbedViewerFrame,
|
|
52
52
|
{
|
|
53
53
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCKR42OBKcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
|
|
54
54
|
title: displayName,
|
|
@@ -83,7 +83,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
83
83
|
] });
|
|
84
84
|
}
|
|
85
85
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
86
|
-
|
|
86
|
+
_chunkIK2RJUEAcjs.EmbedViewerFrame,
|
|
87
87
|
{
|
|
88
88
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7ZSKWT3cjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
|
|
89
89
|
title: displayName,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
6
6
|
|
|
7
7
|
// src/components/product-demo/fixtures/devices.ts
|
|
8
8
|
function device(cast, demo, type, status, lastSeenMinutesAgo) {
|
|
@@ -15,7 +15,7 @@ function device(cast, demo, type, status, lastSeenMinutesAgo) {
|
|
|
15
15
|
status,
|
|
16
16
|
type,
|
|
17
17
|
osType: demo.os,
|
|
18
|
-
last_seen:
|
|
18
|
+
last_seen: _chunkDKOLQPE7cjs.demoMinutesAgo.call(void 0, lastSeenMinutesAgo),
|
|
19
19
|
organizationId: organization.id,
|
|
20
20
|
organization: organization.name,
|
|
21
21
|
organizationImageUrl: organization.logoUrl
|
|
@@ -31,14 +31,14 @@ function countBy(devices, pick) {
|
|
|
31
31
|
}
|
|
32
32
|
function buildDevicesFixture(cast) {
|
|
33
33
|
const devices = [
|
|
34
|
-
device(cast,
|
|
35
|
-
device(cast,
|
|
36
|
-
device(cast,
|
|
37
|
-
device(cast,
|
|
38
|
-
device(cast,
|
|
39
|
-
device(cast,
|
|
40
|
-
device(cast,
|
|
41
|
-
device(cast,
|
|
34
|
+
device(cast, _chunkDKOLQPE7cjs.DEMO_DEVICES.frontDesk, "laptop", "ONLINE", 2),
|
|
35
|
+
device(cast, _chunkDKOLQPE7cjs.DEMO_DEVICES.reception, "desktop", "OFFLINE", 190),
|
|
36
|
+
device(cast, _chunkDKOLQPE7cjs.DEMO_DEVICES.mayaAir, "laptop", "ONLINE", 1),
|
|
37
|
+
device(cast, _chunkDKOLQPE7cjs.DEMO_DEVICES.buildServer, "server", "ONLINE", 1),
|
|
38
|
+
device(cast, _chunkDKOLQPE7cjs.DEMO_DEVICES.leoThinkPad, "laptop", "OFFLINE", 64),
|
|
39
|
+
device(cast, _chunkDKOLQPE7cjs.DEMO_DEVICES.samT14, "laptop", "ONLINE", 3),
|
|
40
|
+
device(cast, _chunkDKOLQPE7cjs.DEMO_DEVICES.jenSurface, "laptop", "ONLINE", 6),
|
|
41
|
+
device(cast, _chunkDKOLQPE7cjs.DEMO_DEVICES.priyaXps, "laptop", "ONLINE", 2)
|
|
42
42
|
];
|
|
43
43
|
const deviceFilters = {
|
|
44
44
|
statuses: countBy(devices, (row) => row.status),
|
|
@@ -25,9 +25,14 @@ var DEMO_DEVICES = {
|
|
|
25
25
|
leoThinkPad: { id: "device-leo", hostname: "LEO-THINKPAD", os: "WINDOWS", organization: "harbor" },
|
|
26
26
|
buildServer: { id: "device-build", hostname: "BUILD-SRV-01", os: "LINUX", organization: "acme" },
|
|
27
27
|
jenSurface: { id: "device-jen", hostname: "JEN-SURFACE", os: "WINDOWS", organization: "acme" },
|
|
28
|
-
priyaXps: { id: "device-priya", hostname: "PRIYA-XPS", os: "WINDOWS", organization: "northbridge" }
|
|
28
|
+
priyaXps: { id: "device-priya", hostname: "PRIYA-XPS", os: "WINDOWS", organization: "northbridge" },
|
|
29
|
+
warehouse: { id: "device-warehouse", hostname: "WAREHOUSE-PC03", os: "WINDOWS", organization: "acme" }
|
|
29
30
|
};
|
|
30
31
|
var DEMO_NOW = "2026-10-06T14:05:00.000Z";
|
|
32
|
+
function demoDay() {
|
|
33
|
+
const [year, month, day] = DEMO_NOW.slice(0, 10).split("-").map(Number);
|
|
34
|
+
return new Date(year, month - 1, day);
|
|
35
|
+
}
|
|
31
36
|
function demoMinutesAgo(minutes) {
|
|
32
37
|
return new Date(Date.parse(DEMO_NOW) - minutes * 6e4).toISOString();
|
|
33
38
|
}
|
|
@@ -38,4 +43,5 @@ function demoMinutesAgo(minutes) {
|
|
|
38
43
|
|
|
39
44
|
|
|
40
45
|
|
|
41
|
-
|
|
46
|
+
|
|
47
|
+
exports.DEMO_ORGANIZATIONS = DEMO_ORGANIZATIONS; exports.DEMO_PEOPLE = DEMO_PEOPLE; exports.DEMO_DEVICES = DEMO_DEVICES; exports.DEMO_NOW = DEMO_NOW; exports.demoDay = demoDay; exports.demoMinutesAgo = demoMinutesAgo;
|
|
@@ -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,9 +45,6 @@ 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
|
-
|
|
56
|
-
|
|
57
48
|
|
|
58
49
|
|
|
59
50
|
|
|
@@ -66,12 +57,6 @@ var _chunk7ZFCR7UYcjs = require('./chunk-7ZFCR7UY.cjs');
|
|
|
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
|
|
|
@@ -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
|
|
|
@@ -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;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHYBMADYOcjs = require('./chunk-HYBMADYO.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIK2RJUEAcjs = require('./chunk-IK2RJUEA.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkDSVNFRY5cjs = require('./chunk-DSVNFRY5.cjs');
|
|
@@ -49,7 +49,7 @@ function FaqDocumentPage({
|
|
|
49
49
|
ask
|
|
50
50
|
}
|
|
51
51
|
) });
|
|
52
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIK2RJUEAcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
|