timvir 0.2.24 → 0.2.26

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.
@@ -1,6 +1,3 @@
1
- /**
2
- * This is documentation for the Code component.
3
- */
4
1
  import * as React from "react";
5
2
  /**
6
3
  * The underlying DOM element which is rendered by this component.
@@ -36,11 +36,6 @@ var cx_default = cx;
36
36
 
37
37
  var theme = "tac6gx6";
38
38
 
39
- /**
40
- * This is documentation for the Code component.
41
- */
42
-
43
-
44
39
  /**
45
40
  * The underlying DOM element which is rendered by this component.
46
41
  */
@@ -9,5 +9,5 @@ import { WebLink } from "..";
9
9
  <WebLink url="https://twitter.com" style={{ marginBottom: 16 }} />
10
10
  <WebLink url="https://figma.com" style={{ marginBottom: 16 }} />
11
11
  <WebLink url="https://www.framer.com/motion/" style={{ marginBottom: 16 }} />
12
- <WebLink url="https://formatjs.io" style={{ marginBottom: 16 }} />
12
+ <WebLink url="https://formatjs.github.io" style={{ marginBottom: 16 }} />
13
13
  <WebLink url="https://www.typescriptlang.org" style={{ marginBottom: 16 }} />
package/core/index.js CHANGED
@@ -242,7 +242,7 @@ function Commands(props) {
242
242
  if (!draft.dialog) {
243
243
  const containerElement = document.createElement("div");
244
244
  document.body.appendChild(containerElement);
245
- const reactPortal = /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement("div", {
245
+ const reactPortal = /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/React.createElement("div", {
246
246
  className: classes$4.root,
247
247
  onClick: ev => {
248
248
  if (ev.target === ev.currentTarget) {
@@ -258,7 +258,7 @@ function Commands(props) {
258
258
  reactPortal
259
259
  });
260
260
  } else {
261
- const reactPortal = /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement("div", {
261
+ const reactPortal = /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/React.createElement("div", {
262
262
  className: classes$4.root,
263
263
  onClick: ev => {
264
264
  if (ev.target === ev.currentTarget) {
@@ -277,7 +277,7 @@ function Commands(props) {
277
277
  mutate(draft => {
278
278
  draft.open = false;
279
279
  if (draft.dialog) {
280
- const reactPortal = /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement("div", {
280
+ const reactPortal = /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/React.createElement("div", {
281
281
  className: classes$4.root
282
282
  }, /*#__PURE__*/React.createElement(Dialog, {
283
283
  onDispose: () => {
@@ -522,17 +522,17 @@ const h1 = /*#__PURE__*/styled_default('h1')({
522
522
  class: "h6ceq1b",
523
523
  propsAsIs: false
524
524
  });
525
- const h2 = Heading( /*#__PURE__*/styled_default('h2')({
525
+ const h2 = Heading(/*#__PURE__*/styled_default('h2')({
526
526
  name: "h2",
527
527
  class: "hj6166y",
528
528
  propsAsIs: false
529
529
  }));
530
- const h3 = Heading( /*#__PURE__*/styled_default('h3')({
530
+ const h3 = Heading(/*#__PURE__*/styled_default('h3')({
531
531
  name: "h3",
532
532
  class: "h1f8mqks",
533
533
  propsAsIs: false
534
534
  }));
535
- const h4 = Heading( /*#__PURE__*/styled_default('h4')({
535
+ const h4 = Heading(/*#__PURE__*/styled_default('h4')({
536
536
  name: "h4",
537
537
  class: "h1hmga4",
538
538
  propsAsIs: false
@@ -768,7 +768,7 @@ function Sidebar(props) {
768
768
  }, node !== null && node !== void 0 && node.icon ? /*#__PURE__*/React.cloneElement(node.icon, {
769
769
  className: "c15ju3pv"
770
770
  }) : null, /*#__PURE__*/React.createElement("span", null, (node === null || node === void 0 ? void 0 : node.label) ?? "Menu"), /*#__PURE__*/React.createElement(Icons.Menu, {
771
- size: `1rem`,
771
+ size: 16,
772
772
  className: "s2bwnbz"
773
773
  })), /*#__PURE__*/React.createElement("input", {
774
774
  type: "checkbox",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "timvir",
4
- "version": "0.2.24",
4
+ "version": "0.2.26",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
7
7
  "exports": {
@@ -21,13 +21,13 @@
21
21
  "immer": "^9 || ^10",
22
22
  "shiki": "^1",
23
23
  "react-feather": "^2",
24
- "use-immer": "^0.8.0 || ^0.8.1 || ^0.9.0 || ^0.10.0",
24
+ "use-immer": "^0.11.0",
25
25
  "wonka": "^6"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@mdx-js/react": "^2 || ^3",
29
- "react": "^17 || ^18",
30
- "react-dom": "^17 || ^18",
29
+ "react": "^17 || ^18 || ^19",
30
+ "react-dom": "^17 || ^18 || ^19",
31
31
  "react-hotkeys-hook": "^4"
32
32
  },
33
33
  "repository": {