@podlite/formula 0.0.50 → 0.0.52

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/CHANGELOG.podlite CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  =head1 Upcoming
4
4
 
5
+ =head1 0.0.52
6
+
7
+ =item the package can be imported from Node directly. The emitted ESM referenced its own files without an extension, which the ESM loader refuses
8
+
9
+
5
10
  =head1 0.0.30
6
11
 
7
12
  =item add C<exports> map (with C<./default.css> subpath), top-level C<types>, and C<sideEffects: ["**/*.css"]> to package manifest
package/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { getSafeNodeId, makeAttrs } from '@podlite/schema';
3
- import { Tex2ChtmlWithProvider } from './MathJax';
4
- export { MathJaxProvider } from './MathJax';
3
+ import { Tex2ChtmlWithProvider } from './MathJax.js';
4
+ export { MathJaxProvider } from './MathJax.js';
5
5
  const Formula = ({ formula, isInline = false, caption, id, }) => {
6
6
  const element = (React.createElement(React.Fragment, null,
7
7
  React.createElement(Tex2ChtmlWithProvider, { className: `${isInline ? 'f-code' : 'formula'}`, latex: formula, inline: isInline }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@podlite/formula",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "description": "Render LaTeX math formulas in Podlite documents — MathJax-powered",
5
5
  "main": "./lib/index.js",
6
6
  "sideEffects": [
@@ -64,7 +64,7 @@
64
64
  "access": "public"
65
65
  },
66
66
  "dependencies": {
67
- "@podlite/schema": "0.0.68",
67
+ "@podlite/schema": "0.0.70",
68
68
  "react-is": "^18.0.0"
69
69
  },
70
70
  "peerDependencies": {