@industry-theme/repository-composition-panels 0.7.42 → 0.7.43
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/{browserAll-S7GCUhgN.js → browserAll-CjDWWn8L.js} +3 -3
- package/dist/{browserAll-S7GCUhgN.js.map → browserAll-CjDWWn8L.js.map} +1 -1
- package/dist/{index-C_3jkero.js → index-DNcQCj6d.js} +169 -169
- package/dist/{index-C_3jkero.js.map → index-DNcQCj6d.js.map} +1 -1
- package/dist/{init-D4-ZsR5o.js → init-Cdy1Of_d.js} +2 -2
- package/dist/{init-D4-ZsR5o.js.map → init-Cdy1Of_d.js.map} +1 -1
- package/dist/panels/overworld-map/components/CardBackCodeCity.d.ts +19 -0
- package/dist/panels/overworld-map/components/CardBackCodeCity.d.ts.map +1 -0
- package/dist/panels/overworld-map/index.d.ts +2 -0
- package/dist/panels/overworld-map/index.d.ts.map +1 -1
- package/dist/panels.bundle.js +3 -1
- package/dist/panels.bundle.js.map +1 -1
- package/dist/webworkerAll-BHVIefJ1.js +3 -0
- package/dist/webworkerAll-BHVIefJ1.js.map +1 -0
- package/package.json +2 -1
- package/dist/webworkerAll-ZfYKVGLS.js +0 -3
- package/dist/webworkerAll-ZfYKVGLS.js.map +0 -1
|
@@ -2,8 +2,8 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
5
|
-
import * as
|
|
6
|
-
import
|
|
5
|
+
import * as require$$0$1 from "react";
|
|
6
|
+
import require$$0__default, { createContext, useContext, forwardRef, createElement, useCallback, useState, useRef, useEffect, useMemo, memo, useLayoutEffect, useImperativeHandle } from "react";
|
|
7
7
|
import { createPortal } from "react-dom";
|
|
8
8
|
import { GitStatusFileTree, calculateTelemetryCoverageStats, TelemetryCoverageFileTree } from "@principal-ade/dynamic-file-tree";
|
|
9
9
|
var ThemeContext$1;
|
|
@@ -10706,7 +10706,7 @@ var hasRequiredUseSyncExternalStoreShim_production_min;
|
|
|
10706
10706
|
function requireUseSyncExternalStoreShim_production_min() {
|
|
10707
10707
|
if (hasRequiredUseSyncExternalStoreShim_production_min) return useSyncExternalStoreShim_production_min;
|
|
10708
10708
|
hasRequiredUseSyncExternalStoreShim_production_min = 1;
|
|
10709
|
-
var e2 =
|
|
10709
|
+
var e2 = require$$0__default;
|
|
10710
10710
|
function h2(a2, b2) {
|
|
10711
10711
|
return a2 === b2 && (0 !== a2 || 1 / a2 === 1 / b2) || a2 !== a2 && b2 !== b2;
|
|
10712
10712
|
}
|
|
@@ -10766,7 +10766,7 @@ var hasRequiredWithSelector_production_min;
|
|
|
10766
10766
|
function requireWithSelector_production_min() {
|
|
10767
10767
|
if (hasRequiredWithSelector_production_min) return withSelector_production_min;
|
|
10768
10768
|
hasRequiredWithSelector_production_min = 1;
|
|
10769
|
-
var h2 =
|
|
10769
|
+
var h2 = require$$0__default, n2 = requireShim();
|
|
10770
10770
|
function p2(a2, b2) {
|
|
10771
10771
|
return a2 === b2 && (0 !== a2 || 1 / a2 === 1 / b2) || a2 !== a2 && b2 !== b2;
|
|
10772
10772
|
}
|
|
@@ -10855,7 +10855,7 @@ const createStoreImpl = (createState2) => {
|
|
|
10855
10855
|
return api;
|
|
10856
10856
|
};
|
|
10857
10857
|
const createStore$1 = (createState2) => createState2 ? createStoreImpl(createState2) : createStoreImpl;
|
|
10858
|
-
const { useDebugValue } =
|
|
10858
|
+
const { useDebugValue } = require$$0__default;
|
|
10859
10859
|
const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
|
|
10860
10860
|
const identity = (arg) => arg;
|
|
10861
10861
|
function useStoreWithEqualityFn(api, selector2 = identity, equalityFn) {
|
|
@@ -93831,14 +93831,14 @@ var ZoomPanPinch = (
|
|
|
93831
93831
|
return ZoomPanPinch2;
|
|
93832
93832
|
})()
|
|
93833
93833
|
);
|
|
93834
|
-
var Context =
|
|
93834
|
+
var Context = require$$0__default.createContext(null);
|
|
93835
93835
|
var getContent = function(children2, ctx) {
|
|
93836
93836
|
if (typeof children2 === "function") {
|
|
93837
93837
|
return children2(ctx);
|
|
93838
93838
|
}
|
|
93839
93839
|
return children2;
|
|
93840
93840
|
};
|
|
93841
|
-
var TransformWrapper =
|
|
93841
|
+
var TransformWrapper = require$$0__default.forwardRef(function(props, ref) {
|
|
93842
93842
|
var instance = useRef(new ZoomPanPinch(props)).current;
|
|
93843
93843
|
var content2 = getContent(props.children, getControls(instance));
|
|
93844
93844
|
useImperativeHandle(ref, function() {
|
|
@@ -93847,9 +93847,9 @@ var TransformWrapper = React2__default.forwardRef(function(props, ref) {
|
|
|
93847
93847
|
useEffect(function() {
|
|
93848
93848
|
instance.update(props);
|
|
93849
93849
|
}, [instance, props]);
|
|
93850
|
-
return
|
|
93850
|
+
return require$$0__default.createElement(Context.Provider, { value: instance }, content2);
|
|
93851
93851
|
});
|
|
93852
|
-
|
|
93852
|
+
require$$0__default.forwardRef(function(props, ref) {
|
|
93853
93853
|
var localRef = useRef(null);
|
|
93854
93854
|
var instance = useContext(Context);
|
|
93855
93855
|
useEffect(function() {
|
|
@@ -93861,7 +93861,7 @@ React2__default.forwardRef(function(props, ref) {
|
|
|
93861
93861
|
}
|
|
93862
93862
|
});
|
|
93863
93863
|
}, [instance]);
|
|
93864
|
-
return
|
|
93864
|
+
return require$$0__default.createElement("div", __assign({}, props, { ref: mergeRefs([localRef, ref]) }));
|
|
93865
93865
|
});
|
|
93866
93866
|
function styleInject(css2, ref) {
|
|
93867
93867
|
if (ref === void 0) ref = {};
|
|
@@ -93905,10 +93905,10 @@ var TransformComponent = function(_a) {
|
|
|
93905
93905
|
cleanupWindowEvents === null || cleanupWindowEvents === void 0 ? void 0 : cleanupWindowEvents();
|
|
93906
93906
|
};
|
|
93907
93907
|
}, []);
|
|
93908
|
-
return
|
|
93908
|
+
return require$$0__default.createElement(
|
|
93909
93909
|
"div",
|
|
93910
93910
|
__assign({}, wrapperProps, { ref: wrapperRef, className: "".concat(baseClasses.wrapperClass, " ").concat(styles.wrapper, " ").concat(wrapperClass), style: wrapperStyle2 }),
|
|
93911
|
-
|
|
93911
|
+
require$$0__default.createElement("div", __assign({}, contentProps, { ref: contentRef, className: "".concat(baseClasses.contentClass, " ").concat(styles.content, " ").concat(contentClass), style: contentStyle }), children2)
|
|
93912
93912
|
);
|
|
93913
93913
|
};
|
|
93914
93914
|
var isInjected = false;
|
|
@@ -94527,17 +94527,17 @@ function IndustryHtmlModal({ isOpen, onClose, htmlContent, theme: theme2 }) {
|
|
|
94527
94527
|
e2.currentTarget.style.backgroundColor = "transparent";
|
|
94528
94528
|
e2.currentTarget.style.color = theme2.colors.textSecondary;
|
|
94529
94529
|
};
|
|
94530
|
-
return /* @__PURE__ */
|
|
94530
|
+
return /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94531
94531
|
style: overlayStyle,
|
|
94532
94532
|
onClick: onClose
|
|
94533
|
-
}, /* @__PURE__ */
|
|
94533
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94534
94534
|
style: modalStyle,
|
|
94535
94535
|
onClick: (e2) => e2.stopPropagation()
|
|
94536
|
-
}, /* @__PURE__ */
|
|
94536
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94537
94537
|
style: headerStyle
|
|
94538
|
-
}, /* @__PURE__ */
|
|
94538
|
+
}, /* @__PURE__ */ require$$0__default.createElement("h3", {
|
|
94539
94539
|
style: titleStyle
|
|
94540
|
-
}, "HTML Preview"), /* @__PURE__ */
|
|
94540
|
+
}, "HTML Preview"), /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
94541
94541
|
onClick: (e2) => {
|
|
94542
94542
|
e2.stopPropagation();
|
|
94543
94543
|
onClose();
|
|
@@ -94547,9 +94547,9 @@ function IndustryHtmlModal({ isOpen, onClose, htmlContent, theme: theme2 }) {
|
|
|
94547
94547
|
onMouseLeave: handleCloseButtonLeave,
|
|
94548
94548
|
title: "Close",
|
|
94549
94549
|
"aria-label": "Close modal"
|
|
94550
|
-
}, "×")), /* @__PURE__ */
|
|
94550
|
+
}, "×")), /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94551
94551
|
style: contentStyle
|
|
94552
|
-
}, /* @__PURE__ */
|
|
94552
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94553
94553
|
dangerouslySetInnerHTML: { __html: htmlContent }
|
|
94554
94554
|
}))));
|
|
94555
94555
|
}
|
|
@@ -94580,7 +94580,7 @@ function IndustryMermaidDiagram({
|
|
|
94580
94580
|
const [containerElement, setContainerElement] = useState(null);
|
|
94581
94581
|
const [copiedError, setCopiedError] = useState(false);
|
|
94582
94582
|
const observerRef = useRef(null);
|
|
94583
|
-
const containerRef =
|
|
94583
|
+
const containerRef = require$$0__default.useCallback((node2) => {
|
|
94584
94584
|
setContainerElement(node2);
|
|
94585
94585
|
if (observerRef.current) {
|
|
94586
94586
|
observerRef.current.disconnect();
|
|
@@ -94784,15 +94784,15 @@ ${errorDetails.code}
|
|
|
94784
94784
|
fontFamily: theme2.fonts.body
|
|
94785
94785
|
};
|
|
94786
94786
|
if (isModalMode || isFullSlide) {
|
|
94787
|
-
return /* @__PURE__ */
|
|
94787
|
+
return /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94788
94788
|
ref: containerRef,
|
|
94789
94789
|
style: containerStyle2,
|
|
94790
94790
|
className: "mermaid-container"
|
|
94791
|
-
}, !hasRendered && /* @__PURE__ */
|
|
94791
|
+
}, !hasRendered && /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94792
94792
|
style: placeholderStyle
|
|
94793
|
-
}, /* @__PURE__ */
|
|
94793
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94794
94794
|
style: { fontSize: theme2.fontSizes[1], marginTop: theme2.space[2], opacity: 0.7 }
|
|
94795
|
-
}, "Loading...")), errorDetails && /* @__PURE__ */
|
|
94795
|
+
}, "Loading...")), errorDetails && /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94796
94796
|
style: {
|
|
94797
94797
|
padding: theme2.space[4],
|
|
94798
94798
|
background: `${theme2.colors.error}22`,
|
|
@@ -94804,16 +94804,16 @@ ${errorDetails.code}
|
|
|
94804
94804
|
maxWidth: "600px",
|
|
94805
94805
|
margin: "0 auto"
|
|
94806
94806
|
}
|
|
94807
|
-
}, /* @__PURE__ */
|
|
94807
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94808
94808
|
style: {
|
|
94809
94809
|
display: "flex",
|
|
94810
94810
|
justifyContent: "space-between",
|
|
94811
94811
|
alignItems: "flex-start",
|
|
94812
94812
|
marginBottom: theme2.space[2]
|
|
94813
94813
|
}
|
|
94814
|
-
}, /* @__PURE__ */
|
|
94814
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94815
94815
|
style: { fontWeight: theme2.fontWeights.bold }
|
|
94816
|
-
}, "Failed to render Mermaid diagram"), /* @__PURE__ */
|
|
94816
|
+
}, "Failed to render Mermaid diagram"), /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
94817
94817
|
onClick: handleCopyError,
|
|
94818
94818
|
style: {
|
|
94819
94819
|
padding: theme2.space[1],
|
|
@@ -94830,11 +94830,11 @@ ${errorDetails.code}
|
|
|
94830
94830
|
transition: "all 0.2s ease"
|
|
94831
94831
|
},
|
|
94832
94832
|
title: "Copy error details"
|
|
94833
|
-
}, copiedError ? /* @__PURE__ */
|
|
94833
|
+
}, copiedError ? /* @__PURE__ */ require$$0__default.createElement(require$$0__default.Fragment, null, /* @__PURE__ */ require$$0__default.createElement(Check$1, {
|
|
94834
94834
|
size: 14
|
|
94835
|
-
}), "Copied") : /* @__PURE__ */
|
|
94835
|
+
}), "Copied") : /* @__PURE__ */ require$$0__default.createElement(require$$0__default.Fragment, null, /* @__PURE__ */ require$$0__default.createElement(Copy$1, {
|
|
94836
94836
|
size: 14
|
|
94837
|
-
}), "Copy Error"))), /* @__PURE__ */
|
|
94837
|
+
}), "Copy Error"))), /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94838
94838
|
style: {
|
|
94839
94839
|
fontSize: theme2.fontSizes[0],
|
|
94840
94840
|
opacity: 0.8,
|
|
@@ -94843,11 +94843,11 @@ ${errorDetails.code}
|
|
|
94843
94843
|
}
|
|
94844
94844
|
}, errorDetails.message)));
|
|
94845
94845
|
}
|
|
94846
|
-
return /* @__PURE__ */
|
|
94846
|
+
return /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94847
94847
|
style: { position: "relative", width: "100%" }
|
|
94848
|
-
}, /* @__PURE__ */
|
|
94848
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94849
94849
|
style: { position: "relative", width: "100%" }
|
|
94850
|
-
}, hasRendered && !isModalMode && onExpandClick && !errorDetails && /* @__PURE__ */
|
|
94850
|
+
}, hasRendered && !isModalMode && onExpandClick && !errorDetails && /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94851
94851
|
style: {
|
|
94852
94852
|
position: "absolute",
|
|
94853
94853
|
top: theme2.space[2],
|
|
@@ -94856,7 +94856,7 @@ ${errorDetails.code}
|
|
|
94856
94856
|
display: "flex",
|
|
94857
94857
|
gap: theme2.space[1]
|
|
94858
94858
|
}
|
|
94859
|
-
}, /* @__PURE__ */
|
|
94859
|
+
}, /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
94860
94860
|
onClick: (e2) => {
|
|
94861
94861
|
e2.stopPropagation();
|
|
94862
94862
|
onExpandClick();
|
|
@@ -94875,17 +94875,17 @@ ${errorDetails.code}
|
|
|
94875
94875
|
height: "28px"
|
|
94876
94876
|
},
|
|
94877
94877
|
title: "View fullscreen"
|
|
94878
|
-
}, /* @__PURE__ */
|
|
94878
|
+
}, /* @__PURE__ */ require$$0__default.createElement(Expand$1, {
|
|
94879
94879
|
size: 14
|
|
94880
|
-
}))), /* @__PURE__ */
|
|
94880
|
+
}))), /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94881
94881
|
ref: containerRef,
|
|
94882
94882
|
style: containerStyle2,
|
|
94883
94883
|
className: "mermaid-container"
|
|
94884
|
-
}, !hasRendered && /* @__PURE__ */
|
|
94884
|
+
}, !hasRendered && /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94885
94885
|
style: placeholderStyle
|
|
94886
|
-
}, /* @__PURE__ */
|
|
94886
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94887
94887
|
style: { fontSize: theme2.fontSizes[1], marginTop: theme2.space[2], opacity: 0.7 }
|
|
94888
|
-
}, isIntersecting ? "Loading..." : "Scroll to view")), errorDetails && /* @__PURE__ */
|
|
94888
|
+
}, isIntersecting ? "Loading..." : "Scroll to view")), errorDetails && /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94889
94889
|
style: {
|
|
94890
94890
|
padding: theme2.space[4],
|
|
94891
94891
|
background: `${theme2.colors.error}22`,
|
|
@@ -94895,16 +94895,16 @@ ${errorDetails.code}
|
|
|
94895
94895
|
fontFamily: theme2.fonts.monospace,
|
|
94896
94896
|
fontSize: theme2.fontSizes[1]
|
|
94897
94897
|
}
|
|
94898
|
-
}, /* @__PURE__ */
|
|
94898
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94899
94899
|
style: {
|
|
94900
94900
|
display: "flex",
|
|
94901
94901
|
justifyContent: "space-between",
|
|
94902
94902
|
alignItems: "flex-start",
|
|
94903
94903
|
marginBottom: theme2.space[2]
|
|
94904
94904
|
}
|
|
94905
|
-
}, /* @__PURE__ */
|
|
94905
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94906
94906
|
style: { fontWeight: theme2.fontWeights.bold }
|
|
94907
|
-
}, "Failed to render Mermaid diagram"), /* @__PURE__ */
|
|
94907
|
+
}, "Failed to render Mermaid diagram"), /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
94908
94908
|
onClick: handleCopyError,
|
|
94909
94909
|
style: {
|
|
94910
94910
|
padding: theme2.space[1],
|
|
@@ -94921,11 +94921,11 @@ ${errorDetails.code}
|
|
|
94921
94921
|
transition: "all 0.2s ease"
|
|
94922
94922
|
},
|
|
94923
94923
|
title: "Copy error details"
|
|
94924
|
-
}, copiedError ? /* @__PURE__ */
|
|
94924
|
+
}, copiedError ? /* @__PURE__ */ require$$0__default.createElement(require$$0__default.Fragment, null, /* @__PURE__ */ require$$0__default.createElement(Check$1, {
|
|
94925
94925
|
size: 14
|
|
94926
|
-
}), "Copied") : /* @__PURE__ */
|
|
94926
|
+
}), "Copied") : /* @__PURE__ */ require$$0__default.createElement(require$$0__default.Fragment, null, /* @__PURE__ */ require$$0__default.createElement(Copy$1, {
|
|
94927
94927
|
size: 14
|
|
94928
|
-
}), "Copy Error"))), /* @__PURE__ */
|
|
94928
|
+
}), "Copy Error"))), /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
94929
94929
|
style: {
|
|
94930
94930
|
fontSize: theme2.fontSizes[0],
|
|
94931
94931
|
opacity: 0.8,
|
|
@@ -95009,18 +95009,18 @@ function IndustryLazyMermaidDiagram({
|
|
|
95009
95009
|
};
|
|
95010
95010
|
};
|
|
95011
95011
|
if (!isMounted) {
|
|
95012
|
-
return /* @__PURE__ */
|
|
95012
|
+
return /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95013
95013
|
style: getPlaceholderStyle()
|
|
95014
|
-
}, /* @__PURE__ */
|
|
95014
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95015
95015
|
style: getTextStyle()
|
|
95016
|
-
}, /* @__PURE__ */
|
|
95016
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95017
95017
|
style: getSecondaryTextStyle()
|
|
95018
95018
|
}, "Loading...")));
|
|
95019
95019
|
}
|
|
95020
|
-
return /* @__PURE__ */
|
|
95020
|
+
return /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95021
95021
|
ref: containerRef,
|
|
95022
95022
|
style: { position: "relative", width: "100%" }
|
|
95023
|
-
}, hasRendered && onShowInPanel && !hasError && /* @__PURE__ */
|
|
95023
|
+
}, hasRendered && onShowInPanel && !hasError && /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
95024
95024
|
onClick: (e2) => {
|
|
95025
95025
|
e2.stopPropagation();
|
|
95026
95026
|
const titleMatch = code2.match(/^(?:%%\s*(.+)|(\w+)\s)/m);
|
|
@@ -95053,20 +95053,20 @@ function IndustryLazyMermaidDiagram({
|
|
|
95053
95053
|
e2.currentTarget.style.backgroundColor = theme2.colors.background;
|
|
95054
95054
|
},
|
|
95055
95055
|
title: "Show in diagram panel"
|
|
95056
|
-
}, /* @__PURE__ */
|
|
95056
|
+
}, /* @__PURE__ */ require$$0__default.createElement(MoveRight$1, {
|
|
95057
95057
|
size: 14
|
|
95058
|
-
})), hasRendered ? /* @__PURE__ */
|
|
95058
|
+
})), hasRendered ? /* @__PURE__ */ require$$0__default.createElement(IndustryMermaidDiagram, {
|
|
95059
95059
|
code: code2,
|
|
95060
95060
|
id: id2,
|
|
95061
95061
|
onCopyError,
|
|
95062
95062
|
onError: setHasError,
|
|
95063
95063
|
theme: theme2,
|
|
95064
95064
|
onExpandClick
|
|
95065
|
-
}) : /* @__PURE__ */
|
|
95065
|
+
}) : /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95066
95066
|
style: getPlaceholderStyle()
|
|
95067
|
-
}, /* @__PURE__ */
|
|
95067
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95068
95068
|
style: getTextStyle()
|
|
95069
|
-
}, /* @__PURE__ */
|
|
95069
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95070
95070
|
style: getSecondaryTextStyle()
|
|
95071
95071
|
}, isIntersecting ? "Loading..." : "Scroll to view"))));
|
|
95072
95072
|
}
|
|
@@ -95077,7 +95077,7 @@ var extractTextFromChildren = (children2) => {
|
|
|
95077
95077
|
if (Array.isArray(children2)) {
|
|
95078
95078
|
return children2.map(extractTextFromChildren).join("");
|
|
95079
95079
|
}
|
|
95080
|
-
if (
|
|
95080
|
+
if (require$$0__default.isValidElement(children2)) {
|
|
95081
95081
|
const props = children2.props;
|
|
95082
95082
|
if (props.children) {
|
|
95083
95083
|
return extractTextFromChildren(props.children);
|
|
@@ -95092,7 +95092,7 @@ var LinkWithLoadingIndicator = ({ href, children: children2, onClick, className
|
|
|
95092
95092
|
onClick(href, e2);
|
|
95093
95093
|
}
|
|
95094
95094
|
};
|
|
95095
|
-
return /* @__PURE__ */
|
|
95095
|
+
return /* @__PURE__ */ require$$0__default.createElement("a", {
|
|
95096
95096
|
href,
|
|
95097
95097
|
onClick: handleClick,
|
|
95098
95098
|
className,
|
|
@@ -95178,10 +95178,10 @@ var IndustryBashCommandDropdown = ({
|
|
|
95178
95178
|
});
|
|
95179
95179
|
const hasMultipleCommands = commands.length > 1;
|
|
95180
95180
|
const singleCommand = commands.length === 1 ? commands[0].command : allCommands;
|
|
95181
|
-
return /* @__PURE__ */
|
|
95181
|
+
return /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95182
95182
|
ref: dropdownRef,
|
|
95183
95183
|
style: { position: "relative", display: "inline-block" }
|
|
95184
|
-
}, hasMultipleCommands ? /* @__PURE__ */
|
|
95184
|
+
}, hasMultipleCommands ? /* @__PURE__ */ require$$0__default.createElement(require$$0__default.Fragment, null, /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
95185
95185
|
onClick: () => setIsOpen(!isOpen),
|
|
95186
95186
|
disabled: isRunning,
|
|
95187
95187
|
style: buttonStyle,
|
|
@@ -95195,15 +95195,15 @@ var IndustryBashCommandDropdown = ({
|
|
|
95195
95195
|
e2.currentTarget.style.backgroundColor = theme2.colors.primary;
|
|
95196
95196
|
}
|
|
95197
95197
|
}
|
|
95198
|
-
}, isRunning ? /* @__PURE__ */
|
|
95198
|
+
}, isRunning ? /* @__PURE__ */ require$$0__default.createElement("span", {
|
|
95199
95199
|
style: { fontSize: theme2.fontSizes[1] }
|
|
95200
|
-
}, "...") : /* @__PURE__ */
|
|
95200
|
+
}, "...") : /* @__PURE__ */ require$$0__default.createElement(require$$0__default.Fragment, null, /* @__PURE__ */ require$$0__default.createElement(Play$1, {
|
|
95201
95201
|
size: 14
|
|
95202
|
-
}), "Run", /* @__PURE__ */
|
|
95202
|
+
}), "Run", /* @__PURE__ */ require$$0__default.createElement(ChevronDown$1, {
|
|
95203
95203
|
size: 14
|
|
95204
|
-
}))), isOpen && /* @__PURE__ */
|
|
95204
|
+
}))), isOpen && /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95205
95205
|
style: dropdownStyle
|
|
95206
|
-
}, /* @__PURE__ */
|
|
95206
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95207
95207
|
style: {
|
|
95208
95208
|
padding: `${theme2.space[2]}px ${theme2.space[3]}px`,
|
|
95209
95209
|
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
@@ -95212,7 +95212,7 @@ var IndustryBashCommandDropdown = ({
|
|
|
95212
95212
|
color: theme2.colors.textSecondary,
|
|
95213
95213
|
fontFamily: theme2.fonts.body
|
|
95214
95214
|
}
|
|
95215
|
-
}, "Select command to run"), /* @__PURE__ */
|
|
95215
|
+
}, "Select command to run"), /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95216
95216
|
style: {
|
|
95217
95217
|
padding: `${theme2.space[2]}px ${theme2.space[3]}px`,
|
|
95218
95218
|
backgroundColor: theme2.colors.muted,
|
|
@@ -95232,7 +95232,7 @@ var IndustryBashCommandDropdown = ({
|
|
|
95232
95232
|
}
|
|
95233
95233
|
}, "🚀 Run all (", commands.length, " commands)"), commands.map((cmd, index2) => {
|
|
95234
95234
|
const [isHovered, setIsHovered] = useState(false);
|
|
95235
|
-
return /* @__PURE__ */
|
|
95235
|
+
return /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95236
95236
|
key: index2,
|
|
95237
95237
|
style: dropdownItemStyle(isHovered),
|
|
95238
95238
|
onClick: () => handleRunCommand(cmd.command),
|
|
@@ -95240,7 +95240,7 @@ var IndustryBashCommandDropdown = ({
|
|
|
95240
95240
|
onMouseLeave: () => setIsHovered(false),
|
|
95241
95241
|
title: cmd.command
|
|
95242
95242
|
}, getCommandDisplayName(cmd));
|
|
95243
|
-
}))) : /* @__PURE__ */
|
|
95243
|
+
}))) : /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
95244
95244
|
onClick: () => handleRunCommand(singleCommand),
|
|
95245
95245
|
disabled: isRunning,
|
|
95246
95246
|
style: buttonStyle,
|
|
@@ -95254,9 +95254,9 @@ var IndustryBashCommandDropdown = ({
|
|
|
95254
95254
|
e2.currentTarget.style.backgroundColor = theme2.colors.primary;
|
|
95255
95255
|
}
|
|
95256
95256
|
}
|
|
95257
|
-
}, isRunning ? /* @__PURE__ */
|
|
95257
|
+
}, isRunning ? /* @__PURE__ */ require$$0__default.createElement("span", {
|
|
95258
95258
|
style: { fontSize: theme2.fontSizes[1] }
|
|
95259
|
-
}, "...") : /* @__PURE__ */
|
|
95259
|
+
}, "...") : /* @__PURE__ */ require$$0__default.createElement(require$$0__default.Fragment, null, /* @__PURE__ */ require$$0__default.createElement(Play$1, {
|
|
95260
95260
|
size: 14
|
|
95261
95261
|
}), "Run")));
|
|
95262
95262
|
};
|
|
@@ -95275,7 +95275,7 @@ var isVideoUrl = (url, alt) => {
|
|
|
95275
95275
|
}
|
|
95276
95276
|
return false;
|
|
95277
95277
|
};
|
|
95278
|
-
var OptimizedMarkdownMedia =
|
|
95278
|
+
var OptimizedMarkdownMedia = require$$0__default.memo(({
|
|
95279
95279
|
src,
|
|
95280
95280
|
alt,
|
|
95281
95281
|
repositoryInfo,
|
|
@@ -95308,7 +95308,7 @@ var OptimizedMarkdownMedia = React2__default.memo(({
|
|
|
95308
95308
|
};
|
|
95309
95309
|
if (isVideoUrl(transformedSrc, alt)) {
|
|
95310
95310
|
if (hasErrored) {
|
|
95311
|
-
return /* @__PURE__ */
|
|
95311
|
+
return /* @__PURE__ */ require$$0__default.createElement("span", {
|
|
95312
95312
|
style: {
|
|
95313
95313
|
...mediaStyle,
|
|
95314
95314
|
display: "inline-flex",
|
|
@@ -95322,19 +95322,19 @@ var OptimizedMarkdownMedia = React2__default.memo(({
|
|
|
95322
95322
|
}
|
|
95323
95323
|
}, "⚠️ Video failed to load: ", alt || transformedSrc);
|
|
95324
95324
|
}
|
|
95325
|
-
return /* @__PURE__ */
|
|
95325
|
+
return /* @__PURE__ */ require$$0__default.createElement("video", {
|
|
95326
95326
|
controls: true,
|
|
95327
95327
|
style: mediaStyle,
|
|
95328
95328
|
onLoadedData: handleLoad,
|
|
95329
95329
|
onError: handleError,
|
|
95330
95330
|
title: alt,
|
|
95331
95331
|
...props
|
|
95332
|
-
}, /* @__PURE__ */
|
|
95332
|
+
}, /* @__PURE__ */ require$$0__default.createElement("source", {
|
|
95333
95333
|
src: transformedSrc
|
|
95334
|
-
}), /* @__PURE__ */
|
|
95334
|
+
}), /* @__PURE__ */ require$$0__default.createElement("source", {
|
|
95335
95335
|
src: transformedSrc,
|
|
95336
95336
|
type: "video/mp4"
|
|
95337
|
-
}), /* @__PURE__ */
|
|
95337
|
+
}), /* @__PURE__ */ require$$0__default.createElement("source", {
|
|
95338
95338
|
src: transformedSrc,
|
|
95339
95339
|
type: "video/webm"
|
|
95340
95340
|
}), "Your browser does not support the video tag.");
|
|
@@ -95346,7 +95346,7 @@ var OptimizedMarkdownMedia = React2__default.memo(({
|
|
|
95346
95346
|
e2.stopPropagation();
|
|
95347
95347
|
};
|
|
95348
95348
|
if (hasErrored) {
|
|
95349
|
-
return /* @__PURE__ */
|
|
95349
|
+
return /* @__PURE__ */ require$$0__default.createElement("span", {
|
|
95350
95350
|
style: {
|
|
95351
95351
|
...mediaStyle,
|
|
95352
95352
|
display: "inline-flex",
|
|
@@ -95362,11 +95362,11 @@ var OptimizedMarkdownMedia = React2__default.memo(({
|
|
|
95362
95362
|
padding: `${theme2.space[2]}px`
|
|
95363
95363
|
},
|
|
95364
95364
|
title: `Failed to load image: ${transformedSrc}`
|
|
95365
|
-
}, "🖼️ Image unavailable", " ", alt && /* @__PURE__ */
|
|
95365
|
+
}, "🖼️ Image unavailable", " ", alt && /* @__PURE__ */ require$$0__default.createElement("span", {
|
|
95366
95366
|
style: { fontSize: theme2.fontSizes[0], opacity: 0.7 }
|
|
95367
95367
|
}, "(", alt, ")"));
|
|
95368
95368
|
}
|
|
95369
|
-
return /* @__PURE__ */
|
|
95369
|
+
return /* @__PURE__ */ require$$0__default.createElement("img", {
|
|
95370
95370
|
src: transformedSrc,
|
|
95371
95371
|
alt,
|
|
95372
95372
|
style: mediaStyle,
|
|
@@ -95405,7 +95405,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95405
95405
|
headerStyles.marginTop = slideHeaderMarginTopOverride ? `${slideHeaderMarginTopOverride}px` : 0;
|
|
95406
95406
|
}
|
|
95407
95407
|
return {
|
|
95408
|
-
h1: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95408
|
+
h1: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("h1", {
|
|
95409
95409
|
style: {
|
|
95410
95410
|
color: theme2.colors.text,
|
|
95411
95411
|
fontSize: theme2.fontSizes[5],
|
|
@@ -95420,7 +95420,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95420
95420
|
},
|
|
95421
95421
|
...props
|
|
95422
95422
|
}, children2),
|
|
95423
|
-
h2: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95423
|
+
h2: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("h2", {
|
|
95424
95424
|
style: {
|
|
95425
95425
|
color: theme2.colors.text,
|
|
95426
95426
|
fontSize: theme2.fontSizes[4],
|
|
@@ -95435,7 +95435,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95435
95435
|
},
|
|
95436
95436
|
...props
|
|
95437
95437
|
}, children2),
|
|
95438
|
-
h3: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95438
|
+
h3: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("h3", {
|
|
95439
95439
|
style: {
|
|
95440
95440
|
color: theme2.colors.text,
|
|
95441
95441
|
fontSize: theme2.fontSizes[3],
|
|
@@ -95447,7 +95447,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95447
95447
|
},
|
|
95448
95448
|
...props
|
|
95449
95449
|
}, children2),
|
|
95450
|
-
h4: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95450
|
+
h4: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("h4", {
|
|
95451
95451
|
style: {
|
|
95452
95452
|
color: theme2.colors.text,
|
|
95453
95453
|
fontSize: theme2.fontSizes[2],
|
|
@@ -95459,7 +95459,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95459
95459
|
},
|
|
95460
95460
|
...props
|
|
95461
95461
|
}, children2),
|
|
95462
|
-
h5: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95462
|
+
h5: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("h5", {
|
|
95463
95463
|
style: {
|
|
95464
95464
|
color: theme2.colors.text,
|
|
95465
95465
|
fontSize: theme2.fontSizes[1],
|
|
@@ -95471,7 +95471,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95471
95471
|
},
|
|
95472
95472
|
...props
|
|
95473
95473
|
}, children2),
|
|
95474
|
-
h6: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95474
|
+
h6: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("h6", {
|
|
95475
95475
|
style: {
|
|
95476
95476
|
color: theme2.colors.text,
|
|
95477
95477
|
fontSize: theme2.fontSizes[1],
|
|
@@ -95483,7 +95483,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95483
95483
|
},
|
|
95484
95484
|
...props
|
|
95485
95485
|
}, children2),
|
|
95486
|
-
p: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95486
|
+
p: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("p", {
|
|
95487
95487
|
style: {
|
|
95488
95488
|
color: theme2.colors.text,
|
|
95489
95489
|
fontSize: theme2.fontSizes[2],
|
|
@@ -95493,7 +95493,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95493
95493
|
},
|
|
95494
95494
|
...props
|
|
95495
95495
|
}, children2),
|
|
95496
|
-
ul: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95496
|
+
ul: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("ul", {
|
|
95497
95497
|
style: {
|
|
95498
95498
|
color: theme2.colors.text,
|
|
95499
95499
|
fontSize: theme2.fontSizes[2],
|
|
@@ -95505,7 +95505,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95505
95505
|
},
|
|
95506
95506
|
...props
|
|
95507
95507
|
}, children2),
|
|
95508
|
-
ol: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95508
|
+
ol: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("ol", {
|
|
95509
95509
|
style: {
|
|
95510
95510
|
color: theme2.colors.text,
|
|
95511
95511
|
fontSize: theme2.fontSizes[2],
|
|
@@ -95519,14 +95519,14 @@ var createIndustryMarkdownComponents = ({
|
|
|
95519
95519
|
}, children2),
|
|
95520
95520
|
li: ({ children: children2, ...props }) => {
|
|
95521
95521
|
var _a, _b, _c, _d, _e2, _f, _g, _h;
|
|
95522
|
-
const isTaskListItem = Array.isArray(children2) && children2.length > 0 &&
|
|
95522
|
+
const isTaskListItem = Array.isArray(children2) && children2.length > 0 && require$$0__default.isValidElement(children2[0]) && ((_b = (_a = children2[0]) == null ? void 0 : _a.props) == null ? void 0 : _b.type) === "checkbox";
|
|
95523
95523
|
if (isTaskListItem) {
|
|
95524
95524
|
const checkbox = children2[0];
|
|
95525
95525
|
const remainingChildren = children2.slice(1);
|
|
95526
95526
|
const labelContent = [];
|
|
95527
95527
|
const nestedListElements = [];
|
|
95528
|
-
|
|
95529
|
-
if (
|
|
95528
|
+
require$$0__default.Children.forEach(remainingChildren, (child) => {
|
|
95529
|
+
if (require$$0__default.isValidElement(child) && (child.type === "ul" || child.type === "ol")) {
|
|
95530
95530
|
nestedListElements.push(child);
|
|
95531
95531
|
} else {
|
|
95532
95532
|
labelContent.push(child);
|
|
@@ -95545,7 +95545,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95545
95545
|
}));
|
|
95546
95546
|
onCheckboxChange == null ? void 0 : onCheckboxChange(slideIndex, lineNumber, newChecked);
|
|
95547
95547
|
};
|
|
95548
|
-
return /* @__PURE__ */
|
|
95548
|
+
return /* @__PURE__ */ require$$0__default.createElement("li", {
|
|
95549
95549
|
style: {
|
|
95550
95550
|
listStyle: "none",
|
|
95551
95551
|
marginLeft: `-${theme2.space[5]}px`,
|
|
@@ -95555,9 +95555,9 @@ var createIndustryMarkdownComponents = ({
|
|
|
95555
95555
|
fontSize: theme2.fontSizes[2]
|
|
95556
95556
|
},
|
|
95557
95557
|
...props
|
|
95558
|
-
}, /* @__PURE__ */
|
|
95558
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95559
95559
|
style: { display: "flex", alignItems: "flex-start" }
|
|
95560
|
-
}, /* @__PURE__ */
|
|
95560
|
+
}, /* @__PURE__ */ require$$0__default.createElement("input", {
|
|
95561
95561
|
type: "checkbox",
|
|
95562
95562
|
checked: isChecked,
|
|
95563
95563
|
onChange: handleChange,
|
|
@@ -95571,7 +95571,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95571
95571
|
cursor: editable ? "pointer" : "default"
|
|
95572
95572
|
},
|
|
95573
95573
|
id: id2
|
|
95574
|
-
}), /* @__PURE__ */
|
|
95574
|
+
}), /* @__PURE__ */ require$$0__default.createElement("label", {
|
|
95575
95575
|
htmlFor: id2,
|
|
95576
95576
|
style: {
|
|
95577
95577
|
flex: 1,
|
|
@@ -95581,7 +95581,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95581
95581
|
}
|
|
95582
95582
|
}, labelContent.length > 0 ? labelContent : null)), nestedListElements.length > 0 ? nestedListElements : null);
|
|
95583
95583
|
}
|
|
95584
|
-
return /* @__PURE__ */
|
|
95584
|
+
return /* @__PURE__ */ require$$0__default.createElement("li", {
|
|
95585
95585
|
style: {
|
|
95586
95586
|
marginBottom: theme2.space[2],
|
|
95587
95587
|
paddingTop: theme2.space[1],
|
|
@@ -95591,14 +95591,14 @@ var createIndustryMarkdownComponents = ({
|
|
|
95591
95591
|
...props
|
|
95592
95592
|
}, children2);
|
|
95593
95593
|
},
|
|
95594
|
-
table: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95594
|
+
table: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95595
95595
|
style: {
|
|
95596
95596
|
overflowX: "auto",
|
|
95597
95597
|
marginBottom: theme2.space[4],
|
|
95598
95598
|
borderRadius: theme2.radii[2],
|
|
95599
95599
|
border: `1px solid ${theme2.colors.border}`
|
|
95600
95600
|
}
|
|
95601
|
-
}, /* @__PURE__ */
|
|
95601
|
+
}, /* @__PURE__ */ require$$0__default.createElement("table", {
|
|
95602
95602
|
style: {
|
|
95603
95603
|
width: "100%",
|
|
95604
95604
|
borderCollapse: "collapse",
|
|
@@ -95607,13 +95607,13 @@ var createIndustryMarkdownComponents = ({
|
|
|
95607
95607
|
},
|
|
95608
95608
|
...props
|
|
95609
95609
|
}, children2)),
|
|
95610
|
-
thead: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95610
|
+
thead: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("thead", {
|
|
95611
95611
|
style: {
|
|
95612
95612
|
backgroundColor: theme2.colors.backgroundSecondary
|
|
95613
95613
|
},
|
|
95614
95614
|
...props
|
|
95615
95615
|
}, children2),
|
|
95616
|
-
th: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95616
|
+
th: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("th", {
|
|
95617
95617
|
style: {
|
|
95618
95618
|
padding: theme2.space[3],
|
|
95619
95619
|
textAlign: "left",
|
|
@@ -95623,7 +95623,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95623
95623
|
},
|
|
95624
95624
|
...props
|
|
95625
95625
|
}, children2),
|
|
95626
|
-
td: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95626
|
+
td: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("td", {
|
|
95627
95627
|
style: {
|
|
95628
95628
|
padding: theme2.space[3],
|
|
95629
95629
|
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
@@ -95631,22 +95631,22 @@ var createIndustryMarkdownComponents = ({
|
|
|
95631
95631
|
},
|
|
95632
95632
|
...props
|
|
95633
95633
|
}, children2),
|
|
95634
|
-
a: ({ children: children2, href, ...props }) => /* @__PURE__ */
|
|
95634
|
+
a: ({ children: children2, href, ...props }) => /* @__PURE__ */ require$$0__default.createElement(LinkWithLoadingIndicator, {
|
|
95635
95635
|
href: href || "",
|
|
95636
95636
|
onClick: onLinkClick ? (h2, e2) => onLinkClick(h2, e2) : void 0,
|
|
95637
95637
|
className: props.className
|
|
95638
95638
|
}, children2),
|
|
95639
|
-
img: ({ src, alt, ...props }) => /* @__PURE__ */
|
|
95639
|
+
img: ({ src, alt, ...props }) => /* @__PURE__ */ require$$0__default.createElement(OptimizedMarkdownMedia, {
|
|
95640
95640
|
src: src || "",
|
|
95641
95641
|
alt: alt || "",
|
|
95642
95642
|
repositoryInfo,
|
|
95643
95643
|
theme: theme2,
|
|
95644
95644
|
...props
|
|
95645
95645
|
}),
|
|
95646
|
-
picture: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95646
|
+
picture: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("picture", {
|
|
95647
95647
|
...props
|
|
95648
95648
|
}, children2),
|
|
95649
|
-
video: ({ children: children2, ...props }) => /* @__PURE__ */
|
|
95649
|
+
video: ({ children: children2, ...props }) => /* @__PURE__ */ require$$0__default.createElement("video", {
|
|
95650
95650
|
controls: true,
|
|
95651
95651
|
style: {
|
|
95652
95652
|
maxWidth: "100%",
|
|
@@ -95672,7 +95672,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95672
95672
|
return descriptors ? `${transformedUrl} ${descriptors}` : transformedUrl;
|
|
95673
95673
|
}).join(", ");
|
|
95674
95674
|
}, [srcsetValue, repositoryInfo]);
|
|
95675
|
-
return /* @__PURE__ */
|
|
95675
|
+
return /* @__PURE__ */ require$$0__default.createElement("source", {
|
|
95676
95676
|
srcSet: transformedSrcset,
|
|
95677
95677
|
...props
|
|
95678
95678
|
});
|
|
@@ -95748,18 +95748,18 @@ var createIndustryMarkdownComponents = ({
|
|
|
95748
95748
|
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
95749
95749
|
fontSize: theme2.fontSizes[0]
|
|
95750
95750
|
};
|
|
95751
|
-
return /* @__PURE__ */
|
|
95751
|
+
return /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95752
95752
|
style: containerStyle2
|
|
95753
|
-
}, /* @__PURE__ */
|
|
95753
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95754
95754
|
style: headerStyle
|
|
95755
|
-
}, /* @__PURE__ */
|
|
95755
|
+
}, /* @__PURE__ */ require$$0__default.createElement("span", {
|
|
95756
95756
|
style: {
|
|
95757
95757
|
fontFamily: theme2.fonts.monospace,
|
|
95758
95758
|
fontWeight: isPrompt ? theme2.fontWeights.bold : theme2.fontWeights.body
|
|
95759
95759
|
}
|
|
95760
|
-
}, isPrompt ? "💡 Prompt" : language22), /* @__PURE__ */
|
|
95760
|
+
}, isPrompt ? "💡 Prompt" : language22), /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95761
95761
|
style: { display: "flex", gap: `${theme2.space[2]}px` }
|
|
95762
|
-
}, /* @__PURE__ */
|
|
95762
|
+
}, /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
95763
95763
|
onClick: (e2) => {
|
|
95764
95764
|
e2.stopPropagation();
|
|
95765
95765
|
navigator.clipboard.writeText(codeString).then(() => {
|
|
@@ -95783,11 +95783,11 @@ var createIndustryMarkdownComponents = ({
|
|
|
95783
95783
|
transition: "all 0.15s ease-in-out"
|
|
95784
95784
|
},
|
|
95785
95785
|
title: copied ? "Copied!" : "Copy code to clipboard"
|
|
95786
|
-
}, copied ? /* @__PURE__ */
|
|
95786
|
+
}, copied ? /* @__PURE__ */ require$$0__default.createElement(Check$1, {
|
|
95787
95787
|
size: 14
|
|
95788
|
-
}) : /* @__PURE__ */
|
|
95788
|
+
}) : /* @__PURE__ */ require$$0__default.createElement(Copy$1, {
|
|
95789
95789
|
size: 14
|
|
95790
|
-
}), copied ? "Copied!" : "Copy"), isExecutable && /* @__PURE__ */
|
|
95790
|
+
}), copied ? "Copied!" : "Copy"), isExecutable && /* @__PURE__ */ require$$0__default.createElement(IndustryBashCommandDropdown, {
|
|
95791
95791
|
commands: bashCommands,
|
|
95792
95792
|
allCommands: codeString.trim(),
|
|
95793
95793
|
onRunCommand: async (command) => {
|
|
@@ -95802,7 +95802,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95802
95802
|
},
|
|
95803
95803
|
slideIdPrefix,
|
|
95804
95804
|
theme: theme2
|
|
95805
|
-
}), isHtml && /* @__PURE__ */
|
|
95805
|
+
}), isHtml && /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
95806
95806
|
onClick: (e2) => {
|
|
95807
95807
|
e2.stopPropagation();
|
|
95808
95808
|
openHtmlModal(codeString);
|
|
@@ -95820,9 +95820,9 @@ var createIndustryMarkdownComponents = ({
|
|
|
95820
95820
|
gap: `${theme2.space[1]}px`
|
|
95821
95821
|
},
|
|
95822
95822
|
title: "Render HTML in modal"
|
|
95823
|
-
}, /* @__PURE__ */
|
|
95823
|
+
}, /* @__PURE__ */ require$$0__default.createElement(Monitor$1, {
|
|
95824
95824
|
size: 14
|
|
95825
|
-
}), "Render HTML"), isPrompt && openPlaceholderModal && hasPlaceholders && /* @__PURE__ */
|
|
95825
|
+
}), "Render HTML"), isPrompt && openPlaceholderModal && hasPlaceholders && /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
95826
95826
|
onClick: (e2) => {
|
|
95827
95827
|
e2.stopPropagation();
|
|
95828
95828
|
openPlaceholderModal(placeholders, codeString);
|
|
@@ -95840,9 +95840,9 @@ var createIndustryMarkdownComponents = ({
|
|
|
95840
95840
|
gap: `${theme2.space[1]}px`
|
|
95841
95841
|
},
|
|
95842
95842
|
title: "Fill placeholders and copy"
|
|
95843
|
-
}, /* @__PURE__ */
|
|
95843
|
+
}, /* @__PURE__ */ require$$0__default.createElement(FileText$1, {
|
|
95844
95844
|
size: 14
|
|
95845
|
-
}), "Fill & Copy (", placeholders.length, ")"))), isPrompt ? /* @__PURE__ */
|
|
95845
|
+
}), "Fill & Copy (", placeholders.length, ")"))), isPrompt ? /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
95846
95846
|
style: {
|
|
95847
95847
|
margin: 0,
|
|
95848
95848
|
padding: theme2.space[1],
|
|
@@ -95855,7 +95855,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95855
95855
|
}
|
|
95856
95856
|
}, codeString.split(/(\{\{[^}]+\}\})/).map((part, index22) => {
|
|
95857
95857
|
if (part.match(/^\{\{[^}]+\}\}$/)) {
|
|
95858
|
-
return /* @__PURE__ */
|
|
95858
|
+
return /* @__PURE__ */ require$$0__default.createElement("span", {
|
|
95859
95859
|
key: index22,
|
|
95860
95860
|
style: {
|
|
95861
95861
|
backgroundColor: theme2.colors.highlight,
|
|
@@ -95869,7 +95869,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95869
95869
|
}, part);
|
|
95870
95870
|
}
|
|
95871
95871
|
return part;
|
|
95872
|
-
})) : /* @__PURE__ */
|
|
95872
|
+
})) : /* @__PURE__ */ require$$0__default.createElement("pre", {
|
|
95873
95873
|
style: {
|
|
95874
95874
|
margin: 0,
|
|
95875
95875
|
padding: theme2.space[1],
|
|
@@ -95879,7 +95879,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95879
95879
|
lineHeight: 1.2,
|
|
95880
95880
|
fontFamily: theme2.fonts.monospace
|
|
95881
95881
|
}
|
|
95882
|
-
}, /* @__PURE__ */
|
|
95882
|
+
}, /* @__PURE__ */ require$$0__default.createElement("code", {
|
|
95883
95883
|
className,
|
|
95884
95884
|
style: {
|
|
95885
95885
|
lineHeight: "inherit",
|
|
@@ -95891,7 +95891,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
95891
95891
|
}, children2)));
|
|
95892
95892
|
}
|
|
95893
95893
|
const cleanClassName = (_f = (_e2 = (_d = className == null ? void 0 : className.replace(/hljs(-\w+)?/g, "")) == null ? void 0 : _d.replace(/language-\w+/g, "")) == null ? void 0 : _e2.replace(/\s+/g, " ")) == null ? void 0 : _f.trim();
|
|
95894
|
-
return /* @__PURE__ */
|
|
95894
|
+
return /* @__PURE__ */ require$$0__default.createElement("code", {
|
|
95895
95895
|
style: {
|
|
95896
95896
|
color: theme2.colors.accent,
|
|
95897
95897
|
fontSize: "0.875em",
|
|
@@ -96009,7 +96009,7 @@ function IndustryZoomableMermaidDiagram({
|
|
|
96009
96009
|
const handleButtonLeave = (e2) => {
|
|
96010
96010
|
e2.currentTarget.style.backgroundColor = theme2.colors.background;
|
|
96011
96011
|
};
|
|
96012
|
-
return /* @__PURE__ */
|
|
96012
|
+
return /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
96013
96013
|
ref: containerRef,
|
|
96014
96014
|
style: {
|
|
96015
96015
|
width: "100%",
|
|
@@ -96017,7 +96017,7 @@ function IndustryZoomableMermaidDiagram({
|
|
|
96017
96017
|
position: "relative",
|
|
96018
96018
|
backgroundColor: theme2.colors.background
|
|
96019
96019
|
}
|
|
96020
|
-
}, /* @__PURE__ */
|
|
96020
|
+
}, /* @__PURE__ */ require$$0__default.createElement(TransformWrapper, {
|
|
96021
96021
|
limitToBounds: true,
|
|
96022
96022
|
doubleClick: { disabled: true },
|
|
96023
96023
|
minScale: 0.1,
|
|
@@ -96031,7 +96031,7 @@ function IndustryZoomableMermaidDiagram({
|
|
|
96031
96031
|
zoomAnimation: { disabled: false, size: 0.2 }
|
|
96032
96032
|
}, ({ centerView: centerView2, instance }) => {
|
|
96033
96033
|
transformRef.current = { centerView: centerView2, instance };
|
|
96034
|
-
return /* @__PURE__ */
|
|
96034
|
+
return /* @__PURE__ */ require$$0__default.createElement(require$$0__default.Fragment, null, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
96035
96035
|
style: {
|
|
96036
96036
|
position: "absolute",
|
|
96037
96037
|
top: theme2.space[3],
|
|
@@ -96040,7 +96040,7 @@ function IndustryZoomableMermaidDiagram({
|
|
|
96040
96040
|
display: "flex",
|
|
96041
96041
|
gap: theme2.space[2]
|
|
96042
96042
|
}
|
|
96043
|
-
}, /* @__PURE__ */
|
|
96043
|
+
}, /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
96044
96044
|
onClick: () => {
|
|
96045
96045
|
centerView2(calculatedScale, 200, "easeOut");
|
|
96046
96046
|
},
|
|
@@ -96048,14 +96048,14 @@ function IndustryZoomableMermaidDiagram({
|
|
|
96048
96048
|
onMouseEnter: handleButtonHover,
|
|
96049
96049
|
onMouseLeave: handleButtonLeave,
|
|
96050
96050
|
title: "Reset view"
|
|
96051
|
-
}, "⟲"), isCalculating && /* @__PURE__ */
|
|
96051
|
+
}, "⟲"), isCalculating && /* @__PURE__ */ require$$0__default.createElement("span", {
|
|
96052
96052
|
style: {
|
|
96053
96053
|
padding: `${theme2.space[1]}px ${theme2.space[2]}px`,
|
|
96054
96054
|
fontSize: theme2.fontSizes[1],
|
|
96055
96055
|
color: theme2.colors.textMuted,
|
|
96056
96056
|
fontFamily: theme2.fonts.body
|
|
96057
96057
|
}
|
|
96058
|
-
}, "Optimizing view...")), /* @__PURE__ */
|
|
96058
|
+
}, "Optimizing view...")), /* @__PURE__ */ require$$0__default.createElement(TransformComponent, {
|
|
96059
96059
|
wrapperStyle: {
|
|
96060
96060
|
width: "100%",
|
|
96061
96061
|
height: "100%",
|
|
@@ -96069,7 +96069,7 @@ function IndustryZoomableMermaidDiagram({
|
|
|
96069
96069
|
alignItems: "center",
|
|
96070
96070
|
justifyContent: "center"
|
|
96071
96071
|
}
|
|
96072
|
-
}, /* @__PURE__ */
|
|
96072
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
96073
96073
|
ref: diagramRef,
|
|
96074
96074
|
style: {
|
|
96075
96075
|
display: "flex",
|
|
@@ -96078,7 +96078,7 @@ function IndustryZoomableMermaidDiagram({
|
|
|
96078
96078
|
width: "100%",
|
|
96079
96079
|
height: "100%"
|
|
96080
96080
|
}
|
|
96081
|
-
}, /* @__PURE__ */
|
|
96081
|
+
}, /* @__PURE__ */ require$$0__default.createElement(IndustryMermaidDiagram, {
|
|
96082
96082
|
code: code2,
|
|
96083
96083
|
id: id2,
|
|
96084
96084
|
isModalMode: true,
|
|
@@ -96114,7 +96114,7 @@ function IndustryMermaidModal({
|
|
|
96114
96114
|
if (!isOpen) {
|
|
96115
96115
|
return null;
|
|
96116
96116
|
}
|
|
96117
|
-
const modalContent = /* @__PURE__ */
|
|
96117
|
+
const modalContent = /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
96118
96118
|
onClick: handleBackdropClick,
|
|
96119
96119
|
style: {
|
|
96120
96120
|
position: "fixed",
|
|
@@ -96129,7 +96129,7 @@ function IndustryMermaidModal({
|
|
|
96129
96129
|
zIndex: 50,
|
|
96130
96130
|
padding: theme2.space[4]
|
|
96131
96131
|
}
|
|
96132
|
-
}, /* @__PURE__ */
|
|
96132
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
96133
96133
|
ref: modalRef,
|
|
96134
96134
|
onClick: (e2) => e2.stopPropagation(),
|
|
96135
96135
|
style: {
|
|
@@ -96144,7 +96144,7 @@ function IndustryMermaidModal({
|
|
|
96144
96144
|
overflow: "hidden",
|
|
96145
96145
|
boxShadow: theme2.shadows[4]
|
|
96146
96146
|
}
|
|
96147
|
-
}, /* @__PURE__ */
|
|
96147
|
+
}, /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
96148
96148
|
onClick: (e2) => {
|
|
96149
96149
|
e2.stopPropagation();
|
|
96150
96150
|
onClose();
|
|
@@ -96178,7 +96178,7 @@ function IndustryMermaidModal({
|
|
|
96178
96178
|
e2.currentTarget.style.color = theme2.colors.text;
|
|
96179
96179
|
},
|
|
96180
96180
|
"aria-label": "Close"
|
|
96181
|
-
}, "×"), /* @__PURE__ */
|
|
96181
|
+
}, "×"), /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
96182
96182
|
style: {
|
|
96183
96183
|
flex: 1,
|
|
96184
96184
|
overflow: "hidden",
|
|
@@ -96186,7 +96186,7 @@ function IndustryMermaidModal({
|
|
|
96186
96186
|
backgroundColor: theme2.colors.background,
|
|
96187
96187
|
padding: `${theme2.space[5]}px ${theme2.space[2]}px ${theme2.space[2]}px ${theme2.space[2]}px`
|
|
96188
96188
|
}
|
|
96189
|
-
}, /* @__PURE__ */
|
|
96189
|
+
}, /* @__PURE__ */ require$$0__default.createElement(IndustryZoomableMermaidDiagram, {
|
|
96190
96190
|
id: "mermaid-modal-diagram",
|
|
96191
96191
|
code: mermaidCode,
|
|
96192
96192
|
theme: theme2
|
|
@@ -96220,7 +96220,7 @@ function IndustryPlaceholderModal({
|
|
|
96220
96220
|
console.error("Failed to copy filled prompt:", err);
|
|
96221
96221
|
});
|
|
96222
96222
|
};
|
|
96223
|
-
return /* @__PURE__ */
|
|
96223
|
+
return /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
96224
96224
|
style: {
|
|
96225
96225
|
position: "fixed",
|
|
96226
96226
|
top: 0,
|
|
@@ -96235,7 +96235,7 @@ function IndustryPlaceholderModal({
|
|
|
96235
96235
|
padding: theme2.space[5]
|
|
96236
96236
|
},
|
|
96237
96237
|
onClick: onClose
|
|
96238
|
-
}, /* @__PURE__ */
|
|
96238
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
96239
96239
|
style: {
|
|
96240
96240
|
backgroundColor: theme2.colors.background,
|
|
96241
96241
|
borderRadius: theme2.radii[3],
|
|
@@ -96249,7 +96249,7 @@ function IndustryPlaceholderModal({
|
|
|
96249
96249
|
boxShadow: theme2.shadows[4]
|
|
96250
96250
|
},
|
|
96251
96251
|
onClick: (e2) => e2.stopPropagation()
|
|
96252
|
-
}, /* @__PURE__ */
|
|
96252
|
+
}, /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
96253
96253
|
style: {
|
|
96254
96254
|
padding: theme2.space[4],
|
|
96255
96255
|
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
@@ -96258,7 +96258,7 @@ function IndustryPlaceholderModal({
|
|
|
96258
96258
|
alignItems: "center",
|
|
96259
96259
|
backgroundColor: theme2.colors.backgroundSecondary
|
|
96260
96260
|
}
|
|
96261
|
-
}, /* @__PURE__ */
|
|
96261
|
+
}, /* @__PURE__ */ require$$0__default.createElement("h3", {
|
|
96262
96262
|
style: {
|
|
96263
96263
|
margin: 0,
|
|
96264
96264
|
color: theme2.colors.text,
|
|
@@ -96266,7 +96266,7 @@ function IndustryPlaceholderModal({
|
|
|
96266
96266
|
fontWeight: theme2.fontWeights.semibold,
|
|
96267
96267
|
fontFamily: theme2.fonts.heading
|
|
96268
96268
|
}
|
|
96269
|
-
}, "Fill Prompt Placeholders"), /* @__PURE__ */
|
|
96269
|
+
}, "Fill Prompt Placeholders"), /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
96270
96270
|
onClick: (e2) => {
|
|
96271
96271
|
e2.stopPropagation();
|
|
96272
96272
|
onClose();
|
|
@@ -96296,14 +96296,14 @@ function IndustryPlaceholderModal({
|
|
|
96296
96296
|
},
|
|
96297
96297
|
title: "Close",
|
|
96298
96298
|
"aria-label": "Close modal"
|
|
96299
|
-
}, "×")), /* @__PURE__ */
|
|
96299
|
+
}, "×")), /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
96300
96300
|
style: {
|
|
96301
96301
|
padding: theme2.space[5],
|
|
96302
96302
|
overflow: "auto",
|
|
96303
96303
|
flex: 1,
|
|
96304
96304
|
backgroundColor: theme2.colors.background
|
|
96305
96305
|
}
|
|
96306
|
-
}, /* @__PURE__ */
|
|
96306
|
+
}, /* @__PURE__ */ require$$0__default.createElement("p", {
|
|
96307
96307
|
style: {
|
|
96308
96308
|
margin: `0 0 ${theme2.space[4]}px 0`,
|
|
96309
96309
|
color: theme2.colors.textSecondary,
|
|
@@ -96311,12 +96311,12 @@ function IndustryPlaceholderModal({
|
|
|
96311
96311
|
lineHeight: theme2.lineHeights.body,
|
|
96312
96312
|
fontFamily: theme2.fonts.body
|
|
96313
96313
|
}
|
|
96314
|
-
}, "Fill in the values for the placeholders below. The prompt will be copied to your clipboard with the values substituted."), /* @__PURE__ */
|
|
96314
|
+
}, "Fill in the values for the placeholders below. The prompt will be copied to your clipboard with the values substituted."), /* @__PURE__ */ require$$0__default.createElement("form", {
|
|
96315
96315
|
onSubmit: handleSubmit
|
|
96316
|
-
}, placeholders.map((placeholder, index2) => /* @__PURE__ */
|
|
96316
|
+
}, placeholders.map((placeholder, index2) => /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
96317
96317
|
key: index2,
|
|
96318
96318
|
style: { marginBottom: theme2.space[4] }
|
|
96319
|
-
}, /* @__PURE__ */
|
|
96319
|
+
}, /* @__PURE__ */ require$$0__default.createElement("label", {
|
|
96320
96320
|
style: {
|
|
96321
96321
|
display: "block",
|
|
96322
96322
|
marginBottom: theme2.space[2],
|
|
@@ -96325,7 +96325,7 @@ function IndustryPlaceholderModal({
|
|
|
96325
96325
|
fontSize: theme2.fontSizes[1],
|
|
96326
96326
|
fontFamily: theme2.fonts.body
|
|
96327
96327
|
}
|
|
96328
|
-
}, placeholder), /* @__PURE__ */
|
|
96328
|
+
}, placeholder), /* @__PURE__ */ require$$0__default.createElement("input", {
|
|
96329
96329
|
type: "text",
|
|
96330
96330
|
value: values[placeholder] || "",
|
|
96331
96331
|
onChange: (e2) => setValues((prev) => ({
|
|
@@ -96351,14 +96351,14 @@ function IndustryPlaceholderModal({
|
|
|
96351
96351
|
e2.currentTarget.style.borderColor = theme2.colors.border;
|
|
96352
96352
|
},
|
|
96353
96353
|
placeholder: `Enter value for ${placeholder}`
|
|
96354
|
-
}))), /* @__PURE__ */
|
|
96354
|
+
}))), /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
96355
96355
|
style: {
|
|
96356
96356
|
display: "flex",
|
|
96357
96357
|
gap: theme2.space[3],
|
|
96358
96358
|
justifyContent: "flex-end",
|
|
96359
96359
|
marginTop: theme2.space[5]
|
|
96360
96360
|
}
|
|
96361
|
-
}, /* @__PURE__ */
|
|
96361
|
+
}, /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
96362
96362
|
type: "button",
|
|
96363
96363
|
onClick: onClose,
|
|
96364
96364
|
style: {
|
|
@@ -96382,7 +96382,7 @@ function IndustryPlaceholderModal({
|
|
|
96382
96382
|
onMouseLeave: (e2) => {
|
|
96383
96383
|
e2.currentTarget.style.backgroundColor = theme2.colors.background;
|
|
96384
96384
|
}
|
|
96385
|
-
}, "Cancel"), /* @__PURE__ */
|
|
96385
|
+
}, "Cancel"), /* @__PURE__ */ require$$0__default.createElement("button", {
|
|
96386
96386
|
type: "submit",
|
|
96387
96387
|
style: {
|
|
96388
96388
|
padding: `${theme2.space[2]}px ${theme2.space[4]}px`,
|
|
@@ -96628,7 +96628,7 @@ var injectStyles = () => {
|
|
|
96628
96628
|
stylesInjected = true;
|
|
96629
96629
|
}
|
|
96630
96630
|
};
|
|
96631
|
-
var IndustryMarkdownSlide =
|
|
96631
|
+
var IndustryMarkdownSlide = require$$0__default.memo(function IndustryMarkdownSlide2({
|
|
96632
96632
|
content: content2,
|
|
96633
96633
|
slideIdPrefix,
|
|
96634
96634
|
slideIndex,
|
|
@@ -97016,7 +97016,7 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
|
|
|
97016
97016
|
if (searchQuery) {
|
|
97017
97017
|
return {
|
|
97018
97018
|
...baseComponents,
|
|
97019
|
-
mark: ({ children: children2 }) => /* @__PURE__ */
|
|
97019
|
+
mark: ({ children: children2 }) => /* @__PURE__ */ require$$0__default.createElement("mark", {
|
|
97020
97020
|
style: {
|
|
97021
97021
|
backgroundColor: theme2.colors.highlightBg || "rgba(255, 193, 7, 0.25)",
|
|
97022
97022
|
color: theme2.colors.text,
|
|
@@ -97047,7 +97047,7 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
|
|
|
97047
97047
|
searchQuery,
|
|
97048
97048
|
editable
|
|
97049
97049
|
]);
|
|
97050
|
-
return /* @__PURE__ */
|
|
97050
|
+
return /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
97051
97051
|
className: "markdown-slide",
|
|
97052
97052
|
ref: slideRef,
|
|
97053
97053
|
style: {
|
|
@@ -97071,7 +97071,7 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
|
|
|
97071
97071
|
slideRef.current.focus();
|
|
97072
97072
|
}
|
|
97073
97073
|
}
|
|
97074
|
-
}, chunks.length === 0 ? /* @__PURE__ */
|
|
97074
|
+
}, chunks.length === 0 ? /* @__PURE__ */ require$$0__default.createElement("div", {
|
|
97075
97075
|
style: {
|
|
97076
97076
|
padding: theme2.space[4],
|
|
97077
97077
|
textAlign: "center",
|
|
@@ -97081,7 +97081,7 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
|
|
|
97081
97081
|
}, "No content to display") : chunks.map((chunk, index2) => {
|
|
97082
97082
|
if (chunk.type === "markdown_chunk") {
|
|
97083
97083
|
const processedContent = searchQuery ? highlightSearchMatches(chunk.content, searchQuery) : chunk.content;
|
|
97084
|
-
return /* @__PURE__ */
|
|
97084
|
+
return /* @__PURE__ */ require$$0__default.createElement(Markdown, {
|
|
97085
97085
|
key: `${chunk.id}-${JSON.stringify(theme2.colors.accent)}`,
|
|
97086
97086
|
remarkPlugins: [remarkGfm],
|
|
97087
97087
|
rehypePlugins: [
|
|
@@ -97105,23 +97105,23 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
|
|
|
97105
97105
|
if (onShowMermaidInPanel) {
|
|
97106
97106
|
mermaidProps.onShowInPanel = onShowMermaidInPanel;
|
|
97107
97107
|
}
|
|
97108
|
-
return /* @__PURE__ */
|
|
97108
|
+
return /* @__PURE__ */ require$$0__default.createElement(IndustryLazyMermaidDiagram, {
|
|
97109
97109
|
key: chunk.id,
|
|
97110
97110
|
...mermaidProps
|
|
97111
97111
|
});
|
|
97112
97112
|
}
|
|
97113
97113
|
return null;
|
|
97114
|
-
}), /* @__PURE__ */
|
|
97114
|
+
}), /* @__PURE__ */ require$$0__default.createElement(IndustryHtmlModal, {
|
|
97115
97115
|
isOpen: htmlModalOpen,
|
|
97116
97116
|
onClose: closeHtmlModal,
|
|
97117
97117
|
htmlContent: htmlModalContent,
|
|
97118
97118
|
theme: theme2
|
|
97119
|
-
}), /* @__PURE__ */
|
|
97119
|
+
}), /* @__PURE__ */ require$$0__default.createElement(IndustryMermaidModal, {
|
|
97120
97120
|
isOpen: mermaidModalOpen,
|
|
97121
97121
|
onClose: closeMermaidModal,
|
|
97122
97122
|
mermaidCode: mermaidModalCode,
|
|
97123
97123
|
theme: theme2
|
|
97124
|
-
}), handlePromptCopy && placeholderModalData && /* @__PURE__ */
|
|
97124
|
+
}), handlePromptCopy && placeholderModalData && /* @__PURE__ */ require$$0__default.createElement(IndustryPlaceholderModal, {
|
|
97125
97125
|
isOpen: placeholderModalOpen,
|
|
97126
97126
|
onClose: closePlaceholderModal,
|
|
97127
97127
|
placeholders: placeholderModalData.placeholders,
|
|
@@ -97144,7 +97144,7 @@ var DATA_ATTRIBUTES = {
|
|
|
97144
97144
|
};
|
|
97145
97145
|
var PRECISION$1 = 10;
|
|
97146
97146
|
var useIsomorphicLayoutEffect = useLayoutEffect;
|
|
97147
|
-
var useId =
|
|
97147
|
+
var useId = require$$0$1["useId".toString()];
|
|
97148
97148
|
var wrappedUseId = typeof useId === "function" ? useId : () => null;
|
|
97149
97149
|
var counter = 0;
|
|
97150
97150
|
function useUniqueId(idFromParams = null) {
|
|
@@ -98760,7 +98760,7 @@ var z$1 = forwardRef(({ panels: o2, className: a2 = "", style: s2, theme: d2, mi
|
|
|
98760
98760
|
const S2 = o2.length, R2 = 2 * u2;
|
|
98761
98761
|
let N2;
|
|
98762
98762
|
N2 = S2 === 1 || S2 === 2 ? "100%" : `max(${u2}px, ${100 * p2}%)`;
|
|
98763
|
-
const E2 =
|
|
98763
|
+
const E2 = require$$0__default.useId().replace(/:/g, "_");
|
|
98764
98764
|
return jsxs(Fragment, { children: [
|
|
98765
98765
|
S2 === 2 && /* @__PURE__ */ jsx("style", { children: `
|
|
98766
98766
|
.snap-carousel-container[data-carousel-id="${E2}"][data-panel-count="2"] .snap-carousel-panel {
|
|
@@ -105144,7 +105144,7 @@ const DependencyGraphPanel = ({
|
|
|
105144
105144
|
return /* @__PURE__ */ jsx(DependencyGraphPanelContent, { packages, isLoading });
|
|
105145
105145
|
};
|
|
105146
105146
|
createContext(null);
|
|
105147
|
-
class PanelErrorBoundary extends
|
|
105147
|
+
class PanelErrorBoundary extends require$$0__default.Component {
|
|
105148
105148
|
constructor(props) {
|
|
105149
105149
|
super(props);
|
|
105150
105150
|
__publicField(this, "reset", () => {
|
|
@@ -106214,7 +106214,7 @@ const browserExt = {
|
|
|
106214
106214
|
},
|
|
106215
106215
|
test: () => true,
|
|
106216
106216
|
load: async () => {
|
|
106217
|
-
await import("./browserAll-
|
|
106217
|
+
await import("./browserAll-CjDWWn8L.js");
|
|
106218
106218
|
}
|
|
106219
106219
|
};
|
|
106220
106220
|
const webworkerExt = {
|
|
@@ -106225,7 +106225,7 @@ const webworkerExt = {
|
|
|
106225
106225
|
},
|
|
106226
106226
|
test: () => typeof self !== "undefined" && self.WorkerGlobalScope !== void 0,
|
|
106227
106227
|
load: async () => {
|
|
106228
|
-
await import("./webworkerAll-
|
|
106228
|
+
await import("./webworkerAll-BHVIefJ1.js");
|
|
106229
106229
|
}
|
|
106230
106230
|
};
|
|
106231
106231
|
class ObservablePoint {
|
|
@@ -152108,16 +152108,16 @@ const CollectionMapPanelContent = ({
|
|
|
152108
152108
|
onPackageClick
|
|
152109
152109
|
}) => {
|
|
152110
152110
|
var _a;
|
|
152111
|
-
const customRegions =
|
|
152111
|
+
const customRegions = require$$0__default.useMemo(
|
|
152112
152112
|
() => {
|
|
152113
152113
|
var _a2;
|
|
152114
152114
|
return ((_a2 = collection.metadata) == null ? void 0 : _a2.customRegions) || [];
|
|
152115
152115
|
},
|
|
152116
152116
|
[(_a = collection.metadata) == null ? void 0 : _a.customRegions]
|
|
152117
152117
|
);
|
|
152118
|
-
const [isEditingRegions, setIsEditingRegions] =
|
|
152119
|
-
const viewportRef =
|
|
152120
|
-
const canvasRef =
|
|
152118
|
+
const [isEditingRegions, setIsEditingRegions] = require$$0__default.useState(false);
|
|
152119
|
+
const viewportRef = require$$0__default.useRef(null);
|
|
152120
|
+
const canvasRef = require$$0__default.useRef(null);
|
|
152121
152121
|
const prevCollectionIdForMetrics = useRef(null);
|
|
152122
152122
|
const prevMembersLength = useRef(0);
|
|
152123
152123
|
const prevRepositoriesHash = useRef("");
|
|
@@ -155168,7 +155168,7 @@ const CardBack = ({
|
|
|
155168
155168
|
height = 280
|
|
155169
155169
|
}) => {
|
|
155170
155170
|
const { theme: theme2 } = useTheme();
|
|
155171
|
-
|
|
155171
|
+
require$$0__default.useEffect(() => {
|
|
155172
155172
|
injectKeyframes();
|
|
155173
155173
|
}, []);
|
|
155174
155174
|
return /* @__PURE__ */ jsxs(
|
|
@@ -156207,4 +156207,4 @@ export {
|
|
|
156207
156207
|
RepoCardStatic as y,
|
|
156208
156208
|
CardBack as z
|
|
156209
156209
|
};
|
|
156210
|
-
//# sourceMappingURL=index-
|
|
156210
|
+
//# sourceMappingURL=index-DNcQCj6d.js.map
|