@industry-theme/markdown-panels 0.2.19 → 0.2.20

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.
@@ -42082,7 +42082,8 @@ var createIndustryMarkdownComponents = ({
42082
42082
  enableHtmlPopout,
42083
42083
  slideHeaderMarginTopOverride,
42084
42084
  index: index2,
42085
- repositoryInfo
42085
+ repositoryInfo,
42086
+ editable = false
42086
42087
  }) => {
42087
42088
  const getLuminance = (hex) => {
42088
42089
  const rgb = hex.replace("#", "").match(/.{2}/g);
@@ -42103,9 +42104,11 @@ var createIndustryMarkdownComponents = ({
42103
42104
  fontSize: theme2.fontSizes[5],
42104
42105
  lineHeight: theme2.lineHeights.heading,
42105
42106
  fontWeight: theme2.fontWeights.bold,
42106
- marginTop: index2 === 0 ? 0 : theme2.space[4],
42107
+ marginTop: theme2.space[4],
42107
42108
  marginBottom: theme2.space[4],
42108
42109
  fontFamily: theme2.fonts.heading,
42110
+ paddingBottom: theme2.space[2],
42111
+ borderBottom: `1px solid ${theme2.colors.border}`,
42109
42112
  ...headerStyles
42110
42113
  },
42111
42114
  ...props2
@@ -42116,9 +42119,11 @@ var createIndustryMarkdownComponents = ({
42116
42119
  fontSize: theme2.fontSizes[4],
42117
42120
  lineHeight: theme2.lineHeights.heading,
42118
42121
  fontWeight: theme2.fontWeights.bold,
42119
- marginTop: index2 === 0 ? 0 : theme2.space[4],
42122
+ marginTop: theme2.space[4],
42120
42123
  marginBottom: theme2.space[3],
42121
42124
  fontFamily: theme2.fonts.heading,
42125
+ paddingBottom: theme2.space[2],
42126
+ borderBottom: `1px solid ${theme2.colors.border}`,
42122
42127
  ...headerStyles
42123
42128
  },
42124
42129
  ...props2
@@ -42129,12 +42134,48 @@ var createIndustryMarkdownComponents = ({
42129
42134
  fontSize: theme2.fontSizes[3],
42130
42135
  lineHeight: theme2.lineHeights.heading,
42131
42136
  fontWeight: theme2.fontWeights.semibold,
42132
- marginTop: index2 === 0 ? 0 : theme2.space[4],
42137
+ marginTop: theme2.space[4],
42133
42138
  marginBottom: theme2.space[3],
42134
42139
  fontFamily: theme2.fonts.heading
42135
42140
  },
42136
42141
  ...props2
42137
42142
  }, children2),
42143
+ h4: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("h4", {
42144
+ style: {
42145
+ color: theme2.colors.text,
42146
+ fontSize: theme2.fontSizes[2],
42147
+ lineHeight: theme2.lineHeights.heading,
42148
+ fontWeight: theme2.fontWeights.semibold,
42149
+ marginTop: theme2.space[3],
42150
+ marginBottom: theme2.space[2],
42151
+ fontFamily: theme2.fonts.heading
42152
+ },
42153
+ ...props2
42154
+ }, children2),
42155
+ h5: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("h5", {
42156
+ style: {
42157
+ color: theme2.colors.text,
42158
+ fontSize: theme2.fontSizes[1],
42159
+ lineHeight: theme2.lineHeights.heading,
42160
+ fontWeight: theme2.fontWeights.semibold,
42161
+ marginTop: theme2.space[3],
42162
+ marginBottom: theme2.space[1],
42163
+ fontFamily: theme2.fonts.heading
42164
+ },
42165
+ ...props2
42166
+ }, children2),
42167
+ h6: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("h6", {
42168
+ style: {
42169
+ color: theme2.colors.text,
42170
+ fontSize: theme2.fontSizes[1],
42171
+ lineHeight: theme2.lineHeights.heading,
42172
+ fontWeight: theme2.fontWeights.medium,
42173
+ marginTop: theme2.space[3],
42174
+ marginBottom: theme2.space[1],
42175
+ fontFamily: theme2.fonts.heading
42176
+ },
42177
+ ...props2
42178
+ }, children2),
42138
42179
  p: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("p", {
42139
42180
  style: {
42140
42181
  color: theme2.colors.text,
@@ -42214,19 +42255,20 @@ var createIndustryMarkdownComponents = ({
42214
42255
  checked: isChecked,
42215
42256
  onChange: handleChange,
42216
42257
  onClick: (e) => e.stopPropagation(),
42258
+ disabled: !editable,
42217
42259
  style: {
42218
42260
  marginRight: theme2.space[2],
42219
42261
  marginTop: theme2.space[1],
42220
42262
  width: "16px",
42221
42263
  height: "16px",
42222
- cursor: "pointer"
42264
+ cursor: editable ? "pointer" : "default"
42223
42265
  },
42224
42266
  id
42225
42267
  }), /* @__PURE__ */ React2__default.createElement("label", {
42226
42268
  htmlFor: id,
42227
42269
  style: {
42228
42270
  flex: 1,
42229
- cursor: "pointer",
42271
+ cursor: editable ? "pointer" : "default",
42230
42272
  color: isChecked ? theme2.colors.textMuted : "inherit",
42231
42273
  lineHeight: theme2.lineHeights.relaxed
42232
42274
  }
@@ -42496,7 +42538,7 @@ var createIndustryMarkdownComponents = ({
42496
42538
  }), "Fill & Copy (", placeholders.length, ")"))), isPrompt ? /* @__PURE__ */ React2__default.createElement("div", {
42497
42539
  style: {
42498
42540
  margin: 0,
42499
- padding: theme2.space[5],
42541
+ padding: theme2.space[1],
42500
42542
  backgroundColor: "transparent",
42501
42543
  fontSize: theme2.fontSizes[1],
42502
42544
  lineHeight: theme2.lineHeights.body,
@@ -42523,7 +42565,7 @@ var createIndustryMarkdownComponents = ({
42523
42565
  })) : /* @__PURE__ */ React2__default.createElement("pre", {
42524
42566
  style: {
42525
42567
  margin: 0,
42526
- padding: theme2.space[4],
42568
+ padding: theme2.space[1],
42527
42569
  backgroundColor: "transparent",
42528
42570
  overflow: "auto",
42529
42571
  fontSize: theme2.fontSizes[1],
@@ -43308,7 +43350,8 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
43308
43350
  maxScreenWidth: _maxScreenWidth,
43309
43351
  enableKeyboardScrolling = true,
43310
43352
  keyboardScrollConfig,
43311
- repositoryInfo
43353
+ repositoryInfo,
43354
+ editable = false
43312
43355
  }) {
43313
43356
  const slideRef = useRef(null);
43314
43357
  const scrollPositionsRef = useRef(/* @__PURE__ */ new Map());
@@ -43664,7 +43707,8 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
43664
43707
  enableHtmlPopout,
43665
43708
  slideHeaderMarginTopOverride,
43666
43709
  index: chunkIndex,
43667
- repositoryInfo
43710
+ repositoryInfo,
43711
+ editable
43668
43712
  });
43669
43713
  if (searchQuery) {
43670
43714
  return {
@@ -43697,7 +43741,8 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
43697
43741
  enableHtmlPopout,
43698
43742
  slideHeaderMarginTopOverride,
43699
43743
  repositoryInfo,
43700
- searchQuery
43744
+ searchQuery,
43745
+ editable
43701
43746
  ]);
43702
43747
  return /* @__PURE__ */ React2__default.createElement("div", {
43703
43748
  className: "markdown-slide",
@@ -47508,7 +47553,8 @@ var DocumentView = ({
47508
47553
  repositoryInfo,
47509
47554
  fontSizeScale,
47510
47555
  theme: theme2,
47511
- transparentBackground = false
47556
+ transparentBackground = false,
47557
+ editable = false
47512
47558
  }) => {
47513
47559
  const containerRef = useRef(null);
47514
47560
  const backgroundColor = transparentBackground ? "transparent" : theme2.colors.background;
@@ -47540,7 +47586,8 @@ var DocumentView = ({
47540
47586
  fontSizeScale,
47541
47587
  handlePromptCopy,
47542
47588
  repositoryInfo,
47543
- transparentBackground
47589
+ transparentBackground,
47590
+ editable
47544
47591
  })));
47545
47592
  };
47546
47593
  function parseMarkdownIntoPresentation2(markdownContent, repositoryInfo) {