@flamingo-stack/openframe-frontend-core 0.0.739 → 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-ENCAIAMY.cjs → chunk-4XL4YEZM.cjs} +3 -3
- package/dist/{chunk-FL6UO7IR.cjs → chunk-5SVOGLNK.cjs} +2 -2
- package/dist/{chunk-WFPCCBOM.cjs → chunk-7AM3AFM4.cjs} +10 -10
- package/dist/{chunk-S2CA5WE4.cjs → chunk-CWRVTQUO.cjs} +9 -1
- package/dist/{chunk-KHXZFLIN.cjs → chunk-DKOLQPE7.cjs} +8 -2
- package/dist/{chunk-UXFJXIUT.cjs → chunk-EKGL5K5K.cjs} +2 -2
- package/dist/{chunk-DTLHY2ZF.cjs → chunk-FQN6STIM.cjs} +12 -155
- package/dist/{chunk-V2ZFH42N.cjs → chunk-HYBMADYO.cjs} +3 -3
- package/dist/{chunk-NX6JQT25.cjs → chunk-I6UE6YVM.cjs} +4 -4
- package/dist/{chunk-SB4VWA5V.cjs → chunk-IK2RJUEA.cjs} +2118 -268
- package/dist/{chunk-CUDTMCXK.cjs → chunk-ITPEFCQ2.cjs} +13 -13
- package/dist/{chunk-WMKNZI4G.cjs → chunk-JFS6TZDX.cjs} +22 -22
- package/dist/{chunk-RGFT3P3L.cjs → chunk-LZ6NOVXX.cjs} +55 -55
- package/dist/{chunk-TF7J6VXG.cjs → chunk-QEUGYHFB.cjs} +9 -9
- package/dist/{chunk-II4QMH26.cjs → chunk-STEJZPIO.cjs} +3 -3
- package/dist/{chunk-UI3HROSI.cjs → chunk-XJ36TEGE.cjs} +33 -33
- package/dist/{chunk-UYP3G6PB.cjs → chunk-YQ37ZCD2.cjs} +2 -2
- package/dist/{chunk-Q7GG3WC5.cjs → chunk-ZJPDGVA6.cjs} +5 -5
- package/dist/{chunk-EGN4I5Q7.cjs → chunk-ZYOS7LVQ.cjs} +134 -46
- package/dist/{cloud-tenants-QSFSO3PA.cjs → cloud-tenants-MVJK52I2.cjs} +13 -13
- package/dist/components/case-studies/index.cjs +11 -11
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/faq/index.cjs +5 -5
- 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 +141 -3
- 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 +53 -53
- package/dist/components/index.cjs +178 -34
- package/dist/components/meeting-scheduler/index.cjs +17 -17
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/onboarding-guides/index.cjs +5 -5
- 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/shared/legal-document/index.d.ts +2 -1
- package/dist/components/shared/legal-document/index.d.ts.map +1 -1
- package/dist/components/shared/legal-document/index.js +10 -2
- package/dist/components/shared/legal-document/legal-document-page.d.ts +35 -23
- package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
- package/dist/components/shared/legal-document/legal-document-page.js +27 -10
- package/dist/components/shared/legal-document/use-legal-docs.d.ts +7 -3
- package/dist/components/shared/legal-document/use-legal-docs.d.ts.map +1 -1
- package/dist/components/shared/legal-document/use-legal-docs.js +7 -0
- package/dist/components/shared/legal-document/use-legal-documents.d.ts +31 -0
- package/dist/components/shared/legal-document/use-legal-documents.d.ts.map +1 -0
- package/dist/components/shared/legal-document/use-legal-documents.js +67 -0
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/ui/index.cjs +3 -3
- package/dist/{devices-C7XLWJFC.cjs → devices-W3S7Q2PG.cjs} +9 -9
- package/dist/index.cjs +150 -8
- package/dist/{knowledge-3QKWTOE7.cjs → knowledge-AIYQ4FC3.cjs} +7 -7
- package/dist/{logs-JXD75NR4.cjs → logs-7SHJ2ARE.cjs} +25 -25
- package/dist/{policies-ZPN53PFQ.cjs → policies-EIZJ5SUP.cjs} +10 -10
- package/dist/{remote-session-DNFZ5OLY.cjs → remote-session-BZMNE6D2.cjs} +5 -5
- package/dist/scripts-J2FWC7E4.cjs +2112 -0
- package/dist/{software-update-CRSIBS3K.cjs → software-update-QAMNASVF.cjs} +14 -18
- package/dist/{tickets-board-CKZRB6YV.cjs → tickets-board-CEDHD3KB.cjs} +17 -17
- package/dist/utils/index.cjs +8 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/legal-documents.d.ts +18 -0
- package/dist/utils/legal-documents.d.ts.map +1 -0
- package/dist/utils/legal-documents.js +8 -0
- 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/components/shared/legal-document/index.ts +8 -0
- package/src/components/shared/legal-document/legal-document-page.tsx +83 -44
- package/src/components/shared/legal-document/use-legal-docs.ts +18 -3
- package/src/components/shared/legal-document/use-legal-documents.ts +113 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/legal-documents.ts +21 -0
|
@@ -16,7 +16,7 @@ var _chunkWBANGORJcjs = require('../../chunk-WBANGORJ.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkIK2RJUEAcjs = require('../../chunk-IK2RJUEA.cjs');
|
|
20
20
|
require('../../chunk-O67V3HJR.cjs');
|
|
21
21
|
require('../../chunk-3HPB4H4C.cjs');
|
|
22
22
|
|
|
@@ -46,7 +46,7 @@ var _chunkYUMFVQINcjs = require('../../chunk-YUMFVQIN.cjs');
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkCWRVTQUOcjs = require('../../chunk-CWRVTQUO.cjs');
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
var _chunkBV5WZVOPcjs = require('../../chunk-BV5WZVOP.cjs');
|
|
@@ -2190,7 +2190,7 @@ function useMeetingBooking(options) {
|
|
|
2190
2190
|
const seededOffset = _optionalChain([initialAvailability, 'optionalAccess', _12 => _12.meetingId]) === meetingId ? initialAvailability.monthOffset : void 0;
|
|
2191
2191
|
const [monthOffset, setMonthOffsetState] = _react.useState.call(void 0, _nullishCoalesce(seededOffset, () => ( 0)));
|
|
2192
2192
|
const setMonthOffset = _react.useCallback.call(void 0, (offset) => {
|
|
2193
|
-
setMonthOffsetState(Math.max(0, Math.min(
|
|
2193
|
+
setMonthOffsetState(Math.max(0, Math.min(_chunkCWRVTQUOcjs.MAX_MONTH_OFFSET, offset)));
|
|
2194
2194
|
}, []);
|
|
2195
2195
|
const prevMeetingIdRef = _react.useRef.call(void 0, meetingId);
|
|
2196
2196
|
_react.useLayoutEffect.call(void 0, () => {
|
|
@@ -2320,7 +2320,7 @@ var FIELD_CONTROLS = {
|
|
|
2320
2320
|
}
|
|
2321
2321
|
),
|
|
2322
2322
|
textarea: ({ field, id, registerName, error, register }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2323
|
-
|
|
2323
|
+
_chunkIK2RJUEAcjs.Textarea,
|
|
2324
2324
|
{
|
|
2325
2325
|
id,
|
|
2326
2326
|
required: field.required,
|
|
@@ -2397,14 +2397,14 @@ var FIELD_CONTROLS = {
|
|
|
2397
2397
|
control,
|
|
2398
2398
|
name: registerName,
|
|
2399
2399
|
render: ({ field: rhf }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2400
|
-
|
|
2400
|
+
_chunkIK2RJUEAcjs.RadioGroup,
|
|
2401
2401
|
{
|
|
2402
2402
|
value: _nullishCoalesce(rhf.value, () => ( "")),
|
|
2403
2403
|
onValueChange: rhf.onChange,
|
|
2404
2404
|
"aria-required": field.required || void 0,
|
|
2405
2405
|
"aria-invalid": Boolean(error),
|
|
2406
2406
|
children: (_nullishCoalesce(field.options, () => ( []))).map((opt) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2407
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2407
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIK2RJUEAcjs.RadioGroupItem, { id: `${id}-${opt}`, value: opt }),
|
|
2408
2408
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6VWTUCHcjs.Label, { htmlFor: `${id}-${opt}`, children: optionLabel(field, opt) })
|
|
2409
2409
|
] }, opt))
|
|
2410
2410
|
}
|
|
@@ -2640,8 +2640,8 @@ function BookingForm({
|
|
|
2640
2640
|
children: _nullishCoalesce(submitLabel, () => ( DEFAULT_SUBMIT_LABEL))
|
|
2641
2641
|
}
|
|
2642
2642
|
);
|
|
2643
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ...
|
|
2644
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2643
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: submit, className: FORM_STACK, noValidate: true, ..._chunkCWRVTQUOcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
2644
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIK2RJUEAcjs.HoneypotField, { ...honeypotInputProps }),
|
|
2645
2645
|
fieldRows ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2646
2646
|
placedRows.map((row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: slotColumnClass(row, slot, slotIndex), children: slotNode(slot.name) }, slot.name)) }, row.map((s) => s.name).join("|"))),
|
|
2647
2647
|
[...unplacedBuiltIns, ...unplacedFields].map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: slotNode(field.name) }, field.name))
|
|
@@ -2654,7 +2654,7 @@ function BookingForm({
|
|
|
2654
2654
|
supportedFields.map((field) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: renderDeclaredField(field) }, field.name))
|
|
2655
2655
|
] }),
|
|
2656
2656
|
consent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2657
|
-
|
|
2657
|
+
_chunkIK2RJUEAcjs.CheckboxBlock,
|
|
2658
2658
|
{
|
|
2659
2659
|
id: "ms-host-consent",
|
|
2660
2660
|
checked: consented,
|
|
@@ -2689,7 +2689,7 @@ function BookingForm({
|
|
|
2689
2689
|
// same block the waitlist form uses): box + label in one
|
|
2690
2690
|
// bordered row.
|
|
2691
2691
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2692
|
-
|
|
2692
|
+
_chunkIK2RJUEAcjs.CheckboxBlock,
|
|
2693
2693
|
{
|
|
2694
2694
|
id: `ms-consent-${box.communicationTypeId}`,
|
|
2695
2695
|
checked: _nullishCoalesce(_optionalChain([current, 'optionalAccess', _34 => _34.consented]), () => ( false)),
|
|
@@ -2884,7 +2884,7 @@ function SchedulerContextPanel({
|
|
|
2884
2884
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, STRIP_ASIDE, locked && "content-max-lg:hidden"), children: [
|
|
2885
2885
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: FIELD_LABEL_CLASS, children: "Timezone" }),
|
|
2886
2886
|
timezone ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2887
|
-
|
|
2887
|
+
_chunkIK2RJUEAcjs.TimezoneSelect,
|
|
2888
2888
|
{
|
|
2889
2889
|
value: timezone,
|
|
2890
2890
|
disabled,
|
|
@@ -2967,18 +2967,18 @@ var NOOP = () => void 0;
|
|
|
2967
2967
|
function DayCalendar({ monthOffset, onMonthOffsetChange, selectedDay, onSelectDay, slotsByDay }) {
|
|
2968
2968
|
const now = /* @__PURE__ */ new Date();
|
|
2969
2969
|
const startMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
|
2970
|
-
const endMonth = new Date(now.getFullYear(), now.getMonth() +
|
|
2970
|
+
const endMonth = new Date(now.getFullYear(), now.getMonth() + _chunkCWRVTQUOcjs.MAX_MONTH_OFFSET + 1, 0);
|
|
2971
2971
|
const visibleMonth = new Date(now.getFullYear(), now.getMonth() + monthOffset, 1);
|
|
2972
2972
|
const dayHasNoSlots = _react.useCallback.call(void 0, (day) => !_optionalChain([slotsByDay, 'optionalAccess', _36 => _36.has, 'call', _37 => _37(calendarDayKey(day))]), [slotsByDay]);
|
|
2973
2973
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-0 flex-1 flex-col", "aria-busy": slotsByDay === null, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2974
|
-
|
|
2974
|
+
_chunkIK2RJUEAcjs.DatePickerCalendar,
|
|
2975
2975
|
{
|
|
2976
2976
|
mode: "single",
|
|
2977
2977
|
bare: true,
|
|
2978
2978
|
month: visibleMonth,
|
|
2979
2979
|
onMonthChange: (month) => {
|
|
2980
2980
|
const offset = (month.getFullYear() - now.getFullYear()) * 12 + (month.getMonth() - now.getMonth());
|
|
2981
|
-
onMonthOffsetChange(Math.max(0, Math.min(
|
|
2981
|
+
onMonthOffsetChange(Math.max(0, Math.min(_chunkCWRVTQUOcjs.MAX_MONTH_OFFSET, offset)));
|
|
2982
2982
|
},
|
|
2983
2983
|
fromDate: startMonth,
|
|
2984
2984
|
toDate: endMonth,
|
|
@@ -3094,7 +3094,7 @@ function SlotPicker({
|
|
|
3094
3094
|
monthLabelFor(monthOffset),
|
|
3095
3095
|
"."
|
|
3096
3096
|
] }),
|
|
3097
|
-
monthOffset <
|
|
3097
|
+
monthOffset < _chunkCWRVTQUOcjs.MAX_MONTH_OFFSET && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3098
3098
|
_chunk2QMBXGMQcjs.Button,
|
|
3099
3099
|
{
|
|
3100
3100
|
variant: "outline",
|
|
@@ -3580,11 +3580,11 @@ function HubSpotMeetingScheduler({
|
|
|
3580
3580
|
)
|
|
3581
3581
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-m)] content-md:min-h-0 content-md:flex-1", children: [
|
|
3582
3582
|
bookingError === "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3583
|
-
|
|
3583
|
+
_chunkIK2RJUEAcjs.Alert,
|
|
3584
3584
|
{
|
|
3585
3585
|
variant: "warning",
|
|
3586
3586
|
className: "mx-[var(--spacing-system-l)] mt-[var(--spacing-system-l)] w-auto content-lg:m-0 content-lg:w-full",
|
|
3587
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3587
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIK2RJUEAcjs.AlertDescription, { children: "That time was just taken \u2014 pick another slot below. (If you already submitted, check your email for a confirmation before rebooking.)" })
|
|
3588
3588
|
}
|
|
3589
3589
|
),
|
|
3590
3590
|
timezone && durationMs != null ? (
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkJFS6TZDXcjs = require('../../chunk-JFS6TZDX.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
35
|
-
require('../../chunk-
|
|
34
|
+
var _chunkEKGL5K5Kcjs = require('../../chunk-EKGL5K5K.cjs');
|
|
35
|
+
require('../../chunk-5SVOGLNK.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -47,7 +47,7 @@ require('../../chunk-FL6UO7IR.cjs');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkIK2RJUEAcjs = require('../../chunk-IK2RJUEA.cjs');
|
|
51
51
|
require('../../chunk-O67V3HJR.cjs');
|
|
52
52
|
require('../../chunk-3HPB4H4C.cjs');
|
|
53
53
|
require('../../chunk-DSVNFRY5.cjs');
|
|
@@ -63,7 +63,7 @@ require('../../chunk-YUMFVQIN.cjs');
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
var
|
|
66
|
+
var _chunkCWRVTQUOcjs = require('../../chunk-CWRVTQUO.cjs');
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
@@ -1949,4 +1949,4 @@ require('../../chunk-3ATAYP36.cjs');
|
|
|
1949
1949
|
|
|
1950
1950
|
|
|
1951
1951
|
|
|
1952
|
-
exports.ASK_AI_OPEN_EVENT = _chunkBV5WZVOPcjs.ASK_AI_OPEN_EVENT; exports.ASK_AI_OPEN_WITH_REF_EVENT = _chunkBV5WZVOPcjs.ASK_AI_OPEN_WITH_REF_EVENT; exports.AppHeader =
|
|
1952
|
+
exports.ASK_AI_OPEN_EVENT = _chunkBV5WZVOPcjs.ASK_AI_OPEN_EVENT; exports.ASK_AI_OPEN_WITH_REF_EVENT = _chunkBV5WZVOPcjs.ASK_AI_OPEN_WITH_REF_EVENT; exports.AppHeader = _chunkJFS6TZDXcjs.AppHeader; exports.AppLayout = _chunkJFS6TZDXcjs.AppLayout; exports.AppLayoutDrawer = _chunkIK2RJUEAcjs.AppLayoutDrawerRoot; exports.AppLayoutDrawerBody = _chunkIK2RJUEAcjs.AppLayoutDrawerBody; exports.AppLayoutDrawerClose = _chunkIK2RJUEAcjs.AppLayoutDrawerClose; exports.AppLayoutDrawerContent = _chunkIK2RJUEAcjs.AppLayoutDrawerContent; exports.AppLayoutDrawerDescription = _chunkIK2RJUEAcjs.AppLayoutDrawerDescription; exports.AppLayoutDrawerFooter = _chunkIK2RJUEAcjs.AppLayoutDrawerFooter; exports.AppLayoutDrawerHeader = _chunkIK2RJUEAcjs.AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = _chunkIK2RJUEAcjs.AppLayoutDrawerTitle; exports.AppLayoutDrawerTrigger = _chunkIK2RJUEAcjs.AppLayoutDrawerTrigger; exports.HeaderButton = _chunkIK2RJUEAcjs.HeaderButton; exports.HeaderGlobalSearch = _chunkJFS6TZDXcjs.HeaderGlobalSearch; exports.HeaderMingoButton = _chunkJFS6TZDXcjs.HeaderMingoButton; exports.HeaderOrganizationFilter = _chunkJFS6TZDXcjs.HeaderOrganizationFilter; exports.MOBILE_NAV_SHEET_ID = _chunkJFS6TZDXcjs.MOBILE_NAV_SHEET_ID; exports.MingoAiButton = _chunkCWRVTQUOcjs.MingoAiButton; exports.MobileBurgerMenu = _chunkJFS6TZDXcjs.MobileBurgerMenu; exports.MobileNavSheet = _chunkJFS6TZDXcjs.MobileNavSheet; exports.MobileNavigationDropdown = _chunkEKGL5K5Kcjs.MobileNavigationDropdown; exports.MultiLevelNavigation = _chunkEKGL5K5Kcjs.MultiLevelNavigation; exports.NAVIGATION_SIDEBAR_WIDTH_VAR = _chunkJFS6TZDXcjs.NAVIGATION_SIDEBAR_WIDTH_VAR; exports.NavItemRow = _chunkJFS6TZDXcjs.NavItemRow; exports.NavPanel = _chunkJFS6TZDXcjs.NavPanel; exports.NavigationItemBadge = _chunkJFS6TZDXcjs.NavigationItemBadge; exports.NavigationSidebar = _chunkJFS6TZDXcjs.NavigationSidebar; exports.SIDE_PANEL_FRAME_WIDTH = _chunkJFS6TZDXcjs.SIDE_PANEL_FRAME_WIDTH; exports.SiteFooter = _chunkJFS6TZDXcjs.SiteFooter; exports.SiteHeader = _chunkJFS6TZDXcjs.SiteHeader; exports.SlidingSidebar = _chunkJFS6TZDXcjs.SlidingSidebar; exports.StickySectionNav = _chunkEKGL5K5Kcjs.StickySectionNav; exports.TicketAlertsButton = _chunkJFS6TZDXcjs.TicketAlertsButton; exports.TopNavigation = _chunkJFS6TZDXcjs.TopNavigation; exports.UnreadCountBadge = _chunkIK2RJUEAcjs.UnreadCountBadge; exports.UnreadDot = _chunkIK2RJUEAcjs.UnreadDot; exports.defaultRenderSiteNavLink = _chunkJFS6TZDXcjs.defaultRenderSiteNavLink; exports.isMegaMenu = _chunkJFS6TZDXcjs.isMegaMenu; exports.navLinkLabel = _chunkJFS6TZDXcjs.navLinkLabel; exports.openAskAi = _chunkCWRVTQUOcjs.openAskAi; exports.siteNavHasMobileMenus = _chunkJFS6TZDXcjs.siteNavHasMobileMenus; exports.useAppLayoutDrawerContainer = _chunkIK2RJUEAcjs.useAppLayoutDrawerContainer; exports.useScrollSpy = _chunkEKGL5K5Kcjs.useScrollSpy; exports.useSectionNavigation = _chunkEKGL5K5Kcjs.useSectionNavigation;
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkITPEFCQ2cjs = require('../../chunk-ITPEFCQ2.cjs');
|
|
11
11
|
require('../../chunk-B3XBJCOD.cjs');
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
12
|
+
require('../../chunk-YQ37ZCD2.cjs');
|
|
13
|
+
require('../../chunk-IK2RJUEA.cjs');
|
|
14
14
|
require('../../chunk-O67V3HJR.cjs');
|
|
15
15
|
require('../../chunk-3HPB4H4C.cjs');
|
|
16
16
|
require('../../chunk-DSVNFRY5.cjs');
|
|
@@ -23,7 +23,7 @@ require('../../chunk-A6P6DHEZ.cjs');
|
|
|
23
23
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
24
24
|
require('../../chunk-KLI4OSRA.cjs');
|
|
25
25
|
require('../../chunk-YUMFVQIN.cjs');
|
|
26
|
-
require('../../chunk-
|
|
26
|
+
require('../../chunk-CWRVTQUO.cjs');
|
|
27
27
|
require('../../chunk-BV5WZVOP.cjs');
|
|
28
28
|
require('../../chunk-GABDE3FM.cjs');
|
|
29
29
|
require('../../chunk-3RFQPQ7Z.cjs');
|
|
@@ -1868,4 +1868,4 @@ require('../../chunk-3ATAYP36.cjs');
|
|
|
1868
1868
|
|
|
1869
1869
|
|
|
1870
1870
|
|
|
1871
|
-
exports.OnboardingGuideDetailView =
|
|
1871
|
+
exports.OnboardingGuideDetailView = _chunkITPEFCQ2cjs.OnboardingGuideDetailView; exports.OnboardingGuidesCatalogSkeleton = _chunkITPEFCQ2cjs.OnboardingGuidesCatalogSkeleton; exports.OnboardingGuidesCatalogView = _chunkITPEFCQ2cjs.OnboardingGuidesCatalogView; exports.onboardingGuideKeys = _chunkITPEFCQ2cjs.onboardingGuideKeys; exports.useOnboardingGuide = _chunkITPEFCQ2cjs.useOnboardingGuide; exports.useOnboardingGuideSections = _chunkITPEFCQ2cjs.useOnboardingGuideSections; exports.useOnboardingGuides = _chunkITPEFCQ2cjs.useOnboardingGuides;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ScriptExecutionTableRow } from '../../features/scripts';
|
|
2
|
+
import type { DemoCast } from '../cast';
|
|
3
|
+
/** The script the page's Mingo conversation writes, and the schedule that runs it. */
|
|
4
|
+
export interface DemoScript {
|
|
5
|
+
name: string;
|
|
6
|
+
/** Lowercase shell id. */
|
|
7
|
+
shellType: string;
|
|
8
|
+
/** The script's source, as the editor holds it. */
|
|
9
|
+
code: string;
|
|
10
|
+
/** Who wrote it and who approved it. */
|
|
11
|
+
provenance: {
|
|
12
|
+
author: string;
|
|
13
|
+
approver: string;
|
|
14
|
+
};
|
|
15
|
+
/** The schedule that runs it, as one line. */
|
|
16
|
+
schedule: {
|
|
17
|
+
repeat: string;
|
|
18
|
+
time: string;
|
|
19
|
+
deviceCount: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface ScriptsFixture {
|
|
23
|
+
script: DemoScript;
|
|
24
|
+
/** The schedule's first night, newest first (the Execution History's default order). */
|
|
25
|
+
executions: ScriptExecutionTableRow[];
|
|
26
|
+
/** The run whose output the picture opens. */
|
|
27
|
+
openExecutionId: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The scripts screen's story, picking up where the page's Mingo conversation
|
|
31
|
+
* ends: the script it wrote, and the first night its schedule ran.
|
|
32
|
+
*/
|
|
33
|
+
export declare function buildScriptsFixture(cast: DemoCast): ScriptsFixture;
|
|
34
|
+
//# sourceMappingURL=scripts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scripts.d.ts","sourceRoot":"","sources":["../../../../src/components/product-demo/fixtures/scripts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgD,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACpH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,sFAAsF;AACtF,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,UAAU,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,8CAA8C;IAC9C,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;CACjE;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,UAAU,CAAC;IACnB,wFAAwF;IACxF,UAAU,EAAE,uBAAuB,EAAE,CAAC;IACtC,8CAA8C;IAC9C,eAAe,EAAE,MAAM,CAAC;CACzB;AAmID;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,QAAQ,GAAG,cAAc,CA2BlE"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { DEMO_DEVICES, DEMO_ORGANIZATIONS, demoDay } from "./shared.js";
|
|
3
|
+
const CLEAR_TEMP_FILES = `$ErrorActionPreference = 'Ignore'
|
|
4
|
+
$paths = "$env:windir\\Temp",
|
|
5
|
+
'C:\\Users\\*\\AppData\\Local\\Temp',
|
|
6
|
+
"$env:windir\\SoftwareDistribution\\Download"
|
|
7
|
+
$before = (Get-PSDrive C).Free
|
|
8
|
+
foreach ($path in $paths) {
|
|
9
|
+
$items = Get-ChildItem $path -Recurse -Force
|
|
10
|
+
"Cleaning $path ($($items.Count) items)"
|
|
11
|
+
$items | Remove-Item -Recurse -Force
|
|
12
|
+
}
|
|
13
|
+
$freed = (Get-PSDrive C).Free - $before
|
|
14
|
+
'Freed {0:N1} GB' -f ($freed / 1GB)
|
|
15
|
+
'Exit code: 0'
|
|
16
|
+
exit 0`;
|
|
17
|
+
function cleanupLines([system, users, updates]) {
|
|
18
|
+
return [
|
|
19
|
+
`Cleaning C:\\Windows\\Temp (${system} items)`,
|
|
20
|
+
`Cleaning C:\\Users\\*\\AppData\\Local\\Temp (${users.toLocaleString("en-US")} items)`,
|
|
21
|
+
`Cleaning C:\\Windows\\SoftwareDistribution\\Download (${updates} items)`
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
|
+
function cleanupOutput(counts, freedGb) {
|
|
25
|
+
return [...cleanupLines(counts), `Freed ${freedGb} GB`, "Exit code: 0"].join("\n");
|
|
26
|
+
}
|
|
27
|
+
const DAY = new Intl.DateTimeFormat("en-US", { dateStyle: "short" });
|
|
28
|
+
const TIME = new Intl.DateTimeFormat("en-US", { timeStyle: "short" });
|
|
29
|
+
function onDemoDay(hours, minutes) {
|
|
30
|
+
const day = demoDay();
|
|
31
|
+
const at = new Date(day.getFullYear(), day.getMonth(), day.getDate(), hours, minutes);
|
|
32
|
+
return `${DAY.format(at)} ${TIME.format(at)}`;
|
|
33
|
+
}
|
|
34
|
+
const RUN = [
|
|
35
|
+
{
|
|
36
|
+
executionId: "c4f1e7a2-93b0-4d6e-8a15-6e2b9f04d731",
|
|
37
|
+
device: "jenSurface",
|
|
38
|
+
at: [23, 4],
|
|
39
|
+
status: "RUNNING",
|
|
40
|
+
source: "SCHEDULED",
|
|
41
|
+
result: cleanupLines([254, 1377, 40])[0]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
executionId: "9a2d5c18-4e7f-4b31-b0c6-d85e1a3f6290",
|
|
45
|
+
device: "samT14",
|
|
46
|
+
at: [23, 3],
|
|
47
|
+
status: "FAILED",
|
|
48
|
+
source: "SCHEDULED",
|
|
49
|
+
result: [cleanupLines([230, 906, 51])[0], "Execution timed out after 90 seconds"].join("\n\n")
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
executionId: "1e8b47d3-c25a-4f90-9e3d-07b6a2c51f84",
|
|
53
|
+
device: "warehouse",
|
|
54
|
+
at: [23, 2],
|
|
55
|
+
status: "SUCCESS",
|
|
56
|
+
source: "SCHEDULED",
|
|
57
|
+
result: cleanupOutput([412, 2184, 63], "2.7")
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
executionId: "6f30a9c5-1b84-47e2-a3d9-52c8e7b0f416",
|
|
61
|
+
device: "leoThinkPad",
|
|
62
|
+
at: [23, 1],
|
|
63
|
+
status: "SUCCESS",
|
|
64
|
+
source: "SCHEDULED",
|
|
65
|
+
result: cleanupOutput([288, 1530, 41], "1.9")
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
executionId: "b7d26e04-8f1c-4a53-9b7e-3c0f5a9d82e1",
|
|
69
|
+
device: "priyaXps",
|
|
70
|
+
at: [23, 1],
|
|
71
|
+
status: "SUCCESS",
|
|
72
|
+
source: "SCHEDULED",
|
|
73
|
+
result: cleanupOutput([241, 1102, 37], "1.4")
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
executionId: "2c95f8b1-6d07-4e4a-8f2b-a13e9c6d70b5",
|
|
77
|
+
device: "frontDesk",
|
|
78
|
+
at: [23, 0],
|
|
79
|
+
status: "SUCCESS",
|
|
80
|
+
source: "SCHEDULED",
|
|
81
|
+
result: cleanupOutput([507, 2650, 72], "2.2")
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
executionId: "e05b3a7f-d4c8-49e1-b6a0-8f2d17c9e358",
|
|
85
|
+
device: "reception",
|
|
86
|
+
at: [22, 51],
|
|
87
|
+
status: "SUCCESS",
|
|
88
|
+
source: "AI_ASSISTANT",
|
|
89
|
+
result: cleanupOutput([596, 3418, 88], "3.2")
|
|
90
|
+
}
|
|
91
|
+
];
|
|
92
|
+
const OPEN_EXECUTION = RUN[2];
|
|
93
|
+
function buildScriptsFixture(cast) {
|
|
94
|
+
const alex = cast.person("alex");
|
|
95
|
+
return {
|
|
96
|
+
script: {
|
|
97
|
+
name: "Clear temp files",
|
|
98
|
+
shellType: "powershell",
|
|
99
|
+
code: CLEAR_TEMP_FILES,
|
|
100
|
+
provenance: { author: "Mingo", approver: alex.name },
|
|
101
|
+
schedule: { repeat: "Every day", time: "11:00 PM", deviceCount: 213 }
|
|
102
|
+
},
|
|
103
|
+
executions: RUN.map((run) => {
|
|
104
|
+
const device = DEMO_DEVICES[run.device];
|
|
105
|
+
return {
|
|
106
|
+
id: run.executionId,
|
|
107
|
+
executionId: run.executionId,
|
|
108
|
+
timestamp: onDemoDay(...run.at),
|
|
109
|
+
status: run.status,
|
|
110
|
+
machineName: device.hostname,
|
|
111
|
+
organization: DEMO_ORGANIZATIONS[device.organization].name,
|
|
112
|
+
// Every run is on behalf of Alex: the schedule is his, and the test ran because he asked.
|
|
113
|
+
initiator: { name: alex.name, initials: alex.initials, image: alex.avatarUrl },
|
|
114
|
+
source: run.source,
|
|
115
|
+
result: run.result
|
|
116
|
+
};
|
|
117
|
+
}),
|
|
118
|
+
openExecutionId: OPEN_EXECUTION.executionId
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
export {
|
|
122
|
+
buildScriptsFixture
|
|
123
|
+
};
|
|
@@ -145,12 +145,20 @@ export declare const DEMO_DEVICES: {
|
|
|
145
145
|
readonly os: "WINDOWS";
|
|
146
146
|
readonly organization: "northbridge";
|
|
147
147
|
};
|
|
148
|
+
readonly warehouse: {
|
|
149
|
+
readonly id: "device-warehouse";
|
|
150
|
+
readonly hostname: "WAREHOUSE-PC03";
|
|
151
|
+
readonly os: "WINDOWS";
|
|
152
|
+
readonly organization: "acme";
|
|
153
|
+
};
|
|
148
154
|
};
|
|
149
155
|
/**
|
|
150
156
|
* A fixed "now" for relative times, so a screen reads the same on every render
|
|
151
157
|
* and never drifts between the server and the browser.
|
|
152
158
|
*/
|
|
153
159
|
export declare const DEMO_NOW = "2026-10-06T14:05:00.000Z";
|
|
160
|
+
/** The demo day as a local calendar day, so a date field reads the same in every timezone. */
|
|
161
|
+
export declare function demoDay(): Date;
|
|
154
162
|
/** An instant `minutes` before {@link DEMO_NOW}. */
|
|
155
163
|
export declare function demoMinutesAgo(minutes: number): string;
|
|
156
164
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/components/product-demo/fixtures/shared.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;CAIrB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUd,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,WAAW,CAAC;AACrD,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAElE,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/components/product-demo/fixtures/shared.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;CAIrB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUd,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,WAAW,CAAC;AACrD,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAElE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUf,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,QAAQ,6BAA6B,CAAC;AAEnD,8FAA8F;AAC9F,wBAAgB,OAAO,IAAI,IAAI,CAG9B;AAED,oDAAoD;AACpD,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEtD"}
|
|
@@ -23,9 +23,14 @@ const DEMO_DEVICES = {
|
|
|
23
23
|
leoThinkPad: { id: "device-leo", hostname: "LEO-THINKPAD", os: "WINDOWS", organization: "harbor" },
|
|
24
24
|
buildServer: { id: "device-build", hostname: "BUILD-SRV-01", os: "LINUX", organization: "acme" },
|
|
25
25
|
jenSurface: { id: "device-jen", hostname: "JEN-SURFACE", os: "WINDOWS", organization: "acme" },
|
|
26
|
-
priyaXps: { id: "device-priya", hostname: "PRIYA-XPS", os: "WINDOWS", organization: "northbridge" }
|
|
26
|
+
priyaXps: { id: "device-priya", hostname: "PRIYA-XPS", os: "WINDOWS", organization: "northbridge" },
|
|
27
|
+
warehouse: { id: "device-warehouse", hostname: "WAREHOUSE-PC03", os: "WINDOWS", organization: "acme" }
|
|
27
28
|
};
|
|
28
29
|
const DEMO_NOW = "2026-10-06T14:05:00.000Z";
|
|
30
|
+
function demoDay() {
|
|
31
|
+
const [year, month, day] = DEMO_NOW.slice(0, 10).split("-").map(Number);
|
|
32
|
+
return new Date(year, month - 1, day);
|
|
33
|
+
}
|
|
29
34
|
function demoMinutesAgo(minutes) {
|
|
30
35
|
return new Date(Date.parse(DEMO_NOW) - minutes * 6e4).toISOString();
|
|
31
36
|
}
|
|
@@ -34,5 +39,6 @@ export {
|
|
|
34
39
|
DEMO_NOW,
|
|
35
40
|
DEMO_ORGANIZATIONS,
|
|
36
41
|
DEMO_PEOPLE,
|
|
42
|
+
demoDay,
|
|
37
43
|
demoMinutesAgo
|
|
38
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"software-update.d.ts","sourceRoot":"","sources":["../../../../src/components/product-demo/fixtures/software-update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAA2B,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAChH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"software-update.d.ts","sourceRoot":"","sources":["../../../../src/components/product-demo/fixtures/software-update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAA2B,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAChH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAuCxC;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,QAAQ;;;;;;;;;EAUxD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { buildDevicesFixture } from "./devices.js";
|
|
3
|
-
import { DEMO_DEVICES,
|
|
3
|
+
import { DEMO_DEVICES, demoDay } from "./shared.js";
|
|
4
4
|
const chrome = {
|
|
5
5
|
id: "Google.Chrome",
|
|
6
6
|
name: "Google Chrome",
|
|
@@ -8,10 +8,6 @@ const chrome = {
|
|
|
8
8
|
version: "141.0.7390.66",
|
|
9
9
|
packageType: null
|
|
10
10
|
};
|
|
11
|
-
function demoDay() {
|
|
12
|
-
const [year, month, day] = DEMO_NOW.slice(0, 10).split("-").map(Number);
|
|
13
|
-
return new Date(year, month - 1, day);
|
|
14
|
-
}
|
|
15
11
|
const TONIGHT_11_PM = { value: "23:00", label: "11:00 PM" };
|
|
16
12
|
const timing = {
|
|
17
13
|
timeReferenceOptions: [
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('../../chunk-
|
|
7
|
+
var _chunkSTEJZPIOcjs = require('../../chunk-STEJZPIO.cjs');
|
|
8
|
+
require('../../chunk-DKOLQPE7.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkAKTPO2DNcjs = require('../../chunk-AKTPO2DN.cjs');
|
|
@@ -21,14 +21,15 @@ var _react = require('react');
|
|
|
21
21
|
|
|
22
22
|
// src/components/product-demo/registry.ts
|
|
23
23
|
var PRODUCT_SCREEN_LOADERS = {
|
|
24
|
-
"remote-session": () => Promise.resolve().then(() => _interopRequireWildcard(require("../../remote-session-
|
|
25
|
-
"software-update": () => Promise.resolve().then(() => _interopRequireWildcard(require("../../software-update-
|
|
26
|
-
devices: () => Promise.resolve().then(() => _interopRequireWildcard(require("../../devices-
|
|
27
|
-
policies: () => Promise.resolve().then(() => _interopRequireWildcard(require("../../policies-
|
|
28
|
-
"cloud-tenants": () => Promise.resolve().then(() => _interopRequireWildcard(require("../../cloud-tenants-
|
|
29
|
-
"tickets-board": () => Promise.resolve().then(() => _interopRequireWildcard(require("../../tickets-board-
|
|
30
|
-
logs: () => Promise.resolve().then(() => _interopRequireWildcard(require("../../logs-
|
|
31
|
-
knowledge: () => Promise.resolve().then(() => _interopRequireWildcard(require("../../knowledge-
|
|
24
|
+
"remote-session": () => Promise.resolve().then(() => _interopRequireWildcard(require("../../remote-session-BZMNE6D2.cjs"))),
|
|
25
|
+
"software-update": () => Promise.resolve().then(() => _interopRequireWildcard(require("../../software-update-QAMNASVF.cjs"))),
|
|
26
|
+
devices: () => Promise.resolve().then(() => _interopRequireWildcard(require("../../devices-W3S7Q2PG.cjs"))),
|
|
27
|
+
policies: () => Promise.resolve().then(() => _interopRequireWildcard(require("../../policies-EIZJ5SUP.cjs"))),
|
|
28
|
+
"cloud-tenants": () => Promise.resolve().then(() => _interopRequireWildcard(require("../../cloud-tenants-MVJK52I2.cjs"))),
|
|
29
|
+
"tickets-board": () => Promise.resolve().then(() => _interopRequireWildcard(require("../../tickets-board-CEDHD3KB.cjs"))),
|
|
30
|
+
logs: () => Promise.resolve().then(() => _interopRequireWildcard(require("../../logs-7SHJ2ARE.cjs"))),
|
|
31
|
+
knowledge: () => Promise.resolve().then(() => _interopRequireWildcard(require("../../knowledge-AIYQ4FC3.cjs"))),
|
|
32
|
+
scripts: () => Promise.resolve().then(() => _interopRequireWildcard(require("../../scripts-J2FWC7E4.cjs")))
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
// src/components/product-demo/screen-keys.ts
|
|
@@ -40,7 +41,8 @@ var PRODUCT_SCREEN_LABELS = {
|
|
|
40
41
|
"cloud-tenants": "Cloud tenants",
|
|
41
42
|
"tickets-board": "Ticket board",
|
|
42
43
|
logs: "Logs with a log open",
|
|
43
|
-
knowledge: "Knowledge base"
|
|
44
|
+
knowledge: "Knowledge base",
|
|
45
|
+
scripts: "Script library and schedules"
|
|
44
46
|
};
|
|
45
47
|
var PRODUCT_SCREEN_KEYS = Object.keys(PRODUCT_SCREEN_LABELS);
|
|
46
48
|
function isProductScreenKey(value) {
|
|
@@ -60,7 +62,8 @@ var PRODUCT_SCREEN_COMPACT_HEIGHT = 300;
|
|
|
60
62
|
var MIN_LAYOUT_WIDTH = {
|
|
61
63
|
devices: 1120,
|
|
62
64
|
logs: 1120,
|
|
63
|
-
"software-update": 1400
|
|
65
|
+
"software-update": 1400,
|
|
66
|
+
scripts: 1400
|
|
64
67
|
};
|
|
65
68
|
var COMPACT_LAYOUT_WIDTH = {
|
|
66
69
|
"remote-session": 380
|
|
@@ -109,4 +112,4 @@ function ProductScreen({ screen, compact = false, label, height, designWidth, ..
|
|
|
109
112
|
|
|
110
113
|
|
|
111
114
|
|
|
112
|
-
exports.PRODUCT_SCREEN_COMPACT_HEIGHT = PRODUCT_SCREEN_COMPACT_HEIGHT; exports.PRODUCT_SCREEN_HEIGHT = PRODUCT_SCREEN_HEIGHT; exports.PRODUCT_SCREEN_KEYS = PRODUCT_SCREEN_KEYS; exports.PRODUCT_SCREEN_LABELS = PRODUCT_SCREEN_LABELS; exports.PRODUCT_SCREEN_OPTIONS = PRODUCT_SCREEN_OPTIONS; exports.ProductDemoCastProvider =
|
|
115
|
+
exports.PRODUCT_SCREEN_COMPACT_HEIGHT = PRODUCT_SCREEN_COMPACT_HEIGHT; exports.PRODUCT_SCREEN_HEIGHT = PRODUCT_SCREEN_HEIGHT; exports.PRODUCT_SCREEN_KEYS = PRODUCT_SCREEN_KEYS; exports.PRODUCT_SCREEN_LABELS = PRODUCT_SCREEN_LABELS; exports.PRODUCT_SCREEN_OPTIONS = PRODUCT_SCREEN_OPTIONS; exports.ProductDemoCastProvider = _chunkSTEJZPIOcjs.ProductDemoCastProvider; exports.ProductScreen = ProductScreen; exports.ProductScreenSkeleton = ProductScreenSkeleton; exports.isProductScreenKey = isProductScreenKey; exports.resolveProductDemoCast = _chunkSTEJZPIOcjs.resolveProductDemoCast; exports.useProductDemoCast = _chunkSTEJZPIOcjs.useProductDemoCast;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-screen.d.ts","sourceRoot":"","sources":["../../../src/components/product-demo/product-screen.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAsB,KAAK,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAG9F,OAAO,EAA8C,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAQlG,uGAAuG;AACvG,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,6BAA6B,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"product-screen.d.ts","sourceRoot":"","sources":["../../../src/components/product-demo/product-screen.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAsB,KAAK,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAG9F,OAAO,EAA8C,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAQlG,uGAAuG;AACvG,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,6BAA6B,MAAM,CAAC;AA4BjD,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,uBAAuB,EAAE,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;IACxG,MAAM,EAAE,gBAAgB,CAAC;IACzB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,wDAAwD;AACxD,wBAAgB,qBAAqB,CAAC,EACpC,OAAe,EACf,MAAM,EACN,SAAS,GACV,EAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,GAAG,QAAQ,GAAG,WAAW,CAAC,+BAO9D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,OAAe,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAuBlH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/components/product-demo/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,KAAK,mBAAmB,GAAG,MAAM,OAAO,CAAC;IAAE,OAAO,EAAE,sBAAsB,CAAA;CAAE,CAAC,CAAC;AAE9E;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/components/product-demo/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,KAAK,mBAAmB,GAAG,MAAM,OAAO,CAAC;IAAE,OAAO,EAAE,sBAAsB,CAAA;CAAE,CAAC,CAAC;AAE9E;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAUhF,CAAC"}
|
|
@@ -7,7 +7,8 @@ const PRODUCT_SCREEN_LOADERS = {
|
|
|
7
7
|
"cloud-tenants": () => import("./screens/cloud-tenants.js"),
|
|
8
8
|
"tickets-board": () => import("./screens/tickets-board.js"),
|
|
9
9
|
logs: () => import("./screens/logs.js"),
|
|
10
|
-
knowledge: () => import("./screens/knowledge.js")
|
|
10
|
+
knowledge: () => import("./screens/knowledge.js"),
|
|
11
|
+
scripts: () => import("./screens/scripts.js")
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
14
|
PRODUCT_SCREEN_LOADERS
|
|
@@ -9,7 +9,8 @@ var PRODUCT_SCREEN_LABELS = {
|
|
|
9
9
|
"cloud-tenants": "Cloud tenants",
|
|
10
10
|
"tickets-board": "Ticket board",
|
|
11
11
|
logs: "Logs with a log open",
|
|
12
|
-
knowledge: "Knowledge base"
|
|
12
|
+
knowledge: "Knowledge base",
|
|
13
|
+
scripts: "Script library and schedules"
|
|
13
14
|
};
|
|
14
15
|
var PRODUCT_SCREEN_KEYS = Object.keys(PRODUCT_SCREEN_LABELS);
|
|
15
16
|
function isProductScreenKey(value) {
|
|
@@ -15,6 +15,7 @@ export declare const PRODUCT_SCREEN_LABELS: {
|
|
|
15
15
|
readonly 'tickets-board': "Ticket board";
|
|
16
16
|
readonly logs: "Logs with a log open";
|
|
17
17
|
readonly knowledge: "Knowledge base";
|
|
18
|
+
readonly scripts: "Script library and schedules";
|
|
18
19
|
};
|
|
19
20
|
export type ProductScreenKey = keyof typeof PRODUCT_SCREEN_LABELS;
|
|
20
21
|
export declare const PRODUCT_SCREEN_KEYS: ProductScreenKey[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen-keys.d.ts","sourceRoot":"","sources":["../../../src/components/product-demo/screen-keys.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"screen-keys.d.ts","sourceRoot":"","sources":["../../../src/components/product-demo/screen-keys.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;CAUxB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAElE,eAAO,MAAM,mBAAmB,EAAyC,gBAAgB,EAAE,CAAC;AAE5F,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAE5E;AAED,mDAAmD;AACnD,eAAO,MAAM,sBAAsB,EAAE,SAAS;IAAE,KAAK,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAEvF,CAAC"}
|
|
@@ -6,7 +6,8 @@ const PRODUCT_SCREEN_LABELS = {
|
|
|
6
6
|
"cloud-tenants": "Cloud tenants",
|
|
7
7
|
"tickets-board": "Ticket board",
|
|
8
8
|
logs: "Logs with a log open",
|
|
9
|
-
knowledge: "Knowledge base"
|
|
9
|
+
knowledge: "Knowledge base",
|
|
10
|
+
scripts: "Script library and schedules"
|
|
10
11
|
};
|
|
11
12
|
const PRODUCT_SCREEN_KEYS = Object.keys(PRODUCT_SCREEN_LABELS);
|
|
12
13
|
function isProductScreenKey(value) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ProductScreenViewProps } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Where the page's Mingo conversation leaves off: the script it wrote, on the
|
|
4
|
+
* left, and the first night its schedule ran, on the right, as the product's
|
|
5
|
+
* Execution History (a run still going, one failed, one finished with its
|
|
6
|
+
* output open under it: what it cleaned and what it freed). The schedule form
|
|
7
|
+
* and the library are the conversation's part, so the picture leaves them
|
|
8
|
+
* out. The narrow rendering is the run alone: which devices, and how each went.
|
|
9
|
+
*/
|
|
10
|
+
export default function ScriptsScreen({ compact }: ProductScreenViewProps): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=scripts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scripts.d.ts","sourceRoot":"","sources":["../../../../src/components/product-demo/screens/scripts.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAkIvD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,OAAe,EAAE,EAAE,sBAAsB,+BAsChF"}
|