@diplodoc/client 1.0.2 → 2.0.0-alpha-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.
Files changed (40) hide show
  1. package/.eslintignore +6 -2
  2. package/.eslintrc.js +7 -0
  3. package/.prettierignore +11 -0
  4. package/.prettierrc +1 -0
  5. package/build/client/app.css +4 -0
  6. package/build/client/app.css.map +1 -0
  7. package/build/client/app.js +2 -0
  8. package/build/client/app.js.map +1 -0
  9. package/build/client/manifest.json +11 -0
  10. package/build/client/react.js +3 -0
  11. package/build/client/react.js.LICENSE.txt +19 -0
  12. package/build/client/react.js.map +1 -0
  13. package/build/{app.client.css → client/vendor.css} +912 -66
  14. package/build/client/vendor.css.map +1 -0
  15. package/build/client/vendor.js +3 -0
  16. package/build/client/vendor.js.LICENSE.txt +59 -0
  17. package/build/client/vendor.js.map +1 -0
  18. package/build/components/HeaderControls/index.d.ts +16 -0
  19. package/build/components/Layout/index.d.ts +11 -0
  20. package/build/hooks/useMobile.d.ts +1 -0
  21. package/build/hooks/useSettings.d.ts +13 -0
  22. package/build/index.d.ts +2 -3
  23. package/build/index.server.d.ts +2 -0
  24. package/build/server/app.js +666 -0
  25. package/build/server/app.js.map +1 -0
  26. package/build/server/manifest.json +8 -0
  27. package/build/server/react.js +656 -0
  28. package/build/server/react.js.map +1 -0
  29. package/build/server/vendor.js +48443 -0
  30. package/build/server/vendor.js.map +1 -0
  31. package/build/stub/empty-module.d.ts +1 -0
  32. package/build/utils.d.ts +6 -1
  33. package/package.json +31 -23
  34. package/build/app.client.css.map +0 -1
  35. package/build/app.client.js +0 -3
  36. package/build/app.client.js.LICENSE.txt +0 -85
  37. package/build/app.client.js.map +0 -1
  38. package/build/app.server.js +0 -3
  39. package/build/app.server.js.LICENSE.txt +0 -83
  40. package/build/app.server.js.map +0 -1
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { TextSizes, Theme } from '@diplodoc/components';
3
+ type OnChangeCallback = (value: any) => void;
4
+ type Props = {
5
+ mobileView: boolean;
6
+ theme: Theme;
7
+ onChangeTheme: OnChangeCallback;
8
+ textSize: TextSizes;
9
+ onChangeTextSize: OnChangeCallback;
10
+ wideFormat: boolean;
11
+ onChangeWideFormat: OnChangeCallback;
12
+ showMiniToc: boolean;
13
+ onChangeShowMiniToc: OnChangeCallback;
14
+ };
15
+ export declare const HeaderControls: React.NamedExoticComponent<Props>;
16
+ export {};
@@ -0,0 +1,11 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import './Layout.scss';
3
+ type LayoutStatics = {
4
+ Header: FC<PropsWithChildren>;
5
+ Content: FC<PropsWithChildren>;
6
+ Footer: FC<PropsWithChildren>;
7
+ };
8
+ export declare const Layout: LayoutStatics & FC<PropsWithChildren<{
9
+ doc?: boolean;
10
+ }>>;
11
+ export {};
@@ -0,0 +1 @@
1
+ export declare function useMobile(): boolean;
@@ -0,0 +1,13 @@
1
+ import { TextSizes, Theme } from '@diplodoc/components';
2
+ export declare function useSettings(): {
3
+ theme: Theme;
4
+ onChangeTheme: (value: Theme) => void;
5
+ textSize: TextSizes;
6
+ onChangeTextSize: (value: TextSizes) => void;
7
+ wideFormat: boolean;
8
+ onChangeWideFormat: (value: boolean) => void;
9
+ showMiniToc: boolean;
10
+ onChangeShowMiniToc: (value: boolean) => void;
11
+ fullScreen: boolean;
12
+ onChangeFullScreen: (value: boolean) => void;
13
+ };
package/build/index.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import { DocInnerProps, DocPageData, DocLeadingPageData } from './components/App/App';
1
+ import { DocInnerProps, DocLeadingPageData, DocPageData } from './components/App/App';
2
2
  export type { DocInnerProps, DocPageData, DocLeadingPageData };
3
3
  declare global {
4
4
  interface Window {
5
5
  STATIC_CONTENT: boolean;
6
+ __DATA__: DocInnerProps;
6
7
  }
7
8
  }
8
- declare let render: (props: DocInnerProps) => string;
9
- export { render };
@@ -0,0 +1,2 @@
1
+ import { DocInnerProps } from './components/App/App';
2
+ export declare const render: (props: DocInnerProps) => string;