@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.
Files changed (167) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{chunk-3ZIQOYNX.cjs → chunk-4XL4YEZM.cjs} +3 -3
  3. package/dist/{chunk-WFPCCBOM.cjs → chunk-7AM3AFM4.cjs} +10 -10
  4. package/dist/{chunk-KHXZFLIN.cjs → chunk-DKOLQPE7.cjs} +8 -2
  5. package/dist/{chunk-7UIQPMBJ.cjs → chunk-FQN6STIM.cjs} +1 -144
  6. package/dist/{chunk-ZLTCQKTD.cjs → chunk-I6UE6YVM.cjs} +2 -2
  7. package/dist/{chunk-VC4IV3AY.cjs → chunk-IK2RJUEA.cjs} +2049 -199
  8. package/dist/{chunk-D5KEWWLW.cjs → chunk-ITPEFCQ2.cjs} +10 -10
  9. package/dist/{chunk-2Y5Y4FLM.cjs → chunk-JFS6TZDX.cjs} +15 -15
  10. package/dist/{chunk-VU4CKUJW.cjs → chunk-LZ6NOVXX.cjs} +23 -23
  11. package/dist/{chunk-UW3YXDC4.cjs → chunk-QEUGYHFB.cjs} +4 -4
  12. package/dist/{chunk-II4QMH26.cjs → chunk-STEJZPIO.cjs} +3 -3
  13. package/dist/{chunk-4RLGLB45.cjs → chunk-XJ36TEGE.cjs} +11 -11
  14. package/dist/{chunk-BDA5F6RM.cjs → chunk-YQ37ZCD2.cjs} +2 -2
  15. package/dist/{chunk-LLAC2UZ3.cjs → chunk-ZJPDGVA6.cjs} +3 -3
  16. package/dist/{chunk-SWR22DOZ.cjs → chunk-ZYOS7LVQ.cjs} +22 -22
  17. package/dist/{cloud-tenants-PVXDI5MU.cjs → cloud-tenants-MVJK52I2.cjs} +12 -12
  18. package/dist/components/case-studies/index.cjs +10 -10
  19. package/dist/components/contact/index.cjs +3 -3
  20. package/dist/components/docs/index.cjs +5 -5
  21. package/dist/components/embeds/index.cjs +3 -3
  22. package/dist/components/faq/index.cjs +3 -3
  23. package/dist/components/features/capability-explorer.d.ts +9 -2
  24. package/dist/components/features/capability-explorer.d.ts.map +1 -1
  25. package/dist/components/features/capability-explorer.js +113 -6
  26. package/dist/components/features/index.cjs +140 -2
  27. package/dist/components/features/index.d.ts +1 -0
  28. package/dist/components/features/index.d.ts.map +1 -1
  29. package/dist/components/features/index.js +1 -0
  30. package/dist/components/features/scripts/execution-cells.d.ts +65 -0
  31. package/dist/components/features/scripts/execution-cells.d.ts.map +1 -0
  32. package/dist/components/features/scripts/execution-cells.js +75 -0
  33. package/dist/components/features/scripts/execution-status.d.ts +48 -0
  34. package/dist/components/features/scripts/execution-status.d.ts.map +1 -0
  35. package/dist/components/features/scripts/execution-status.js +15 -0
  36. package/dist/components/features/scripts/index.d.ts +20 -0
  37. package/dist/components/features/scripts/index.d.ts.map +1 -0
  38. package/dist/components/features/scripts/index.js +59 -0
  39. package/dist/components/features/scripts/schedule-form/index.d.ts +18 -0
  40. package/dist/components/features/scripts/schedule-form/index.d.ts.map +1 -0
  41. package/dist/components/features/scripts/schedule-form/index.js +84 -0
  42. package/dist/components/features/scripts/schedule-form/schedule-enums.d.ts +24 -0
  43. package/dist/components/features/scripts/schedule-form/schedule-enums.d.ts.map +1 -0
  44. package/dist/components/features/scripts/schedule-form/schedule-enums.js +18 -0
  45. package/dist/components/features/scripts/schedule-form/schedule-form-fields.d.ts +57 -0
  46. package/dist/components/features/scripts/schedule-form/schedule-form-fields.d.ts.map +1 -0
  47. package/dist/components/features/scripts/schedule-form/schedule-form-fields.js +169 -0
  48. package/dist/components/features/scripts/schedule-form/schedule-form-types.d.ts +138 -0
  49. package/dist/components/features/scripts/schedule-form/schedule-form-types.d.ts.map +1 -0
  50. package/dist/components/features/scripts/schedule-form/schedule-form-types.js +72 -0
  51. package/dist/components/features/scripts/schedule-form/schedule-interval-input.d.ts +54 -0
  52. package/dist/components/features/scripts/schedule-form/schedule-interval-input.d.ts.map +1 -0
  53. package/dist/components/features/scripts/schedule-form/schedule-interval-input.js +60 -0
  54. package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts +29 -0
  55. package/dist/components/features/scripts/schedule-form/schedule-offline-fields.d.ts.map +1 -0
  56. package/dist/components/features/scripts/schedule-form/schedule-offline-fields.js +124 -0
  57. package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.d.ts +52 -0
  58. package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.d.ts.map +1 -0
  59. package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +244 -0
  60. package/dist/components/features/scripts/schedule-form/schedule-script-search-field.d.ts +35 -0
  61. package/dist/components/features/scripts/schedule-form/schedule-script-search-field.d.ts.map +1 -0
  62. package/dist/components/features/scripts/schedule-form/schedule-script-search-field.js +58 -0
  63. package/dist/components/features/scripts/schedule-form/schedule-scripts-field.d.ts +25 -0
  64. package/dist/components/features/scripts/schedule-form/schedule-scripts-field.d.ts.map +1 -0
  65. package/dist/components/features/scripts/schedule-form/schedule-scripts-field.js +66 -0
  66. package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts +77 -0
  67. package/dist/components/features/scripts/schedule-form/schedule-timing-fields.d.ts.map +1 -0
  68. package/dist/components/features/scripts/schedule-form/schedule-timing-fields.js +262 -0
  69. package/dist/components/features/scripts/schedule-form/schedule-timing.d.ts +288 -0
  70. package/dist/components/features/scripts/schedule-form/schedule-timing.d.ts.map +1 -0
  71. package/dist/components/features/scripts/schedule-form/schedule-timing.js +165 -0
  72. package/dist/components/features/scripts/script-cells.d.ts +11 -0
  73. package/dist/components/features/scripts/script-cells.d.ts.map +1 -0
  74. package/dist/components/features/scripts/script-cells.js +19 -0
  75. package/dist/components/features/scripts/script-executions-table.d.ts +58 -0
  76. package/dist/components/features/scripts/script-executions-table.d.ts.map +1 -0
  77. package/dist/components/features/scripts/script-executions-table.js +88 -0
  78. package/dist/components/features/scripts/script-schedules-table.d.ts +38 -0
  79. package/dist/components/features/scripts/script-schedules-table.d.ts.map +1 -0
  80. package/dist/components/features/scripts/script-schedules-table.js +71 -0
  81. package/dist/components/features/scripts/script-shell-badge.d.ts +9 -0
  82. package/dist/components/features/scripts/script-shell-badge.d.ts.map +1 -0
  83. package/dist/components/features/scripts/script-shell-badge.js +15 -0
  84. package/dist/components/features/scripts/scripts-table-columns.d.ts +162 -0
  85. package/dist/components/features/scripts/scripts-table-columns.d.ts.map +1 -0
  86. package/dist/components/features/scripts/scripts-table-columns.js +69 -0
  87. package/dist/components/features/scripts/scripts-table-shared.d.ts +19 -0
  88. package/dist/components/features/scripts/scripts-table-shared.d.ts.map +1 -0
  89. package/dist/components/features/scripts/scripts-table-shared.js +35 -0
  90. package/dist/components/features/scripts/scripts-table.d.ts +40 -0
  91. package/dist/components/features/scripts/scripts-table.d.ts.map +1 -0
  92. package/dist/components/features/scripts/scripts-table.js +84 -0
  93. package/dist/components/features/scripts/scripts-tabs.d.ts +5 -0
  94. package/dist/components/features/scripts/scripts-tabs.d.ts.map +1 -0
  95. package/dist/components/features/scripts/scripts-tabs.js +10 -0
  96. package/dist/components/features/scripts/shell-types.d.ts +13 -0
  97. package/dist/components/features/scripts/shell-types.d.ts.map +1 -0
  98. package/dist/components/features/scripts/shell-types.js +21 -0
  99. package/dist/components/help-center-pages/index.cjs +44 -44
  100. package/dist/components/index.cjs +162 -24
  101. package/dist/components/meeting-scheduler/index.cjs +11 -11
  102. package/dist/components/navigation/index.cjs +3 -3
  103. package/dist/components/onboarding-guides/index.cjs +4 -4
  104. package/dist/components/product-demo/fixtures/scripts.d.ts +34 -0
  105. package/dist/components/product-demo/fixtures/scripts.d.ts.map +1 -0
  106. package/dist/components/product-demo/fixtures/scripts.js +123 -0
  107. package/dist/components/product-demo/fixtures/shared.d.ts +8 -0
  108. package/dist/components/product-demo/fixtures/shared.d.ts.map +1 -1
  109. package/dist/components/product-demo/fixtures/shared.js +7 -1
  110. package/dist/components/product-demo/fixtures/software-update.d.ts.map +1 -1
  111. package/dist/components/product-demo/fixtures/software-update.js +1 -5
  112. package/dist/components/product-demo/index.cjs +16 -13
  113. package/dist/components/product-demo/product-screen.d.ts.map +1 -1
  114. package/dist/components/product-demo/product-screen.js +2 -1
  115. package/dist/components/product-demo/registry.d.ts.map +1 -1
  116. package/dist/components/product-demo/registry.js +2 -1
  117. package/dist/components/product-demo/screen-keys.cjs +2 -1
  118. package/dist/components/product-demo/screen-keys.d.ts +1 -0
  119. package/dist/components/product-demo/screen-keys.d.ts.map +1 -1
  120. package/dist/components/product-demo/screen-keys.js +2 -1
  121. package/dist/components/product-demo/screens/scripts.d.ts +11 -0
  122. package/dist/components/product-demo/screens/scripts.d.ts.map +1 -0
  123. package/dist/components/product-demo/screens/scripts.js +130 -0
  124. package/dist/components/tickets/index.cjs +5 -5
  125. package/dist/components/ui/index.cjs +2 -2
  126. package/dist/{devices-TWEA7XOR.cjs → devices-W3S7Q2PG.cjs} +8 -8
  127. package/dist/index.cjs +143 -5
  128. package/dist/{knowledge-4GQDBNQB.cjs → knowledge-AIYQ4FC3.cjs} +6 -6
  129. package/dist/{logs-EVU6GJHZ.cjs → logs-7SHJ2ARE.cjs} +24 -24
  130. package/dist/{policies-OZUEA5YS.cjs → policies-EIZJ5SUP.cjs} +9 -9
  131. package/dist/{remote-session-DNFZ5OLY.cjs → remote-session-BZMNE6D2.cjs} +5 -5
  132. package/dist/scripts-J2FWC7E4.cjs +2112 -0
  133. package/dist/{software-update-BLIVYOY2.cjs → software-update-QAMNASVF.cjs} +13 -17
  134. package/dist/{tickets-board-CKZRB6YV.cjs → tickets-board-CEDHD3KB.cjs} +17 -17
  135. package/package.json +1 -1
  136. package/src/components/features/capability-explorer.tsx +134 -7
  137. package/src/components/features/index.ts +1 -0
  138. package/src/components/features/scripts/execution-cells.tsx +149 -0
  139. package/src/components/features/scripts/execution-status.ts +42 -0
  140. package/src/components/features/scripts/index.ts +42 -0
  141. package/src/components/features/scripts/schedule-form/index.ts +59 -0
  142. package/src/components/features/scripts/schedule-form/schedule-enums.ts +26 -0
  143. package/src/components/features/scripts/schedule-form/schedule-form-fields.tsx +249 -0
  144. package/src/components/features/scripts/schedule-form/schedule-form-types.ts +189 -0
  145. package/src/components/features/scripts/schedule-form/schedule-interval-input.tsx +121 -0
  146. package/src/components/features/scripts/schedule-form/schedule-offline-fields.tsx +218 -0
  147. package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +321 -0
  148. package/src/components/features/scripts/schedule-form/schedule-script-search-field.tsx +115 -0
  149. package/src/components/features/scripts/schedule-form/schedule-scripts-field.tsx +97 -0
  150. package/src/components/features/scripts/schedule-form/schedule-timing-fields.tsx +482 -0
  151. package/src/components/features/scripts/schedule-form/schedule-timing.ts +484 -0
  152. package/src/components/features/scripts/script-cells.tsx +29 -0
  153. package/src/components/features/scripts/script-executions-table.tsx +145 -0
  154. package/src/components/features/scripts/script-schedules-table.tsx +113 -0
  155. package/src/components/features/scripts/script-shell-badge.tsx +25 -0
  156. package/src/components/features/scripts/scripts-table-columns.ts +95 -0
  157. package/src/components/features/scripts/scripts-table-shared.tsx +43 -0
  158. package/src/components/features/scripts/scripts-table.tsx +124 -0
  159. package/src/components/features/scripts/scripts-tabs.ts +11 -0
  160. package/src/components/features/scripts/shell-types.ts +26 -0
  161. package/src/components/product-demo/fixtures/scripts.ts +186 -0
  162. package/src/components/product-demo/fixtures/shared.ts +7 -0
  163. package/src/components/product-demo/fixtures/software-update.ts +1 -7
  164. package/src/components/product-demo/product-screen.tsx +3 -1
  165. package/src/components/product-demo/registry.ts +1 -0
  166. package/src/components/product-demo/screen-keys.ts +1 -0
  167. 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 _chunkVC4IV3AYcjs = require('./chunk-VC4IV3AY.cjs');
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
- _chunkVC4IV3AYcjs.EmbedViewerFrame,
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
- _chunkVC4IV3AYcjs.EmbedViewerFrame,
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 _chunkKHXZFLINcjs = require('./chunk-KHXZFLIN.cjs');
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: _chunkKHXZFLINcjs.demoMinutesAgo.call(void 0, lastSeenMinutesAgo),
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, _chunkKHXZFLINcjs.DEMO_DEVICES.frontDesk, "laptop", "ONLINE", 2),
35
- device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.reception, "desktop", "OFFLINE", 190),
36
- device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.mayaAir, "laptop", "ONLINE", 1),
37
- device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.buildServer, "server", "ONLINE", 1),
38
- device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.leoThinkPad, "laptop", "OFFLINE", 64),
39
- device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.samT14, "laptop", "ONLINE", 3),
40
- device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.jenSurface, "laptop", "ONLINE", 6),
41
- device(cast, _chunkKHXZFLINcjs.DEMO_DEVICES.priyaXps, "laptop", "ONLINE", 2)
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
- exports.DEMO_ORGANIZATIONS = DEMO_ORGANIZATIONS; exports.DEMO_PEOPLE = DEMO_PEOPLE; exports.DEMO_DEVICES = DEMO_DEVICES; exports.DEMO_NOW = DEMO_NOW; exports.demoMinutesAgo = demoMinutesAgo;
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 _chunkVC4IV3AYcjs = require('./chunk-VC4IV3AY.cjs');
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, _chunkVC4IV3AYcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
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