hyperbook 0.16.0 → 0.17.1

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,41 +1,42 @@
1
1
  {
2
2
  "name": "@platforms/web",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "private": true,
5
5
  "dependencies": {
6
6
  "gray-matter": "4.0.3",
7
- "next": "13.3.4",
7
+ "next": "13.4.5",
8
8
  "react": "18.2.0",
9
9
  "react-dom": "18.2.0",
10
- "react-redux": "8.0.5",
10
+ "react-redux": "8.1.0",
11
11
  "redux": "4.2.1",
12
12
  "redux-persist": "6.0.0",
13
- "@hyperbook/element-alert": "0.1.11",
14
- "@hyperbook/element-bitflow": "0.1.12",
15
- "@hyperbook/element-bookmarks": "0.2.6",
16
- "@hyperbook/element-collapsible": "0.3.2",
17
- "@hyperbook/element-dl": "0.1.12",
18
- "@hyperbook/element-excalidraw": "0.4.2",
19
- "@hyperbook/element-mermaid": "0.1.11",
20
- "@hyperbook/element-online-ide": "0.3.0",
21
- "@hyperbook/element-sql-ide": "0.3.0",
22
- "@hyperbook/element-protect": "0.3.2",
23
- "@hyperbook/element-qr": "0.1.12",
24
- "@hyperbook/element-scratchblock": "0.1.2",
25
- "@hyperbook/element-struktog": "0.1.11",
26
- "@hyperbook/element-tabs": "0.1.12",
27
- "@hyperbook/element-term": "0.1.11",
28
- "@hyperbook/element-youtube": "0.1.11",
29
- "@hyperbook/fs": "0.8.0",
30
- "@hyperbook/markdown": "0.6.2",
31
- "@hyperbook/provider": "0.2.3",
32
- "@hyperbook/shell": "0.4.4",
33
- "@hyperbook/store": "0.1.3",
34
- "@hyperbook/styles": "0.1.11",
35
- "@hyperbook/toc": "0.2.1"
13
+ "@hyperbook/element-alert": "0.1.13",
14
+ "@hyperbook/element-bitflow": "0.1.14",
15
+ "@hyperbook/element-bookmarks": "0.2.8",
16
+ "@hyperbook/element-collapsible": "0.3.4",
17
+ "@hyperbook/element-dl": "0.1.14",
18
+ "@hyperbook/element-embed": "0.1.1",
19
+ "@hyperbook/element-excalidraw": "0.4.4",
20
+ "@hyperbook/element-mermaid": "0.1.13",
21
+ "@hyperbook/element-online-ide": "0.3.2",
22
+ "@hyperbook/element-protect": "0.3.4",
23
+ "@hyperbook/element-qr": "0.1.14",
24
+ "@hyperbook/element-scratchblock": "0.1.4",
25
+ "@hyperbook/element-sql-ide": "0.3.2",
26
+ "@hyperbook/element-struktog": "0.1.13",
27
+ "@hyperbook/element-tabs": "0.1.14",
28
+ "@hyperbook/element-term": "0.1.13",
29
+ "@hyperbook/element-youtube": "0.1.13",
30
+ "@hyperbook/fs": "0.8.1",
31
+ "@hyperbook/markdown": "0.6.4",
32
+ "@hyperbook/provider": "0.2.5",
33
+ "@hyperbook/shell": "0.4.6",
34
+ "@hyperbook/store": "0.1.5",
35
+ "@hyperbook/styles": "0.1.13",
36
+ "@hyperbook/toc": "0.2.3"
36
37
  },
37
38
  "devDependencies": {
38
- "@hyperbook/next-watch": "0.2.4"
39
+ "@hyperbook/next-watch": "0.3.0"
39
40
  },
40
41
  "scripts": {
41
42
  "next:dev": "next-hyperbook-watch",
@@ -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 T from"@hyperbook/element-alert";import"@hyperbook/element-alert/index.css";import b 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-online-ide";import"@hyperbook/element-online-ide/index.css";import F from"@hyperbook/element-sql-ide";import"@hyperbook/element-sql-ide/index.css";import H from"@hyperbook/element-bitflow";import"@hyperbook/element-bitflow/index.css";import V from"@hyperbook/element-scratchblock";import"@hyperbook/element-scratchblock/index.css";import W from"next/link";import _ 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:r,children:S,...P})=><W href={r}{...P}>{S}</W>,K=({basePath:E})=>r=>(process.env.NODE_ENV==="production"&&E&&r.startsWith("/")&&(E.endsWith("/")?r=E.slice(0,-1)+r:r=E+r),r);function X({Component:E,pageProps:r}){const S=R();return Y(()=>{document.documentElement.lang=r.locale},[r.locale]),<N Link={G}Head={_}config={z}makeUrl={K}env={process.env.NODE_ENV==="production"?"production":"development"}elements={[O,T,b,h,x,w,A,D,I,C,F,M,U,B,V,H]}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{...r}/></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-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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperbook",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "author": "Mike Barkmin",
5
5
  "homepage": "https://github.com/openpatch/hyperbook#readme",
6
6
  "license": "MIT",
@@ -44,11 +44,11 @@
44
44
  "rimraf": "3.0.2",
45
45
  "tar": "6.1.14",
46
46
  "update-check": "1.5.4",
47
- "@platforms/web": "0.16.0"
47
+ "@platforms/web": "0.17.1"
48
48
  },
49
49
  "dependencies": {
50
- "@hyperbook/fs": "0.8.0",
51
- "@hyperbook/types": "0.6.0"
50
+ "@hyperbook/fs": "0.8.1",
51
+ "@hyperbook/types": "0.6.1"
52
52
  },
53
53
  "scripts": {
54
54
  "version": "pnpm build",