@industry-theme/git-panels 0.1.18 → 0.1.19
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitCommitDetailPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/GitCommitDetailPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,oBAAoB,EAA+B,MAAM,wBAAwB,CAAC;AAI3F,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,oBAAoB,CAO3C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,oBAAoB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"GitCommitDetailPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/GitCommitDetailPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,oBAAoB,EAA+B,MAAM,wBAAwB,CAAC;AAI3F,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,oBAAoB,CAO3C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAmMnD;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAM5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitPullRequestDetailPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestDetailPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,yBAAyB,EAAoC,MAAM,6BAA6B,CAAC;AAI1G,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,yBAAyB,CAOhD,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,yBAAyB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"GitPullRequestDetailPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestDetailPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,yBAAyB,EAAoC,MAAM,6BAA6B,CAAC;AAI1G,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,yBAAyB,CAOhD,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,yBAAyB,CAAC,CAAC;AA2JxD;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -41124,7 +41124,8 @@ var createIndustryMarkdownComponents = ({
|
|
|
41124
41124
|
enableHtmlPopout,
|
|
41125
41125
|
slideHeaderMarginTopOverride,
|
|
41126
41126
|
index: index2,
|
|
41127
|
-
repositoryInfo
|
|
41127
|
+
repositoryInfo,
|
|
41128
|
+
editable = false
|
|
41128
41129
|
}) => {
|
|
41129
41130
|
const getLuminance = (hex) => {
|
|
41130
41131
|
const rgb = hex.replace("#", "").match(/.{2}/g);
|
|
@@ -41145,9 +41146,11 @@ var createIndustryMarkdownComponents = ({
|
|
|
41145
41146
|
fontSize: theme2.fontSizes[5],
|
|
41146
41147
|
lineHeight: theme2.lineHeights.heading,
|
|
41147
41148
|
fontWeight: theme2.fontWeights.bold,
|
|
41148
|
-
marginTop:
|
|
41149
|
+
marginTop: theme2.space[4],
|
|
41149
41150
|
marginBottom: theme2.space[4],
|
|
41150
41151
|
fontFamily: theme2.fonts.heading,
|
|
41152
|
+
paddingBottom: theme2.space[2],
|
|
41153
|
+
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
41151
41154
|
...headerStyles
|
|
41152
41155
|
},
|
|
41153
41156
|
...props
|
|
@@ -41158,9 +41161,11 @@ var createIndustryMarkdownComponents = ({
|
|
|
41158
41161
|
fontSize: theme2.fontSizes[4],
|
|
41159
41162
|
lineHeight: theme2.lineHeights.heading,
|
|
41160
41163
|
fontWeight: theme2.fontWeights.bold,
|
|
41161
|
-
marginTop:
|
|
41164
|
+
marginTop: theme2.space[4],
|
|
41162
41165
|
marginBottom: theme2.space[3],
|
|
41163
41166
|
fontFamily: theme2.fonts.heading,
|
|
41167
|
+
paddingBottom: theme2.space[2],
|
|
41168
|
+
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
41164
41169
|
...headerStyles
|
|
41165
41170
|
},
|
|
41166
41171
|
...props
|
|
@@ -41171,12 +41176,48 @@ var createIndustryMarkdownComponents = ({
|
|
|
41171
41176
|
fontSize: theme2.fontSizes[3],
|
|
41172
41177
|
lineHeight: theme2.lineHeights.heading,
|
|
41173
41178
|
fontWeight: theme2.fontWeights.semibold,
|
|
41174
|
-
marginTop:
|
|
41179
|
+
marginTop: theme2.space[4],
|
|
41175
41180
|
marginBottom: theme2.space[3],
|
|
41176
41181
|
fontFamily: theme2.fonts.heading
|
|
41177
41182
|
},
|
|
41178
41183
|
...props
|
|
41179
41184
|
}, children2),
|
|
41185
|
+
h4: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h4", {
|
|
41186
|
+
style: {
|
|
41187
|
+
color: theme2.colors.text,
|
|
41188
|
+
fontSize: theme2.fontSizes[2],
|
|
41189
|
+
lineHeight: theme2.lineHeights.heading,
|
|
41190
|
+
fontWeight: theme2.fontWeights.semibold,
|
|
41191
|
+
marginTop: theme2.space[3],
|
|
41192
|
+
marginBottom: theme2.space[2],
|
|
41193
|
+
fontFamily: theme2.fonts.heading
|
|
41194
|
+
},
|
|
41195
|
+
...props
|
|
41196
|
+
}, children2),
|
|
41197
|
+
h5: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h5", {
|
|
41198
|
+
style: {
|
|
41199
|
+
color: theme2.colors.text,
|
|
41200
|
+
fontSize: theme2.fontSizes[1],
|
|
41201
|
+
lineHeight: theme2.lineHeights.heading,
|
|
41202
|
+
fontWeight: theme2.fontWeights.semibold,
|
|
41203
|
+
marginTop: theme2.space[3],
|
|
41204
|
+
marginBottom: theme2.space[1],
|
|
41205
|
+
fontFamily: theme2.fonts.heading
|
|
41206
|
+
},
|
|
41207
|
+
...props
|
|
41208
|
+
}, children2),
|
|
41209
|
+
h6: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h6", {
|
|
41210
|
+
style: {
|
|
41211
|
+
color: theme2.colors.text,
|
|
41212
|
+
fontSize: theme2.fontSizes[1],
|
|
41213
|
+
lineHeight: theme2.lineHeights.heading,
|
|
41214
|
+
fontWeight: theme2.fontWeights.medium,
|
|
41215
|
+
marginTop: theme2.space[3],
|
|
41216
|
+
marginBottom: theme2.space[1],
|
|
41217
|
+
fontFamily: theme2.fonts.heading
|
|
41218
|
+
},
|
|
41219
|
+
...props
|
|
41220
|
+
}, children2),
|
|
41180
41221
|
p: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("p", {
|
|
41181
41222
|
style: {
|
|
41182
41223
|
color: theme2.colors.text,
|
|
@@ -41256,19 +41297,20 @@ var createIndustryMarkdownComponents = ({
|
|
|
41256
41297
|
checked: isChecked,
|
|
41257
41298
|
onChange: handleChange,
|
|
41258
41299
|
onClick: (e) => e.stopPropagation(),
|
|
41300
|
+
disabled: !editable,
|
|
41259
41301
|
style: {
|
|
41260
41302
|
marginRight: theme2.space[2],
|
|
41261
41303
|
marginTop: theme2.space[1],
|
|
41262
41304
|
width: "16px",
|
|
41263
41305
|
height: "16px",
|
|
41264
|
-
cursor: "pointer"
|
|
41306
|
+
cursor: editable ? "pointer" : "default"
|
|
41265
41307
|
},
|
|
41266
41308
|
id
|
|
41267
41309
|
}), /* @__PURE__ */ React2__default.createElement("label", {
|
|
41268
41310
|
htmlFor: id,
|
|
41269
41311
|
style: {
|
|
41270
41312
|
flex: 1,
|
|
41271
|
-
cursor: "pointer",
|
|
41313
|
+
cursor: editable ? "pointer" : "default",
|
|
41272
41314
|
color: isChecked ? theme2.colors.textMuted : "inherit",
|
|
41273
41315
|
lineHeight: theme2.lineHeights.relaxed
|
|
41274
41316
|
}
|
|
@@ -41538,7 +41580,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
41538
41580
|
}), "Fill & Copy (", placeholders.length, ")"))), isPrompt ? /* @__PURE__ */ React2__default.createElement("div", {
|
|
41539
41581
|
style: {
|
|
41540
41582
|
margin: 0,
|
|
41541
|
-
padding: theme2.space[
|
|
41583
|
+
padding: theme2.space[1],
|
|
41542
41584
|
backgroundColor: "transparent",
|
|
41543
41585
|
fontSize: theme2.fontSizes[1],
|
|
41544
41586
|
lineHeight: theme2.lineHeights.body,
|
|
@@ -41565,7 +41607,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
41565
41607
|
})) : /* @__PURE__ */ React2__default.createElement("pre", {
|
|
41566
41608
|
style: {
|
|
41567
41609
|
margin: 0,
|
|
41568
|
-
padding: theme2.space[
|
|
41610
|
+
padding: theme2.space[1],
|
|
41569
41611
|
backgroundColor: "transparent",
|
|
41570
41612
|
overflow: "auto",
|
|
41571
41613
|
fontSize: theme2.fontSizes[1],
|
|
@@ -42350,7 +42392,8 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
|
|
|
42350
42392
|
maxScreenWidth: _maxScreenWidth,
|
|
42351
42393
|
enableKeyboardScrolling = true,
|
|
42352
42394
|
keyboardScrollConfig,
|
|
42353
|
-
repositoryInfo
|
|
42395
|
+
repositoryInfo,
|
|
42396
|
+
editable = false
|
|
42354
42397
|
}) {
|
|
42355
42398
|
const slideRef = useRef(null);
|
|
42356
42399
|
const scrollPositionsRef = useRef(/* @__PURE__ */ new Map());
|
|
@@ -42706,7 +42749,8 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
|
|
|
42706
42749
|
enableHtmlPopout,
|
|
42707
42750
|
slideHeaderMarginTopOverride,
|
|
42708
42751
|
index: chunkIndex,
|
|
42709
|
-
repositoryInfo
|
|
42752
|
+
repositoryInfo,
|
|
42753
|
+
editable
|
|
42710
42754
|
});
|
|
42711
42755
|
if (searchQuery) {
|
|
42712
42756
|
return {
|
|
@@ -42739,7 +42783,8 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
|
|
|
42739
42783
|
enableHtmlPopout,
|
|
42740
42784
|
slideHeaderMarginTopOverride,
|
|
42741
42785
|
repositoryInfo,
|
|
42742
|
-
searchQuery
|
|
42786
|
+
searchQuery,
|
|
42787
|
+
editable
|
|
42743
42788
|
]);
|
|
42744
42789
|
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
42745
42790
|
className: "markdown-slide",
|
|
@@ -44524,7 +44569,8 @@ var DocumentView = ({
|
|
|
44524
44569
|
repositoryInfo,
|
|
44525
44570
|
fontSizeScale,
|
|
44526
44571
|
theme: theme2,
|
|
44527
|
-
transparentBackground = false
|
|
44572
|
+
transparentBackground = false,
|
|
44573
|
+
editable = false
|
|
44528
44574
|
}) => {
|
|
44529
44575
|
const containerRef = useRef(null);
|
|
44530
44576
|
const backgroundColor = transparentBackground ? "transparent" : theme2.colors.background;
|
|
@@ -44556,7 +44602,8 @@ var DocumentView = ({
|
|
|
44556
44602
|
fontSizeScale,
|
|
44557
44603
|
handlePromptCopy,
|
|
44558
44604
|
repositoryInfo,
|
|
44559
|
-
transparentBackground
|
|
44605
|
+
transparentBackground,
|
|
44606
|
+
editable
|
|
44560
44607
|
})));
|
|
44561
44608
|
};
|
|
44562
44609
|
const GitCommitDetailPanelContent = ({
|