@diplodoc/client 1.1.0 → 2.0.0-alpha-2

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} +910 -46
  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 +20 -19
  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 @@
1
+ export default function _default(): void;
package/build/utils.d.ts CHANGED
@@ -10,4 +10,9 @@ export declare function getSetting(name: string): string | null;
10
10
  export declare function saveSetting<T>(name: string, value: T): void;
11
11
  export declare function strToBoolean(str: string | boolean): boolean;
12
12
  export declare function withSavingSetting<T>(settingName: string, onChange: (value: T) => void): (value: T) => void;
13
- export declare function updateRootClassName(theme: Theme, isMobile?: boolean): void;
13
+ export declare function updateRootClassName({ theme, mobileView, wideFormat, fullHeader, }: {
14
+ theme: Theme;
15
+ mobileView: boolean;
16
+ wideFormat: boolean;
17
+ fullHeader: boolean;
18
+ }): void;
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@diplodoc/client",
3
- "version": "1.1.0",
3
+ "version": "2.0.0-alpha-2",
4
4
  "description": "",
5
5
  "main": "build/app.server.js",
6
6
  "scripts": {
7
7
  "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
8
8
  "lint:fix": "npm run lint -- --fix",
9
- "build": "webpack && tsc --emitDeclarationOnly --outDir build",
9
+ "build": "NODE_ENV=production webpack && tsc --emitDeclarationOnly --outDir build",
10
+ "build:dev": "NODE_ENV=development webpack",
11
+ "build:watch": "NODE_ENV=development webpack --watch",
10
12
  "prepublishOnly": "rm -rf build && npm ci --no-workspaces && npm run build"
11
13
  },
12
14
  "author": "",
@@ -18,46 +20,45 @@
18
20
  },
19
21
  "exports": {
20
22
  ".": {
21
- "node": "./build/app.server.js",
22
- "types": "./build/index.d.ts",
23
- "style": "./build/app.client.css",
24
- "default": "./build/app.client.js"
23
+ "types": "./build/client/index.d.ts",
24
+ "style": "./build/client/app.css",
25
+ "default": "./build/client/app.js"
25
26
  },
26
- "./styles": "./build/app.client.css"
27
+ "./ssr": {
28
+ "types": "./build/client/index.server.d.ts",
29
+ "default": "./build/server/app.js"
30
+ },
31
+ "./manifest": "./build/client/manifest.json",
32
+ "./styles": "./build/client/app.css"
27
33
  },
28
34
  "dependencies": {
29
- "@diplodoc/components": "^3.3.1",
35
+ "@diplodoc/components": "^3.5.0",
30
36
  "@diplodoc/mermaid-extension": "^1.1.3",
31
37
  "@diplodoc/openapi-extension": "^1.4.0",
32
38
  "@diplodoc/transform": "^4.2.1",
39
+ "@gravity-ui/page-constructor": "^4.24.0",
33
40
  "@gravity-ui/uikit": "^5.18.1",
41
+ "bem-cn-lite": "^4.1.0",
34
42
  "react": "^18.2.0",
35
43
  "react-dom": "^18.2.0",
36
- "url": "^0.11.0"
44
+ "url": "^0.11.0",
45
+ "webpack-manifest-plugin": "^5.0.0"
37
46
  },
38
47
  "devDependencies": {
39
- "@babel/eslint-parser": "^7.22.15",
40
48
  "@diplodoc/babel-preset": "^1.0.2",
41
49
  "@diplodoc/eslint-config": "^1.0.3",
42
50
  "@diplodoc/tsconfig": "^1.0.2",
43
51
  "@types/react": "^18.2.7",
44
52
  "@types/react-dom": "^18.2.4",
45
- "@typescript-eslint/eslint-plugin": "^5.59.8",
46
- "@typescript-eslint/parser": "^5.59.8",
47
53
  "babel-loader": "^9.1.2",
48
- "babel-plugin-lodash": "^3.3.4",
49
54
  "css-loader": "^6.8.1",
50
55
  "eslint": "^8.51.0",
51
- "eslint-plugin-react": "^7.32.2",
52
- "eslint-plugin-react-hooks": "^4.6.0",
53
- "eslint-plugin-security": "^1.7.1",
54
56
  "husky": "^8.0.3",
55
57
  "lint-staged": "^13.2.2",
56
58
  "mini-css-extract-plugin": "^2.7.6",
57
- "prop-types": "^15.8.1",
58
59
  "react-svg-loader": "^3.0.3",
59
- "sass": "^1.62.1",
60
- "sass-loader": "^13.3.1",
60
+ "sass": "^1.69.5",
61
+ "sass-loader": "^13.3.2",
61
62
  "style-loader": "^3.3.3",
62
63
  "typescript": "^5.0.4",
63
64
  "webpack": "^5.84.1",