@industry-theme/file-editing-panels 0.3.2 → 0.3.4
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/{index-Drtxnn9s.js → index-3sndujMp.js} +2 -2
- package/dist/{index-Drtxnn9s.js.map → index-3sndujMp.js.map} +1 -1
- package/dist/{index-CqQlKqRu.js → index-BDLkWqU7.js} +2 -2
- package/dist/{index-CqQlKqRu.js.map → index-BDLkWqU7.js.map} +1 -1
- package/dist/{index-CQOKhwb9.js → index-BDQWM38w.js} +21 -149
- package/dist/index-BDQWM38w.js.map +1 -0
- package/dist/{index-CNXeCmLb.js → index-BOhvKcNK.js} +2 -2
- package/dist/{index-CNXeCmLb.js.map → index-BOhvKcNK.js.map} +1 -1
- package/dist/{index-Dl24Y3VL.js → index-BdDF_jFz.js} +2 -2
- package/dist/{index-Dl24Y3VL.js.map → index-BdDF_jFz.js.map} +1 -1
- package/dist/{index-BLlvq_ft.js → index-Bhb_i2hY.js} +2 -2
- package/dist/{index-BLlvq_ft.js.map → index-Bhb_i2hY.js.map} +1 -1
- package/dist/{index-CqZQ-PUD.js → index-CI9ziNIm.js} +2 -2
- package/dist/{index-CqZQ-PUD.js.map → index-CI9ziNIm.js.map} +1 -1
- package/dist/{index-ZqYfN_IN.js → index-CI_cvEs1.js} +2 -2
- package/dist/{index-ZqYfN_IN.js.map → index-CI_cvEs1.js.map} +1 -1
- package/dist/{index-C7Al8tEZ.js → index-CPFZNItk.js} +2 -2
- package/dist/{index-C7Al8tEZ.js.map → index-CPFZNItk.js.map} +1 -1
- package/dist/{index-u1O7N1Sr.js → index-CiRG4CgR.js} +2 -2
- package/dist/{index-u1O7N1Sr.js.map → index-CiRG4CgR.js.map} +1 -1
- package/dist/{index-BoycpPKR.js → index-D1ttamwy.js} +2 -2
- package/dist/{index-BoycpPKR.js.map → index-D1ttamwy.js.map} +1 -1
- package/dist/{index-DF3qt3tA.js → index-D8a2E5UL.js} +2 -2
- package/dist/{index-DF3qt3tA.js.map → index-D8a2E5UL.js.map} +1 -1
- package/dist/{index-CAm9nJVG.js → index-DEoRwe0c.js} +2 -2
- package/dist/{index-CAm9nJVG.js.map → index-DEoRwe0c.js.map} +1 -1
- package/dist/{index-DhkxfCYj.js → index-DQWOBAp9.js} +2 -2
- package/dist/{index-DhkxfCYj.js.map → index-DQWOBAp9.js.map} +1 -1
- package/dist/{index-CZy1L_dt.js → index-DlgU8XQH.js} +2 -2
- package/dist/{index-CZy1L_dt.js.map → index-DlgU8XQH.js.map} +1 -1
- package/dist/{index-Cy4FBIZD.js → index-XucLB8MV.js} +2 -2
- package/dist/{index-Cy4FBIZD.js.map → index-XucLB8MV.js.map} +1 -1
- package/dist/{index-BKWxu4oE.js → index-i29vZ2bf.js} +2 -2
- package/dist/{index-BKWxu4oE.js.map → index-i29vZ2bf.js.map} +1 -1
- package/dist/{index-D5hXtKMZ.js → index-qXkWt5AW.js} +2 -2
- package/dist/{index-D5hXtKMZ.js.map → index-qXkWt5AW.js.map} +1 -1
- package/dist/panels.bundle.js +13 -1
- package/package.json +4 -4
- package/dist/index-CQOKhwb9.js.map +0 -1
- package/dist/panels.bundle.css +0 -2280
|
@@ -20628,134 +20628,6 @@ const MDXEditor = React__default__default.forwardRef((props, ref) => {
|
|
|
20628
20628
|
/* @__PURE__ */ React__default__default.createElement(Methods$1, { mdxRef: ref })
|
|
20629
20629
|
);
|
|
20630
20630
|
});
|
|
20631
|
-
function themeToCSSVariables(theme2) {
|
|
20632
|
-
return {
|
|
20633
|
-
// Page and base backgrounds
|
|
20634
|
-
"--basePageBg": theme2.colors.background,
|
|
20635
|
-
"--baseBase": theme2.colors.background,
|
|
20636
|
-
"--baseBgSubtle": theme2.colors.backgroundSecondary,
|
|
20637
|
-
"--baseBg": theme2.colors.backgroundTertiary,
|
|
20638
|
-
"--baseBgHover": theme2.colors.backgroundHover,
|
|
20639
|
-
"--baseBgActive": theme2.colors.backgroundLight,
|
|
20640
|
-
// Borders and lines
|
|
20641
|
-
"--baseLine": theme2.colors.border,
|
|
20642
|
-
"--baseBorder": theme2.colors.border,
|
|
20643
|
-
"--baseBorderHover": theme2.colors.border,
|
|
20644
|
-
// Solid colors (non-transparent UI elements)
|
|
20645
|
-
"--baseSolid": theme2.colors.muted,
|
|
20646
|
-
"--baseSolidHover": theme2.colors.muted,
|
|
20647
|
-
// Text colors
|
|
20648
|
-
"--baseText": theme2.colors.text,
|
|
20649
|
-
"--baseTextContrast": theme2.colors.text,
|
|
20650
|
-
// Accent colors (primary interactive elements)
|
|
20651
|
-
"--accentBase": theme2.colors.primary,
|
|
20652
|
-
"--accentBgSubtle": theme2.colors.primary,
|
|
20653
|
-
"--accentBg": theme2.colors.primary,
|
|
20654
|
-
"--accentBgHover": theme2.colors.secondary,
|
|
20655
|
-
"--accentBgActive": theme2.colors.secondary,
|
|
20656
|
-
"--accentLine": theme2.colors.primary,
|
|
20657
|
-
"--accentBorder": theme2.colors.primary,
|
|
20658
|
-
"--accentBorderHover": theme2.colors.secondary,
|
|
20659
|
-
"--accentSolid": theme2.colors.primary,
|
|
20660
|
-
"--accentSolidHover": theme2.colors.secondary,
|
|
20661
|
-
"--accentText": theme2.colors.primary,
|
|
20662
|
-
"--accentTextContrast": theme2.colors.accent,
|
|
20663
|
-
// Status/admonition colors
|
|
20664
|
-
"--admonitionTipBg": theme2.colors.info,
|
|
20665
|
-
"--admonitionTipBorder": theme2.colors.info,
|
|
20666
|
-
"--admonitionInfoBg": theme2.colors.success,
|
|
20667
|
-
"--admonitionInfoBorder": theme2.colors.success,
|
|
20668
|
-
"--admonitionCautionBg": theme2.colors.warning,
|
|
20669
|
-
"--admonitionCautionBorder": theme2.colors.warning,
|
|
20670
|
-
"--admonitionDangerBg": theme2.colors.error,
|
|
20671
|
-
"--admonitionDangerBorder": theme2.colors.error,
|
|
20672
|
-
"--admonitionNoteBg": theme2.colors.muted,
|
|
20673
|
-
"--admonitionNoteBorder": theme2.colors.border,
|
|
20674
|
-
// Error color
|
|
20675
|
-
"--error-color": theme2.colors.error,
|
|
20676
|
-
// Typography
|
|
20677
|
-
"--font-mono": theme2.fonts.monospace,
|
|
20678
|
-
"--font-body": theme2.fonts.body,
|
|
20679
|
-
// Spacing (use theme's spacing scale)
|
|
20680
|
-
"--spacing-0": `${theme2.space[0]}px`,
|
|
20681
|
-
"--spacing-px": "1px",
|
|
20682
|
-
"--spacing-0_5": "0.125rem",
|
|
20683
|
-
"--spacing-1": `${theme2.space[1]}px`,
|
|
20684
|
-
"--spacing-1_5": "0.375rem",
|
|
20685
|
-
"--spacing-2": `${theme2.space[2]}px`,
|
|
20686
|
-
"--spacing-2_5": "0.625rem",
|
|
20687
|
-
"--spacing-3": `${theme2.space[3]}px`,
|
|
20688
|
-
"--spacing-3_5": "0.875rem",
|
|
20689
|
-
"--spacing-4": `${theme2.space[4]}px`,
|
|
20690
|
-
"--spacing-5": `${theme2.space[5]}px`,
|
|
20691
|
-
"--spacing-6": `${theme2.space[6]}px`,
|
|
20692
|
-
"--spacing-7": `${theme2.space[7]}px`,
|
|
20693
|
-
"--spacing-8": `${theme2.space[8]}px`,
|
|
20694
|
-
// Border radius (use theme's radii)
|
|
20695
|
-
"--radius-none": `${theme2.radii[0]}px`,
|
|
20696
|
-
"--radius-small": `${theme2.radii[1]}px`,
|
|
20697
|
-
"--radius-base": `${theme2.radii[2]}px`,
|
|
20698
|
-
"--radius-medium": `${theme2.radii[3]}px`,
|
|
20699
|
-
"--radius-large": `${theme2.radii[4]}px`,
|
|
20700
|
-
"--radius-extra-large": `${theme2.radii[5]}px`,
|
|
20701
|
-
// Font sizes (use theme's fontSizes with scaling)
|
|
20702
|
-
"--text-xxs": `${theme2.fontSizes[0]}px`,
|
|
20703
|
-
"--text-xs": `${theme2.fontSizes[1]}px`,
|
|
20704
|
-
"--text-sm": `${theme2.fontSizes[2]}px`,
|
|
20705
|
-
"--text-base": `${theme2.fontSizes[3]}px`
|
|
20706
|
-
};
|
|
20707
|
-
}
|
|
20708
|
-
function generateStyleId(theme2) {
|
|
20709
|
-
const colorStr = JSON.stringify(theme2.colors);
|
|
20710
|
-
let hash2 = 0;
|
|
20711
|
-
for (let i2 = 0; i2 < colorStr.length; i2++) {
|
|
20712
|
-
hash2 = (hash2 << 5) - hash2 + colorStr.charCodeAt(i2) | 0;
|
|
20713
|
-
}
|
|
20714
|
-
return `themed-mdxeditor-${Math.abs(hash2)}`;
|
|
20715
|
-
}
|
|
20716
|
-
const ThemedMDXEditorInner = React__default__default.forwardRef((props, ref) => {
|
|
20717
|
-
const { theme: theme2 } = useTheme();
|
|
20718
|
-
const cssVars = themeToCSSVariables(theme2);
|
|
20719
|
-
const styleId = React__default__default.useMemo(() => generateStyleId(theme2), [theme2]);
|
|
20720
|
-
React__default__default.useEffect(() => {
|
|
20721
|
-
const existingStyle = document.getElementById(styleId);
|
|
20722
|
-
if (existingStyle) {
|
|
20723
|
-
return;
|
|
20724
|
-
}
|
|
20725
|
-
const styleElement = document.createElement("style");
|
|
20726
|
-
styleElement.id = styleId;
|
|
20727
|
-
const cssRules = Object.entries(cssVars).map(([key, value2]) => ` ${key}: ${value2};`).join("\n");
|
|
20728
|
-
styleElement.textContent = `
|
|
20729
|
-
.themed-mdxeditor.mdxeditor {
|
|
20730
|
-
${cssRules}
|
|
20731
|
-
}
|
|
20732
|
-
`;
|
|
20733
|
-
document.head.appendChild(styleElement);
|
|
20734
|
-
return () => {
|
|
20735
|
-
const style = document.getElementById(styleId);
|
|
20736
|
-
if (style) {
|
|
20737
|
-
style.remove();
|
|
20738
|
-
}
|
|
20739
|
-
};
|
|
20740
|
-
}, [cssVars, styleId]);
|
|
20741
|
-
const className = props.className ? `${props.className} themed-mdxeditor` : "themed-mdxeditor";
|
|
20742
|
-
return /* @__PURE__ */ React__default__default.createElement(MDXEditor, { ...props, ref, className });
|
|
20743
|
-
});
|
|
20744
|
-
ThemedMDXEditorInner.displayName = "ThemedMDXEditorInner";
|
|
20745
|
-
const ThemedMDXEditor = React__default__default.forwardRef(
|
|
20746
|
-
(props, ref) => {
|
|
20747
|
-
try {
|
|
20748
|
-
const { theme: contextTheme } = useTheme();
|
|
20749
|
-
if (contextTheme) {
|
|
20750
|
-
return /* @__PURE__ */ React__default__default.createElement(ThemedMDXEditorInner, { ...props, ref });
|
|
20751
|
-
}
|
|
20752
|
-
} catch {
|
|
20753
|
-
}
|
|
20754
|
-
const className = props.className ? `${props.className} dark-editor` : "dark-editor";
|
|
20755
|
-
return /* @__PURE__ */ React__default__default.createElement(MDXEditor, { ...props, ref, className });
|
|
20756
|
-
}
|
|
20757
|
-
);
|
|
20758
|
-
ThemedMDXEditor.displayName = "ThemedMDXEditor";
|
|
20759
20631
|
const CAN_USE_DOM = typeof window !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
20760
20632
|
const IS_APPLE = CAN_USE_DOM && (() => {
|
|
20761
20633
|
var _a2;
|
|
@@ -62622,7 +62494,7 @@ function legacy(parser2) {
|
|
|
62622
62494
|
return new LanguageSupport(StreamLanguage.define(parser2));
|
|
62623
62495
|
}
|
|
62624
62496
|
function sql(dialectName) {
|
|
62625
|
-
return import("./index-
|
|
62497
|
+
return import("./index-CI9ziNIm.js").then((m3) => m3.sql({ dialect: m3[dialectName] }));
|
|
62626
62498
|
}
|
|
62627
62499
|
const languages = [
|
|
62628
62500
|
// New-style language modes
|
|
@@ -62630,7 +62502,7 @@ const languages = [
|
|
|
62630
62502
|
name: "C",
|
|
62631
62503
|
extensions: ["c", "h", "ino"],
|
|
62632
62504
|
load() {
|
|
62633
|
-
return import("./index-
|
|
62505
|
+
return import("./index-CPFZNItk.js").then((m3) => m3.cpp());
|
|
62634
62506
|
}
|
|
62635
62507
|
}),
|
|
62636
62508
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -62638,7 +62510,7 @@ const languages = [
|
|
|
62638
62510
|
alias: ["cpp"],
|
|
62639
62511
|
extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
|
|
62640
62512
|
load() {
|
|
62641
|
-
return import("./index-
|
|
62513
|
+
return import("./index-CPFZNItk.js").then((m3) => m3.cpp());
|
|
62642
62514
|
}
|
|
62643
62515
|
}),
|
|
62644
62516
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -62660,7 +62532,7 @@ const languages = [
|
|
|
62660
62532
|
name: "Go",
|
|
62661
62533
|
extensions: ["go"],
|
|
62662
62534
|
load() {
|
|
62663
|
-
return import("./index-
|
|
62535
|
+
return import("./index-CI_cvEs1.js").then((m3) => m3.go());
|
|
62664
62536
|
}
|
|
62665
62537
|
}),
|
|
62666
62538
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -62675,7 +62547,7 @@ const languages = [
|
|
|
62675
62547
|
name: "Java",
|
|
62676
62548
|
extensions: ["java"],
|
|
62677
62549
|
load() {
|
|
62678
|
-
return import("./index-
|
|
62550
|
+
return import("./index-3sndujMp.js").then((m3) => m3.java());
|
|
62679
62551
|
}
|
|
62680
62552
|
}),
|
|
62681
62553
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -62690,7 +62562,7 @@ const languages = [
|
|
|
62690
62562
|
name: "Jinja",
|
|
62691
62563
|
extensions: ["j2", "jinja", "jinja2"],
|
|
62692
62564
|
load() {
|
|
62693
|
-
return import("./index-
|
|
62565
|
+
return import("./index-i29vZ2bf.js").then((m3) => m3.jinja());
|
|
62694
62566
|
}
|
|
62695
62567
|
}),
|
|
62696
62568
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -62698,7 +62570,7 @@ const languages = [
|
|
|
62698
62570
|
alias: ["json5"],
|
|
62699
62571
|
extensions: ["json", "map"],
|
|
62700
62572
|
load() {
|
|
62701
|
-
return import("./index-
|
|
62573
|
+
return import("./index-DEoRwe0c.js").then((m3) => m3.json());
|
|
62702
62574
|
}
|
|
62703
62575
|
}),
|
|
62704
62576
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -62712,14 +62584,14 @@ const languages = [
|
|
|
62712
62584
|
name: "LESS",
|
|
62713
62585
|
extensions: ["less"],
|
|
62714
62586
|
load() {
|
|
62715
|
-
return import("./index-
|
|
62587
|
+
return import("./index-BOhvKcNK.js").then((m3) => m3.less());
|
|
62716
62588
|
}
|
|
62717
62589
|
}),
|
|
62718
62590
|
/* @__PURE__ */ LanguageDescription.of({
|
|
62719
62591
|
name: "Liquid",
|
|
62720
62592
|
extensions: ["liquid"],
|
|
62721
62593
|
load() {
|
|
62722
|
-
return import("./index-
|
|
62594
|
+
return import("./index-Bhb_i2hY.js").then((m3) => m3.liquid());
|
|
62723
62595
|
}
|
|
62724
62596
|
}),
|
|
62725
62597
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -62751,7 +62623,7 @@ const languages = [
|
|
|
62751
62623
|
name: "PHP",
|
|
62752
62624
|
extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
|
|
62753
62625
|
load() {
|
|
62754
|
-
return import("./index-
|
|
62626
|
+
return import("./index-DQWOBAp9.js").then((m3) => m3.php());
|
|
62755
62627
|
}
|
|
62756
62628
|
}),
|
|
62757
62629
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -62772,28 +62644,28 @@ const languages = [
|
|
|
62772
62644
|
extensions: ["BUILD", "bzl", "py", "pyw"],
|
|
62773
62645
|
filename: /^(BUCK|BUILD)$/,
|
|
62774
62646
|
load() {
|
|
62775
|
-
return import("./index-
|
|
62647
|
+
return import("./index-XucLB8MV.js").then((m3) => m3.python());
|
|
62776
62648
|
}
|
|
62777
62649
|
}),
|
|
62778
62650
|
/* @__PURE__ */ LanguageDescription.of({
|
|
62779
62651
|
name: "Rust",
|
|
62780
62652
|
extensions: ["rs"],
|
|
62781
62653
|
load() {
|
|
62782
|
-
return import("./index-
|
|
62654
|
+
return import("./index-D1ttamwy.js").then((m3) => m3.rust());
|
|
62783
62655
|
}
|
|
62784
62656
|
}),
|
|
62785
62657
|
/* @__PURE__ */ LanguageDescription.of({
|
|
62786
62658
|
name: "Sass",
|
|
62787
62659
|
extensions: ["sass"],
|
|
62788
62660
|
load() {
|
|
62789
|
-
return import("./index-
|
|
62661
|
+
return import("./index-qXkWt5AW.js").then((m3) => m3.sass({ indented: true }));
|
|
62790
62662
|
}
|
|
62791
62663
|
}),
|
|
62792
62664
|
/* @__PURE__ */ LanguageDescription.of({
|
|
62793
62665
|
name: "SCSS",
|
|
62794
62666
|
extensions: ["scss"],
|
|
62795
62667
|
load() {
|
|
62796
|
-
return import("./index-
|
|
62668
|
+
return import("./index-qXkWt5AW.js").then((m3) => m3.sass());
|
|
62797
62669
|
}
|
|
62798
62670
|
}),
|
|
62799
62671
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -62828,7 +62700,7 @@ const languages = [
|
|
|
62828
62700
|
name: "WebAssembly",
|
|
62829
62701
|
extensions: ["wat", "wast"],
|
|
62830
62702
|
load() {
|
|
62831
|
-
return import("./index-
|
|
62703
|
+
return import("./index-BDLkWqU7.js").then((m3) => m3.wast());
|
|
62832
62704
|
}
|
|
62833
62705
|
}),
|
|
62834
62706
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -62836,7 +62708,7 @@ const languages = [
|
|
|
62836
62708
|
alias: ["rss", "wsdl", "xsd"],
|
|
62837
62709
|
extensions: ["xml", "xsl", "xsd", "svg"],
|
|
62838
62710
|
load() {
|
|
62839
|
-
return import("./index-
|
|
62711
|
+
return import("./index-DlgU8XQH.js").then((m3) => m3.xml());
|
|
62840
62712
|
}
|
|
62841
62713
|
}),
|
|
62842
62714
|
/* @__PURE__ */ LanguageDescription.of({
|
|
@@ -62844,7 +62716,7 @@ const languages = [
|
|
|
62844
62716
|
alias: ["yml"],
|
|
62845
62717
|
extensions: ["yaml", "yml"],
|
|
62846
62718
|
load() {
|
|
62847
|
-
return import("./index-
|
|
62719
|
+
return import("./index-CiRG4CgR.js").then((m3) => m3.yaml());
|
|
62848
62720
|
}
|
|
62849
62721
|
}),
|
|
62850
62722
|
// Legacy modes ported from CodeMirror 5
|
|
@@ -63633,13 +63505,13 @@ const languages = [
|
|
|
63633
63505
|
name: "Vue",
|
|
63634
63506
|
extensions: ["vue"],
|
|
63635
63507
|
load() {
|
|
63636
|
-
return import("./index-
|
|
63508
|
+
return import("./index-BdDF_jFz.js").then((m3) => m3.vue());
|
|
63637
63509
|
}
|
|
63638
63510
|
}),
|
|
63639
63511
|
/* @__PURE__ */ LanguageDescription.of({
|
|
63640
63512
|
name: "Angular Template",
|
|
63641
63513
|
load() {
|
|
63642
|
-
return import("./index-
|
|
63514
|
+
return import("./index-D8a2E5UL.js").then((m3) => m3.angular());
|
|
63643
63515
|
}
|
|
63644
63516
|
})
|
|
63645
63517
|
];
|
|
@@ -75964,7 +75836,7 @@ const MDXEditorPanelContent = ({
|
|
|
75964
75836
|
width: "100%"
|
|
75965
75837
|
},
|
|
75966
75838
|
children: /* @__PURE__ */ jsx$1(
|
|
75967
|
-
|
|
75839
|
+
MDXEditor,
|
|
75968
75840
|
{
|
|
75969
75841
|
markdown: safeMarkdown,
|
|
75970
75842
|
onChange: handleChange,
|
|
@@ -76287,4 +76159,4 @@ export {
|
|
|
76287
76159
|
onPackageUnload as y,
|
|
76288
76160
|
fileEditingPanelTools as z
|
|
76289
76161
|
};
|
|
76290
|
-
//# sourceMappingURL=index-
|
|
76162
|
+
//# sourceMappingURL=index-BDQWM38w.js.map
|