@mohsinonxrm/pptb-dataverse-request-studio 1.1.1 → 1.1.3

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/dist/index.html CHANGED
@@ -1,44 +1,52 @@
1
- <!doctype html>
2
- <html lang="en" data-theme="light">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Dataverse Request Studio</title>
1
+ <!doctype html>
2
+ <html lang="en" data-theme="light">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Dataverse Request Studio</title>
7
7
  <style>
8
- html, body, #root { height: 100%; margin: 0; padding: 0; }
9
- body { font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif; }
8
+ html,
9
+ body,
10
+ #root {
11
+ height: 100%;
12
+ margin: 0;
13
+ padding: 0;
14
+ }
15
+ body {
16
+ font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
17
+ }
10
18
 
11
19
  /* Brand / method colors — CSS-var bridge per gotcha G-001.
12
20
  Switched on data-theme attribute on <html>. */
13
21
  :root[data-theme='light'] {
14
- --color-request-read: #005a9e;
15
- --color-request-write: #107c10;
16
- --color-request-relate: #8764b8;
22
+ --color-request-read: #005a9e;
23
+ --color-request-write: #107c10;
24
+ --color-request-relate: #8764b8;
17
25
  --color-request-execute: #ca5010;
18
- --color-request-binary: #9d432c;
26
+ --color-request-binary: #9d432c;
19
27
 
20
- --color-method-get: #005a9e;
21
- --color-method-post: #107c10;
22
- --color-method-patch: #ca5010;
23
- --color-method-put: #9d432c;
28
+ --color-method-get: #005a9e;
29
+ --color-method-post: #107c10;
30
+ --color-method-patch: #ca5010;
31
+ --color-method-put: #9d432c;
24
32
  --color-method-delete: #a4262c;
25
- --color-method-batch: #8764b8;
33
+ --color-method-batch: #8764b8;
26
34
 
27
35
  --canvas-bg: #f0eee9;
28
36
  }
29
37
  :root[data-theme='dark'] {
30
- --color-request-read: #62b1f8;
31
- --color-request-write: #6ccb5f;
32
- --color-request-relate: #b4a0ff;
38
+ --color-request-read: #62b1f8;
39
+ --color-request-write: #6ccb5f;
40
+ --color-request-relate: #b4a0ff;
33
41
  --color-request-execute: #f7894a;
34
- --color-request-binary: #d69c8b;
42
+ --color-request-binary: #d69c8b;
35
43
 
36
- --color-method-get: #62b1f8;
37
- --color-method-post: #6ccb5f;
38
- --color-method-patch: #f7894a;
39
- --color-method-put: #d69c8b;
44
+ --color-method-get: #62b1f8;
45
+ --color-method-post: #6ccb5f;
46
+ --color-method-patch: #f7894a;
47
+ --color-method-put: #d69c8b;
40
48
  --color-method-delete: #f1707b;
41
- --color-method-batch: #b4a0ff;
49
+ --color-method-batch: #b4a0ff;
42
50
 
43
51
  --canvas-bg: #1a1a1a;
44
52
  }
@@ -69,52 +77,52 @@
69
77
  a no-op cascade for the most common mode group.
70
78
  ───────────────────────────────────────────────────────────── */
71
79
  [data-mode-group='write'] {
72
- --colorBrandBackground: var(--color-request-write);
73
- --colorBrandBackgroundHover: var(--color-request-write);
74
- --colorBrandBackgroundPressed: var(--color-request-write);
80
+ --colorBrandBackground: var(--color-request-write);
81
+ --colorBrandBackgroundHover: var(--color-request-write);
82
+ --colorBrandBackgroundPressed: var(--color-request-write);
75
83
  --colorBrandBackgroundSelected: var(--color-request-write);
76
- --colorBrandStroke1: var(--color-request-write);
77
- --colorBrandStroke2: var(--color-request-write);
78
- --colorBrandForeground1: var(--color-request-write);
79
- --colorBrandForeground2: var(--color-request-write);
84
+ --colorBrandStroke1: var(--color-request-write);
85
+ --colorBrandStroke2: var(--color-request-write);
86
+ --colorBrandForeground1: var(--color-request-write);
87
+ --colorBrandForeground2: var(--color-request-write);
80
88
  --colorCompoundBrandBackground: var(--color-request-write);
81
- --colorCompoundBrandStroke: var(--color-request-write);
89
+ --colorCompoundBrandStroke: var(--color-request-write);
82
90
  }
83
91
  [data-mode-group='relate'] {
84
- --colorBrandBackground: var(--color-request-relate);
85
- --colorBrandBackgroundHover: var(--color-request-relate);
86
- --colorBrandBackgroundPressed: var(--color-request-relate);
92
+ --colorBrandBackground: var(--color-request-relate);
93
+ --colorBrandBackgroundHover: var(--color-request-relate);
94
+ --colorBrandBackgroundPressed: var(--color-request-relate);
87
95
  --colorBrandBackgroundSelected: var(--color-request-relate);
88
- --colorBrandStroke1: var(--color-request-relate);
89
- --colorBrandStroke2: var(--color-request-relate);
90
- --colorBrandForeground1: var(--color-request-relate);
91
- --colorBrandForeground2: var(--color-request-relate);
96
+ --colorBrandStroke1: var(--color-request-relate);
97
+ --colorBrandStroke2: var(--color-request-relate);
98
+ --colorBrandForeground1: var(--color-request-relate);
99
+ --colorBrandForeground2: var(--color-request-relate);
92
100
  --colorCompoundBrandBackground: var(--color-request-relate);
93
- --colorCompoundBrandStroke: var(--color-request-relate);
101
+ --colorCompoundBrandStroke: var(--color-request-relate);
94
102
  }
95
103
  [data-mode-group='execute'] {
96
- --colorBrandBackground: var(--color-request-execute);
97
- --colorBrandBackgroundHover: var(--color-request-execute);
98
- --colorBrandBackgroundPressed: var(--color-request-execute);
104
+ --colorBrandBackground: var(--color-request-execute);
105
+ --colorBrandBackgroundHover: var(--color-request-execute);
106
+ --colorBrandBackgroundPressed: var(--color-request-execute);
99
107
  --colorBrandBackgroundSelected: var(--color-request-execute);
100
- --colorBrandStroke1: var(--color-request-execute);
101
- --colorBrandStroke2: var(--color-request-execute);
102
- --colorBrandForeground1: var(--color-request-execute);
103
- --colorBrandForeground2: var(--color-request-execute);
108
+ --colorBrandStroke1: var(--color-request-execute);
109
+ --colorBrandStroke2: var(--color-request-execute);
110
+ --colorBrandForeground1: var(--color-request-execute);
111
+ --colorBrandForeground2: var(--color-request-execute);
104
112
  --colorCompoundBrandBackground: var(--color-request-execute);
105
- --colorCompoundBrandStroke: var(--color-request-execute);
113
+ --colorCompoundBrandStroke: var(--color-request-execute);
106
114
  }
107
115
  [data-mode-group='binary'] {
108
- --colorBrandBackground: var(--color-request-binary);
109
- --colorBrandBackgroundHover: var(--color-request-binary);
110
- --colorBrandBackgroundPressed: var(--color-request-binary);
116
+ --colorBrandBackground: var(--color-request-binary);
117
+ --colorBrandBackgroundHover: var(--color-request-binary);
118
+ --colorBrandBackgroundPressed: var(--color-request-binary);
111
119
  --colorBrandBackgroundSelected: var(--color-request-binary);
112
- --colorBrandStroke1: var(--color-request-binary);
113
- --colorBrandStroke2: var(--color-request-binary);
114
- --colorBrandForeground1: var(--color-request-binary);
115
- --colorBrandForeground2: var(--color-request-binary);
120
+ --colorBrandStroke1: var(--color-request-binary);
121
+ --colorBrandStroke2: var(--color-request-binary);
122
+ --colorBrandForeground1: var(--color-request-binary);
123
+ --colorBrandForeground2: var(--color-request-binary);
116
124
  --colorCompoundBrandBackground: var(--color-request-binary);
117
- --colorCompoundBrandStroke: var(--color-request-binary);
125
+ --colorCompoundBrandStroke: var(--color-request-binary);
118
126
  }
119
127
 
120
128
  /* ─────────────────────────────────────────────────────────────
@@ -141,7 +149,7 @@
141
149
  /* Firefox + standards-track Chromium 121+ */
142
150
  * {
143
151
  scrollbar-width: thin;
144
- scrollbar-color: rgba(96, 94, 92, 0.40) transparent;
152
+ scrollbar-color: rgba(96, 94, 92, 0.4) transparent;
145
153
  }
146
154
 
147
155
  /* WebKit / Blink — finer control */
@@ -166,7 +174,7 @@
166
174
  background-clip: content-box;
167
175
  }
168
176
  *::-webkit-scrollbar-thumb:active {
169
- background-color: rgba(96, 94, 92, 0.80);
177
+ background-color: rgba(96, 94, 92, 0.8);
170
178
  background-clip: content-box;
171
179
  }
172
180
  *::-webkit-scrollbar-corner {
@@ -179,7 +187,7 @@
179
187
  scrollbar-color: rgba(200, 198, 196, 0.35) transparent;
180
188
  }
181
189
  :root[data-theme='dark'] *::-webkit-scrollbar-thumb {
182
- background-color: rgba(200, 198, 196, 0.30);
190
+ background-color: rgba(200, 198, 196, 0.3);
183
191
  background-clip: content-box;
184
192
  }
185
193
  :root[data-theme='dark'] *::-webkit-scrollbar-thumb:hover {
@@ -192,42 +200,66 @@
192
200
  }
193
201
 
194
202
  #boot-splash {
195
- position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
196
- flex-direction: column; gap: 16px; background: var(--canvas-bg); z-index: 1;
203
+ position: fixed;
204
+ inset: 0;
205
+ display: flex;
206
+ align-items: center;
207
+ justify-content: center;
208
+ flex-direction: column;
209
+ gap: 16px;
210
+ background: var(--canvas-bg);
211
+ z-index: 1;
197
212
  }
198
213
  #boot-splash .ring {
199
- width: 32px; height: 32px; border: 3px solid #e0dfde; border-top-color: #0f6cbd;
200
- border-radius: 50%; animation: spin 1s linear infinite;
201
- }
202
- #boot-splash .label { font-size: 13px; color: #605e5c; }
203
- #boot-splash.hide { opacity: 0; pointer-events: none; transition: opacity 0.2s; }
204
- @keyframes spin { to { transform: rotate(360deg); } }
205
- </style>
206
- <script type="module" crossorigin src="/assets/index-Dbsyt-Z9.js"></script>
214
+ width: 32px;
215
+ height: 32px;
216
+ border: 3px solid #e0dfde;
217
+ border-top-color: #0f6cbd;
218
+ border-radius: 50%;
219
+ animation: spin 1s linear infinite;
220
+ }
221
+ #boot-splash .label {
222
+ font-size: 13px;
223
+ color: #605e5c;
224
+ }
225
+ #boot-splash.hide {
226
+ opacity: 0;
227
+ pointer-events: none;
228
+ transition: opacity 0.2s;
229
+ }
230
+ @keyframes spin {
231
+ to {
232
+ transform: rotate(360deg);
233
+ }
234
+ }
235
+ </style>
236
+ <script type="module" crossorigin src="/assets/index-CCZE1KQi.js"></script>
207
237
  <link rel="modulepreload" crossorigin href="/assets/monaco-editor-ErGqj9vD.js">
208
238
  <link rel="stylesheet" crossorigin href="/assets/monaco-editor-I3pIE735.css">
209
- </head>
210
- <body>
211
- <div id="boot-splash">
212
- <div class="ring"></div>
213
- <div class="label">Loading Dataverse Request Studio…</div>
214
- </div>
215
- <div id="root"></div>
216
- <!-- Anti-flash theme bootstrap.
217
- When embedded in PPTB the host appends `?pptb=1&theme=dark` (or light).
218
- Reading it synchronously here lets us paint the right background before
219
- the React bundle parses + mounts. Without this the iframe flashes light
220
- even when the host is in dark mode. -->
221
- <script>
222
- (function () {
223
- try {
224
- var p = new URLSearchParams(window.location.search);
225
- var t = p.get('theme');
226
- if (t === 'dark' || t === 'light') {
227
- document.documentElement.setAttribute('data-theme', t);
228
- }
229
- } catch (e) { /* ignore — fall back to default light */ }
230
- })();
231
- </script>
232
- </body>
233
- </html>
239
+ </head>
240
+ <body>
241
+ <div id="boot-splash">
242
+ <div class="ring"></div>
243
+ <div class="label">Loading Dataverse Request Studio…</div>
244
+ </div>
245
+ <div id="root"></div>
246
+ <!-- Anti-flash theme bootstrap.
247
+ When embedded in PPTB the host appends `?pptb=1&theme=dark` (or light).
248
+ Reading it synchronously here lets us paint the right background before
249
+ the React bundle parses + mounts. Without this the iframe flashes light
250
+ even when the host is in dark mode. -->
251
+ <script>
252
+ (function () {
253
+ try {
254
+ var p = new URLSearchParams(window.location.search);
255
+ var t = p.get('theme');
256
+ if (t === 'dark' || t === 'light') {
257
+ document.documentElement.setAttribute('data-theme', t);
258
+ }
259
+ } catch (e) {
260
+ /* ignore — fall back to default light */
261
+ }
262
+ })();
263
+ </script>
264
+ </body>
265
+ </html>