hyperbook 0.14.1 → 0.15.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforms/web",
3
- "version": "0.14.1",
3
+ "version": "0.15.1",
4
4
  "private": true,
5
5
  "dependencies": {
6
6
  "gray-matter": "4.0.3",
@@ -10,31 +10,32 @@
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.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.2.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",
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",
28
29
  "@hyperbook/fs": "0.7.5",
29
- "@hyperbook/markdown": "0.6.1",
30
- "@hyperbook/provider": "0.2.2",
31
- "@hyperbook/shell": "0.4.3",
30
+ "@hyperbook/provider": "0.2.3",
31
+ "@hyperbook/markdown": "0.6.2",
32
+ "@hyperbook/shell": "0.4.4",
32
33
  "@hyperbook/store": "0.1.3",
33
- "@hyperbook/styles": "0.1.10",
34
+ "@hyperbook/styles": "0.1.11",
34
35
  "@hyperbook/toc": "0.2.1"
35
36
  },
36
37
  "devDependencies": {
37
- "@hyperbook/next-watch": "0.2.3"
38
+ "@hyperbook/next-watch": "0.2.4"
38
39
  },
39
40
  "scripts": {
40
41
  "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-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};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperbook",
3
- "version": "0.14.1",
3
+ "version": "0.15.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.13",
46
46
  "update-check": "1.5.4",
47
- "@platforms/web": "0.14.1"
47
+ "@platforms/web": "0.15.1"
48
48
  },
49
49
  "dependencies": {
50
50
  "@hyperbook/fs": "0.7.5",
51
- "@hyperbook/types": "0.5.0"
51
+ "@hyperbook/types": "0.6.0"
52
52
  },
53
53
  "scripts": {
54
54
  "version": "pnpm build",