@mohsinonxrm/pptb-dataverse-request-studio 1.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/CHANGELOG.md +191 -0
- package/LICENSE +661 -0
- package/README.md +390 -0
- package/SECURITY.md +51 -0
- package/dist/assets/abap-CRCWOmpq.js +1 -0
- package/dist/assets/apex-DnsZk_dE.js +1 -0
- package/dist/assets/azcli-1IWB1ccx.js +1 -0
- package/dist/assets/bat-DPkNLes8.js +1 -0
- package/dist/assets/bicep-Corcdgou.js +2 -0
- package/dist/assets/cameligo-CGrWLZr3.js +1 -0
- package/dist/assets/clojure-D9WOWImG.js +1 -0
- package/dist/assets/codicon-B_Z2XQ3P.ttf +0 -0
- package/dist/assets/coffee-B7EJu28W.js +1 -0
- package/dist/assets/cpp-SEyurbux.js +1 -0
- package/dist/assets/csharp-BoL64M5l.js +1 -0
- package/dist/assets/csp-C46ZqvIl.js +1 -0
- package/dist/assets/css-DQU6DXDx.js +3 -0
- package/dist/assets/css.worker-CwQehIRV.js +93 -0
- package/dist/assets/cssMode-DHcTSP5p.js +4 -0
- package/dist/assets/cypher-D84EuPTj.js +1 -0
- package/dist/assets/dart-D8lhlL1r.js +1 -0
- package/dist/assets/dockerfile-DLk6rpji.js +1 -0
- package/dist/assets/ecl-BO6FnfXk.js +1 -0
- package/dist/assets/editor.worker-BTQWY0pc.js +26 -0
- package/dist/assets/elixir-BRjLKONM.js +1 -0
- package/dist/assets/flow9-Cac8vKd7.js +1 -0
- package/dist/assets/freemarker2-CY0Qd_yj.js +3 -0
- package/dist/assets/fsharp-fd1GTHhf.js +1 -0
- package/dist/assets/go-O9LJTZXk.js +1 -0
- package/dist/assets/graphql-LQdxqEYJ.js +1 -0
- package/dist/assets/handlebars-BQEEw1Ke.js +1 -0
- package/dist/assets/hcl-DxDQ3s82.js +1 -0
- package/dist/assets/html-BXibA6yW.js +1 -0
- package/dist/assets/html.worker-4xVL0wjo.js +470 -0
- package/dist/assets/htmlMode-BIOKXbRP.js +4 -0
- package/dist/assets/index-5a71OtQP.js +672 -0
- package/dist/assets/ini-BvajGCUy.js +1 -0
- package/dist/assets/java-SYsfObOQ.js +1 -0
- package/dist/assets/javascript-BY4qn0pJ.js +1 -0
- package/dist/assets/json.worker-FkK47hN5.js +58 -0
- package/dist/assets/jsonMode-BzZNqTrE.js +10 -0
- package/dist/assets/julia-DQXNmw_w.js +1 -0
- package/dist/assets/kotlin-qQ0MG-9I.js +1 -0
- package/dist/assets/less-GGFNNJHn.js +2 -0
- package/dist/assets/lexon-Canl7DCW.js +1 -0
- package/dist/assets/liquid-noPAIv1T.js +1 -0
- package/dist/assets/lua-D28Ae8-K.js +1 -0
- package/dist/assets/m3-DPitgjJI.js +1 -0
- package/dist/assets/markdown-B811l8j2.js +1 -0
- package/dist/assets/mdx-Ccyf8KqT.js +1 -0
- package/dist/assets/mips-CdjsipkG.js +1 -0
- package/dist/assets/monaco-editor-ErGqj9vD.js +901 -0
- package/dist/assets/monaco-editor-I3pIE735.css +1 -0
- package/dist/assets/msdax-CYqgjx_P.js +1 -0
- package/dist/assets/mysql-BHd6q0vd.js +1 -0
- package/dist/assets/objective-c-B1aVtJYH.js +1 -0
- package/dist/assets/pascal-BhNW15KB.js +1 -0
- package/dist/assets/pascaligo-5jv8CcQD.js +1 -0
- package/dist/assets/perl-DlYyT36c.js +1 -0
- package/dist/assets/pgsql-Dy0bjov7.js +1 -0
- package/dist/assets/php-120yhfDK.js +1 -0
- package/dist/assets/pla-CjnFlu4u.js +1 -0
- package/dist/assets/postiats-CQpG440k.js +1 -0
- package/dist/assets/powerquery-DdJtto1Z.js +1 -0
- package/dist/assets/powershell-Bu_VLpJB.js +1 -0
- package/dist/assets/protobuf-IBS6jZEB.js +2 -0
- package/dist/assets/pug-kFxLfcjb.js +1 -0
- package/dist/assets/python-CTl0fa86.js +1 -0
- package/dist/assets/qsharp-q7JyzKFN.js +1 -0
- package/dist/assets/r-BIFz-_sK.js +1 -0
- package/dist/assets/razor-DoNzFhT2.js +1 -0
- package/dist/assets/redis-CHOsPHWR.js +1 -0
- package/dist/assets/redshift-CBifECDb.js +1 -0
- package/dist/assets/restructuredtext-CghPJEOS.js +1 -0
- package/dist/assets/ruby-CYWGW-b1.js +1 -0
- package/dist/assets/rust-DMDD0SHb.js +1 -0
- package/dist/assets/sb-BYAiYHFx.js +1 -0
- package/dist/assets/scala-Bqvq8jcR.js +1 -0
- package/dist/assets/scheme-Dhb-2j9p.js +1 -0
- package/dist/assets/scss-CTwUZ5N7.js +3 -0
- package/dist/assets/shell-CsDZo4DB.js +1 -0
- package/dist/assets/solidity-CME5AdoB.js +1 -0
- package/dist/assets/sophia-RYC1BQQz.js +1 -0
- package/dist/assets/sparql-KEyrF7De.js +1 -0
- package/dist/assets/sql-BdTr02Mf.js +1 -0
- package/dist/assets/st-C7iG7M4S.js +1 -0
- package/dist/assets/swift-D7IUmUK8.js +1 -0
- package/dist/assets/systemverilog-DgMryOEJ.js +1 -0
- package/dist/assets/tcl-PloMZuKG.js +1 -0
- package/dist/assets/ts.worker-B8Ae6930.js +51330 -0
- package/dist/assets/tsMode-B1b3lx86.js +11 -0
- package/dist/assets/twig-BfRIq3la.js +1 -0
- package/dist/assets/typescript-ONTfb8eq.js +1 -0
- package/dist/assets/typespec-CzxlYoT_.js +1 -0
- package/dist/assets/vb-BwAE3J76.js +1 -0
- package/dist/assets/wgsl-Dksx_ONF.js +298 -0
- package/dist/assets/xml-6DyixHd0.js +1 -0
- package/dist/assets/yaml-B9La2-TQ.js +1 -0
- package/dist/index.html +233 -0
- package/icons/icon-insider.svg +22 -0
- package/icons/icon.svg +25 -0
- package/index.html +231 -0
- package/npm-shrinkwrap.json +3815 -0
- package/package.json +98 -0
package/dist/index.html
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
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
|
+
<style>
|
|
8
|
+
html, body, #root { height: 100%; margin: 0; padding: 0; }
|
|
9
|
+
body { font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif; }
|
|
10
|
+
|
|
11
|
+
/* Brand / method colors — CSS-var bridge per gotcha G-001.
|
|
12
|
+
Switched on data-theme attribute on <html>. */
|
|
13
|
+
:root[data-theme='light'] {
|
|
14
|
+
--color-request-read: #005a9e;
|
|
15
|
+
--color-request-write: #107c10;
|
|
16
|
+
--color-request-relate: #8764b8;
|
|
17
|
+
--color-request-execute: #ca5010;
|
|
18
|
+
--color-request-binary: #9d432c;
|
|
19
|
+
|
|
20
|
+
--color-method-get: #005a9e;
|
|
21
|
+
--color-method-post: #107c10;
|
|
22
|
+
--color-method-patch: #ca5010;
|
|
23
|
+
--color-method-put: #9d432c;
|
|
24
|
+
--color-method-delete: #a4262c;
|
|
25
|
+
--color-method-batch: #8764b8;
|
|
26
|
+
|
|
27
|
+
--canvas-bg: #f0eee9;
|
|
28
|
+
}
|
|
29
|
+
:root[data-theme='dark'] {
|
|
30
|
+
--color-request-read: #62b1f8;
|
|
31
|
+
--color-request-write: #6ccb5f;
|
|
32
|
+
--color-request-relate: #b4a0ff;
|
|
33
|
+
--color-request-execute: #f7894a;
|
|
34
|
+
--color-request-binary: #d69c8b;
|
|
35
|
+
|
|
36
|
+
--color-method-get: #62b1f8;
|
|
37
|
+
--color-method-post: #6ccb5f;
|
|
38
|
+
--color-method-patch: #f7894a;
|
|
39
|
+
--color-method-put: #d69c8b;
|
|
40
|
+
--color-method-delete: #f1707b;
|
|
41
|
+
--color-method-batch: #b4a0ff;
|
|
42
|
+
|
|
43
|
+
--canvas-bg: #1a1a1a;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* ─────────────────────────────────────────────────────────────
|
|
47
|
+
Group-color cascade — per v3-design-review P0-1.
|
|
48
|
+
When the frame body carries `data-mode-group="<group>"`, every
|
|
49
|
+
Fluent v9 token that drives "brand" chrome (primary button,
|
|
50
|
+
active tab underline, focus ring, tinted backgrounds) is
|
|
51
|
+
remapped to the group color. Result: the Execute button on
|
|
52
|
+
Create reads green, the active tab underline on Associate
|
|
53
|
+
reads purple, etc. — without touching component code.
|
|
54
|
+
|
|
55
|
+
Tokens we override:
|
|
56
|
+
--colorBrandBackground : primary button bg
|
|
57
|
+
--colorBrandBackgroundHover : primary button hover bg
|
|
58
|
+
--colorBrandStroke1 : focus rings, active borders
|
|
59
|
+
--colorBrandStroke2 : tinted card borders
|
|
60
|
+
--colorBrandBackground2 : tinted card backgrounds
|
|
61
|
+
--colorBrandBackground2Hover : tinted card hover bg
|
|
62
|
+
--colorBrandForeground1 : icon + emphasis fg
|
|
63
|
+
--colorBrandForeground2 : caption + helper fg
|
|
64
|
+
--colorCompoundBrandBackground: TabList active underline
|
|
65
|
+
--colorCompoundBrandStroke : compound borders
|
|
66
|
+
|
|
67
|
+
The Read group keeps the v9 defaults (blue) since v9's brand
|
|
68
|
+
IS blue, so we only override for non-read groups. This avoids
|
|
69
|
+
a no-op cascade for the most common mode group.
|
|
70
|
+
───────────────────────────────────────────────────────────── */
|
|
71
|
+
[data-mode-group='write'] {
|
|
72
|
+
--colorBrandBackground: var(--color-request-write);
|
|
73
|
+
--colorBrandBackgroundHover: var(--color-request-write);
|
|
74
|
+
--colorBrandBackgroundPressed: var(--color-request-write);
|
|
75
|
+
--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);
|
|
80
|
+
--colorCompoundBrandBackground: var(--color-request-write);
|
|
81
|
+
--colorCompoundBrandStroke: var(--color-request-write);
|
|
82
|
+
}
|
|
83
|
+
[data-mode-group='relate'] {
|
|
84
|
+
--colorBrandBackground: var(--color-request-relate);
|
|
85
|
+
--colorBrandBackgroundHover: var(--color-request-relate);
|
|
86
|
+
--colorBrandBackgroundPressed: var(--color-request-relate);
|
|
87
|
+
--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);
|
|
92
|
+
--colorCompoundBrandBackground: var(--color-request-relate);
|
|
93
|
+
--colorCompoundBrandStroke: var(--color-request-relate);
|
|
94
|
+
}
|
|
95
|
+
[data-mode-group='execute'] {
|
|
96
|
+
--colorBrandBackground: var(--color-request-execute);
|
|
97
|
+
--colorBrandBackgroundHover: var(--color-request-execute);
|
|
98
|
+
--colorBrandBackgroundPressed: var(--color-request-execute);
|
|
99
|
+
--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);
|
|
104
|
+
--colorCompoundBrandBackground: var(--color-request-execute);
|
|
105
|
+
--colorCompoundBrandStroke: var(--color-request-execute);
|
|
106
|
+
}
|
|
107
|
+
[data-mode-group='binary'] {
|
|
108
|
+
--colorBrandBackground: var(--color-request-binary);
|
|
109
|
+
--colorBrandBackgroundHover: var(--color-request-binary);
|
|
110
|
+
--colorBrandBackgroundPressed: var(--color-request-binary);
|
|
111
|
+
--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);
|
|
116
|
+
--colorCompoundBrandBackground: var(--color-request-binary);
|
|
117
|
+
--colorCompoundBrandStroke: var(--color-request-binary);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* ─────────────────────────────────────────────────────────────
|
|
121
|
+
Slim Fluent-themed scrollbars.
|
|
122
|
+
|
|
123
|
+
Default Windows / Chromium scrollbars on Win 11 at 125% DPI are
|
|
124
|
+
the thick "flat" style (~17 px) and look out of place inside a
|
|
125
|
+
Fluent v9 surface. We replace them with the slim overlay style
|
|
126
|
+
Microsoft 365 web apps use: ~10 px width, semi-transparent gray
|
|
127
|
+
thumb, transparent track, slightly bolder on hover. Theme-aware
|
|
128
|
+
via [data-theme='dark'].
|
|
129
|
+
|
|
130
|
+
Design rationale (Fluent 2 + WCAG 2.5.7 "Dragging movements"):
|
|
131
|
+
we deliberately do NOT hide scrollbars. Hidden scrollbars hurt
|
|
132
|
+
discoverability + keyboard nav. Slim-but-visible is the right
|
|
133
|
+
balance: present but unobtrusive.
|
|
134
|
+
|
|
135
|
+
Applied via `*` so every scrollable surface gets the treatment
|
|
136
|
+
(mainBody, virtualized grid body, drawer scroll, etc.). Monaco
|
|
137
|
+
paints its own scrollbar over an internally-hidden native one,
|
|
138
|
+
so it's unaffected.
|
|
139
|
+
───────────────────────────────────────────────────────────── */
|
|
140
|
+
|
|
141
|
+
/* Firefox + standards-track Chromium 121+ */
|
|
142
|
+
* {
|
|
143
|
+
scrollbar-width: thin;
|
|
144
|
+
scrollbar-color: rgba(96, 94, 92, 0.40) transparent;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* WebKit / Blink — finer control */
|
|
148
|
+
*::-webkit-scrollbar {
|
|
149
|
+
width: 10px;
|
|
150
|
+
height: 10px;
|
|
151
|
+
}
|
|
152
|
+
*::-webkit-scrollbar-track {
|
|
153
|
+
background: transparent;
|
|
154
|
+
}
|
|
155
|
+
*::-webkit-scrollbar-thumb {
|
|
156
|
+
background-color: rgba(96, 94, 92, 0.35);
|
|
157
|
+
border-radius: 8px;
|
|
158
|
+
/* 2 px transparent border + background-clip gives the thumb a
|
|
159
|
+
visual gap from the track edge (overlay-scrollbar feel)
|
|
160
|
+
without the actual track ever being visible. */
|
|
161
|
+
border: 2px solid transparent;
|
|
162
|
+
background-clip: content-box;
|
|
163
|
+
}
|
|
164
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
165
|
+
background-color: rgba(96, 94, 92, 0.65);
|
|
166
|
+
background-clip: content-box;
|
|
167
|
+
}
|
|
168
|
+
*::-webkit-scrollbar-thumb:active {
|
|
169
|
+
background-color: rgba(96, 94, 92, 0.80);
|
|
170
|
+
background-clip: content-box;
|
|
171
|
+
}
|
|
172
|
+
*::-webkit-scrollbar-corner {
|
|
173
|
+
background: transparent;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* Dark theme — flip thumb color so it remains visible against
|
|
177
|
+
dark surfaces. Same opacity progression idle → hover → active. */
|
|
178
|
+
:root[data-theme='dark'] * {
|
|
179
|
+
scrollbar-color: rgba(200, 198, 196, 0.35) transparent;
|
|
180
|
+
}
|
|
181
|
+
:root[data-theme='dark'] *::-webkit-scrollbar-thumb {
|
|
182
|
+
background-color: rgba(200, 198, 196, 0.30);
|
|
183
|
+
background-clip: content-box;
|
|
184
|
+
}
|
|
185
|
+
:root[data-theme='dark'] *::-webkit-scrollbar-thumb:hover {
|
|
186
|
+
background-color: rgba(200, 198, 196, 0.55);
|
|
187
|
+
background-clip: content-box;
|
|
188
|
+
}
|
|
189
|
+
:root[data-theme='dark'] *::-webkit-scrollbar-thumb:active {
|
|
190
|
+
background-color: rgba(200, 198, 196, 0.75);
|
|
191
|
+
background-clip: content-box;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
#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;
|
|
197
|
+
}
|
|
198
|
+
#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-5a71OtQP.js"></script>
|
|
207
|
+
<link rel="modulepreload" crossorigin href="/assets/monaco-editor-ErGqj9vD.js">
|
|
208
|
+
<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>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
|
|
2
|
+
<!-- Variant L — "Insider build" / DRS
|
|
3
|
+
Same K chassis + small gold-orange triangle filling the top-right
|
|
4
|
+
vertex of the hex = Microsoft Office Insiders precedent.
|
|
5
|
+
Gold (#FFB900) is the Microsoft Insiders signature color across
|
|
6
|
+
Office / Windows; reads as "Insider build" to anyone in the
|
|
7
|
+
Microsoft ecosystem. -->
|
|
8
|
+
|
|
9
|
+
<path d="M 18 8 L 46 8 L 60 32 L 46 56 L 18 56 L 4 32 Z" fill="#0E5A9C"/>
|
|
10
|
+
<polygon points="46,8 60,32 46,56 18,56" fill="#2B8FD9"/>
|
|
11
|
+
|
|
12
|
+
<!-- Insider stamp — gold triangle in top-right vertex -->
|
|
13
|
+
<polygon points="46,8 40,8 49,15" fill="#FFB900"/>
|
|
14
|
+
|
|
15
|
+
<!-- Tool glyph — { → } in white -->
|
|
16
|
+
<path d="M22 22 C 18 22 18 25 18 28 C 18 31 16 33 15 33 C 16 33 18 35 18 38 C 18 41 18 44 22 44"
|
|
17
|
+
stroke="#fff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
18
|
+
<path d="M42 22 C 46 22 46 25 46 28 C 46 31 48 33 49 33 C 48 33 46 35 46 38 C 46 41 46 44 42 44"
|
|
19
|
+
stroke="#fff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
20
|
+
<line x1="24" y1="33" x2="40" y2="33" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/>
|
|
21
|
+
<polyline points="36,29 40,33 36,37" stroke="#fff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
22
|
+
</svg>
|
package/icons/icon.svg
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
|
|
2
|
+
<!-- Variant K — "Clean hex split" / DRS
|
|
3
|
+
Just the diagonal two-tone hex + white glyph centered. No stripe,
|
|
4
|
+
no extra ornament — the split alone is the family signature; the
|
|
5
|
+
glyph carries the tool identity.
|
|
6
|
+
Diagonal now runs vertex-to-vertex (top-right vertex (46,8) →
|
|
7
|
+
bottom-left vertex (18,56)) for a geometrically clean split. -->
|
|
8
|
+
|
|
9
|
+
<!-- Whole hex starts as deep navy -->
|
|
10
|
+
<path d="M 18 8 L 46 8 L 60 32 L 46 56 L 18 56 L 4 32 Z"
|
|
11
|
+
fill="#0E5A9C"/>
|
|
12
|
+
|
|
13
|
+
<!-- Lower-right half: brighter blue quadrilateral
|
|
14
|
+
(top-right vertex → right vertex → bottom-right vertex → bottom-left vertex,
|
|
15
|
+
closing edge IS the diagonal split) -->
|
|
16
|
+
<polygon points="46,8 60,32 46,56 18,56" fill="#2B8FD9"/>
|
|
17
|
+
|
|
18
|
+
<!-- Tool glyph — { → } in white -->
|
|
19
|
+
<path d="M22 22 C 18 22 18 25 18 28 C 18 31 16 33 15 33 C 16 33 18 35 18 38 C 18 41 18 44 22 44"
|
|
20
|
+
stroke="#fff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
21
|
+
<path d="M42 22 C 46 22 46 25 46 28 C 46 31 48 33 49 33 C 48 33 46 35 46 38 C 46 41 46 44 42 44"
|
|
22
|
+
stroke="#fff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
23
|
+
<line x1="24" y1="33" x2="40" y2="33" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/>
|
|
24
|
+
<polyline points="36,29 40,33 36,37" stroke="#fff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
25
|
+
</svg>
|
package/index.html
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
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
|
+
<style>
|
|
8
|
+
html, body, #root { height: 100%; margin: 0; padding: 0; }
|
|
9
|
+
body { font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif; }
|
|
10
|
+
|
|
11
|
+
/* Brand / method colors — CSS-var bridge per gotcha G-001.
|
|
12
|
+
Switched on data-theme attribute on <html>. */
|
|
13
|
+
:root[data-theme='light'] {
|
|
14
|
+
--color-request-read: #005a9e;
|
|
15
|
+
--color-request-write: #107c10;
|
|
16
|
+
--color-request-relate: #8764b8;
|
|
17
|
+
--color-request-execute: #ca5010;
|
|
18
|
+
--color-request-binary: #9d432c;
|
|
19
|
+
|
|
20
|
+
--color-method-get: #005a9e;
|
|
21
|
+
--color-method-post: #107c10;
|
|
22
|
+
--color-method-patch: #ca5010;
|
|
23
|
+
--color-method-put: #9d432c;
|
|
24
|
+
--color-method-delete: #a4262c;
|
|
25
|
+
--color-method-batch: #8764b8;
|
|
26
|
+
|
|
27
|
+
--canvas-bg: #f0eee9;
|
|
28
|
+
}
|
|
29
|
+
:root[data-theme='dark'] {
|
|
30
|
+
--color-request-read: #62b1f8;
|
|
31
|
+
--color-request-write: #6ccb5f;
|
|
32
|
+
--color-request-relate: #b4a0ff;
|
|
33
|
+
--color-request-execute: #f7894a;
|
|
34
|
+
--color-request-binary: #d69c8b;
|
|
35
|
+
|
|
36
|
+
--color-method-get: #62b1f8;
|
|
37
|
+
--color-method-post: #6ccb5f;
|
|
38
|
+
--color-method-patch: #f7894a;
|
|
39
|
+
--color-method-put: #d69c8b;
|
|
40
|
+
--color-method-delete: #f1707b;
|
|
41
|
+
--color-method-batch: #b4a0ff;
|
|
42
|
+
|
|
43
|
+
--canvas-bg: #1a1a1a;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* ─────────────────────────────────────────────────────────────
|
|
47
|
+
Group-color cascade — per v3-design-review P0-1.
|
|
48
|
+
When the frame body carries `data-mode-group="<group>"`, every
|
|
49
|
+
Fluent v9 token that drives "brand" chrome (primary button,
|
|
50
|
+
active tab underline, focus ring, tinted backgrounds) is
|
|
51
|
+
remapped to the group color. Result: the Execute button on
|
|
52
|
+
Create reads green, the active tab underline on Associate
|
|
53
|
+
reads purple, etc. — without touching component code.
|
|
54
|
+
|
|
55
|
+
Tokens we override:
|
|
56
|
+
--colorBrandBackground : primary button bg
|
|
57
|
+
--colorBrandBackgroundHover : primary button hover bg
|
|
58
|
+
--colorBrandStroke1 : focus rings, active borders
|
|
59
|
+
--colorBrandStroke2 : tinted card borders
|
|
60
|
+
--colorBrandBackground2 : tinted card backgrounds
|
|
61
|
+
--colorBrandBackground2Hover : tinted card hover bg
|
|
62
|
+
--colorBrandForeground1 : icon + emphasis fg
|
|
63
|
+
--colorBrandForeground2 : caption + helper fg
|
|
64
|
+
--colorCompoundBrandBackground: TabList active underline
|
|
65
|
+
--colorCompoundBrandStroke : compound borders
|
|
66
|
+
|
|
67
|
+
The Read group keeps the v9 defaults (blue) since v9's brand
|
|
68
|
+
IS blue, so we only override for non-read groups. This avoids
|
|
69
|
+
a no-op cascade for the most common mode group.
|
|
70
|
+
───────────────────────────────────────────────────────────── */
|
|
71
|
+
[data-mode-group='write'] {
|
|
72
|
+
--colorBrandBackground: var(--color-request-write);
|
|
73
|
+
--colorBrandBackgroundHover: var(--color-request-write);
|
|
74
|
+
--colorBrandBackgroundPressed: var(--color-request-write);
|
|
75
|
+
--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);
|
|
80
|
+
--colorCompoundBrandBackground: var(--color-request-write);
|
|
81
|
+
--colorCompoundBrandStroke: var(--color-request-write);
|
|
82
|
+
}
|
|
83
|
+
[data-mode-group='relate'] {
|
|
84
|
+
--colorBrandBackground: var(--color-request-relate);
|
|
85
|
+
--colorBrandBackgroundHover: var(--color-request-relate);
|
|
86
|
+
--colorBrandBackgroundPressed: var(--color-request-relate);
|
|
87
|
+
--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);
|
|
92
|
+
--colorCompoundBrandBackground: var(--color-request-relate);
|
|
93
|
+
--colorCompoundBrandStroke: var(--color-request-relate);
|
|
94
|
+
}
|
|
95
|
+
[data-mode-group='execute'] {
|
|
96
|
+
--colorBrandBackground: var(--color-request-execute);
|
|
97
|
+
--colorBrandBackgroundHover: var(--color-request-execute);
|
|
98
|
+
--colorBrandBackgroundPressed: var(--color-request-execute);
|
|
99
|
+
--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);
|
|
104
|
+
--colorCompoundBrandBackground: var(--color-request-execute);
|
|
105
|
+
--colorCompoundBrandStroke: var(--color-request-execute);
|
|
106
|
+
}
|
|
107
|
+
[data-mode-group='binary'] {
|
|
108
|
+
--colorBrandBackground: var(--color-request-binary);
|
|
109
|
+
--colorBrandBackgroundHover: var(--color-request-binary);
|
|
110
|
+
--colorBrandBackgroundPressed: var(--color-request-binary);
|
|
111
|
+
--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);
|
|
116
|
+
--colorCompoundBrandBackground: var(--color-request-binary);
|
|
117
|
+
--colorCompoundBrandStroke: var(--color-request-binary);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* ─────────────────────────────────────────────────────────────
|
|
121
|
+
Slim Fluent-themed scrollbars.
|
|
122
|
+
|
|
123
|
+
Default Windows / Chromium scrollbars on Win 11 at 125% DPI are
|
|
124
|
+
the thick "flat" style (~17 px) and look out of place inside a
|
|
125
|
+
Fluent v9 surface. We replace them with the slim overlay style
|
|
126
|
+
Microsoft 365 web apps use: ~10 px width, semi-transparent gray
|
|
127
|
+
thumb, transparent track, slightly bolder on hover. Theme-aware
|
|
128
|
+
via [data-theme='dark'].
|
|
129
|
+
|
|
130
|
+
Design rationale (Fluent 2 + WCAG 2.5.7 "Dragging movements"):
|
|
131
|
+
we deliberately do NOT hide scrollbars. Hidden scrollbars hurt
|
|
132
|
+
discoverability + keyboard nav. Slim-but-visible is the right
|
|
133
|
+
balance: present but unobtrusive.
|
|
134
|
+
|
|
135
|
+
Applied via `*` so every scrollable surface gets the treatment
|
|
136
|
+
(mainBody, virtualized grid body, drawer scroll, etc.). Monaco
|
|
137
|
+
paints its own scrollbar over an internally-hidden native one,
|
|
138
|
+
so it's unaffected.
|
|
139
|
+
───────────────────────────────────────────────────────────── */
|
|
140
|
+
|
|
141
|
+
/* Firefox + standards-track Chromium 121+ */
|
|
142
|
+
* {
|
|
143
|
+
scrollbar-width: thin;
|
|
144
|
+
scrollbar-color: rgba(96, 94, 92, 0.40) transparent;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* WebKit / Blink — finer control */
|
|
148
|
+
*::-webkit-scrollbar {
|
|
149
|
+
width: 10px;
|
|
150
|
+
height: 10px;
|
|
151
|
+
}
|
|
152
|
+
*::-webkit-scrollbar-track {
|
|
153
|
+
background: transparent;
|
|
154
|
+
}
|
|
155
|
+
*::-webkit-scrollbar-thumb {
|
|
156
|
+
background-color: rgba(96, 94, 92, 0.35);
|
|
157
|
+
border-radius: 8px;
|
|
158
|
+
/* 2 px transparent border + background-clip gives the thumb a
|
|
159
|
+
visual gap from the track edge (overlay-scrollbar feel)
|
|
160
|
+
without the actual track ever being visible. */
|
|
161
|
+
border: 2px solid transparent;
|
|
162
|
+
background-clip: content-box;
|
|
163
|
+
}
|
|
164
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
165
|
+
background-color: rgba(96, 94, 92, 0.65);
|
|
166
|
+
background-clip: content-box;
|
|
167
|
+
}
|
|
168
|
+
*::-webkit-scrollbar-thumb:active {
|
|
169
|
+
background-color: rgba(96, 94, 92, 0.80);
|
|
170
|
+
background-clip: content-box;
|
|
171
|
+
}
|
|
172
|
+
*::-webkit-scrollbar-corner {
|
|
173
|
+
background: transparent;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* Dark theme — flip thumb color so it remains visible against
|
|
177
|
+
dark surfaces. Same opacity progression idle → hover → active. */
|
|
178
|
+
:root[data-theme='dark'] * {
|
|
179
|
+
scrollbar-color: rgba(200, 198, 196, 0.35) transparent;
|
|
180
|
+
}
|
|
181
|
+
:root[data-theme='dark'] *::-webkit-scrollbar-thumb {
|
|
182
|
+
background-color: rgba(200, 198, 196, 0.30);
|
|
183
|
+
background-clip: content-box;
|
|
184
|
+
}
|
|
185
|
+
:root[data-theme='dark'] *::-webkit-scrollbar-thumb:hover {
|
|
186
|
+
background-color: rgba(200, 198, 196, 0.55);
|
|
187
|
+
background-clip: content-box;
|
|
188
|
+
}
|
|
189
|
+
:root[data-theme='dark'] *::-webkit-scrollbar-thumb:active {
|
|
190
|
+
background-color: rgba(200, 198, 196, 0.75);
|
|
191
|
+
background-clip: content-box;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
#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;
|
|
197
|
+
}
|
|
198
|
+
#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
|
+
</head>
|
|
207
|
+
<body>
|
|
208
|
+
<div id="boot-splash">
|
|
209
|
+
<div class="ring"></div>
|
|
210
|
+
<div class="label">Loading Dataverse Request Studio…</div>
|
|
211
|
+
</div>
|
|
212
|
+
<div id="root"></div>
|
|
213
|
+
<!-- Anti-flash theme bootstrap.
|
|
214
|
+
When embedded in PPTB the host appends `?pptb=1&theme=dark` (or light).
|
|
215
|
+
Reading it synchronously here lets us paint the right background before
|
|
216
|
+
the React bundle parses + mounts. Without this the iframe flashes light
|
|
217
|
+
even when the host is in dark mode. -->
|
|
218
|
+
<script>
|
|
219
|
+
(function () {
|
|
220
|
+
try {
|
|
221
|
+
var p = new URLSearchParams(window.location.search);
|
|
222
|
+
var t = p.get('theme');
|
|
223
|
+
if (t === 'dark' || t === 'light') {
|
|
224
|
+
document.documentElement.setAttribute('data-theme', t);
|
|
225
|
+
}
|
|
226
|
+
} catch (e) { /* ignore — fall back to default light */ }
|
|
227
|
+
})();
|
|
228
|
+
</script>
|
|
229
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
230
|
+
</body>
|
|
231
|
+
</html>
|