hyperbook 0.13.13 → 0.14.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,39 +1,40 @@
1
1
  {
2
2
  "name": "@platforms/web",
3
- "version": "0.13.13",
3
+ "version": "0.14.0",
4
4
  "private": true,
5
5
  "dependencies": {
6
6
  "gray-matter": "4.0.3",
7
- "next": "13.2.4",
7
+ "next": "13.3.1",
8
8
  "react": "18.2.0",
9
9
  "react-dom": "18.2.0",
10
10
  "react-redux": "8.0.5",
11
11
  "redux": "4.2.1",
12
12
  "redux-persist": "6.0.0",
13
- "@hyperbook/element-alert": "0.1.9",
14
- "@hyperbook/element-bitflow": "0.1.10",
15
- "@hyperbook/element-bookmarks": "0.2.4",
16
- "@hyperbook/element-collapsible": "0.3.0",
17
- "@hyperbook/element-dl": "0.1.10",
18
- "@hyperbook/element-excalidraw": "0.3.1",
19
- "@hyperbook/element-mermaid": "0.1.9",
20
- "@hyperbook/element-protect": "0.3.0",
21
- "@hyperbook/element-qr": "0.1.10",
22
- "@hyperbook/element-scratchblock": "0.1.0",
23
- "@hyperbook/element-struktog": "0.1.9",
24
- "@hyperbook/element-tabs": "0.1.10",
25
- "@hyperbook/element-term": "0.1.9",
26
- "@hyperbook/element-youtube": "0.1.9",
27
- "@hyperbook/fs": "0.7.4",
28
- "@hyperbook/markdown": "0.6.0",
29
- "@hyperbook/provider": "0.2.1",
30
- "@hyperbook/shell": "0.4.2",
31
- "@hyperbook/store": "0.1.2",
32
- "@hyperbook/styles": "0.1.9",
33
- "@hyperbook/toc": "0.2.0"
13
+ "@hyperbook/element-alert": "0.1.10",
14
+ "@hyperbook/element-bitflow": "0.1.11",
15
+ "@hyperbook/element-bookmarks": "0.2.5",
16
+ "@hyperbook/element-collapsible": "0.3.1",
17
+ "@hyperbook/element-dl": "0.1.11",
18
+ "@hyperbook/element-excalidraw": "0.4.1",
19
+ "@hyperbook/element-mermaid": "0.1.10",
20
+ "@hyperbook/element-online-ide": "0.1.0",
21
+ "@hyperbook/element-protect": "0.3.1",
22
+ "@hyperbook/element-qr": "0.1.11",
23
+ "@hyperbook/element-scratchblock": "0.1.1",
24
+ "@hyperbook/element-struktog": "0.1.10",
25
+ "@hyperbook/element-tabs": "0.1.11",
26
+ "@hyperbook/element-term": "0.1.10",
27
+ "@hyperbook/element-youtube": "0.1.10",
28
+ "@hyperbook/fs": "0.7.5",
29
+ "@hyperbook/markdown": "0.6.1",
30
+ "@hyperbook/provider": "0.2.2",
31
+ "@hyperbook/shell": "0.4.3",
32
+ "@hyperbook/store": "0.1.3",
33
+ "@hyperbook/styles": "0.1.10",
34
+ "@hyperbook/toc": "0.2.1"
34
35
  },
35
36
  "devDependencies": {
36
- "@hyperbook/next-watch": "0.2.2"
37
+ "@hyperbook/next-watch": "0.2.3"
37
38
  },
38
39
  "scripts": {
39
40
  "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 M from"@hyperbook/element-struktog";import"@hyperbook/element-struktog/index.css";import U from"@hyperbook/element-qr";import"@hyperbook/element-qr/index.css";import B from"@hyperbook/element-mermaid";import"@hyperbook/element-mermaid/index.css";import C from"@hyperbook/element-excalidraw";import"@hyperbook/element-excalidraw/index.css";import F from"@hyperbook/element-bitflow";import"@hyperbook/element-bitflow/index.css";import H from"@hyperbook/element-scratchblock";import"@hyperbook/element-scratchblock/index.css";import V from"next/link";import W from"next/head";import{Styles as _}from"@hyperbook/styles";import{localStorage as j}from"@hyperbook/store";import{useRouter as I}from"next/router";import{useEffect as J}from"react";import Q from"../../hyperbook.json";const R=({ref:E,href:r,children:g,...P})=><V href={r}{...P}>{g}</V>,Y=({basePath:E})=>r=>(process.env.NODE_ENV==="production"&&E&&r.startsWith("/")&&(E.endsWith("/")?r=E.slice(0,-1)+r:r=E+r),r);function q({Component:E,pageProps:r}){const g=I();return J(()=>{document.documentElement.lang=r.locale},[r.locale]),<N Link={R}Head={W}config={Q}makeUrl={Y}env={process.env.NODE_ENV==="production"?"production":"development"}elements={[O,T,b,h,x,w,A,D,M,U,B,C,H,F]}router={g}storage={j}loadFile={()=>async P=>fetch(P).then(S=>S.text())}saveFile={()=>async(P,S,L)=>{await fetch("/api/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:P,content:S,rootFolder:L})})}}getActivePageId={async()=>g.asPath.split("#")?.[0]||"/"}><_/><E{...r}/></N>}export{q 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 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 M from"@hyperbook/element-struktog";import"@hyperbook/element-struktog/index.css";import U from"@hyperbook/element-qr";import"@hyperbook/element-qr/index.css";import B from"@hyperbook/element-mermaid";import"@hyperbook/element-mermaid/index.css";import C from"@hyperbook/element-excalidraw";import"@hyperbook/element-excalidraw/index.css";import F from"@hyperbook/element-online-ide";import"@hyperbook/element-online-ide/index.css";import H from"@hyperbook/element-bitflow";import"@hyperbook/element-bitflow/index.css";import I from"@hyperbook/element-scratchblock";import"@hyperbook/element-scratchblock/index.css";import V from"next/link";import W from"next/head";import{Styles as _}from"@hyperbook/styles";import{localStorage as j}from"@hyperbook/store";import{useRouter as J}from"next/router";import{useEffect as Q}from"react";import R from"../../hyperbook.json";const Y=({ref:E,href:r,children:g,...P})=><V href={r}{...P}>{g}</V>,q=({basePath:E})=>r=>(process.env.NODE_ENV==="production"&&E&&r.startsWith("/")&&(E.endsWith("/")?r=E.slice(0,-1)+r:r=E+r),r);function z({Component:E,pageProps:r}){const g=J();return Q(()=>{document.documentElement.lang=r.locale},[r.locale]),<N Link={Y}Head={W}config={R}makeUrl={q}env={process.env.NODE_ENV==="production"?"production":"development"}elements={[O,T,b,h,x,w,A,D,M,F,U,B,C,I,H]}router={g}storage={j}loadFile={()=>async P=>fetch(P).then(S=>S.text())}saveFile={()=>async(P,S,L)=>{await fetch("/api/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:P,content:S,rootFolder:L})})}}getActivePageId={async()=>g.asPath.split("#")?.[0]||"/"}><_/><E{...r}/></N>}export{z as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperbook",
3
- "version": "0.13.13",
3
+ "version": "0.14.0",
4
4
  "author": "Mike Barkmin",
5
5
  "homepage": "https://github.com/openpatch/hyperbook#readme",
6
6
  "license": "MIT",
@@ -29,7 +29,7 @@
29
29
  "@types/archiver": "5.3.2",
30
30
  "@types/async-retry": "1.4.5",
31
31
  "@types/cross-spawn": "6.0.2",
32
- "@types/prompts": "2.4.3",
32
+ "@types/prompts": "2.4.4",
33
33
  "@types/rimraf": "3.0.2",
34
34
  "@types/tar": "6.1.4",
35
35
  "@vercel/ncc": "0.36.1",
@@ -44,10 +44,10 @@
44
44
  "rimraf": "3.0.2",
45
45
  "tar": "6.1.13",
46
46
  "update-check": "1.5.4",
47
- "@platforms/web": "0.13.13"
47
+ "@platforms/web": "0.14.0"
48
48
  },
49
49
  "dependencies": {
50
- "@hyperbook/fs": "0.7.4",
50
+ "@hyperbook/fs": "0.7.5",
51
51
  "@hyperbook/types": "0.5.0"
52
52
  },
53
53
  "scripts": {