@canopy-iiif/app 1.2.6 → 1.2.8
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/lib/build/mdx.js +19 -2
- package/package.json +1 -1
- package/ui/dist/server.mjs +2 -2
- package/ui/dist/server.mjs.map +1 -1
- package/ui/styles/base/_markdown.scss +6 -0
- package/ui/styles/index.css +6 -0
package/lib/build/mdx.js
CHANGED
|
@@ -1148,8 +1148,13 @@ function createReactShimPlugin() {
|
|
|
1148
1148
|
const ReactDOM = (typeof window !== 'undefined' && window.ReactDOM) || {};
|
|
1149
1149
|
export default ReactDOM;
|
|
1150
1150
|
export const render = ReactDOM.render;
|
|
1151
|
-
export const
|
|
1151
|
+
export const hydrate = ReactDOM.hydrate;
|
|
1152
1152
|
export const findDOMNode = ReactDOM.findDOMNode;
|
|
1153
|
+
export const unmountComponentAtNode = ReactDOM.unmountComponentAtNode;
|
|
1154
|
+
export const createPortal = ReactDOM.createPortal;
|
|
1155
|
+
export const flushSync = ReactDOM.flushSync;
|
|
1156
|
+
export const unstable_batchedUpdates = ReactDOM.unstable_batchedUpdates;
|
|
1157
|
+
export const unstable_renderSubtreeIntoContainer = ReactDOM.unstable_renderSubtreeIntoContainer;
|
|
1153
1158
|
`;
|
|
1154
1159
|
const rdomClientShim = `
|
|
1155
1160
|
const RDC = (typeof window !== 'undefined' && window.ReactDOMClient) || {};
|
|
@@ -1682,6 +1687,18 @@ async function ensureTimelineRuntime() {
|
|
|
1682
1687
|
export const useReducer = React.useReducer;
|
|
1683
1688
|
export const useId = React.useId;
|
|
1684
1689
|
`;
|
|
1690
|
+
const rdomShim = `
|
|
1691
|
+
const ReactDOM = (typeof window !== 'undefined' && window.ReactDOM) || {};
|
|
1692
|
+
export default ReactDOM;
|
|
1693
|
+
export const render = ReactDOM.render;
|
|
1694
|
+
export const hydrate = ReactDOM.hydrate;
|
|
1695
|
+
export const findDOMNode = ReactDOM.findDOMNode;
|
|
1696
|
+
export const unmountComponentAtNode = ReactDOM.unmountComponentAtNode;
|
|
1697
|
+
export const createPortal = ReactDOM.createPortal;
|
|
1698
|
+
export const flushSync = ReactDOM.flushSync;
|
|
1699
|
+
export const unstable_batchedUpdates = ReactDOM.unstable_batchedUpdates;
|
|
1700
|
+
export const unstable_renderSubtreeIntoContainer = ReactDOM.unstable_renderSubtreeIntoContainer;
|
|
1701
|
+
`;
|
|
1685
1702
|
const rdomClientShim = `
|
|
1686
1703
|
const RDC = (typeof window !== 'undefined' && window.ReactDOMClient) || {};
|
|
1687
1704
|
export const createRoot = RDC.createRoot;
|
|
@@ -1702,7 +1719,7 @@ async function ensureTimelineRuntime() {
|
|
|
1702
1719
|
loader: "js",
|
|
1703
1720
|
}));
|
|
1704
1721
|
build.onLoad({filter: /^react-dom$/, namespace: ns}, () => ({
|
|
1705
|
-
contents:
|
|
1722
|
+
contents: rdomShim,
|
|
1706
1723
|
loader: "js",
|
|
1707
1724
|
}));
|
|
1708
1725
|
build.onLoad({filter: /^react-dom-client$/, namespace: ns}, () => ({
|
package/package.json
CHANGED
package/ui/dist/server.mjs
CHANGED
|
@@ -3617,7 +3617,7 @@ function DocsCodeBlock(props = {}) {
|
|
|
3617
3617
|
margin: "1.5rem 0",
|
|
3618
3618
|
background: "var(--color-accent-100)",
|
|
3619
3619
|
fontFamily: "var(--font-mono)",
|
|
3620
|
-
fontSize: "0.
|
|
3620
|
+
fontSize: "0.8333rem"
|
|
3621
3621
|
};
|
|
3622
3622
|
const headerStyle = {
|
|
3623
3623
|
display: "flex",
|
|
@@ -3632,7 +3632,7 @@ function DocsCodeBlock(props = {}) {
|
|
|
3632
3632
|
const preStyle = {
|
|
3633
3633
|
margin: 0,
|
|
3634
3634
|
background: "var(--color-accent-100)",
|
|
3635
|
-
color: "var(--color-accent-
|
|
3635
|
+
color: "var(--color-accent-700)",
|
|
3636
3636
|
lineHeight: 1.55,
|
|
3637
3637
|
padding: "1rem 0",
|
|
3638
3638
|
overflowX: "auto"
|