@readme/markdown 6.75.0-beta.38 → 6.75.0-beta.39
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/enums.d.ts +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/main.js +3 -3
- package/dist/main.node.js +3 -3
- package/package.json +1 -1
package/dist/enums.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -4,9 +4,7 @@ import * as Components from './components';
|
|
|
4
4
|
import { GlossaryTerm } from './contexts/GlossaryTerms';
|
|
5
5
|
type ComponentOpts = Record<string, (props: any) => React.ReactNode>;
|
|
6
6
|
interface Variables {
|
|
7
|
-
user:
|
|
8
|
-
keys: string[];
|
|
9
|
-
};
|
|
7
|
+
user: Record<string, string>;
|
|
10
8
|
defaults: {
|
|
11
9
|
name: string;
|
|
12
10
|
default: string;
|
package/dist/main.js
CHANGED
|
@@ -61413,7 +61413,7 @@ var NodeTypes;
|
|
|
61413
61413
|
NodeTypes["i"] = "i";
|
|
61414
61414
|
NodeTypes["image"] = "image";
|
|
61415
61415
|
NodeTypes["htmlBlock"] = "html-block";
|
|
61416
|
-
NodeTypes["embed"] = "
|
|
61416
|
+
NodeTypes["embed"] = "embed";
|
|
61417
61417
|
NodeTypes["variable"] = "readme-variable";
|
|
61418
61418
|
NodeTypes["glossary"] = "readme-glossary-item";
|
|
61419
61419
|
NodeTypes["reusableContent"] = "reusable-content";
|
|
@@ -78770,7 +78770,7 @@ const compose = (children, ...contexts) => {
|
|
|
78770
78770
|
return external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(Context.Provider, { value: value }, content);
|
|
78771
78771
|
}, children);
|
|
78772
78772
|
};
|
|
78773
|
-
const Contexts = ({ children, terms = [], variables = { user: {
|
|
78773
|
+
const Contexts = ({ children, terms = [], variables = { user: {}, defaults: [] }, baseUrl = '/' }) => {
|
|
78774
78774
|
return compose(children, [GlossaryTerms, terms], [variable_.VariablesContext, variables], [BaseUrl, baseUrl]);
|
|
78775
78775
|
};
|
|
78776
78776
|
/* harmony default export */ const contexts = (Contexts);
|
|
@@ -78814,7 +78814,7 @@ const utils = {
|
|
|
78814
78814
|
calloutIcons: {},
|
|
78815
78815
|
};
|
|
78816
78816
|
const makeUseMDXComponents = (more) => {
|
|
78817
|
-
const components = Object.assign(Object.assign(Object.assign({}, more), components_namespaceObject), { Variable: (variable_default()), code: components_Code, 'code-tabs': components_CodeTabs, 'html-block': components_HTMLBlock, img: components_Image, table: components_Table });
|
|
78817
|
+
const components = Object.assign(Object.assign(Object.assign({}, more), components_namespaceObject), { Variable: (variable_default()), code: components_Code, 'code-tabs': components_CodeTabs, 'html-block': components_HTMLBlock, embed: components_Embed, img: components_Image, table: components_Table });
|
|
78818
78818
|
return () => components;
|
|
78819
78819
|
};
|
|
78820
78820
|
const remarkPlugins = [remarkFrontmatter, remarkGfm, ...transform];
|
package/dist/main.node.js
CHANGED
|
@@ -63553,7 +63553,7 @@ var NodeTypes;
|
|
|
63553
63553
|
NodeTypes["i"] = "i";
|
|
63554
63554
|
NodeTypes["image"] = "image";
|
|
63555
63555
|
NodeTypes["htmlBlock"] = "html-block";
|
|
63556
|
-
NodeTypes["embed"] = "
|
|
63556
|
+
NodeTypes["embed"] = "embed";
|
|
63557
63557
|
NodeTypes["variable"] = "readme-variable";
|
|
63558
63558
|
NodeTypes["glossary"] = "readme-glossary-item";
|
|
63559
63559
|
NodeTypes["reusableContent"] = "reusable-content";
|
|
@@ -80910,7 +80910,7 @@ const compose = (children, ...contexts) => {
|
|
|
80910
80910
|
return react.createElement(Context.Provider, { value: value }, content);
|
|
80911
80911
|
}, children);
|
|
80912
80912
|
};
|
|
80913
|
-
const Contexts = ({ children, terms = [], variables = { user: {
|
|
80913
|
+
const Contexts = ({ children, terms = [], variables = { user: {}, defaults: [] }, baseUrl = '/' }) => {
|
|
80914
80914
|
return compose(children, [GlossaryTerms, terms], [dist.VariablesContext, variables], [BaseUrl, baseUrl]);
|
|
80915
80915
|
};
|
|
80916
80916
|
/* harmony default export */ const contexts = (Contexts);
|
|
@@ -80954,7 +80954,7 @@ const utils = {
|
|
|
80954
80954
|
calloutIcons: {},
|
|
80955
80955
|
};
|
|
80956
80956
|
const makeUseMDXComponents = (more) => {
|
|
80957
|
-
const components = Object.assign(Object.assign(Object.assign({}, more), components_namespaceObject), { Variable: (dist_default()), code: components_Code, 'code-tabs': components_CodeTabs, 'html-block': components_HTMLBlock, img: components_Image, table: components_Table });
|
|
80957
|
+
const components = Object.assign(Object.assign(Object.assign({}, more), components_namespaceObject), { Variable: (dist_default()), code: components_Code, 'code-tabs': components_CodeTabs, 'html-block': components_HTMLBlock, embed: components_Embed, img: components_Image, table: components_Table });
|
|
80958
80958
|
return () => components;
|
|
80959
80959
|
};
|
|
80960
80960
|
const remarkPlugins = [remarkFrontmatter, remarkGfm, ...transform];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@readme/markdown",
|
|
3
3
|
"description": "ReadMe's React-based Markdown parser",
|
|
4
4
|
"author": "Rafe Goldberg <rafe@readme.io>",
|
|
5
|
-
"version": "6.75.0-beta.
|
|
5
|
+
"version": "6.75.0-beta.39",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "dist/main.js",
|