@industry-theme/github-panels 0.1.57 → 0.1.59
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/panels.bundle.js
CHANGED
|
@@ -2667,14 +2667,14 @@ function determinePivotIndices$1(groupId, dragHandleId, panelGroupElement) {
|
|
|
2667
2667
|
const index2 = getResizeHandleElementIndex$1(groupId, dragHandleId, panelGroupElement);
|
|
2668
2668
|
return index2 != null ? [index2, index2 + 1] : [-1, -1];
|
|
2669
2669
|
}
|
|
2670
|
-
function isHTMLElement(target) {
|
|
2670
|
+
function isHTMLElement$1(target) {
|
|
2671
2671
|
if (target instanceof HTMLElement) {
|
|
2672
2672
|
return true;
|
|
2673
2673
|
}
|
|
2674
2674
|
return typeof target === "object" && target !== null && "tagName" in target && "getAttribute" in target;
|
|
2675
2675
|
}
|
|
2676
2676
|
function getPanelGroupElement$1(id, rootElement = document) {
|
|
2677
|
-
if (isHTMLElement(rootElement) && rootElement.dataset.panelGroupId == id) {
|
|
2677
|
+
if (isHTMLElement$1(rootElement) && rootElement.dataset.panelGroupId == id) {
|
|
2678
2678
|
return rootElement;
|
|
2679
2679
|
}
|
|
2680
2680
|
const element2 = rootElement.querySelector(`[data-panel-group][data-panel-group-id="${id}"]`);
|
|
@@ -3683,11 +3683,11 @@ function panelDataHelper$1(panelDataArray, panelData, layout) {
|
|
|
3683
3683
|
pivotIndices
|
|
3684
3684
|
};
|
|
3685
3685
|
}
|
|
3686
|
-
function C(e) {
|
|
3686
|
+
function C$1(e) {
|
|
3687
3687
|
return { "--panel-background": e.colors.background, "--panel-border": e.colors.border, "--panel-handle": e.colors.backgroundSecondary, "--panel-handle-hover": e.colors.backgroundHover, "--panel-handle-active": e.colors.primary, "--panel-button-bg": e.colors.surface, "--panel-button-hover": e.colors.backgroundHover, "--panel-button-border": e.colors.border, "--panel-button-icon": e.colors.textSecondary, "--panel-accent-bg": e.colors.primary + "15" };
|
|
3688
3688
|
}
|
|
3689
|
-
const z = forwardRef(({ panels: o, className: a = "", style: s2, theme: d, minPanelWidth: u = 350, idealPanelWidth: p2 = 0.333, showSeparator: h2 = false, onPanelChange: m, preventKeyboardScroll: f = true, disableSwipe: g = false }, v) => {
|
|
3690
|
-
const b = useRef(null), y = C(d);
|
|
3689
|
+
const z$1 = forwardRef(({ panels: o, className: a = "", style: s2, theme: d, minPanelWidth: u = 350, idealPanelWidth: p2 = 0.333, showSeparator: h2 = false, onPanelChange: m, preventKeyboardScroll: f = true, disableSwipe: g = false }, v) => {
|
|
3690
|
+
const b = useRef(null), y = C$1(d);
|
|
3691
3691
|
useImperativeHandle(v, () => ({ scrollToPanel: (e) => {
|
|
3692
3692
|
if (!b.current) return;
|
|
3693
3693
|
const t = b.current, n = t.children[e];
|
|
@@ -3717,8 +3717,8 @@ const z = forwardRef(({ panels: o, className: a = "", style: s2, theme: d, minPa
|
|
|
3717
3717
|
};
|
|
3718
3718
|
}, [f]);
|
|
3719
3719
|
const w = o.length, x = 2 * u;
|
|
3720
|
-
let
|
|
3721
|
-
|
|
3720
|
+
let S;
|
|
3721
|
+
S = 1 === w || 2 === w ? "100%" : `max(${u}px, ${100 * p2}%)`;
|
|
3722
3722
|
const R = React2__default.useId().replace(/:/g, "_");
|
|
3723
3723
|
return jsxs(Fragment, { children: [
|
|
3724
3724
|
2 === w && /* @__PURE__ */ jsx("style", { children: `
|
|
@@ -3731,7 +3731,7 @@ const z = forwardRef(({ panels: o, className: a = "", style: s2, theme: d, minPa
|
|
|
3731
3731
|
}
|
|
3732
3732
|
}
|
|
3733
3733
|
` }),
|
|
3734
|
-
/* @__PURE__ */ jsx("div", { ref: b, className: `snap-carousel-container ${g ? "swipe-disabled" : ""} ${a}`, style: { ...y, ...s2, "--snap-carousel-min-width": `${u}px`, "--snap-carousel-ideal-width": 100 * p2 + "%", "--snap-carousel-gap": h2 ? "1px" : "0px", "--snap-carousel-panel-width":
|
|
3734
|
+
/* @__PURE__ */ jsx("div", { ref: b, className: `snap-carousel-container ${g ? "swipe-disabled" : ""} ${a}`, style: { ...y, ...s2, "--snap-carousel-min-width": `${u}px`, "--snap-carousel-ideal-width": 100 * p2 + "%", "--snap-carousel-gap": h2 ? "1px" : "0px", "--snap-carousel-panel-width": S, "--snap-carousel-panel-count": w, "--snap-carousel-two-panel-threshold": `${x}px` }, onScroll: (e) => {
|
|
3735
3735
|
if (!m || !b.current || 0 === b.current.children.length) return;
|
|
3736
3736
|
const t = b.current, n = t.getBoundingClientRect().left;
|
|
3737
3737
|
let r2 = 0, o2 = 1 / 0;
|
|
@@ -3743,41 +3743,41 @@ const z = forwardRef(({ panels: o, className: a = "", style: s2, theme: d, minPa
|
|
|
3743
3743
|
}, "data-panel-count": w, "data-carousel-id": R, children: o.map((t, n) => /* @__PURE__ */ jsx("div", { className: "snap-carousel-panel", children: t }, n)) })
|
|
3744
3744
|
] });
|
|
3745
3745
|
});
|
|
3746
|
-
z.displayName = "SnapCarousel";
|
|
3747
|
-
var le$
|
|
3748
|
-
(se$1 = le$
|
|
3749
|
-
const de = /* @__PURE__ */ Object.freeze({ x: 0, y: 0 });
|
|
3750
|
-
var Te$1, Ae;
|
|
3751
|
-
(Ae = Te$1 || (Te$1 = {}))[Ae.Forward = 1] = "Forward", Ae[Ae.Backward = -1] = "Backward";
|
|
3752
|
-
var _e$
|
|
3753
|
-
(je$1 = _e$
|
|
3746
|
+
z$1.displayName = "SnapCarousel";
|
|
3747
|
+
var le$2, se$1;
|
|
3748
|
+
(se$1 = le$2 || (le$2 = {})).DragStart = "dragStart", se$1.DragMove = "dragMove", se$1.DragEnd = "dragEnd", se$1.DragCancel = "dragCancel", se$1.DragOver = "dragOver", se$1.RegisterDroppable = "registerDroppable", se$1.SetDroppableDisabled = "setDroppableDisabled", se$1.UnregisterDroppable = "unregisterDroppable";
|
|
3749
|
+
const de$1 = /* @__PURE__ */ Object.freeze({ x: 0, y: 0 });
|
|
3750
|
+
var Te$1, Ae$1;
|
|
3751
|
+
(Ae$1 = Te$1 || (Te$1 = {}))[Ae$1.Forward = 1] = "Forward", Ae$1[Ae$1.Backward = -1] = "Backward";
|
|
3752
|
+
var _e$2, je$1, He$1, Ke$1;
|
|
3753
|
+
(je$1 = _e$2 || (_e$2 = {})).Click = "click", je$1.DragStart = "dragstart", je$1.Keydown = "keydown", je$1.ContextMenu = "contextmenu", je$1.Resize = "resize", je$1.SelectionChange = "selectionchange", je$1.VisibilityChange = "visibilitychange", (Ke$1 = He$1 || (He$1 = {})).Space = "Space", Ke$1.Down = "ArrowDown", Ke$1.Right = "ArrowRight", Ke$1.Left = "ArrowLeft", Ke$1.Up = "ArrowUp", Ke$1.Esc = "Escape", Ke$1.Enter = "Enter", Ke$1.Tab = "Tab";
|
|
3754
3754
|
({ start: [He$1.Space, He$1.Enter], cancel: [He$1.Esc], end: [He$1.Space, He$1.Enter, He$1.Tab] });
|
|
3755
|
-
var rt, ot$1;
|
|
3756
|
-
(ot$1 = rt || (rt = {}))[ot$1.RightClick = 2] = "RightClick";
|
|
3757
|
-
var at, lt$1, st$1, ct$1;
|
|
3758
|
-
(lt$1 = at || (at = {}))[lt$1.Pointer = 0] = "Pointer", lt$1[lt$1.DraggableRect = 1] = "DraggableRect", (ct$1 = st$1 || (st$1 = {}))[ct$1.TreeOrder = 0] = "TreeOrder", ct$1[ct$1.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
3755
|
+
var rt$1, ot$1;
|
|
3756
|
+
(ot$1 = rt$1 || (rt$1 = {}))[ot$1.RightClick = 2] = "RightClick";
|
|
3757
|
+
var at$1, lt$1, st$1, ct$1;
|
|
3758
|
+
(lt$1 = at$1 || (at$1 = {}))[lt$1.Pointer = 0] = "Pointer", lt$1[lt$1.DraggableRect = 1] = "DraggableRect", (ct$1 = st$1 || (st$1 = {}))[ct$1.TreeOrder = 0] = "TreeOrder", ct$1[ct$1.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
3759
3759
|
({ x: { [Te$1.Backward]: false, [Te$1.Forward]: false }, y: { [Te$1.Backward]: false, [Te$1.Forward]: false } });
|
|
3760
|
-
var pt, ht$1, mt$1;
|
|
3761
|
-
(ht$1 = pt || (pt = {}))[ht$1.Always = 0] = "Always", ht$1[ht$1.BeforeDragging = 1] = "BeforeDragging", ht$1[ht$1.WhileDragging = 2] = "WhileDragging", (mt$1 || (mt$1 = {})).Optimized = "optimized";
|
|
3762
|
-
({ droppable: { strategy: pt.WhileDragging, frequency: mt$1.Optimized } });
|
|
3763
|
-
/* @__PURE__ */ createContext({ ...de, scaleX: 1, scaleY: 1 });
|
|
3764
|
-
var $t, Bt$1;
|
|
3765
|
-
(Bt$1 = $t || ($t = {}))[Bt$1.Uninitialized = 0] = "Uninitialized", Bt$1[Bt$1.Initializing = 1] = "Initializing", Bt$1[Bt$1.Initialized = 2] = "Initialized";
|
|
3766
|
-
var Ut;
|
|
3760
|
+
var pt$1, ht$1, mt$1;
|
|
3761
|
+
(ht$1 = pt$1 || (pt$1 = {}))[ht$1.Always = 0] = "Always", ht$1[ht$1.BeforeDragging = 1] = "BeforeDragging", ht$1[ht$1.WhileDragging = 2] = "WhileDragging", (mt$1 || (mt$1 = {})).Optimized = "optimized";
|
|
3762
|
+
({ droppable: { strategy: pt$1.WhileDragging, frequency: mt$1.Optimized } });
|
|
3763
|
+
/* @__PURE__ */ createContext({ ...de$1, scaleX: 1, scaleY: 1 });
|
|
3764
|
+
var $t$1, Bt$1;
|
|
3765
|
+
(Bt$1 = $t$1 || ($t$1 = {}))[Bt$1.Uninitialized = 0] = "Uninitialized", Bt$1[Bt$1.Initializing = 1] = "Initializing", Bt$1[Bt$1.Initialized = 2] = "Initialized";
|
|
3766
|
+
var Ut$1;
|
|
3767
3767
|
(() => {
|
|
3768
3768
|
if ("undefined" != typeof window) {
|
|
3769
3769
|
const e = window;
|
|
3770
3770
|
return e.__principlemd_theme_context__ || (e.__principlemd_theme_context__ = createContext(void 0)), e.__principlemd_theme_context__;
|
|
3771
3771
|
}
|
|
3772
|
-
return Ut || (Ut = createContext(void 0)), Ut;
|
|
3772
|
+
return Ut$1 || (Ut$1 = createContext(void 0)), Ut$1;
|
|
3773
3773
|
})();
|
|
3774
|
-
var _e = Object.defineProperty;
|
|
3775
|
-
var Ee = (o, e, t) => e in o ? _e(o, e, { enumerable: true, configurable: true, writable: true, value: t }) : o[e] = t;
|
|
3776
|
-
var le = (o, e, t) => Ee(o, typeof e != "symbol" ? e + "" : e, t);
|
|
3774
|
+
var _e$1 = Object.defineProperty;
|
|
3775
|
+
var Ee = (o, e, t) => e in o ? _e$1(o, e, { enumerable: true, configurable: true, writable: true, value: t }) : o[e] = t;
|
|
3776
|
+
var le$1 = (o, e, t) => Ee(o, typeof e != "symbol" ? e + "" : e, t);
|
|
3777
3777
|
class De {
|
|
3778
3778
|
constructor() {
|
|
3779
|
-
le(this, "PRESETS_KEY", "panel-layouts:workspace-presets");
|
|
3780
|
-
le(this, "REPO_STATE_PREFIX", "panel-layouts:repo-state:");
|
|
3779
|
+
le$1(this, "PRESETS_KEY", "panel-layouts:workspace-presets");
|
|
3780
|
+
le$1(this, "REPO_STATE_PREFIX", "panel-layouts:repo-state:");
|
|
3781
3781
|
}
|
|
3782
3782
|
/**
|
|
3783
3783
|
* Load all user-created workspace presets
|
|
@@ -4244,7 +4244,7 @@ class O {
|
|
|
4244
4244
|
Object.keys(e).length;
|
|
4245
4245
|
}
|
|
4246
4246
|
}
|
|
4247
|
-
le(O, "adapter", new De());
|
|
4247
|
+
le$1(O, "adapter", new De());
|
|
4248
4248
|
function gt(o, e, t, r2) {
|
|
4249
4249
|
useEffect(() => {
|
|
4250
4250
|
const s2 = e.on(
|
|
@@ -44329,6 +44329,96 @@ var TransformComponent = function(_a) {
|
|
|
44329
44329
|
React2__default.createElement("div", __assign({}, contentProps, { ref: contentRef, className: "".concat(baseClasses.contentClass, " ").concat(styles.content, " ").concat(contentClass), style: contentStyle }), children2)
|
|
44330
44330
|
);
|
|
44331
44331
|
};
|
|
44332
|
+
var isInjected = false;
|
|
44333
|
+
function injectHighlightStyles() {
|
|
44334
|
+
if (isInjected || typeof document === "undefined") {
|
|
44335
|
+
return;
|
|
44336
|
+
}
|
|
44337
|
+
const existingStyle = document.getElementById("themed-markdown-highlight-css");
|
|
44338
|
+
if (existingStyle) {
|
|
44339
|
+
isInjected = true;
|
|
44340
|
+
return;
|
|
44341
|
+
}
|
|
44342
|
+
const css2 = `
|
|
44343
|
+
pre code.hljs {
|
|
44344
|
+
display: block;
|
|
44345
|
+
overflow-x: auto;
|
|
44346
|
+
padding: 1em
|
|
44347
|
+
}
|
|
44348
|
+
code.hljs {
|
|
44349
|
+
padding: 3px 5px
|
|
44350
|
+
}
|
|
44351
|
+
|
|
44352
|
+
.hljs {
|
|
44353
|
+
color: #abb2bf;
|
|
44354
|
+
background: #282c34
|
|
44355
|
+
}
|
|
44356
|
+
.hljs-comment,
|
|
44357
|
+
.hljs-quote {
|
|
44358
|
+
color: #5c6370;
|
|
44359
|
+
font-style: italic
|
|
44360
|
+
}
|
|
44361
|
+
.hljs-doctag,
|
|
44362
|
+
.hljs-keyword,
|
|
44363
|
+
.hljs-formula {
|
|
44364
|
+
color: #c678dd
|
|
44365
|
+
}
|
|
44366
|
+
.hljs-section,
|
|
44367
|
+
.hljs-name,
|
|
44368
|
+
.hljs-selector-tag,
|
|
44369
|
+
.hljs-deletion,
|
|
44370
|
+
.hljs-subst {
|
|
44371
|
+
color: #e06c75
|
|
44372
|
+
}
|
|
44373
|
+
.hljs-literal {
|
|
44374
|
+
color: #56b6c2
|
|
44375
|
+
}
|
|
44376
|
+
.hljs-string,
|
|
44377
|
+
.hljs-regexp,
|
|
44378
|
+
.hljs-addition,
|
|
44379
|
+
.hljs-attribute,
|
|
44380
|
+
.hljs-meta .hljs-string {
|
|
44381
|
+
color: #98c379
|
|
44382
|
+
}
|
|
44383
|
+
.hljs-attr,
|
|
44384
|
+
.hljs-variable,
|
|
44385
|
+
.hljs-template-variable,
|
|
44386
|
+
.hljs-type,
|
|
44387
|
+
.hljs-selector-class,
|
|
44388
|
+
.hljs-selector-attr,
|
|
44389
|
+
.hljs-selector-pseudo,
|
|
44390
|
+
.hljs-number {
|
|
44391
|
+
color: #d19a66
|
|
44392
|
+
}
|
|
44393
|
+
.hljs-symbol,
|
|
44394
|
+
.hljs-bullet,
|
|
44395
|
+
.hljs-link,
|
|
44396
|
+
.hljs-meta,
|
|
44397
|
+
.hljs-selector-id,
|
|
44398
|
+
.hljs-title {
|
|
44399
|
+
color: #61aeee
|
|
44400
|
+
}
|
|
44401
|
+
.hljs-built_in,
|
|
44402
|
+
.hljs-title.class_,
|
|
44403
|
+
.hljs-class .hljs-title {
|
|
44404
|
+
color: #e6c07b
|
|
44405
|
+
}
|
|
44406
|
+
.hljs-emphasis {
|
|
44407
|
+
font-style: italic
|
|
44408
|
+
}
|
|
44409
|
+
.hljs-strong {
|
|
44410
|
+
font-weight: bold
|
|
44411
|
+
}
|
|
44412
|
+
.hljs-link {
|
|
44413
|
+
text-decoration: underline
|
|
44414
|
+
}`;
|
|
44415
|
+
const styleElement = document.createElement("style");
|
|
44416
|
+
styleElement.id = "themed-markdown-highlight-css";
|
|
44417
|
+
styleElement.textContent = css2;
|
|
44418
|
+
document.head.appendChild(styleElement);
|
|
44419
|
+
isInjected = true;
|
|
44420
|
+
}
|
|
44421
|
+
injectHighlightStyles();
|
|
44332
44422
|
var terminalTheme = {
|
|
44333
44423
|
space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
|
|
44334
44424
|
fonts: {
|
|
@@ -44366,52 +44456,53 @@ var terminalTheme = {
|
|
|
44366
44456
|
zIndices: [0, 1, 10, 20, 30, 40, 50],
|
|
44367
44457
|
colors: {
|
|
44368
44458
|
text: "#e4e4e4",
|
|
44369
|
-
background: "
|
|
44459
|
+
background: "#0a0a0a",
|
|
44370
44460
|
primary: "#66b3ff",
|
|
44371
44461
|
secondary: "#80c4ff",
|
|
44372
44462
|
accent: "#66ff99",
|
|
44373
|
-
highlight: "
|
|
44374
|
-
muted: "
|
|
44463
|
+
highlight: "#18283d",
|
|
44464
|
+
muted: "#1a1a1a",
|
|
44375
44465
|
success: "#66ff99",
|
|
44376
44466
|
warning: "#ffcc66",
|
|
44377
44467
|
error: "#ff6666",
|
|
44378
44468
|
info: "#66b3ff",
|
|
44379
|
-
border: "
|
|
44380
|
-
backgroundSecondary: "
|
|
44381
|
-
backgroundTertiary: "
|
|
44382
|
-
backgroundLight: "
|
|
44383
|
-
backgroundHover: "
|
|
44384
|
-
surface: "
|
|
44385
|
-
textSecondary: "
|
|
44386
|
-
textTertiary: "
|
|
44387
|
-
textMuted: "
|
|
44388
|
-
highlightBg: "
|
|
44389
|
-
highlightBorder: "
|
|
44469
|
+
border: "#1a1a1a",
|
|
44470
|
+
backgroundSecondary: "#0f0f0f",
|
|
44471
|
+
backgroundTertiary: "#141414",
|
|
44472
|
+
backgroundLight: "#0d0d0d",
|
|
44473
|
+
backgroundHover: "#0d1520",
|
|
44474
|
+
surface: "#0f0f0f",
|
|
44475
|
+
textSecondary: "#b3b3b3",
|
|
44476
|
+
textTertiary: "#808080",
|
|
44477
|
+
textMuted: "#666666",
|
|
44478
|
+
highlightBg: "#40391e",
|
|
44479
|
+
highlightBorder: "#7f7530",
|
|
44480
|
+
textOnPrimary: "#ffffff"
|
|
44390
44481
|
},
|
|
44391
44482
|
modes: {
|
|
44392
44483
|
light: {
|
|
44393
44484
|
text: "#1a1a1a",
|
|
44394
|
-
background: "
|
|
44485
|
+
background: "#ffffff",
|
|
44395
44486
|
primary: "#0066cc",
|
|
44396
44487
|
secondary: "#0052a3",
|
|
44397
44488
|
accent: "#00cc88",
|
|
44398
|
-
highlight: "
|
|
44399
|
-
muted: "
|
|
44489
|
+
highlight: "#e6f2ff",
|
|
44490
|
+
muted: "#f5f5f5",
|
|
44400
44491
|
success: "#00cc88",
|
|
44401
44492
|
warning: "#ffaa00",
|
|
44402
44493
|
error: "#ff3333",
|
|
44403
44494
|
info: "#0066cc",
|
|
44404
|
-
border: "
|
|
44405
|
-
backgroundSecondary: "
|
|
44406
|
-
backgroundTertiary: "
|
|
44407
|
-
backgroundLight: "
|
|
44408
|
-
backgroundHover: "
|
|
44409
|
-
surface: "
|
|
44410
|
-
textSecondary: "
|
|
44411
|
-
textTertiary: "
|
|
44412
|
-
textMuted: "
|
|
44413
|
-
highlightBg: "
|
|
44414
|
-
highlightBorder: "
|
|
44495
|
+
border: "#e6e6e6",
|
|
44496
|
+
backgroundSecondary: "#fafafa",
|
|
44497
|
+
backgroundTertiary: "#f5f5f5",
|
|
44498
|
+
backgroundLight: "#fafafa",
|
|
44499
|
+
backgroundHover: "#f5f9fd",
|
|
44500
|
+
surface: "#ffffff",
|
|
44501
|
+
textSecondary: "#666666",
|
|
44502
|
+
textTertiary: "#999999",
|
|
44503
|
+
textMuted: "#b3b3b3",
|
|
44504
|
+
highlightBg: "#fff9c4",
|
|
44505
|
+
highlightBorder: "#fff389"
|
|
44415
44506
|
}
|
|
44416
44507
|
},
|
|
44417
44508
|
buttons: {
|
|
@@ -45728,8 +45819,8 @@ var createIndustryMarkdownComponents = ({
|
|
|
45728
45819
|
};
|
|
45729
45820
|
const darkMode = getLuminance(theme2.colors.background) < 0.5;
|
|
45730
45821
|
const headerStyles = {};
|
|
45731
|
-
if (index2 === 0
|
|
45732
|
-
headerStyles.marginTop = `${slideHeaderMarginTopOverride}px
|
|
45822
|
+
if (index2 === 0) {
|
|
45823
|
+
headerStyles.marginTop = slideHeaderMarginTopOverride ? `${slideHeaderMarginTopOverride}px` : 0;
|
|
45733
45824
|
}
|
|
45734
45825
|
return {
|
|
45735
45826
|
h1: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h1", {
|
|
@@ -45738,9 +45829,11 @@ var createIndustryMarkdownComponents = ({
|
|
|
45738
45829
|
fontSize: theme2.fontSizes[5],
|
|
45739
45830
|
lineHeight: theme2.lineHeights.heading,
|
|
45740
45831
|
fontWeight: theme2.fontWeights.bold,
|
|
45741
|
-
marginTop:
|
|
45832
|
+
marginTop: theme2.space[4],
|
|
45742
45833
|
marginBottom: theme2.space[4],
|
|
45743
45834
|
fontFamily: theme2.fonts.heading,
|
|
45835
|
+
paddingBottom: theme2.space[2],
|
|
45836
|
+
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
45744
45837
|
...headerStyles
|
|
45745
45838
|
},
|
|
45746
45839
|
...props
|
|
@@ -45751,9 +45844,11 @@ var createIndustryMarkdownComponents = ({
|
|
|
45751
45844
|
fontSize: theme2.fontSizes[4],
|
|
45752
45845
|
lineHeight: theme2.lineHeights.heading,
|
|
45753
45846
|
fontWeight: theme2.fontWeights.bold,
|
|
45754
|
-
marginTop:
|
|
45847
|
+
marginTop: theme2.space[4],
|
|
45755
45848
|
marginBottom: theme2.space[3],
|
|
45756
45849
|
fontFamily: theme2.fonts.heading,
|
|
45850
|
+
paddingBottom: theme2.space[2],
|
|
45851
|
+
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
45757
45852
|
...headerStyles
|
|
45758
45853
|
},
|
|
45759
45854
|
...props
|
|
@@ -45764,12 +45859,48 @@ var createIndustryMarkdownComponents = ({
|
|
|
45764
45859
|
fontSize: theme2.fontSizes[3],
|
|
45765
45860
|
lineHeight: theme2.lineHeights.heading,
|
|
45766
45861
|
fontWeight: theme2.fontWeights.semibold,
|
|
45767
|
-
marginTop:
|
|
45862
|
+
marginTop: theme2.space[4],
|
|
45768
45863
|
marginBottom: theme2.space[3],
|
|
45769
45864
|
fontFamily: theme2.fonts.heading
|
|
45770
45865
|
},
|
|
45771
45866
|
...props
|
|
45772
45867
|
}, children2),
|
|
45868
|
+
h4: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h4", {
|
|
45869
|
+
style: {
|
|
45870
|
+
color: theme2.colors.text,
|
|
45871
|
+
fontSize: theme2.fontSizes[2],
|
|
45872
|
+
lineHeight: theme2.lineHeights.heading,
|
|
45873
|
+
fontWeight: theme2.fontWeights.semibold,
|
|
45874
|
+
marginTop: theme2.space[3],
|
|
45875
|
+
marginBottom: theme2.space[2],
|
|
45876
|
+
fontFamily: theme2.fonts.heading
|
|
45877
|
+
},
|
|
45878
|
+
...props
|
|
45879
|
+
}, children2),
|
|
45880
|
+
h5: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h5", {
|
|
45881
|
+
style: {
|
|
45882
|
+
color: theme2.colors.text,
|
|
45883
|
+
fontSize: theme2.fontSizes[1],
|
|
45884
|
+
lineHeight: theme2.lineHeights.heading,
|
|
45885
|
+
fontWeight: theme2.fontWeights.semibold,
|
|
45886
|
+
marginTop: theme2.space[3],
|
|
45887
|
+
marginBottom: theme2.space[1],
|
|
45888
|
+
fontFamily: theme2.fonts.heading
|
|
45889
|
+
},
|
|
45890
|
+
...props
|
|
45891
|
+
}, children2),
|
|
45892
|
+
h6: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h6", {
|
|
45893
|
+
style: {
|
|
45894
|
+
color: theme2.colors.text,
|
|
45895
|
+
fontSize: theme2.fontSizes[1],
|
|
45896
|
+
lineHeight: theme2.lineHeights.heading,
|
|
45897
|
+
fontWeight: theme2.fontWeights.medium,
|
|
45898
|
+
marginTop: theme2.space[3],
|
|
45899
|
+
marginBottom: theme2.space[1],
|
|
45900
|
+
fontFamily: theme2.fonts.heading
|
|
45901
|
+
},
|
|
45902
|
+
...props
|
|
45903
|
+
}, children2),
|
|
45773
45904
|
p: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("p", {
|
|
45774
45905
|
style: {
|
|
45775
45906
|
color: theme2.colors.text,
|
|
@@ -46132,7 +46263,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
46132
46263
|
}), "Fill & Copy (", placeholders.length, ")"))), isPrompt ? /* @__PURE__ */ React2__default.createElement("div", {
|
|
46133
46264
|
style: {
|
|
46134
46265
|
margin: 0,
|
|
46135
|
-
padding: theme2.space[
|
|
46266
|
+
padding: theme2.space[1],
|
|
46136
46267
|
backgroundColor: "transparent",
|
|
46137
46268
|
fontSize: theme2.fontSizes[1],
|
|
46138
46269
|
lineHeight: theme2.lineHeights.body,
|
|
@@ -46159,7 +46290,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
46159
46290
|
})) : /* @__PURE__ */ React2__default.createElement("pre", {
|
|
46160
46291
|
style: {
|
|
46161
46292
|
margin: 0,
|
|
46162
|
-
padding: theme2.space[
|
|
46293
|
+
padding: theme2.space[1],
|
|
46163
46294
|
backgroundColor: "transparent",
|
|
46164
46295
|
overflow: "auto",
|
|
46165
46296
|
fontSize: theme2.fontSizes[1],
|
|
@@ -46875,29 +47006,25 @@ var fontTransitionCSS = `
|
|
|
46875
47006
|
font-size: 1rem !important; /* Fixed size for checkbox labels */
|
|
46876
47007
|
}
|
|
46877
47008
|
|
|
46878
|
-
/* Remove top margin from
|
|
46879
|
-
.markdown-slide >
|
|
46880
|
-
.markdown-slide >
|
|
46881
|
-
.markdown-slide > :first-child h3:first-child,
|
|
46882
|
-
.markdown-slide > :first-child h4:first-child,
|
|
46883
|
-
.markdown-slide > :first-child h5:first-child,
|
|
46884
|
-
.markdown-slide > :first-child h6:first-child {
|
|
47009
|
+
/* Remove top margin from any first element - must override inline styles */
|
|
47010
|
+
.markdown-slide > *:first-child,
|
|
47011
|
+
.markdown-slide > *:first-child > *:first-child {
|
|
46885
47012
|
margin-top: 0 !important;
|
|
46886
47013
|
}
|
|
46887
|
-
|
|
46888
|
-
/*
|
|
46889
|
-
.markdown-slide >
|
|
46890
|
-
.markdown-slide >
|
|
46891
|
-
.markdown-slide >
|
|
46892
|
-
.markdown-slide >
|
|
46893
|
-
.markdown-slide >
|
|
46894
|
-
.markdown-slide >
|
|
46895
|
-
.markdown-slide > p:first-child
|
|
46896
|
-
.markdown-slide >
|
|
46897
|
-
.markdown-slide >
|
|
46898
|
-
.markdown-slide >
|
|
46899
|
-
.markdown-slide >
|
|
46900
|
-
.markdown-slide >
|
|
47014
|
+
|
|
47015
|
+
/* Specifically target all possible first-child elements */
|
|
47016
|
+
.markdown-slide > h1:first-child,
|
|
47017
|
+
.markdown-slide > h2:first-child,
|
|
47018
|
+
.markdown-slide > h3:first-child,
|
|
47019
|
+
.markdown-slide > h4:first-child,
|
|
47020
|
+
.markdown-slide > h5:first-child,
|
|
47021
|
+
.markdown-slide > h6:first-child,
|
|
47022
|
+
.markdown-slide > p:first-child,
|
|
47023
|
+
.markdown-slide > ul:first-child,
|
|
47024
|
+
.markdown-slide > ol:first-child,
|
|
47025
|
+
.markdown-slide > div:first-child,
|
|
47026
|
+
.markdown-slide > blockquote:first-child,
|
|
47027
|
+
.markdown-slide > pre:first-child {
|
|
46901
47028
|
margin-top: 0 !important;
|
|
46902
47029
|
}
|
|
46903
47030
|
`;
|
|
@@ -47623,7 +47750,6 @@ var panelConstraintFlags = /* @__PURE__ */ new Map();
|
|
|
47623
47750
|
function reportConstraintsViolation(resizeHandleId, flag) {
|
|
47624
47751
|
panelConstraintFlags.set(resizeHandleId, flag);
|
|
47625
47752
|
}
|
|
47626
|
-
new AbortController();
|
|
47627
47753
|
function useForceUpdate() {
|
|
47628
47754
|
const [_, setCount] = useState(0);
|
|
47629
47755
|
return useCallback(() => setCount((prevCount) => prevCount + 1), []);
|
|
@@ -47787,7 +47913,7 @@ function adjustLayoutByDelta({
|
|
|
47787
47913
|
if (!fuzzyNumbersEqual(prevSize, safeSize)) {
|
|
47788
47914
|
deltaApplied += prevSize - safeSize;
|
|
47789
47915
|
nextLayout[index2] = safeSize;
|
|
47790
|
-
if (deltaApplied.
|
|
47916
|
+
if (deltaApplied.toFixed(3).localeCompare(Math.abs(delta).toFixed(3), void 0, {
|
|
47791
47917
|
numeric: true
|
|
47792
47918
|
}) >= 0) {
|
|
47793
47919
|
break;
|
|
@@ -47896,9 +48022,14 @@ function determinePivotIndices(groupId, dragHandleId, panelGroupElement) {
|
|
|
47896
48022
|
const index2 = getResizeHandleElementIndex(groupId, dragHandleId, panelGroupElement);
|
|
47897
48023
|
return index2 != null ? [index2, index2 + 1] : [-1, -1];
|
|
47898
48024
|
}
|
|
48025
|
+
function isHTMLElement(target) {
|
|
48026
|
+
if (target instanceof HTMLElement) {
|
|
48027
|
+
return true;
|
|
48028
|
+
}
|
|
48029
|
+
return typeof target === "object" && target !== null && "tagName" in target && "getAttribute" in target;
|
|
48030
|
+
}
|
|
47899
48031
|
function getPanelGroupElement(id, rootElement = document) {
|
|
47900
|
-
|
|
47901
|
-
if (rootElement instanceof HTMLElement && (rootElement === null || rootElement === void 0 ? void 0 : (_dataset = rootElement.dataset) === null || _dataset === void 0 ? void 0 : _dataset.panelGroupId) == id) {
|
|
48032
|
+
if (isHTMLElement(rootElement) && rootElement.dataset.panelGroupId == id) {
|
|
47902
48033
|
return rootElement;
|
|
47903
48034
|
}
|
|
47904
48035
|
const element2 = rootElement.querySelector(`[data-panel-group][data-panel-group-id="${id}"]`);
|
|
@@ -48216,11 +48347,11 @@ function computePanelFlexBoxStyle({
|
|
|
48216
48347
|
const size = layout[panelIndex];
|
|
48217
48348
|
let flexGrow;
|
|
48218
48349
|
if (size == null) {
|
|
48219
|
-
flexGrow = defaultSize != null ? defaultSize.
|
|
48350
|
+
flexGrow = defaultSize != null ? defaultSize.toFixed(precision) : "1";
|
|
48220
48351
|
} else if (panelData.length === 1) {
|
|
48221
48352
|
flexGrow = "1";
|
|
48222
48353
|
} else {
|
|
48223
|
-
flexGrow = size.
|
|
48354
|
+
flexGrow = size.toFixed(precision);
|
|
48224
48355
|
}
|
|
48225
48356
|
return {
|
|
48226
48357
|
flexBasis: 0,
|
|
@@ -49002,23 +49133,26 @@ function panelDataHelper(panelDataArray, panelData, layout) {
|
|
|
49002
49133
|
pivotIndices
|
|
49003
49134
|
};
|
|
49004
49135
|
}
|
|
49005
|
-
function
|
|
49136
|
+
function C(e2) {
|
|
49006
49137
|
return { "--panel-background": e2.colors.background, "--panel-border": e2.colors.border, "--panel-handle": e2.colors.backgroundSecondary, "--panel-handle-hover": e2.colors.backgroundHover, "--panel-handle-active": e2.colors.primary, "--panel-button-bg": e2.colors.surface, "--panel-button-hover": e2.colors.backgroundHover, "--panel-button-border": e2.colors.border, "--panel-button-icon": e2.colors.textSecondary, "--panel-accent-bg": e2.colors.primary + "15" };
|
|
49007
49138
|
}
|
|
49008
|
-
var
|
|
49009
|
-
const
|
|
49010
|
-
useImperativeHandle(
|
|
49011
|
-
if (!
|
|
49139
|
+
var z = forwardRef(({ panels: o2, className: a2 = "", style: s2, theme: d2, minPanelWidth: u2 = 350, idealPanelWidth: p2 = 0.333, showSeparator: h2 = false, onPanelChange: m2, preventKeyboardScroll: f2 = true, disableSwipe: g = false }, v) => {
|
|
49140
|
+
const b = useRef(null), y2 = useRef(false), w2 = useRef(null), x2 = C(d2);
|
|
49141
|
+
useImperativeHandle(v, () => ({ scrollToPanel: (e2) => {
|
|
49142
|
+
if (!b.current)
|
|
49012
49143
|
return;
|
|
49013
|
-
const t2 =
|
|
49144
|
+
const t2 = b.current, n2 = t2.children[e2];
|
|
49014
49145
|
if (n2) {
|
|
49146
|
+
y2.current = true, w2.current && clearTimeout(w2.current);
|
|
49015
49147
|
const e3 = n2.offsetLeft;
|
|
49016
|
-
t2.scrollTo({ left: e3, behavior: "smooth" })
|
|
49148
|
+
t2.scrollTo({ left: e3, behavior: "smooth" }), w2.current = setTimeout(() => {
|
|
49149
|
+
y2.current = false;
|
|
49150
|
+
}, 500);
|
|
49017
49151
|
}
|
|
49018
49152
|
}, getCurrentPanel: () => {
|
|
49019
|
-
if (!
|
|
49153
|
+
if (!b.current || b.current.children.length === 0)
|
|
49020
49154
|
return 0;
|
|
49021
|
-
const e2 =
|
|
49155
|
+
const e2 = b.current, t2 = e2.getBoundingClientRect().left;
|
|
49022
49156
|
let n2 = 0, r2 = 1 / 0;
|
|
49023
49157
|
for (let o3 = 0; o3 < e2.children.length; o3++) {
|
|
49024
49158
|
const i2 = e2.children[o3].getBoundingClientRect(), a3 = Math.abs(i2.left - t2);
|
|
@@ -49027,9 +49161,9 @@ var M = forwardRef(({ panels: o2, className: a2 = "", style: s2, theme: d2, minP
|
|
|
49027
49161
|
return n2;
|
|
49028
49162
|
} }));
|
|
49029
49163
|
useEffect(() => {
|
|
49030
|
-
if (!f2 || !
|
|
49164
|
+
if (!f2 || !b.current)
|
|
49031
49165
|
return;
|
|
49032
|
-
const e2 =
|
|
49166
|
+
const e2 = b.current, t2 = (e3) => {
|
|
49033
49167
|
const t3 = e3.target;
|
|
49034
49168
|
if (t3.tagName === "INPUT" || t3.tagName === "TEXTAREA" || t3.tagName === "SELECT" || t3.isContentEditable || t3.closest(".xterm") !== null || t3.closest('[contenteditable="true"]') !== null)
|
|
49035
49169
|
return;
|
|
@@ -49038,74 +49172,78 @@ var M = forwardRef(({ panels: o2, className: a2 = "", style: s2, theme: d2, minP
|
|
|
49038
49172
|
return e2.addEventListener("keydown", t2), () => {
|
|
49039
49173
|
e2.removeEventListener("keydown", t2);
|
|
49040
49174
|
};
|
|
49041
|
-
}, [f2])
|
|
49042
|
-
|
|
49043
|
-
|
|
49044
|
-
|
|
49045
|
-
|
|
49175
|
+
}, [f2]), useEffect(() => () => {
|
|
49176
|
+
w2.current && clearTimeout(w2.current);
|
|
49177
|
+
}, []);
|
|
49178
|
+
const S = o2.length, R2 = 2 * u2;
|
|
49179
|
+
let N;
|
|
49180
|
+
N = S === 1 || S === 2 ? "100%" : `max(${u2}px, ${100 * p2}%)`;
|
|
49181
|
+
const E = React2__default.useId().replace(/:/g, "_");
|
|
49046
49182
|
return jsxs(Fragment, { children: [
|
|
49047
|
-
|
|
49048
|
-
.snap-carousel-container[data-carousel-id="${
|
|
49183
|
+
S === 2 && /* @__PURE__ */ jsx("style", { children: `
|
|
49184
|
+
.snap-carousel-container[data-carousel-id="${E}"][data-panel-count="2"] .snap-carousel-panel {
|
|
49049
49185
|
width: 100%;
|
|
49050
49186
|
}
|
|
49051
|
-
@container (min-width: ${
|
|
49052
|
-
.snap-carousel-container[data-carousel-id="${
|
|
49187
|
+
@container (min-width: ${R2}px) {
|
|
49188
|
+
.snap-carousel-container[data-carousel-id="${E}"][data-panel-count="2"] .snap-carousel-panel {
|
|
49053
49189
|
width: 50%;
|
|
49054
49190
|
}
|
|
49055
49191
|
}
|
|
49056
49192
|
` }),
|
|
49057
|
-
/* @__PURE__ */ jsx("div", { ref:
|
|
49058
|
-
if (!m2 || !
|
|
49193
|
+
/* @__PURE__ */ jsx("div", { ref: b, className: `snap-carousel-container ${g ? "swipe-disabled" : ""} ${a2}`, style: { ...x2, ...s2, "--snap-carousel-min-width": `${u2}px`, "--snap-carousel-ideal-width": 100 * p2 + "%", "--snap-carousel-gap": h2 ? "1px" : "0px", "--snap-carousel-panel-width": N, "--snap-carousel-panel-count": S, "--snap-carousel-two-panel-threshold": `${R2}px` }, onScroll: (e2) => {
|
|
49194
|
+
if (!m2 || !b.current || b.current.children.length === 0)
|
|
49195
|
+
return;
|
|
49196
|
+
if (y2.current)
|
|
49059
49197
|
return;
|
|
49060
|
-
const t2 =
|
|
49198
|
+
const t2 = b.current, n2 = t2.getBoundingClientRect().left;
|
|
49061
49199
|
let r2 = 0, o3 = 1 / 0;
|
|
49062
49200
|
for (let i2 = 0; i2 < t2.children.length; i2++) {
|
|
49063
49201
|
const e3 = t2.children[i2].getBoundingClientRect(), a3 = Math.abs(e3.left - n2);
|
|
49064
49202
|
a3 < o3 && (o3 = a3, r2 = i2);
|
|
49065
49203
|
}
|
|
49066
49204
|
m2(r2);
|
|
49067
|
-
}, "data-panel-count":
|
|
49205
|
+
}, "data-panel-count": S, "data-carousel-id": E, children: o2.map((t2, n2) => /* @__PURE__ */ jsx("div", { className: "snap-carousel-panel", children: t2 }, n2)) })
|
|
49068
49206
|
] });
|
|
49069
49207
|
});
|
|
49070
|
-
|
|
49208
|
+
z.displayName = "SnapCarousel";
|
|
49209
|
+
var le;
|
|
49071
49210
|
var se;
|
|
49072
|
-
|
|
49073
|
-
|
|
49074
|
-
var ue = /* @__PURE__ */ Object.freeze({ x: 0, y: 0 });
|
|
49211
|
+
(se = le || (le = {})).DragStart = "dragStart", se.DragMove = "dragMove", se.DragEnd = "dragEnd", se.DragCancel = "dragCancel", se.DragOver = "dragOver", se.RegisterDroppable = "registerDroppable", se.SetDroppableDisabled = "setDroppableDisabled", se.UnregisterDroppable = "unregisterDroppable";
|
|
49212
|
+
var de = /* @__PURE__ */ Object.freeze({ x: 0, y: 0 });
|
|
49075
49213
|
var Te;
|
|
49076
|
-
var
|
|
49077
|
-
(
|
|
49214
|
+
var Ae;
|
|
49215
|
+
(Ae = Te || (Te = {}))[Ae.Forward = 1] = "Forward", Ae[Ae.Backward = -1] = "Backward";
|
|
49216
|
+
var _e;
|
|
49078
49217
|
var je;
|
|
49079
49218
|
var He;
|
|
49080
49219
|
var Ke;
|
|
49081
|
-
|
|
49082
|
-
(
|
|
49083
|
-
|
|
49220
|
+
(je = _e || (_e = {})).Click = "click", je.DragStart = "dragstart", je.Keydown = "keydown", je.ContextMenu = "contextmenu", je.Resize = "resize", je.SelectionChange = "selectionchange", je.VisibilityChange = "visibilitychange", (Ke = He || (He = {})).Space = "Space", Ke.Down = "ArrowDown", Ke.Right = "ArrowRight", Ke.Left = "ArrowLeft", Ke.Up = "ArrowUp", Ke.Esc = "Escape", Ke.Enter = "Enter", Ke.Tab = "Tab";
|
|
49221
|
+
({ start: [He.Space, He.Enter], cancel: [He.Esc], end: [He.Space, He.Enter, He.Tab] });
|
|
49222
|
+
var rt;
|
|
49084
49223
|
var ot;
|
|
49085
|
-
|
|
49086
|
-
|
|
49224
|
+
(ot = rt || (rt = {}))[ot.RightClick = 2] = "RightClick";
|
|
49225
|
+
var at;
|
|
49087
49226
|
var lt;
|
|
49088
49227
|
var st;
|
|
49089
49228
|
var ct;
|
|
49090
|
-
|
|
49091
|
-
(st = lt || (lt = {}))[st.Pointer = 0] = "Pointer", st[st.DraggableRect = 1] = "DraggableRect", (dt = ct || (ct = {}))[dt.TreeOrder = 0] = "TreeOrder", dt[dt.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
49229
|
+
(lt = at || (at = {}))[lt.Pointer = 0] = "Pointer", lt[lt.DraggableRect = 1] = "DraggableRect", (ct = st || (st = {}))[ct.TreeOrder = 0] = "TreeOrder", ct[ct.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
49092
49230
|
({ x: { [Te.Backward]: false, [Te.Forward]: false }, y: { [Te.Backward]: false, [Te.Forward]: false } });
|
|
49231
|
+
var pt;
|
|
49093
49232
|
var ht;
|
|
49094
49233
|
var mt;
|
|
49095
|
-
|
|
49096
|
-
(
|
|
49097
|
-
({
|
|
49098
|
-
|
|
49234
|
+
(ht = pt || (pt = {}))[ht.Always = 0] = "Always", ht[ht.BeforeDragging = 1] = "BeforeDragging", ht[ht.WhileDragging = 2] = "WhileDragging", (mt || (mt = {})).Optimized = "optimized";
|
|
49235
|
+
({ droppable: { strategy: pt.WhileDragging, frequency: mt.Optimized } });
|
|
49236
|
+
/* @__PURE__ */ createContext({ ...de, scaleX: 1, scaleY: 1 });
|
|
49237
|
+
var $t;
|
|
49099
49238
|
var Bt;
|
|
49100
|
-
|
|
49101
|
-
|
|
49102
|
-
var Vt;
|
|
49239
|
+
(Bt = $t || ($t = {}))[Bt.Uninitialized = 0] = "Uninitialized", Bt[Bt.Initializing = 1] = "Initializing", Bt[Bt.Initialized = 2] = "Initialized";
|
|
49240
|
+
var Ut;
|
|
49103
49241
|
(() => {
|
|
49104
49242
|
if (typeof window != "undefined") {
|
|
49105
49243
|
const e2 = window;
|
|
49106
49244
|
return e2.__principlemd_theme_context__ || (e2.__principlemd_theme_context__ = createContext(void 0)), e2.__principlemd_theme_context__;
|
|
49107
49245
|
}
|
|
49108
|
-
return
|
|
49246
|
+
return Ut || (Ut = createContext(void 0)), Ut;
|
|
49109
49247
|
})();
|
|
49110
49248
|
var DocumentView = ({
|
|
49111
49249
|
content: content2,
|
|
@@ -49237,11 +49375,17 @@ const GitHubIssueDetailPanelContent = ({ events }) => {
|
|
|
49237
49375
|
setRepo(event.payload.repo);
|
|
49238
49376
|
setTaskCreation({ status: "idle" });
|
|
49239
49377
|
};
|
|
49240
|
-
const
|
|
49378
|
+
const handleIssueDeselected = () => {
|
|
49379
|
+
setSelectedIssue(null);
|
|
49380
|
+
setOwner("");
|
|
49381
|
+
setRepo("");
|
|
49382
|
+
setTaskCreation({ status: "idle" });
|
|
49383
|
+
};
|
|
49384
|
+
const unsubscribeSelected = events.on("issue:selected", handleIssueSelected);
|
|
49385
|
+
const unsubscribeDeselected = events.on("issue:deselected", handleIssueDeselected);
|
|
49241
49386
|
return () => {
|
|
49242
|
-
if (typeof
|
|
49243
|
-
|
|
49244
|
-
}
|
|
49387
|
+
if (typeof unsubscribeSelected === "function") unsubscribeSelected();
|
|
49388
|
+
if (typeof unsubscribeDeselected === "function") unsubscribeDeselected();
|
|
49245
49389
|
};
|
|
49246
49390
|
}, [events]);
|
|
49247
49391
|
useEffect(() => {
|