@patternfly/quickstarts 2.2.4 → 2.3.0
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/README.md +4 -4
- package/dist/controller/QuickStartTaskHeader.d.ts +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/patternfly-docs/quick-starts/design-guidelines/design-guidelines.md +4 -4
- package/dist/patternfly-docs/quick-starts/examples/about.md +8 -8
- package/dist/quickstarts-full.es.js +3 -3
- package/dist/quickstarts-full.es.js.map +1 -1
- package/package.json +1 -1
- package/src/ConsoleShared/src/components/markdown-extensions/admonition-extension.tsx +1 -1
- package/src/ConsoleShared/src/components/markdown-extensions/inline-clipboard-extension.tsx +1 -1
- package/src/HelpTopicPanelContent.tsx +1 -1
- package/src/controller/QuickStartTaskHeader.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -1275,7 +1275,7 @@ const useInlineCopyClipboardShowdownExtension = () => {
|
|
|
1275
1275
|
const { getResource } = React__namespace.useContext(QuickStartContext);
|
|
1276
1276
|
return React__namespace.useMemo(() => ({
|
|
1277
1277
|
type: 'lang',
|
|
1278
|
-
regex:
|
|
1278
|
+
regex: /```[\n]\s*((((?!```).)*?\n)+)\s*```{{copy}}/g,
|
|
1279
1279
|
replace: (text, group, subGroup, groupType, groupId) => {
|
|
1280
1280
|
if (!group || !subGroup || !groupType || !groupId) {
|
|
1281
1281
|
return text;
|
|
@@ -1343,7 +1343,7 @@ const useAdmonitionShowdownExtension = () => {
|
|
|
1343
1343
|
// const { getResource } = React.useContext<QuickStartContextValues>(QuickStartContext);
|
|
1344
1344
|
return React__namespace.useMemo(() => ({
|
|
1345
1345
|
type: 'lang',
|
|
1346
|
-
regex: /\[(
|
|
1346
|
+
regex: /\[(.+)]{{(admonition) ([\w-]+)}}/g,
|
|
1347
1347
|
replace: (text, content, admonitionLabel, admonitionType, groupId) => {
|
|
1348
1348
|
if (!content || !admonitionLabel || !admonitionType || !groupId) {
|
|
1349
1349
|
return text;
|
|
@@ -2413,7 +2413,7 @@ const HelpTopicPanelContent = (_a) => {
|
|
|
2413
2413
|
const paddingContainer = (children) => React__namespace.createElement("div", { style: { padding: '24px' } }, children);
|
|
2414
2414
|
const panelBodyItems = (React__namespace.createElement(React__namespace.Fragment, null,
|
|
2415
2415
|
paddingContainer(React__namespace.createElement(QuickStartMarkdownView, { content: activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.content })),
|
|
2416
|
-
((_b = activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.links) === null || _b === void 0 ? void 0 : _b.length) && React__namespace.createElement(reactCore.Divider, null),
|
|
2416
|
+
!!((_b = activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.links) === null || _b === void 0 ? void 0 : _b.length) && React__namespace.createElement(reactCore.Divider, null),
|
|
2417
2417
|
paddingContainer(React__namespace.createElement(reactCore.Stack, { hasGutter: true }, (_c = activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.links) === null || _c === void 0 ? void 0 : _c.map(({ href, text, newTab, isExternal }, index) => {
|
|
2418
2418
|
return (React__namespace.createElement(reactCore.StackItem, { key: index },
|
|
2419
2419
|
React__namespace.createElement(reactCore.Button, { component: "a", href: href, target: newTab ? '_blank' : '', rel: "noopener noreferrer", variant: "link", "aria-label": `Open documentation in new window`, isInline: true, icon: isExternal ? React__namespace.createElement(ExternalLinkAltIcon__default['default'], null) : null, iconPosition: "right", style: { fontSize: 'inherit' } }, text || href)));
|