@microsoft/applicationinsights-debugplugin-js 3.0.0-beta.2303-11 → 3.0.0-nightly3.2304-28
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/browser/{ai.dbg.3.0.0-beta.2303-11.cjs.js → es5/ai.dbg.3.0.0-nightly3.2304-28.cjs.js} +794 -773
- package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.cjs.js.map +1 -0
- package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.cjs.min.js +6 -0
- package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.cjs.min.js.map +1 -0
- package/browser/{ai.dbg.3.0.0-beta.2303-11.gbl.js → es5/ai.dbg.3.0.0-nightly3.2304-28.gbl.js} +795 -774
- package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.gbl.js.map +1 -0
- package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.gbl.min.js +6 -0
- package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.gbl.min.js.map +1 -0
- package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.integrity.json +66 -0
- package/browser/{ai.dbg.3.0.0-beta.2303-11.js → es5/ai.dbg.3.0.0-nightly3.2304-28.js} +795 -774
- package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.js.map +1 -0
- package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.min.js +6 -0
- package/browser/es5/ai.dbg.3.0.0-nightly3.2304-28.min.js.map +1 -0
- package/browser/{ai.dbg.3.cjs.js → es5/ai.dbg.3.cjs.js} +793 -772
- package/browser/es5/ai.dbg.3.cjs.js.map +1 -0
- package/browser/es5/ai.dbg.3.cjs.min.js +6 -0
- package/browser/es5/ai.dbg.3.cjs.min.js.map +1 -0
- package/browser/{ai.dbg.3.gbl.js → es5/ai.dbg.3.gbl.js} +794 -773
- package/browser/es5/ai.dbg.3.gbl.js.map +1 -0
- package/browser/es5/ai.dbg.3.gbl.min.js +6 -0
- package/browser/es5/ai.dbg.3.gbl.min.js.map +1 -0
- package/browser/{ai.dbg.3.js → es5/ai.dbg.3.js} +794 -773
- package/browser/es5/ai.dbg.3.js.map +1 -0
- package/browser/es5/ai.dbg.3.min.js +6 -0
- package/browser/es5/ai.dbg.3.min.js.map +1 -0
- package/dist/{applicationinsights-debugplugin-js.js → es5/applicationinsights-debugplugin-js.js} +794 -773
- package/dist/es5/applicationinsights-debugplugin-js.js.map +1 -0
- package/dist/es5/applicationinsights-debugplugin-js.min.js +6 -0
- package/dist/es5/applicationinsights-debugplugin-js.min.js.map +1 -0
- package/{dist-esm → dist-es5}/DebugPlugin.js +1 -1
- package/{dist-esm → dist-es5}/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-debugplugin-js.js +9 -0
- package/{dist-esm → dist-es5}/components/Dashboard.js +1 -1
- package/{dist-esm → dist-es5}/components/LogEntry.js +1 -1
- package/{dist-esm → dist-es5}/components/debugBins.js +1 -1
- package/{dist-esm → dist-es5}/components/filterList.js +1 -1
- package/{dist-esm → dist-es5}/components/helpers.js +1 -1
- package/{dist-esm → dist-es5}/components/styleNodeSrc.js +1 -1
- package/dist-es5/interfaces/IDebugPluginConfig.js +8 -0
- package/package.json +18 -17
- package/tsconfig.json +4 -3
- package/types/applicationinsights-debugplugin-js.d.ts +59 -2
- package/{dist/applicationinsights-debugplugin-js.d.ts → types/applicationinsights-debugplugin-js.namespaced.d.ts} +1 -1
- package/browser/ai.dbg.3.0.0-beta.2303-11.cjs.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2303-11.cjs.min.js +0 -6
- package/browser/ai.dbg.3.0.0-beta.2303-11.cjs.min.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2303-11.gbl.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2303-11.gbl.min.js +0 -6
- package/browser/ai.dbg.3.0.0-beta.2303-11.gbl.min.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2303-11.integrity.json +0 -66
- package/browser/ai.dbg.3.0.0-beta.2303-11.js.map +0 -1
- package/browser/ai.dbg.3.0.0-beta.2303-11.min.js +0 -6
- package/browser/ai.dbg.3.0.0-beta.2303-11.min.js.map +0 -1
- package/browser/ai.dbg.3.cjs.js.map +0 -1
- package/browser/ai.dbg.3.cjs.min.js +0 -6
- package/browser/ai.dbg.3.cjs.min.js.map +0 -1
- package/browser/ai.dbg.3.gbl.js.map +0 -1
- package/browser/ai.dbg.3.gbl.min.js +0 -6
- package/browser/ai.dbg.3.gbl.min.js.map +0 -1
- package/browser/ai.dbg.3.js.map +0 -1
- package/browser/ai.dbg.3.min.js +0 -6
- package/browser/ai.dbg.3.min.js.map +0 -1
- package/dist/applicationinsights-debugplugin-js.api.json +0 -464
- package/dist/applicationinsights-debugplugin-js.api.md +0 -32
- package/dist/applicationinsights-debugplugin-js.js.map +0 -1
- package/dist/applicationinsights-debugplugin-js.min.js +0 -6
- package/dist/applicationinsights-debugplugin-js.min.js.map +0 -1
- package/dist/applicationinsights-debugplugin-js.rollup.d.ts +0 -60
- package/dist-esm/applicationinsights-debugplugin-js.js +0 -9
- package/dist-esm/interfaces/IDebugPluginConfig.js +0 -8
- package/src/DebugPlugin.ts +0 -397
- package/src/__DynamicConstants.ts +0 -51
- package/src/applicationinsights-debugplugin-js.ts +0 -6
- package/src/components/Dashboard.ts +0 -288
- package/src/components/LogEntry.ts +0 -102
- package/src/components/debugBins.ts +0 -127
- package/src/components/filterList.ts +0 -128
- package/src/components/helpers.ts +0 -474
- package/src/components/styleNodeSrc.ts +0 -435
- package/src/interfaces/IDebugPluginConfig.ts +0 -39
- package/src/localization/EN-US.json +0 -0
- package/types/DebugPlugin.d.ts +0 -9
- package/types/__DynamicConstants.d.ts +0 -39
- package/types/components/Dashboard.d.ts +0 -19
- package/types/components/LogEntry.d.ts +0 -9
- package/types/components/debugBins.d.ts +0 -24
- package/types/components/filterList.d.ts +0 -7
- package/types/components/helpers.d.ts +0 -9
- package/types/components/styleNodeSrc.d.ts +0 -2
- package/types/interfaces/IDebugPluginConfig.d.ts +0 -28
- package/types/tsdoc-metadata.json +0 -11
- /package/{dist-esm → dist-es5}/DebugPlugin.js.map +0 -0
- /package/{dist-esm → dist-es5}/__DynamicConstants.js.map +0 -0
- /package/{dist-esm → dist-es5}/applicationinsights-debugplugin-js.js.map +0 -0
- /package/{dist-esm → dist-es5}/components/Dashboard.js.map +0 -0
- /package/{dist-esm → dist-es5}/components/LogEntry.js.map +0 -0
- /package/{dist-esm → dist-es5}/components/debugBins.js.map +0 -0
- /package/{dist-esm → dist-es5}/components/filterList.js.map +0 -0
- /package/{dist-esm → dist-es5}/components/helpers.js.map +0 -0
- /package/{dist-esm → dist-es5}/components/styleNodeSrc.js.map +0 -0
- /package/{dist-esm → dist-es5}/interfaces/IDebugPluginConfig.js.map +0 -0
|
@@ -1,435 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
// @skip-file-minify
|
|
4
|
-
|
|
5
|
-
import { getIEVersion } from "@microsoft/applicationinsights-core-js";
|
|
6
|
-
|
|
7
|
-
const BG_INFO = "#F0F6FF",
|
|
8
|
-
BG_ERROR = "#FEF0F1",
|
|
9
|
-
ICON_ERROR = "#E00B1C",
|
|
10
|
-
BTN_PRIMARY = "#0078d4",
|
|
11
|
-
BTN_HOVER = "#106EBE",
|
|
12
|
-
BTN_ACTIVE = "#005A9E",
|
|
13
|
-
TEXT_PRIMARY = "#323130",
|
|
14
|
-
TEXT_MATCHED = "yellow",
|
|
15
|
-
BORDER_GREY_160 = "1px solid #605E5C",
|
|
16
|
-
BORDER_GREY_60 = "1px solid #B3B0AD";
|
|
17
|
-
|
|
18
|
-
console.log(getIEVersion());
|
|
19
|
-
|
|
20
|
-
export const tempStyle = (prefix: string) => `
|
|
21
|
-
.${prefix}-dbg-lgr-dashboard {
|
|
22
|
-
z-index: 1000
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.${prefix}-dbg-lgr-dashboard .controls {
|
|
26
|
-
width: 90%;
|
|
27
|
-
min-width: 600px;
|
|
28
|
-
position: relative;
|
|
29
|
-
margin: auto;
|
|
30
|
-
left: 0;
|
|
31
|
-
right: 0;
|
|
32
|
-
font-family: monospace;
|
|
33
|
-
font-size: 16px;
|
|
34
|
-
border-color: ${BG_INFO};
|
|
35
|
-
border: 1px solid;
|
|
36
|
-
background-color: transparent;
|
|
37
|
-
display: block;
|
|
38
|
-
padding-top: 3px;
|
|
39
|
-
padding-bottom: 3px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.${prefix}-dbg-lgr-dashboard .controls > div {
|
|
43
|
-
display: inline-block;
|
|
44
|
-
position: relative;
|
|
45
|
-
padding: 3px 20px;
|
|
46
|
-
z-index: 1010
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.${prefix}-dbg-lgr {
|
|
50
|
-
width: 90%;
|
|
51
|
-
min-width: 600px;
|
|
52
|
-
height: 80%;
|
|
53
|
-
position: relative;
|
|
54
|
-
margin: auto;
|
|
55
|
-
left: 0;
|
|
56
|
-
right: 0;
|
|
57
|
-
font-family: monospace;
|
|
58
|
-
font-size: 16px;
|
|
59
|
-
overflow-y: scroll;
|
|
60
|
-
overflow-x: ${(getIEVersion()) ? "scroll" : "hidden"};
|
|
61
|
-
border: ${BORDER_GREY_160};
|
|
62
|
-
border-radius: 2px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.${prefix}-dbg-lgr div:focus {
|
|
66
|
-
outline: 2px solid black;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
${getIEVersion() && getIEVersion() < 9
|
|
70
|
-
? ""
|
|
71
|
-
: `.${prefix}-dbg-lgr .tree-root div::before {
|
|
72
|
-
content: '';
|
|
73
|
-
position: absolute;
|
|
74
|
-
left: -1.25em;
|
|
75
|
-
height: 100%;
|
|
76
|
-
border-right: 2px dotted #CCCCCC;
|
|
77
|
-
}`
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.${prefix}-dbg-lgr .tree-root div:hover::before {
|
|
81
|
-
border-right: 2px solid #000;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.${prefix}-dbg-lgr > div {
|
|
85
|
-
display: block;
|
|
86
|
-
position: relative;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.${prefix}-dbg-lgr > div:not(.controls) div {
|
|
90
|
-
display: block;
|
|
91
|
-
position: relative;
|
|
92
|
-
margin-left: 2em;
|
|
93
|
-
width: 100%;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.${prefix}-dbg-lgr .expandable {
|
|
97
|
-
cursor: pointer;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.${prefix}-dbg-lgr > .tree-root div > span {
|
|
101
|
-
width: 100%;
|
|
102
|
-
display: block;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.${prefix}-dbg-lgr .exception {
|
|
106
|
-
background-color: ${BG_ERROR};
|
|
107
|
-
color: ${TEXT_PRIMARY};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.${prefix}-dbg-lgr .matched-text-filter {
|
|
111
|
-
background-color: ${TEXT_MATCHED};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
${getIEVersion() && getIEVersion() < 9
|
|
115
|
-
? ""
|
|
116
|
-
: `.${prefix}-dbg-lgr .expandable.open::before {
|
|
117
|
-
content: '[-] ';
|
|
118
|
-
font-weight: bold;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.${prefix}-dbg-lgr .expandable.closed::before {
|
|
122
|
-
content: '[+] ';
|
|
123
|
-
font-weight: bold;
|
|
124
|
-
}`
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.${prefix}-dbg-lgr div:hover > .obj-key {
|
|
128
|
-
text-decoration: underline;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.${prefix}-dbg-lgr .obj-time {
|
|
132
|
-
padding-right: 15px;
|
|
133
|
-
color: #605E5C;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.${prefix}-dbg-lgr .object {pointer-events: auto;}
|
|
137
|
-
.${prefix}-dbg-lgr .function {color: #881391;}
|
|
138
|
-
.${prefix}-dbg-lgr .string {color: #CB3632;}
|
|
139
|
-
.${prefix}-dbg-lgr .number {color: #1C00CF;}
|
|
140
|
-
.${prefix}-dbg-lgr .key {color: #881391; font-weight: bold;}
|
|
141
|
-
.${prefix}-dbg-lgr .empty {color: #AAAAAA; font-style: italic;}
|
|
142
|
-
|
|
143
|
-
.${prefix}-dbg-lgr-dashboard ${prefix}-last-selected-element > span {
|
|
144
|
-
display: block;
|
|
145
|
-
background-color: black;
|
|
146
|
-
border-radius: 2px;
|
|
147
|
-
color: white
|
|
148
|
-
}
|
|
149
|
-
.${prefix}-last-selected-element > span > span,
|
|
150
|
-
.${prefix}-last-selected-element > span > span[class] {
|
|
151
|
-
color: white;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.${prefix}-dbg-lgr-dashboard #close-dashboard {
|
|
155
|
-
float: right;
|
|
156
|
-
margin-right: 2em;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.${prefix}-dbg-lgr-dashboard .btn-primary {
|
|
160
|
-
display: inline-block;
|
|
161
|
-
background-color: ${BTN_PRIMARY};
|
|
162
|
-
color: #FFFFFF;
|
|
163
|
-
border-radius: 2px;
|
|
164
|
-
cursor: pointer;
|
|
165
|
-
border: 1px solid;
|
|
166
|
-
padding: 3px 20px;
|
|
167
|
-
margin-left: 2em;
|
|
168
|
-
height: 24px;
|
|
169
|
-
min-width: 80px;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.${prefix}-dbg-lgr-dashboard .btn-primary:hover {
|
|
173
|
-
background-color: ${BTN_HOVER};
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.${prefix}-dbg-lgr-dashboard .btn-primary:active {
|
|
177
|
-
background-color: ${BTN_ACTIVE};
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.${prefix}-dbg-lgr-dashboard .btn-secondary {
|
|
181
|
-
display: inline-block;
|
|
182
|
-
border: 1px solid;
|
|
183
|
-
bolder-color: ${BTN_PRIMARY};
|
|
184
|
-
color: ${BTN_PRIMARY};
|
|
185
|
-
background-color: transparent;
|
|
186
|
-
border-radius: 2px;
|
|
187
|
-
cursor: pointer;
|
|
188
|
-
border: 1px solid;
|
|
189
|
-
padding: 3px 20px;
|
|
190
|
-
margin-left: 2em;
|
|
191
|
-
height: 24px;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.${prefix}-dbg-lgr-dashboard .btn-secondary:hover {
|
|
195
|
-
background-color: ${BTN_HOVER};
|
|
196
|
-
color: #FFFFFF;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.${prefix}-dbg-lgr-dashboard .btn-secondary:active {
|
|
200
|
-
background-color: ${BTN_ACTIVE};
|
|
201
|
-
color: #FFFFFF;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.${prefix}-dbg-lgr-dashboard .filterlist {
|
|
205
|
-
position: relative;
|
|
206
|
-
display: inline-block;
|
|
207
|
-
vertical-align: middle;
|
|
208
|
-
width: 180px;
|
|
209
|
-
min-height: 24px;
|
|
210
|
-
margin-left: 2em;
|
|
211
|
-
user-select: none;
|
|
212
|
-
cursor: pointer;
|
|
213
|
-
}
|
|
214
|
-
.${prefix}-dbg-lgr-dashboard .filterlist-input {
|
|
215
|
-
position: relative;
|
|
216
|
-
padding: 3px 8px;
|
|
217
|
-
border: ${BORDER_GREY_60};
|
|
218
|
-
border-radius: 2px;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
${getIEVersion() && getIEVersion() < 9
|
|
222
|
-
? ""
|
|
223
|
-
: `.${prefix}-dbg-lgr-dashboard .filterlist-input::after {
|
|
224
|
-
content: '';
|
|
225
|
-
width: 8px;
|
|
226
|
-
height: 8px;
|
|
227
|
-
position: absolute;
|
|
228
|
-
right: 8px;
|
|
229
|
-
top: 5px;
|
|
230
|
-
margin: auto;
|
|
231
|
-
transform: rotate(45deg);
|
|
232
|
-
border: ${BORDER_GREY_160};
|
|
233
|
-
border-top: none;
|
|
234
|
-
border-left: none;
|
|
235
|
-
}`
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.${prefix}-dbg-lgr-dashboard .filterlist-input:focus {
|
|
239
|
-
border: ${BORDER_GREY_60}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.${prefix}-dbg-lgr-dashboard .filterlist-dropdown {
|
|
243
|
-
position: absolute;
|
|
244
|
-
top: 100%;
|
|
245
|
-
margin: auto;
|
|
246
|
-
background-color: #FFFFFF;
|
|
247
|
-
overflow: hidden;
|
|
248
|
-
min-width: 180px;
|
|
249
|
-
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.16);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.${prefix}-dbg-lgr-dashboard .filterlist-toggle {
|
|
253
|
-
position: relative;
|
|
254
|
-
padding: 3px 8px;
|
|
255
|
-
height: 32px;
|
|
256
|
-
width: 100%;
|
|
257
|
-
${(getIEVersion()) ? "" : "box-sizing: border-box;"}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
.${prefix}-dbg-lgr-dashboard .filterlist-toggle:focus {
|
|
261
|
-
outline: none;
|
|
262
|
-
border: ${BORDER_GREY_60};
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.${prefix}-dbg-lgr-dashboard .text-filter-input {
|
|
266
|
-
font-family: monospace;
|
|
267
|
-
margin-left: 2em;
|
|
268
|
-
padding: 3px 8px;
|
|
269
|
-
width: 180px;
|
|
270
|
-
height: 24px;
|
|
271
|
-
border-radius: 2px;
|
|
272
|
-
border: ${BORDER_GREY_160};
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.${prefix}-dbg-lgr-dashboard .text-filter-input:focus {
|
|
276
|
-
border: ${BORDER_GREY_60};
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.${prefix}-dbg-lgr-dashboard .label {
|
|
280
|
-
vertical-align: middle;
|
|
281
|
-
width: 80%;
|
|
282
|
-
display: inline-block;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.${prefix}-dbg-lgr-dashboard .checkbox {
|
|
286
|
-
display: inline-block;
|
|
287
|
-
width: 18px;
|
|
288
|
-
height: 18px;
|
|
289
|
-
border-radius: 2px;
|
|
290
|
-
vertical-align: middle;
|
|
291
|
-
margin-right: 8px;
|
|
292
|
-
${(getIEVersion()) ? "" : "box-sizing: border-box;"}
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.${prefix}-dbg-lgr-dashboard .checkbox.on {
|
|
296
|
-
background-color: #0078D4;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
${getIEVersion() && getIEVersion() < 9
|
|
300
|
-
? ""
|
|
301
|
-
: `.${prefix}-dbg-lgr-dashboard .checkbox.on::after {
|
|
302
|
-
content: '';
|
|
303
|
-
width: 5px;
|
|
304
|
-
height: 10px;
|
|
305
|
-
display: inline-block;
|
|
306
|
-
margin: 2px 6px;
|
|
307
|
-
padding: 0;
|
|
308
|
-
transform: rotate(45deg);
|
|
309
|
-
border: 1px solid #FFFFFF;
|
|
310
|
-
border-top: none;
|
|
311
|
-
border-left: none;
|
|
312
|
-
}`
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
.${prefix}-dbg-lgr-dashboard .checkbox.off {
|
|
317
|
-
border: ${BORDER_GREY_160};
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
${getIEVersion() && getIEVersion() < 9
|
|
321
|
-
? ""
|
|
322
|
-
: `@media only screen and (max-width: 600px) {
|
|
323
|
-
.${prefix}-dbg-lgr {
|
|
324
|
-
width: 100%;
|
|
325
|
-
min-width: 200px;
|
|
326
|
-
}
|
|
327
|
-
}`
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
`;
|
|
331
|
-
|
|
332
|
-
export const permStyle = (prefix: string) => `
|
|
333
|
-
.${prefix}-debug-bin-container {
|
|
334
|
-
position: fixed;
|
|
335
|
-
${getIEVersion() && getIEVersion() < 9
|
|
336
|
-
? `width: 100%;
|
|
337
|
-
height: 100%;
|
|
338
|
-
top: 0;
|
|
339
|
-
left: 0;`
|
|
340
|
-
: `width: 100vw;
|
|
341
|
-
height: 100vh;`
|
|
342
|
-
}
|
|
343
|
-
pointer-events: none;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.${prefix}-debug-bin-parent {
|
|
347
|
-
position: fixed;
|
|
348
|
-
right: 20px;
|
|
349
|
-
margin: auto;
|
|
350
|
-
padding: 10px;
|
|
351
|
-
border-radius: 2px;
|
|
352
|
-
min-height: 20px;
|
|
353
|
-
min-width: 20px;
|
|
354
|
-
overflow: hidden;
|
|
355
|
-
pointer-events: auto;
|
|
356
|
-
text-align: right;
|
|
357
|
-
font-family: monospace;
|
|
358
|
-
font-size: 16px;
|
|
359
|
-
color: #FFFFFF;
|
|
360
|
-
background-color: ${BTN_PRIMARY};
|
|
361
|
-
border: 2px solid #FFFFFF;
|
|
362
|
-
transition: 2s color linear;
|
|
363
|
-
cursor: pointer;
|
|
364
|
-
transition: .2s width ease-in-out, .2s height ease-in-out;
|
|
365
|
-
${(getIEVersion()) ? "" : "box-sizing: border-box;"}
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.${prefix}-debug-bin-parent.active {
|
|
369
|
-
background-color: ${BG_INFO};
|
|
370
|
-
color: ${TEXT_PRIMARY};
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
.${prefix}-debug-bin-parent:focus {
|
|
374
|
-
border: ${BORDER_GREY_160};
|
|
375
|
-
outline: none;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.${prefix}-debug-bin-parent.notify {
|
|
379
|
-
background-color: ${ICON_ERROR};
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.${prefix}-debug-bin-parent button {
|
|
383
|
-
display: block;
|
|
384
|
-
width: 100%;
|
|
385
|
-
background-color: ${BTN_PRIMARY};
|
|
386
|
-
color: #FFFFFF;
|
|
387
|
-
border-radius: 2px;
|
|
388
|
-
margin-bottom: 5px;
|
|
389
|
-
margin-top: 10px;
|
|
390
|
-
cursor: pointer;
|
|
391
|
-
border: none;
|
|
392
|
-
padding: 3px 20px;
|
|
393
|
-
height: 24px;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
.${prefix}-debug-bin-parent button:hover {
|
|
397
|
-
background-color: ${BTN_HOVER};
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.${prefix}-debug-bin-parent button:active {
|
|
401
|
-
background-color: ${BTN_ACTIVE};
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.${prefix}-debug-bin-parent .el-name {
|
|
405
|
-
text-align: left;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.${prefix}-debug-bin-parent .el-value {
|
|
409
|
-
display: inline-block;
|
|
410
|
-
transform: scale(1);
|
|
411
|
-
transition: 2s transform linear, 0s 2s font-weight linear;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
${getIEVersion() && getIEVersion() < 9
|
|
415
|
-
? ""
|
|
416
|
-
: `.${prefix}-debug-bin-parent.notify::after {
|
|
417
|
-
content: " (!)";
|
|
418
|
-
}`
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
.${prefix}-debug-bin-parent .el-value.incremented {
|
|
422
|
-
transform: scale(1.5);
|
|
423
|
-
font-weight: bold;
|
|
424
|
-
transition: 0s transform linear, 0s font-weight linear;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
${getIEVersion() && getIEVersion() < 9
|
|
428
|
-
? ""
|
|
429
|
-
: `.${prefix}-debug-bin-parent:focus > span::before,
|
|
430
|
-
.${prefix}-debug-bin-parent:hover > span::before,
|
|
431
|
-
.${prefix}-debug-bin-parent.active > span::before {
|
|
432
|
-
content: attr(data-name) ": ";
|
|
433
|
-
}`
|
|
434
|
-
}
|
|
435
|
-
`
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { IConfiguration } from "@microsoft/applicationinsights-core-js";
|
|
5
|
-
|
|
6
|
-
export interface IDebugPluginConfig extends IConfiguration{
|
|
7
|
-
|
|
8
|
-
trackers?: string[];
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The prefix to use for the css styles, defaults to 'ai'
|
|
12
|
-
*/
|
|
13
|
-
cssPrefix?: string;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Disable listening to notifications from the notification manager. Defaults to false
|
|
17
|
-
*/
|
|
18
|
-
disableNotifications?: boolean;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* [Optional] Dump extra debug information to the console as well as the dashboard
|
|
22
|
-
*/
|
|
23
|
-
dumpToConsole?: boolean;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* [Optional] The maximum number of messages to retain, older messages will be dropped - defaults to 5,000.
|
|
27
|
-
*/
|
|
28
|
-
maxMessages?: number;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* [Optional] Flag for whether to include functions in the DebugPlugin dashboard. Defaults to false
|
|
32
|
-
*/
|
|
33
|
-
showFunctions?: boolean;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* [Optional] If processTelemetry is not included in the trackers should the DebugPlugin log the arguments - defaults to false
|
|
37
|
-
*/
|
|
38
|
-
logProcessTelemetry?: boolean;
|
|
39
|
-
}
|
|
File without changes
|
package/types/DebugPlugin.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseTelemetryPlugin, IAppInsightsCore, IConfiguration, IPlugin, IProcessTelemetryContext, ITelemetryItem, ITelemetryPluginChain } from "@microsoft/applicationinsights-core-js";
|
|
2
|
-
import { IDebugPluginConfig } from "./interfaces/IDebugPluginConfig";
|
|
3
|
-
export default class DebugPlugin extends BaseTelemetryPlugin {
|
|
4
|
-
static identifier: string;
|
|
5
|
-
identifier: string;
|
|
6
|
-
constructor();
|
|
7
|
-
initialize(config: IConfiguration | IDebugPluginConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
8
|
-
processTelemetry(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
9
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export declare const _DYN_IDENTIFIER = "identifier";
|
|
2
|
-
export declare const _DYN_TRACKERS = "trackers";
|
|
3
|
-
export declare const _DYN_DISABLE_NOTIFICATION0 = "disableNotifications";
|
|
4
|
-
export declare const _DYN_NEW_LOG_ENTRY = "newLogEntry";
|
|
5
|
-
export declare const _DYN_PUSH = "push";
|
|
6
|
-
export declare const _DYN_EXCLUDE_KEYS = "excludeKeys";
|
|
7
|
-
export declare const _DYN_MAX_MESSAGES = "maxMessages";
|
|
8
|
-
export declare const _DYN_CREATE_ELEMENT = "createElement";
|
|
9
|
-
export declare const _DYN_CLASS_NAME = "className";
|
|
10
|
-
export declare const _DYN_INNER_HTML = "innerHTML";
|
|
11
|
-
export declare const _DYN_APPEND_CHILD = "appendChild";
|
|
12
|
-
export declare const _DYN_STOP_PROPAGATION = "stopPropagation";
|
|
13
|
-
export declare const _DYN_IS_DISPLAYED = "isDisplayed";
|
|
14
|
-
export declare const _DYN_NAME = "name";
|
|
15
|
-
export declare const _DYN_LENGTH = "length";
|
|
16
|
-
export declare const _DYN_SHOW_CHILDREN = "showChildren";
|
|
17
|
-
export declare const _DYN_DUMP_TO_CONSOLE = "dumpToConsole";
|
|
18
|
-
export declare const _DYN_LOG_PROCESS_TELEMETR1 = "logProcessTelemetry";
|
|
19
|
-
export declare const _DYN_INCLUDE_FUNCTIONS = "includeFunctions";
|
|
20
|
-
export declare const _DYN_POINTER_EVENTS = "pointerEvents";
|
|
21
|
-
export declare const _DYN_PARENT_ELEMENT = "parentElement";
|
|
22
|
-
export declare const _DYN_SET_TEXT_FILTER = "setTextFilter";
|
|
23
|
-
export declare const _DYN_RENDER = "render";
|
|
24
|
-
export declare const _DYN_GET_EL = "getEl";
|
|
25
|
-
export declare const _DYN_REMOVE_CHILD = "removeChild";
|
|
26
|
-
export declare const _DYN_SET_ATTRIBUTE = "setAttribute";
|
|
27
|
-
export declare const _DYN_ONKEYUP = "onkeyup";
|
|
28
|
-
export declare const _DYN_INNER_TEXT = "innerText";
|
|
29
|
-
export declare const _DYN_ONCLICK = "onclick";
|
|
30
|
-
export declare const _DYN_ONTOUCHEND = "ontouchend";
|
|
31
|
-
export declare const _DYN_ONKEYDOWN = "onkeydown";
|
|
32
|
-
export declare const _DYN_PREVENT_DEFAULT = "preventDefault";
|
|
33
|
-
export declare const _DYN_TARGET = "target";
|
|
34
|
-
export declare const _DYN_CHILDREN = "children";
|
|
35
|
-
export declare const _DYN_FILTER_LIST = "filterList";
|
|
36
|
-
export declare const _DYN_FOCUS = "focus";
|
|
37
|
-
export declare const _DYN_REPLACE = "replace";
|
|
38
|
-
export declare const _DYN_SUBSTRING = "substring";
|
|
39
|
-
export declare const _DYN_TO_STRING = "toString";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface IDashboardConfig {
|
|
2
|
-
prefix: string;
|
|
3
|
-
trackers: string[];
|
|
4
|
-
excludeKeys: string[];
|
|
5
|
-
maxMessages: number;
|
|
6
|
-
includeFunctions: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare class Dashboard {
|
|
9
|
-
constructor(config: IDashboardConfig);
|
|
10
|
-
getElm(): HTMLElement;
|
|
11
|
-
isDisplayed(): boolean;
|
|
12
|
-
getTextFilter(): string;
|
|
13
|
-
setTextFilter(value: string): void;
|
|
14
|
-
getTrackers(): string[];
|
|
15
|
-
newLogEntry(target: Object, tm: number, key?: string, level?: number, kind?: string, keep?: boolean): void;
|
|
16
|
-
render(): void;
|
|
17
|
-
show(): void;
|
|
18
|
-
hide(): void;
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { _DYN_GET_EL, _DYN_RENDER } from "../__DynamicConstants";
|
|
2
|
-
export declare class LogEntry {
|
|
3
|
-
isKeep: () => boolean;
|
|
4
|
-
isMatch: (textFilter: string, excludedKeys: string[], includeFunctions: boolean) => boolean;
|
|
5
|
-
[_DYN_RENDER]: (searchText: string, excludeKeys: string[], includeFunctions: boolean) => HTMLElement;
|
|
6
|
-
[_DYN_GET_EL]: () => HTMLElement;
|
|
7
|
-
getKind: () => string;
|
|
8
|
-
constructor(target: Object, tm: number, key?: string, level?: number, kind?: string, keep?: boolean);
|
|
9
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare class DebugBinParent {
|
|
2
|
-
private parent;
|
|
3
|
-
private children;
|
|
4
|
-
showChildren: boolean;
|
|
5
|
-
private el;
|
|
6
|
-
private elSpan;
|
|
7
|
-
private value;
|
|
8
|
-
constructor(parent: HTMLDivElement, children: Array<DebugBin | HTMLButtonElement>, bottomDistance: number, prefix: string);
|
|
9
|
-
addClassToEl(name: string): void;
|
|
10
|
-
addChild(bin: DebugBin | HTMLButtonElement): void;
|
|
11
|
-
addButton(handler: (evt: MouseEvent) => void, label: string): void;
|
|
12
|
-
increment(): void;
|
|
13
|
-
render(): void;
|
|
14
|
-
}
|
|
15
|
-
export declare class DebugBin {
|
|
16
|
-
private name;
|
|
17
|
-
private value;
|
|
18
|
-
private parent;
|
|
19
|
-
el: HTMLDivElement;
|
|
20
|
-
private elName;
|
|
21
|
-
private elValue;
|
|
22
|
-
constructor(name: string, value: number, parent: DebugBinParent, bottomDistance: number, backgroundColor?: string);
|
|
23
|
-
increment(): void;
|
|
24
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const MAX_DEPTH = 16;
|
|
2
|
-
export declare function makeRegex(value: string): RegExp;
|
|
3
|
-
export declare function toggleClassName(el: HTMLElement, className: string): void;
|
|
4
|
-
export declare function traverseAndReplace(target: Object, maxDepth: number, currentDepth: number, thingsReferenced: any[], excludedKeys: string[], includeFunctions: boolean): Object;
|
|
5
|
-
export declare function copySelectedTree(): void;
|
|
6
|
-
export declare function focusHandler(evt: Event, target: Object, level: number, excludeKeys: string[], includeFunctions: boolean): void;
|
|
7
|
-
export declare function getTargetName(target: any): any;
|
|
8
|
-
export declare function getTargetKeys(target: any, excludedKeys: string[], includeFunctions: boolean): string[];
|
|
9
|
-
export declare function formatLogElements(target: Object, tmLabel: string, key: string, level: number, textFilter: string, excludeKeys: string[], thingsReferenced?: any[], includeFunctions?: boolean): any;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { IConfiguration } from "@microsoft/applicationinsights-core-js";
|
|
2
|
-
export interface IDebugPluginConfig extends IConfiguration {
|
|
3
|
-
trackers?: string[];
|
|
4
|
-
/**
|
|
5
|
-
* The prefix to use for the css styles, defaults to 'ai'
|
|
6
|
-
*/
|
|
7
|
-
cssPrefix?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Disable listening to notifications from the notification manager. Defaults to false
|
|
10
|
-
*/
|
|
11
|
-
disableNotifications?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* [Optional] Dump extra debug information to the console as well as the dashboard
|
|
14
|
-
*/
|
|
15
|
-
dumpToConsole?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* [Optional] The maximum number of messages to retain, older messages will be dropped - defaults to 5,000.
|
|
18
|
-
*/
|
|
19
|
-
maxMessages?: number;
|
|
20
|
-
/**
|
|
21
|
-
* [Optional] Flag for whether to include functions in the DebugPlugin dashboard. Defaults to false
|
|
22
|
-
*/
|
|
23
|
-
showFunctions?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* [Optional] If processTelemetry is not included in the trackers should the DebugPlugin log the arguments - defaults to false
|
|
26
|
-
*/
|
|
27
|
-
logProcessTelemetry?: boolean;
|
|
28
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.34.4"
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|