sanity-plugin-graph-view 1.0.7 → 2.0.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.
package/.editorconfig DELETED
@@ -1,16 +0,0 @@
1
- ; editorconfig.org
2
- root = true
3
- charset= utf8
4
-
5
- [*]
6
- end_of_line = lf
7
- insert_final_newline = true
8
- trim_trailing_whitespace = true
9
- indent_style = space
10
- indent_size = 2
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
14
-
15
- [*.snap]
16
- trim_trailing_whitespace = false
package/.eslintignore DELETED
@@ -1 +0,0 @@
1
- /lib
package/.eslintrc.js DELETED
@@ -1,18 +0,0 @@
1
- 'use strict'
2
-
3
- module.exports = {
4
- env: {
5
- browser: true,
6
- es6: true,
7
- node: true,
8
- },
9
- parser: 'babel-eslint',
10
- plugins: ['react', 'react-hooks', 'prettier'],
11
- extends: ['plugin:react/recommended', 'eslint:recommended', 'plugin:prettier/recommended'],
12
- settings: {react: {version: 'detect'}},
13
- rules: {
14
- 'react/no-unescaped-entities': 0,
15
- 'react-hooks/rules-of-hooks': 'error', // Checks rules of Hooks
16
- 'react-hooks/exhaustive-deps': 'warn', // Checks effect dependencies
17
- },
18
- }
package/.prettierrc DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "semi": false,
3
- "printWidth": 100,
4
- "bracketSpacing": false,
5
- "singleQuote": true
6
- }
Binary file
Binary file
Binary file
package/babel.config.js DELETED
@@ -1,13 +0,0 @@
1
- 'use strict'
2
-
3
- module.exports = function (api) {
4
- api.cache(true)
5
-
6
- const presets = ['@babel/env', '@babel/preset-react']
7
- const plugins = ['@babel/plugin-proposal-class-properties', '@babel/plugin-transform-runtime']
8
-
9
- return {
10
- presets,
11
- plugins,
12
- }
13
- }
package/config.dist.json DELETED
@@ -1 +0,0 @@
1
- {}
@@ -1,56 +0,0 @@
1
- @import 'part:@sanity/base/theme/variables-style';
2
-
3
- :root {
4
- --border-style: 1px solid rgba(0, 0, 0, 0.1);
5
- }
6
-
7
- .root {
8
- position: absolute;
9
- top: 0;
10
- left: 0;
11
- width: 100%;
12
- height: 100%;
13
- }
14
-
15
- .hoverNode {
16
- display: none;
17
- position: absolute;
18
- bottom: var(--large-padding);
19
- left: 50%;
20
- transform: translate3d(-50%, 0, 0);
21
- background: var(--component-bg);
22
- border-radius: var(--border-radius-medium);
23
- padding: var(--small-padding);
24
- z-index: 1000;
25
-
26
- @nest &:empty {
27
- display: none;
28
- }
29
- }
30
-
31
- .legend {
32
- color: var(--gray);
33
- position: absolute;
34
- top: var(--medium-padding);
35
- left: var(--medium-padding);
36
-
37
- > div {
38
- margin: 5px 0;
39
- }
40
- }
41
-
42
- .legend__row {
43
- display: flex;
44
-
45
- @nest .legend__row + & {
46
- margin-top: 0.25em;
47
- }
48
- }
49
-
50
- .legend__badge {
51
- width: 1.25em;
52
- height: 1.25em;
53
- background: currentColor;
54
- border-radius: 50%;
55
- margin-right: var(--extra-small-padding);
56
- }