hyperbook 0.17.3 → 0.19.0

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,6 @@
1
1
  {
2
2
  "name": "@platforms/web",
3
- "version": "0.17.3",
3
+ "version": "0.19.0",
4
4
  "private": true,
5
5
  "dependencies": {
6
6
  "gray-matter": "4.0.3",
@@ -10,15 +10,17 @@
10
10
  "react-redux": "8.1.0",
11
11
  "redux": "4.2.1",
12
12
  "redux-persist": "6.0.0",
13
+ "@hyperbook/element-audio": "0.1.0",
13
14
  "@hyperbook/element-alert": "0.1.13",
14
15
  "@hyperbook/element-bitflow": "0.1.14",
15
16
  "@hyperbook/element-bookmarks": "0.2.8",
16
17
  "@hyperbook/element-collapsible": "0.3.4",
17
18
  "@hyperbook/element-dl": "0.1.14",
18
- "@hyperbook/element-embed": "0.1.3",
19
+ "@hyperbook/element-embed": "0.1.4",
19
20
  "@hyperbook/element-excalidraw": "0.4.4",
20
21
  "@hyperbook/element-mermaid": "0.1.13",
21
22
  "@hyperbook/element-online-ide": "0.3.2",
23
+ "@hyperbook/element-plantuml": "0.1.0",
22
24
  "@hyperbook/element-protect": "0.3.4",
23
25
  "@hyperbook/element-qr": "0.1.14",
24
26
  "@hyperbook/element-scratchblock": "0.1.4",
@@ -1 +1 @@
1
- import"../index.css";import"@hyperbook/shell/index.css";import"@hyperbook/markdown/katex.css";import"@hyperbook/markdown/index.css";import{Provider as N}from"@hyperbook/provider";import O from"@hyperbook/element-tabs";import"@hyperbook/element-tabs/index.css";import b from"@hyperbook/element-alert";import"@hyperbook/element-alert/index.css";import T from"@hyperbook/element-term";import"@hyperbook/element-term/index.css";import h from"@hyperbook/element-youtube";import"@hyperbook/element-youtube/index.css";import w from"@hyperbook/element-protect";import"@hyperbook/element-protect/index.css";import x from"@hyperbook/element-collapsible";import"@hyperbook/element-collapsible/index.css";import A from"@hyperbook/element-dl";import"@hyperbook/element-dl/index.css";import D from"@hyperbook/element-bookmarks";import"@hyperbook/element-bookmarks/index.css";import I from"@hyperbook/element-struktog";import"@hyperbook/element-struktog/index.css";import M from"@hyperbook/element-qr";import"@hyperbook/element-qr/index.css";import U from"@hyperbook/element-mermaid";import"@hyperbook/element-mermaid/index.css";import B from"@hyperbook/element-excalidraw";import"@hyperbook/element-excalidraw/index.css";import C from"@hyperbook/element-embed";import"@hyperbook/element-embed/index.css";import F from"@hyperbook/element-online-ide";import"@hyperbook/element-online-ide/index.css";import H from"@hyperbook/element-sql-ide";import"@hyperbook/element-sql-ide/index.css";import V from"@hyperbook/element-bitflow";import"@hyperbook/element-bitflow/index.css";import W from"@hyperbook/element-scratchblock";import"@hyperbook/element-scratchblock/index.css";import _ from"next/link";import j from"next/head";import{Styles as J}from"@hyperbook/styles";import{localStorage as Q}from"@hyperbook/store";import{useRouter as R}from"next/router";import{useEffect as Y}from"react";import z from"../../hyperbook.json";const G=({ref:E,href:e,children:S,...P})=><_ href={e}{...P}>{S}</_>,K=({basePath:E})=>e=>(process.env.NODE_ENV==="production"&&E&&e.startsWith("/")&&(E.endsWith("/")?e=E.slice(0,-1)+e:e=E+e),e);function X({Component:E,pageProps:e}){const S=R();return Y(()=>{document.documentElement.lang=e.locale},[e.locale]),<N Link={G}Head={j}config={z}makeUrl={K}env={process.env.NODE_ENV==="production"?"production":"development"}elements={[O,b,T,h,x,w,A,C,D,I,F,H,M,U,B,W,V]}router={S}storage={Q}loadFile={()=>async P=>fetch(P).then(g=>g.text())}saveFile={()=>async(P,g,L)=>{await fetch("/api/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:P,content:g,rootFolder:L})})}}getActivePageId={async()=>S.asPath.split("#")?.[0]||"/"}><J/><E{...e}/></N>}export{X as default};
1
+ import"../index.css";import"@hyperbook/shell/index.css";import"@hyperbook/markdown/katex.css";import"@hyperbook/markdown/index.css";import{Provider as N}from"@hyperbook/provider";import O from"@hyperbook/element-tabs";import"@hyperbook/element-tabs/index.css";import b from"@hyperbook/element-audio";import"@hyperbook/element-audio/index.css";import A from"@hyperbook/element-alert";import"@hyperbook/element-alert/index.css";import T from"@hyperbook/element-term";import"@hyperbook/element-term/index.css";import h from"@hyperbook/element-youtube";import"@hyperbook/element-youtube/index.css";import w from"@hyperbook/element-plantuml";import"@hyperbook/element-plantuml/index.css";import x from"@hyperbook/element-protect";import"@hyperbook/element-protect/index.css";import D from"@hyperbook/element-collapsible";import"@hyperbook/element-collapsible/index.css";import I from"@hyperbook/element-dl";import"@hyperbook/element-dl/index.css";import M from"@hyperbook/element-bookmarks";import"@hyperbook/element-bookmarks/index.css";import U from"@hyperbook/element-struktog";import"@hyperbook/element-struktog/index.css";import B from"@hyperbook/element-qr";import"@hyperbook/element-qr/index.css";import C from"@hyperbook/element-mermaid";import"@hyperbook/element-mermaid/index.css";import F from"@hyperbook/element-excalidraw";import"@hyperbook/element-excalidraw/index.css";import H from"@hyperbook/element-embed";import"@hyperbook/element-embed/index.css";import V from"@hyperbook/element-online-ide";import"@hyperbook/element-online-ide/index.css";import W from"@hyperbook/element-sql-ide";import"@hyperbook/element-sql-ide/index.css";import _ from"@hyperbook/element-bitflow";import"@hyperbook/element-bitflow/index.css";import j from"@hyperbook/element-scratchblock";import"@hyperbook/element-scratchblock/index.css";import J from"next/link";import Q from"next/head";import{Styles as R}from"@hyperbook/styles";import{localStorage as Y}from"@hyperbook/store";import{useRouter as z}from"next/router";import{useEffect as G}from"react";import K from"../../hyperbook.json";const X=({ref:E,href:e,children:S,...P})=><J href={e}{...P}>{S}</J>,Z=({basePath:E})=>e=>(process.env.NODE_ENV==="production"&&E&&e.startsWith("/")&&(E.endsWith("/")?e=E.slice(0,-1)+e:e=E+e),e);function $({Component:E,pageProps:e}){const S=z();return G(()=>{document.documentElement.lang=e.locale},[e.locale]),<N Link={X}Head={Q}config={K}makeUrl={Z}env={process.env.NODE_ENV==="production"?"production":"development"}elements={[O,b,A,T,h,D,w,x,I,H,M,U,V,W,B,C,F,j,_]}router={S}storage={Y}loadFile={()=>async P=>fetch(P).then(g=>g.text())}saveFile={()=>async(P,g,L)=>{await fetch("/api/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:P,content:g,rootFolder:L})})}}getActivePageId={async()=>S.asPath.split("#")?.[0]||"/"}><R/><E{...e}/></N>}export{$ as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperbook",
3
- "version": "0.17.3",
3
+ "version": "0.19.0",
4
4
  "author": "Mike Barkmin",
5
5
  "homepage": "https://github.com/openpatch/hyperbook#readme",
6
6
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "rimraf": "3.0.2",
45
45
  "tar": "6.1.14",
46
46
  "update-check": "1.5.4",
47
- "@platforms/web": "0.17.3"
47
+ "@platforms/web": "0.19.0"
48
48
  },
49
49
  "dependencies": {
50
50
  "@hyperbook/fs": "0.8.1",