react-native-bundle-discovery-ui 2.6.0 → 2.7.0-rc.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/views/global.css DELETED
@@ -1,169 +0,0 @@
1
- hr{
2
- border: 1px solid rgb(222 222 222);
3
- margin-top: 1rem;
4
- margin-bottom: 1rem;
5
- }
6
-
7
- .inline-block{
8
- display: inline-block;
9
- }
10
- .discovery-content>.page-default{
11
- height: 100%;
12
- overflow: hidden;
13
- padding-top: 16px;
14
- padding-bottom: 16px;
15
- }
16
- .view-tabs-content>.view-content-filter>.view-input{
17
- padding-top: 12px;
18
- padding-bottom: 12px;
19
- margin: 0;
20
- background-color: var(--discovery-background-color);
21
- position: sticky;
22
- top: 0;
23
- z-index: 1;
24
- }
25
- .main-tabs{
26
- height: calc(100% - 20px);
27
- margin-top: 12px;
28
- }
29
- .main-tabs .view-tabs-content{
30
- height: calc(100% - 32px);
31
- }
32
- .foamtree-filter,
33
- .view-foamtree{
34
- width: 100%;
35
- height: 100%;
36
- }
37
- .foamtree-filter>.content{
38
- height: calc(100% - 60px);
39
- width: 100%;
40
- }
41
- .tooltip {
42
- position: absolute;
43
- z-index: 10;
44
- display: none;
45
- background-color: #fff;
46
- border: 1px solid #ccc;
47
- padding: 5px;
48
- border-radius: 5px;
49
- box-shadow: 0 0 5px #ccc;
50
- }
51
- .tooltip-name{
52
- text-transform: capitalize;
53
- }
54
- .flex-no-wrap{
55
- flex-wrap: nowrap;
56
- }
57
- .width-50p{
58
- width: 50%;
59
- }
60
- .my-icon{
61
- display: block;
62
- height: 100%;
63
- width: 100%;
64
- }
65
- .my-icon-inline{
66
- display: inline-block;
67
- vertical-align: middle;
68
- margin-left: 4px;
69
- }
70
- .my-icon-12{
71
- width: 12px;
72
- height: 12px;
73
- }
74
- .no-margin{
75
- margin: 0;
76
- }
77
- .two-column>*{
78
- width: 50%;
79
- }
80
- .m-v-8{
81
- margin-top: 8px;
82
- margin-bottom: 8px;
83
- }
84
- .i-duplicate{
85
- display: inline-block;
86
- background: #da444e;
87
- color: #fff;
88
- border-radius: 0.5em;
89
- padding: 0 0.5em;
90
- }
91
- .m-l-0_5em{
92
- margin-left: 0.5em;
93
- }
94
- .m-r-0_3em{
95
- margin-right: 0.3em;
96
- }
97
- .copy-to-clipboard{
98
- /* from: https://tabler.io/icons/icon/clipboard-copy */
99
- background: url('data:image/svg+xml,%3Csvg%20%20xmlns=%22http://www.w3.org/2000/svg%22%20%20width=%2224%22%20%20height=%2224%22%20%20viewBox=%220%200%2024%2024%22%20%20fill=%22none%22%20%20stroke=%22currentColor%22%20%20stroke-width=%222%22%20%20stroke-linecap=%22round%22%20%20stroke-linejoin=%22round%22%20%20class=%22icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-clipboard-copy%22%3E%3Cpath%20stroke=%22none%22%20d=%22M0%200h24v24H0z%22%20fill=%22none%22/%3E%3Cpath%20d=%22M9%205h-2a2%202%200%200%200%20-2%202v12a2%202%200%200%200%202%202h3m9%20-9v-5a2%202%200%200%200%20-2%20-2h-2%22%20/%3E%3Cpath%20d=%22M13%2017v-1a1%201%200%200%201%201%20-1h1m3%200h1a1%201%200%200%201%201%201v1m0%203v1a1%201%200%200%201%20-1%201h-1m-3%200h-1a1%201%200%200%201%20-1%20-1v-1%22%20/%3E%3Cpath%20d=%22M9%203m0%202a2%202%200%200%201%202%20-2h2a2%202%200%200%201%202%202v0a2%202%200%200%201%20-2%202h-2a2%202%200%200%201%20-2%20-2z%22%20/%3E%3C/svg%3E');
100
- background-repeat: no-repeat;
101
- background-position: center;
102
- display: inline-block;
103
- height: 32px;
104
- width: 32px;
105
- }
106
- .copy-to-clipboard::before {
107
- position: absolute;
108
- top: -8px;
109
- font-size: 0.7rem;
110
- border-radius: 4px;
111
- display: inline-block;
112
- padding: 1px 4px;
113
- color: #fff;
114
- left: 78%;
115
- opacity: 0;
116
- transition: opacity 0.3s ease-in-out;
117
- }
118
- .copy-to-clipboard.done::before {
119
- content: "Copied!";
120
- background: green;
121
- opacity: 1;
122
- }
123
- .copy-to-clipboard.err::before {
124
- content: "Error!";
125
- background: red;
126
- opacity: 1;
127
- }
128
- .prettify-checkbox{
129
- position: absolute;
130
- right: 31px;
131
- margin-top: -26px;
132
- z-index: 1;
133
- }
134
- .ask-chatgpt{
135
- color: var(--discovery-view-button-color, #000);
136
- text-decoration: none;
137
- vertical-align: middle;
138
- position: absolute;
139
- z-index: 9;
140
- margin-top: 12px;
141
- margin-left: 105px !important;
142
- height: 35px;
143
- }
144
- .ask-chatgpt::before {
145
- content: '”';
146
- font-size: 2em;
147
- vertical-align: middle;
148
- font-family: math;
149
- margin-right: 0.2em;
150
- display: inline-block;
151
- height: 15px;
152
- }
153
- .packages-content>.view-input{
154
- padding-left: 265px;
155
- }
156
- .copy-before-ask-chatgpt{
157
- width: 95px;
158
- background-position: left center;
159
- padding-left: 25px;
160
- position: absolute;
161
- z-index: 9;
162
- margin-top: 12px;
163
- height: 35px;
164
- }
165
- .bundlejs-badge-img{
166
- line-height: 0;
167
- margin-bottom: -5px;
168
- margin-left: 10px;
169
- }
@@ -1,43 +0,0 @@
1
- import Highcharts from "../vendors/highcharts.js";
2
- import "../vendors/highcharts-networkgraph.js";
3
- import "../vendors/highcharts-exporting.js";
4
-
5
- const { doTheming } = require("./_theme");
6
-
7
- discovery.view.define("highcharts", function (el, config, rawData, context) {
8
- doTheming(el);
9
-
10
- if (Array.isArray(rawData?.options?.series)) {
11
- rawData.options.series.forEach((e) => {
12
- if (e.data?.[0]?.value !== undefined) {
13
- // mutate data by link
14
- e.data = e.data.map((d) => d.value ?? null);
15
- }
16
- });
17
- }
18
-
19
- // console.log({ rawData });
20
-
21
- try {
22
- Highcharts.chart(
23
- el,
24
- Highcharts.merge(
25
- {
26
- // default options
27
- },
28
- rawData.options,
29
- ),
30
- );
31
- } catch (e) {
32
- console.error(e, rawData);
33
- discovery.view.render(
34
- el,
35
- {
36
- view: "alert-danger",
37
- data: '"Error rendering chart, please check the console for more information."',
38
- },
39
- rawData,
40
- context,
41
- );
42
- }
43
- });
package/views/prettify.js DELETED
@@ -1,17 +0,0 @@
1
- discovery.view.define(
2
- "source-prettify",
3
- async function renderPrettify(el, config, data, context) {
4
- await this.render(
5
- el,
6
- this.composeConfig([
7
- {
8
- ...config,
9
- source: await config.source,
10
- view: "source",
11
- },
12
- ]),
13
- data,
14
- context,
15
- );
16
- },
17
- );
File without changes