@diplodoc/client 0.0.4 → 0.0.5

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.
@@ -0,0 +1,78 @@
1
+ /*!
2
+ * bem-cn v3.0.1
3
+ * Friendly BEM class names generator, greate for React
4
+ * @author Alexander Burtsev, https://github.com/albburtsev
5
+ */
6
+
7
+ /*!
8
+ * tabbable 6.1.1
9
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
10
+ */
11
+
12
+ /**
13
+ * @license
14
+ * Lodash <https://lodash.com/>
15
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
16
+ * Released under MIT license <https://lodash.com/license>
17
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
18
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
19
+ */
20
+
21
+ /**
22
+ * @license React
23
+ * react-dom-server-legacy.node.production.min.js
24
+ *
25
+ * Copyright (c) Facebook, Inc. and its affiliates.
26
+ *
27
+ * This source code is licensed under the MIT license found in the
28
+ * LICENSE file in the root directory of this source tree.
29
+ */
30
+
31
+ /**
32
+ * @license React
33
+ * react-dom-server.node.production.min.js
34
+ *
35
+ * Copyright (c) Facebook, Inc. and its affiliates.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE file in the root directory of this source tree.
39
+ */
40
+
41
+ /**
42
+ * @license React
43
+ * react-dom.production.min.js
44
+ *
45
+ * Copyright (c) Facebook, Inc. and its affiliates.
46
+ *
47
+ * This source code is licensed under the MIT license found in the
48
+ * LICENSE file in the root directory of this source tree.
49
+ */
50
+
51
+ /**
52
+ * @license React
53
+ * react.production.min.js
54
+ *
55
+ * Copyright (c) Facebook, Inc. and its affiliates.
56
+ *
57
+ * This source code is licensed under the MIT license found in the
58
+ * LICENSE file in the root directory of this source tree.
59
+ */
60
+
61
+ /**
62
+ * @license React
63
+ * scheduler.production.min.js
64
+ *
65
+ * Copyright (c) Facebook, Inc. and its affiliates.
66
+ *
67
+ * This source code is licensed under the MIT license found in the
68
+ * LICENSE file in the root directory of this source tree.
69
+ */
70
+
71
+ /**!
72
+ * hotkeys-js v3.9.4
73
+ * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
74
+ *
75
+ * Copyright (c) 2022 kenny wong <wowohoo@qq.com>
76
+ * http://jaywcjlove.github.io/hotkeys
77
+ * Licensed under the MIT license
78
+ */
package/build/index.d.ts CHANGED
@@ -1,3 +1,8 @@
1
1
  import { DocInnerProps } from './components/App/App';
2
+ declare global {
3
+ interface Window {
4
+ STATIC_CONTENT: boolean;
5
+ }
6
+ }
2
7
  declare let render: (props: DocInnerProps) => string;
3
8
  export { render };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/client",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/.babelrc DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "presets": [
3
- "@babel/env",
4
- "@babel/react",
5
- "@babel/typescript"
6
- ],
7
- "plugins": [
8
- "@babel/plugin-proposal-class-properties",
9
- "@babel/plugin-transform-runtime",
10
- "@babel/plugin-syntax-top-level-await"
11
- ]
12
- }
package/.editorconfig DELETED
@@ -1,17 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- indent_style = space
5
- indent_size = 4
6
- end_of_line = lf
7
- charset = utf-8
8
- trim_trailing_whitespace = true
9
- insert_final_newline = true
10
-
11
- [{*.json,*.yml,*.yaml}]
12
- indent_style = space
13
- indent_size = 2
14
-
15
- [GNUmakefile]
16
- indent_style = tab
17
- indent_size = 4
package/.eslintrc DELETED
@@ -1,199 +0,0 @@
1
- {
2
- "extends": ["eslint:recommended", "plugin:react/recommended"],
3
- "parser": "babel-eslint",
4
- "parserOptions": {
5
- "ecmaVersion": 2019
6
- },
7
- "env": {
8
- "es6": true,
9
- "browser": true
10
- },
11
- "rules": {
12
- "no-empty": 0,
13
- "valid-jsdoc": [1, {
14
- "requireParamDescription": false,
15
- "requireReturnDescription": false
16
- }],
17
- "array-callback-return": 2,
18
- "block-scoped-var": 1,
19
- "complexity": 1,
20
- "consistent-return": 1,
21
- "curly": 2,
22
- "dot-location": [2, "property"],
23
- "eqeqeq": [1, "always"],
24
- "guard-for-in": 2,
25
- "no-caller": 2,
26
- "no-div-regex": 1,
27
- "no-eq-null": 2,
28
- "no-eval": 1,
29
- "no-extend-native": 2,
30
- "no-extra-bind": 1,
31
- "no-extra-label": 2,
32
- "no-floating-decimal": 2,
33
- "no-global-assign": 1,
34
- "no-implicit-coercion": 1,
35
- "no-implicit-globals": 1,
36
- "no-implied-eval": 1,
37
- "no-iterator": 2,
38
- "no-labels": 2,
39
- "no-loop-func": 2,
40
- "no-multi-spaces": 2,
41
- "no-new": 2,
42
- "no-new-func": 1,
43
- "no-new-wrappers": 2,
44
- "no-octal-escape": 2,
45
- "no-param-reassign": 1,
46
- "no-proto": 2,
47
- "no-return-assign": [2, "always"],
48
- "no-script-url": 2,
49
- "no-self-compare": 2,
50
- "no-sequences": 2,
51
- "no-throw-literal": 1,
52
- "no-unmodified-loop-condition": 2,
53
- "no-unused-expressions": 2,
54
- "no-useless-call": 2,
55
- "no-useless-concat": 2,
56
- "no-void": 2,
57
- "no-with": 2,
58
- "radix": 1,
59
- "wrap-iife": [2, "inside"],
60
- "strict": 1,
61
- "no-label-var": 2,
62
- "no-shadow": 1,
63
- "no-shadow-restricted-names": 2,
64
- "no-undef-init": 2,
65
- "no-use-before-define": [1, {"functions": false}],
66
- "callback-return": 1,
67
- "handle-callback-err": 1,
68
- "no-new-require": 2,
69
- "no-path-concat": 1,
70
- "array-bracket-spacing": [2, "never"],
71
- "block-spacing": [2, "always"],
72
- "brace-style": [2, "1tbs", {"allowSingleLine": true}],
73
- "camelcase": [2, {"properties": "never"}],
74
- "comma-dangle": [2, "always-multiline"],
75
- "comma-spacing": [2, {"before": false, "after": true}],
76
- "comma-style": [2, "last"],
77
- "computed-property-spacing": [2, "never"],
78
- "eol-last": 1,
79
- "func-call-spacing": [2, "never"],
80
- "indent": [2, 4, {"SwitchCase": 1}],
81
- "key-spacing": [2, {"beforeColon": false, "afterColon": true}],
82
- "keyword-spacing": [2, {"before": true, "after": true}],
83
- "linebreak-style": [2, "unix"],
84
- "max-depth": [1, {"maximum": 5}],
85
- "max-len": [1, {"code": 120, "ignoreUrls": true}],
86
- "new-cap": 2,
87
- "new-parens": 2,
88
- "no-array-constructor": 1,
89
- "no-bitwise": 2,
90
- "no-lonely-if": 1,
91
- "no-multiple-empty-lines": 2,
92
- "no-negated-condition": 1,
93
- "no-nested-ternary": 1,
94
- "no-new-object": 1,
95
- "no-restricted-syntax": [2, "WithStatement"],
96
- "no-trailing-spaces": 2,
97
- "no-unneeded-ternary": 2,
98
- "no-whitespace-before-property": 2,
99
- "object-curly-spacing": [2, "never"],
100
- "quotes": [2, "single"],
101
- "semi": [2, "always"],
102
- "semi-spacing": 2,
103
- "space-before-blocks": 2,
104
- "space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
105
- "space-in-parens": [2, "never"],
106
- "space-infix-ops": 2,
107
- "space-unary-ops": 2,
108
- "arrow-parens": 2,
109
- "arrow-spacing": [2, {"before": true, "after": true}],
110
- "generator-star-spacing": [2, {"before": false, "after": true}],
111
- "no-duplicate-imports": 2,
112
- "no-useless-constructor": 2,
113
- "no-var": 2,
114
- "prefer-arrow-callback": 1,
115
- "prefer-const": 2,
116
- "prefer-rest-params": 2,
117
- "prefer-spread": 2,
118
- "require-atomic-updates": 0,
119
- "require-yield": 1,
120
- "template-curly-spacing": [2, "never"],
121
- "yield-star-spacing": [2, {"before": false, "after": true}]
122
- },
123
- "overrides": [{
124
- "files": ["*.ts", "*.tsx"],
125
- "parser": "@typescript-eslint/parser",
126
- "parserOptions": {
127
- "sourceType": "module"
128
- },
129
- "plugins": [
130
- "@typescript-eslint"
131
- ],
132
- "rules": {
133
- "strict": 0,
134
- "no-undef": 0,
135
- "no-dupe-class-members": 0,
136
- "valid-jsdoc": [1, {
137
- "requireReturnType": false,
138
- "requireParamType": false,
139
- "requireParamDescription": false,
140
- "requireReturnDescription": false
141
- }],
142
- "semi": 0,
143
- "@typescript-eslint/semi": 2,
144
- "no-unused-vars": 0,
145
- "@typescript-eslint/no-unused-vars": 2,
146
- "no-use-before-define": 0,
147
- "@typescript-eslint/no-use-before-define": [1, {"functions": false}],
148
- "no-useless-constructor": 0,
149
- "@typescript-eslint/no-useless-constructor": 2,
150
- "@typescript-eslint/class-name-casing": 2,
151
- "@typescript-eslint/member-delimiter-style": 2,
152
- "@typescript-eslint/member-ordering": [2, {
153
- "default": [
154
- "public-static-field",
155
- "protected-static-field",
156
- "private-static-field",
157
-
158
- "public-static-method",
159
- "protected-static-method",
160
- "private-static-method",
161
-
162
- "public-instance-field",
163
- "protected-instance-field",
164
- "private-instance-field",
165
-
166
- "constructor",
167
-
168
- "public-instance-method",
169
- "protected-instance-method",
170
- "private-instance-method"
171
- ]
172
- }],
173
- "@typescript-eslint/explicit-member-accessibility": [2, {"accessibility": "no-public"}],
174
- "@typescript-eslint/consistent-type-assertions": 2,
175
- "@typescript-eslint/no-array-constructor": 2,
176
- "@typescript-eslint/no-explicit-any": 1,
177
- "@typescript-eslint/no-inferrable-types": 2,
178
- "@typescript-eslint/no-namespace": 2,
179
- "@typescript-eslint/no-non-null-assertion": 1,
180
- "@typescript-eslint/no-parameter-properties": 2,
181
- "@typescript-eslint/triple-slash-reference": 2,
182
- "@typescript-eslint/prefer-namespace-keyword": 2,
183
- "@typescript-eslint/type-annotation-spacing": [2, {
184
- "before": true,
185
- "after": true,
186
- "overrides": {
187
- "colon": {
188
- "before": false
189
- }
190
- }
191
- }]
192
- }
193
- }],
194
- "settings": {
195
- "react": {
196
- "version": "detect"
197
- }
198
- }
199
- }
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- 14