@readme/markdown 7.10.0 → 7.10.2
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/components/Columns/index.tsx +4 -2
- package/components/Columns/style.scss +6 -0
- package/components/Image/index.tsx +1 -1
- package/dist/components/Columns/index.d.ts +1 -2
- package/dist/lib/migrate.d.ts +3 -1
- package/dist/main.css +1 -1
- package/dist/main.js +22 -30
- package/dist/main.node.js +422 -5473
- package/dist/processor/migration/index.d.ts +2 -1
- package/dist/processor/migration/table-cell.d.ts +1 -1
- package/package.json +2 -2
- package/dist/10.node.js +0 -22721
- package/dist/11.node.js +0 -1443
- package/dist/120.node.js +0 -22
- package/dist/134.node.js +0 -22
- package/dist/150.node.js +0 -1891
- package/dist/17.node.js +0 -1376
- package/dist/246.node.js +0 -1932
- package/dist/351.node.js +0 -2403
- package/dist/366.node.js +0 -1184
- package/dist/403.node.js +0 -2195
- package/dist/429.node.js +0 -11133
- package/dist/485.node.js +0 -517
- package/dist/486.node.js +0 -31818
- package/dist/488.node.js +0 -58
- package/dist/489.node.js +0 -18475
- package/dist/510.node.js +0 -249
- package/dist/52.node.js +0 -811
- package/dist/550.node.js +0 -1456
- package/dist/551.node.js +0 -2725
- package/dist/617.node.js +0 -22
- package/dist/687.node.js +0 -3674
- package/dist/745.node.js +0 -7507
- package/dist/775.node.js +0 -1903
- package/dist/786.node.js +0 -31381
- package/dist/788.node.js +0 -1024
- package/dist/81.node.js +0 -385
- package/dist/849.node.js +0 -2589
- package/dist/863.node.js +0 -22
- package/dist/867.node.js +0 -1417
- package/dist/881.node.js +0 -1279
- package/dist/885.node.js +0 -51
- package/dist/896.node.js +0 -1616
- package/dist/906.node.js +0 -1818
- package/dist/91.node.js +0 -22
- package/dist/940.node.js +0 -3362
- package/dist/952.node.js +0 -246
- package/dist/995.node.js +0 -5737
|
@@ -8,10 +8,12 @@ export const Column = ({ children }) => {
|
|
|
8
8
|
)
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
const Columns = ({ children,
|
|
11
|
+
const Columns = ({ children, layout = 'auto'}) => {
|
|
12
12
|
layout = layout === 'fixed' ? '1fr' : 'auto';
|
|
13
|
+
const columnsCount = React.Children.count(children);
|
|
14
|
+
|
|
13
15
|
return (
|
|
14
|
-
<div className="Columns" style={{ gridTemplateColumns: `repeat(${
|
|
16
|
+
<div className="Columns" style={{ gridTemplateColumns: `repeat(${columnsCount}, ${layout})` }}>
|
|
15
17
|
{children}
|
|
16
18
|
</div>
|
|
17
19
|
);
|
|
@@ -3,9 +3,8 @@ import './style.scss';
|
|
|
3
3
|
export declare const Column: ({ children }: {
|
|
4
4
|
children: any;
|
|
5
5
|
}) => React.JSX.Element;
|
|
6
|
-
declare const Columns: ({ children,
|
|
6
|
+
declare const Columns: ({ children, layout }: {
|
|
7
7
|
children: any;
|
|
8
|
-
columns?: number;
|
|
9
8
|
layout?: string;
|
|
10
9
|
}) => React.JSX.Element;
|
|
11
10
|
export default Columns;
|
package/dist/lib/migrate.d.ts
CHANGED
package/dist/main.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.Accordion{background:rgba(var(--color-bg-page-rgb, white), 1);border:1px solid var(--color-border-default, rgba(0, 0, 0, 0.1));border-radius:5px}.Accordion-title{align-items:center;background:rgba(var(--color-bg-page-rgb, white), 1);border:0;border-radius:5px;color:var(--color-text-default, #384248);cursor:pointer;display:flex;font-size:16px;font-weight:500;padding:10px;position:relative;text-align:left;width:100%}.Accordion-title:hover{background:var(--color-bg-hover, rgba(0, 0, 0, 0.05))}.Accordion[open] .Accordion-title{border-bottom-left-radius:0;border-bottom-right-radius:0}.Accordion-title::marker{content:""}.Accordion-title::-webkit-details-marker{display:none}.Accordion-toggleIcon,.Accordion-toggleIcon_opened{color:var(--color-text-minimum, #637288);font-size:14px;margin-left:5px;margin-right:10px;transition:transform .1s}.Accordion-toggleIcon_opened,.Accordion-toggleIcon_opened_opened{transform:rotate(90deg)}.Accordion-icon{color:var(--project-color-primary, inherit);margin-right:10px}.Accordion-content{color:var(--color-text-muted, #4f5a66);padding:5px 15px 0 15px}
|
|
2
2
|
.CardsGrid{display:grid;gap:20px}.CardsGrid .Card{padding:15px;padding-bottom:0;backdrop-filter:blur(20px);background:rgba(var(--color-bg-page-rgb, white), 1);border:1px solid var(--color-border-default, rgba(0, 0, 0, 0.1));border-radius:5px;box-shadow:0 1px 2px rgba(0, 0, 0, 0.05),0 2px 5px rgba(0, 0, 0, 0.02)}.CardsGrid .Card-top{display:inline-flex;flex-direction:row}.CardsGrid .Card-icon{color:var(--project-color-primary, inherit);font-size:20px}.CardsGrid .Card-title{color:var(--color-text-default, #384248);font-weight:600;margin-top:10px}.CardsGrid .Card-title:first-child{margin-top:0}.CardsGrid .Card-content{color:var(--color-text-muted, #4f5a66)}.CardsGrid a.Card:not([href=""]){text-decoration:none;color:inherit}.CardsGrid a.Card:not([href=""]):hover{background:var(--color-bg-hover, rgba(0, 0, 0, 0.05))}
|
|
3
|
-
.Columns{display:grid;gap:var(--md, 20px)}
|
|
3
|
+
.Columns{display:grid;gap:var(--md, 20px)}@media(max-width: 414px){.Columns{grid-template-columns:1fr !important}}
|
|
4
4
|
.TabGroup-nav{border-bottom:solid var(--color-border-default, rgba(0, 0, 0, 0.1));margin-bottom:15px}.TabGroup-tab{background:none;border:0;color:var(--color-text-minimum, #637288);cursor:pointer;font-size:15px;font-weight:600;margin-right:15px;padding:0;padding-bottom:10px}.TabGroup-tab_active{background:none;border:0;border-bottom:solid var(--project-color-primary, var(--color-text-default, #384248));color:var(--project-color-primary, var(--color-text-default, #384248));font-size:15px;font-weight:600;margin-right:15px;margin-bottom:-2px;padding:0;padding-bottom:10px}.TabGroup-tab:hover{color:var(--color-text-muted, #4f5a66)}.TabGroup-icon{color:var(--project-color-primary, inherit);margin-right:10px}.TabGroup .TabContent{color:var(--color-text-muted, #4f5a66)}
|
|
5
5
|
/* BASICS */
|
|
6
6
|
|
package/dist/main.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(require("@readme/
|
|
3
|
+
module.exports = factory(require("@readme/variable"), require("@tippyjs/react"), require("mermaid"), require("react"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["@readme/
|
|
5
|
+
define(["@readme/variable", "@tippyjs/react", "mermaid", "react"], factory);
|
|
6
6
|
else {
|
|
7
|
-
var a = typeof exports === 'object' ? factory(require("@readme/
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("@readme/variable"), require("@tippyjs/react"), require("mermaid"), require("react")) : factory(root["@readme/variable"], root["@tippyjs/react"], root["mermaid"], root["React"]);
|
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
9
|
}
|
|
10
|
-
})(self, (
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE__8167__, __WEBPACK_EXTERNAL_MODULE__6570__, __WEBPACK_EXTERNAL_MODULE__1387__, __WEBPACK_EXTERNAL_MODULE__1307__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -13163,14 +13163,6 @@ module.exports = function () {
|
|
|
13163
13163
|
};
|
|
13164
13164
|
|
|
13165
13165
|
|
|
13166
|
-
/***/ }),
|
|
13167
|
-
|
|
13168
|
-
/***/ 7374:
|
|
13169
|
-
/***/ ((module) => {
|
|
13170
|
-
|
|
13171
|
-
"use strict";
|
|
13172
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__7374__;
|
|
13173
|
-
|
|
13174
13166
|
/***/ }),
|
|
13175
13167
|
|
|
13176
13168
|
/***/ 8167:
|
|
@@ -13707,9 +13699,10 @@ const CodeTabs = props => {
|
|
|
13707
13699
|
const Column = ({ children }) => {
|
|
13708
13700
|
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "Column" }, children));
|
|
13709
13701
|
};
|
|
13710
|
-
const Columns = ({ children,
|
|
13702
|
+
const Columns = ({ children, layout = 'auto' }) => {
|
|
13711
13703
|
layout = layout === 'fixed' ? '1fr' : 'auto';
|
|
13712
|
-
|
|
13704
|
+
const columnsCount = external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().Children.count(children);
|
|
13705
|
+
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "Columns", style: { gridTemplateColumns: `repeat(${columnsCount}, ${layout})` } }, children));
|
|
13713
13706
|
};
|
|
13714
13707
|
/* harmony default export */ const components_Columns = (Columns);
|
|
13715
13708
|
|
|
@@ -13895,7 +13888,7 @@ const Image = (Props) => {
|
|
|
13895
13888
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("img", { src: src, width: width, height: height, title: title, className: `img img-align-center ${border ? 'border' : ''}`, alt: alt, loading: lazy ? 'lazy' : 'eager' }),
|
|
13896
13889
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("figcaption", null, children || caption)))));
|
|
13897
13890
|
}
|
|
13898
|
-
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("span", { "aria-label":
|
|
13891
|
+
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("span", { "aria-label": `${lightbox ? 'Collapse image' : 'Expand image'}`, className: `img lightbox ${lightbox ? 'open' : 'closed'}`, onClick: toggle, onKeyDown: handleKeyDown, role: 'button', tabIndex: 0 },
|
|
13899
13892
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("span", { className: "lightbox-inner" },
|
|
13900
13893
|
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("img", { src: src, width: width, height: height, title: title, className: `img ${align ? `img-align-${align}` : ''} ${border ? 'border' : ''}`, alt: alt, loading: lazy ? 'lazy' : 'eager' }))));
|
|
13901
13894
|
};
|
|
@@ -78558,8 +78551,6 @@ const hast = (text, opts = {}) => {
|
|
|
78558
78551
|
};
|
|
78559
78552
|
/* harmony default export */ const lib_hast = (hast);
|
|
78560
78553
|
|
|
78561
|
-
// EXTERNAL MODULE: external "@readme/markdown-legacy"
|
|
78562
|
-
var markdown_legacy_ = __webpack_require__(7374);
|
|
78563
78554
|
;// ./processor/migration/emphasis.ts
|
|
78564
78555
|
|
|
78565
78556
|
const emphasis_strongTest = (node) => ['emphasis', 'strong'].includes(node.type);
|
|
@@ -78645,7 +78636,6 @@ const linkReferenceTransformer = () => (tree) => {
|
|
|
78645
78636
|
|
|
78646
78637
|
;// ./processor/migration/table-cell.ts
|
|
78647
78638
|
|
|
78648
|
-
|
|
78649
78639
|
const magicIndex = (i, j) => `${i === 0 ? 'h' : `${i - 1}`}-${j}`;
|
|
78650
78640
|
const isInlineHtml = node => node.type === 'html' && !node.block;
|
|
78651
78641
|
// @note: This regex is detect malformed lists that were created by the
|
|
@@ -78670,7 +78660,7 @@ const isInlineHtml = node => node.type === 'html' && !node.block;
|
|
|
78670
78660
|
// The following regex attempts to detect this pattern, and we'll convert it to
|
|
78671
78661
|
// something more standard.
|
|
78672
78662
|
const psuedoListRegex = /^(?![ \t]*([*_]+).*\1[ \t]*$)(?<ws>[ \t]*)\\?([*_])\s*(?<item>.*)$/gm;
|
|
78673
|
-
const migrateTableCells = (vfile) => (table) => {
|
|
78663
|
+
const migrateTableCells = (vfile, rdmd) => (table) => {
|
|
78674
78664
|
let json;
|
|
78675
78665
|
try {
|
|
78676
78666
|
const { position } = table;
|
|
@@ -78695,7 +78685,7 @@ const migrateTableCells = (vfile) => (table) => {
|
|
|
78695
78685
|
let children = cell.children;
|
|
78696
78686
|
if (json && json.data[magicIndex(i, j)]) {
|
|
78697
78687
|
const string = json.data[magicIndex(i, j)].replace(psuedoListRegex, '$<ws>- $<item>');
|
|
78698
|
-
children =
|
|
78688
|
+
children = rdmd.mdast(string).children;
|
|
78699
78689
|
}
|
|
78700
78690
|
cell.children =
|
|
78701
78691
|
children.length > 1 && !children.some(isInlineHtml)
|
|
@@ -78712,10 +78702,13 @@ const migrateTableCells = (vfile) => (table) => {
|
|
|
78712
78702
|
}
|
|
78713
78703
|
});
|
|
78714
78704
|
};
|
|
78715
|
-
|
|
78716
|
-
|
|
78717
|
-
return tree
|
|
78718
|
-
|
|
78705
|
+
function tableCellTransformer() {
|
|
78706
|
+
const rdmd = this.data('rdmd');
|
|
78707
|
+
return (tree, vfile) => {
|
|
78708
|
+
visit(tree, 'table', migrateTableCells(vfile, rdmd));
|
|
78709
|
+
return tree;
|
|
78710
|
+
};
|
|
78711
|
+
}
|
|
78719
78712
|
/* harmony default export */ const table_cell = (tableCellTransformer);
|
|
78720
78713
|
|
|
78721
78714
|
;// ./processor/migration/index.ts
|
|
@@ -78733,14 +78726,13 @@ const transformers = [
|
|
|
78733
78726
|
|
|
78734
78727
|
;// ./lib/mdastV6.ts
|
|
78735
78728
|
|
|
78736
|
-
|
|
78737
78729
|
const migrationNormalize = (doc) => {
|
|
78738
78730
|
return doc.replaceAll(/^(<!--.*?)\\-->$/gms, '$1-->');
|
|
78739
78731
|
};
|
|
78740
|
-
const mdastV6 = (doc) => {
|
|
78741
|
-
const [_normalizedDoc] =
|
|
78732
|
+
const mdastV6 = (doc, { rdmd }) => {
|
|
78733
|
+
const [_normalizedDoc] = rdmd.setup(doc);
|
|
78742
78734
|
const normalizedDoc = migrationNormalize(_normalizedDoc);
|
|
78743
|
-
const proc =
|
|
78735
|
+
const proc = rdmd.processor().use(migration).data('rdmd', rdmd);
|
|
78744
78736
|
const tree = proc.parse(normalizedDoc);
|
|
78745
78737
|
proc.runSync(tree, normalizedDoc);
|
|
78746
78738
|
return tree;
|
|
@@ -83663,8 +83655,8 @@ const tags = (doc) => {
|
|
|
83663
83655
|
;// ./lib/migrate.ts
|
|
83664
83656
|
|
|
83665
83657
|
|
|
83666
|
-
const migrate = (doc) => {
|
|
83667
|
-
return lib_mdx(lib_mdastV6(doc)).replaceAll(/ /g, ' ');
|
|
83658
|
+
const migrate = (doc, { rdmd }) => {
|
|
83659
|
+
return lib_mdx(lib_mdastV6(doc, { rdmd })).replaceAll(/ /g, ' ');
|
|
83668
83660
|
};
|
|
83669
83661
|
/* harmony default export */ const lib_migrate = (migrate);
|
|
83670
83662
|
|