@trustquery/browser 0.3.3 → 0.3.4

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.
@@ -0,0 +1,14 @@
1
+ <svg width="196" height="196" viewBox="0 0 196 196" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_120_2)">
3
+ <path d="M97.9997 194.131L65.1962 161.835C33.6317 130.76 19.0751 86.5661 25.758 43.1207C26.4204 38.8147 28.7598 34.972 32.0966 32.171L98.024 0.88923L165.666 32.171C167.895 35.0157 169.467 38.3362 170.048 41.9033C177.195 85.7393 162.663 130.469 130.803 161.835L97.9997 194.131Z" fill="#171717"/>
4
+ <path d="M99.8981 0L32.0966 32.171C28.7598 34.972 26.4204 38.8147 25.758 43.1207C19.0751 86.5661 33.6317 130.76 65.1962 161.835L99.8981 196M96.1012 0L165.666 32.171C167.895 35.0157 169.467 38.3362 170.048 41.9033C177.195 85.7393 162.663 130.469 130.803 161.835L96.1012 196" stroke="#B2ADAD" stroke-width="5.63836"/>
5
+ <path d="M97.5127 20.4785C109.663 20.4785 119.526 30.299 119.526 42.4297C119.526 54.5603 109.663 64.3809 97.5127 64.3809C85.3629 64.3807 75.5001 54.5602 75.5 42.4297C75.5 30.2991 85.3629 20.4787 97.5127 20.4785Z" fill="#FF0000" stroke="#BF0000" stroke-width="5"/>
6
+ <ellipse cx="97.513" cy="90.1737" rx="19.513" ry="19.451" fill="#636363"/>
7
+ <ellipse cx="97.513" cy="137.916" rx="19.513" ry="19.451" fill="#636363"/>
8
+ </g>
9
+ <defs>
10
+ <clipPath id="clip0_120_2">
11
+ <rect width="196" height="196" fill="white"/>
12
+ </clipPath>
13
+ </defs>
14
+ </svg>
@@ -0,0 +1,14 @@
1
+ <svg width="196" height="196" viewBox="0 0 196 196" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_133_2)">
3
+ <path d="M97.9997 194.131L65.1962 161.835C33.6317 130.76 19.0751 86.5661 25.758 43.1207C26.4204 38.8147 28.7598 34.972 32.0966 32.171L98.024 0.88923L165.666 32.171C167.895 35.0157 169.467 38.3362 170.048 41.9033C177.195 85.7393 162.663 130.469 130.803 161.835L97.9997 194.131Z" fill="#171717"/>
4
+ <path d="M99.8981 0L32.0966 32.171C28.7598 34.972 26.4204 38.8147 25.758 43.1207C19.0751 86.5661 33.6317 130.76 65.1962 161.835L99.8981 196M96.1012 0L165.666 32.171C167.895 35.0157 169.467 38.3362 170.048 41.9033C177.195 85.7393 162.663 130.469 130.803 161.835L96.1012 196" stroke="#B2ADAD" stroke-width="5.63836"/>
5
+ <ellipse cx="97.513" cy="42.4295" rx="19.513" ry="19.451" fill="#636363"/>
6
+ <ellipse cx="97.513" cy="90.1737" rx="19.513" ry="19.451" fill="#636363"/>
7
+ <path d="M97.5127 115.965C109.663 115.965 119.526 125.785 119.526 137.916C119.526 150.047 109.663 159.867 97.5127 159.867C85.3629 159.867 75.5001 150.047 75.5 137.916C75.5 125.785 85.3629 115.965 97.5127 115.965Z" fill="#18E48F" stroke="#1CBF7B" stroke-width="5"/>
8
+ </g>
9
+ <defs>
10
+ <clipPath id="clip0_133_2">
11
+ <rect width="196" height="196" fill="white"/>
12
+ </clipPath>
13
+ </defs>
14
+ </svg>
@@ -0,0 +1,15 @@
1
+ <svg width="1087" height="1419" viewBox="0 0 1087 1419" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_115_137)">
3
+ <rect width="1087" height="1419" fill="white"/>
4
+ <path d="M549.544 18.4951L1021.31 236.67L1024.38 238.086L1026.46 240.742C1043.28 262.208 1055.34 287.52 1059.82 315.004H1059.82C1110.39 625.218 1007.55 941.743 782.106 1163.69L553.32 1388.94L543.498 1398.61L533.676 1388.94L304.889 1163.69C81.5334 943.802 -21.4814 631.066 25.8115 323.616C31.0011 289.881 49.2644 260.136 74.8564 238.653L76.2324 237.498L77.8564 236.729L537.666 18.5537L543.591 15.7422L549.544 18.4951Z" fill="#171717" stroke="#666666" stroke-width="28"/>
5
+ <path d="M545 25L83.8576 249.376C60.5851 268.912 44.269 295.713 39.6491 325.745C-6.96072 628.754 94.5641 936.984 314.71 1153.72L542.5 1377.98M545 25L1015.44 249.376C1030.98 269.217 1041.95 292.375 1046 317.254C1095.84 622.988 994.491 934.955 772.284 1153.72L542.5 1377.98" stroke="#B2ADAD" stroke-width="5.63836"/>
6
+ <path d="M546 192.5C624.701 192.5 688.5 256.299 688.5 335C688.5 413.701 624.701 477.5 546 477.5C467.299 477.5 403.5 413.701 403.5 335C403.5 256.299 467.299 192.5 546 192.5Z" fill="#FE0E0E" stroke="#CD1111" stroke-width="15"/>
7
+ <path d="M545.998 533.5C624.653 533.5 688.5 597.252 688.5 676C688.5 754.744 624.653 818.5 545.998 818.5C467.347 818.5 403.501 754.745 403.5 676L403.512 674.157C404.491 596.874 466.965 534.49 544.157 533.512L545.998 533.5Z" fill="#FFCD03" stroke="#B49417" stroke-width="15"/>
8
+ <path d="M546 874.5C624.701 874.5 688.5 938.299 688.5 1017C688.5 1095.7 624.701 1159.5 546 1159.5C467.299 1159.5 403.5 1095.7 403.5 1017C403.5 938.299 467.299 874.5 546 874.5Z" fill="#20E97A" stroke="#0EBF5E" stroke-width="15"/>
9
+ </g>
10
+ <defs>
11
+ <clipPath id="clip0_115_137">
12
+ <rect width="1087" height="1419" fill="white"/>
13
+ </clipPath>
14
+ </defs>
15
+ </svg>
@@ -0,0 +1,14 @@
1
+ <svg width="196" height="196" viewBox="0 0 196 196" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_133_8)">
3
+ <path d="M97.9997 194.131L65.1962 161.835C33.6317 130.76 19.0751 86.5661 25.758 43.1207C26.4204 38.8147 28.7598 34.972 32.0966 32.171L98.024 0.88923L165.666 32.171C167.895 35.0157 169.467 38.3362 170.048 41.9033C177.195 85.7393 162.663 130.469 130.803 161.835L97.9997 194.131Z" fill="#171717"/>
4
+ <path d="M99.8981 0L32.0966 32.171C28.7598 34.972 26.4204 38.8147 25.758 43.1207C19.0751 86.5661 33.6317 130.76 65.1962 161.835L99.8981 196M96.1012 0L165.666 32.171C167.895 35.0157 169.467 38.3362 170.048 41.9033C177.195 85.7393 162.663 130.469 130.803 161.835L96.1012 196" stroke="#B2ADAD" stroke-width="5.63836"/>
5
+ <ellipse cx="97.513" cy="42.4295" rx="19.513" ry="19.451" fill="#636363"/>
6
+ <path d="M97.5127 68.2227C109.663 68.2227 119.526 78.0431 119.526 90.1738C119.526 102.304 109.663 112.125 97.5127 112.125C85.3629 112.125 75.5001 102.304 75.5 90.1738C75.5 78.0432 85.3629 68.2228 97.5127 68.2227Z" fill="#FFCD03" stroke="#B49417" stroke-width="5"/>
7
+ <ellipse cx="97.513" cy="137.916" rx="19.513" ry="19.451" fill="#636363"/>
8
+ </g>
9
+ <defs>
10
+ <clipPath id="clip0_133_8">
11
+ <rect width="196" height="196" fill="white"/>
12
+ </clipPath>
13
+ </defs>
14
+ </svg>
@@ -0,0 +1,204 @@
1
+ {
2
+ "tql-triggers": {
3
+ "error": [
4
+ {
5
+ "type": "regex",
6
+ "category": "pii",
7
+ "regex": ["\\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}"],
8
+ "handler": {
9
+ "highlight-concept": true,
10
+ "block-submit": true,
11
+ "message-state": "error",
12
+ "message": "PII info, like emails, are not allowed"
13
+ }
14
+ }
15
+ ],
16
+ "warning": [
17
+ {
18
+ "type": "match",
19
+ "category": "temporal",
20
+ "match": [
21
+ "last week",
22
+ "today",
23
+ "past week",
24
+ "last month",
25
+ "previous month"
26
+ ],
27
+ "handler": {
28
+ "highlight-concept": true,
29
+ "message-state": "warning",
30
+ "message": "Dates can be ambiguous. Using {{user-timezone}}, but check whether the database time might cause confusion"
31
+ }
32
+ },
33
+ {
34
+ "type": "match",
35
+ "category": "display-menu",
36
+ "match": ["yesterday"],
37
+ "handler": {
38
+ "highlight-concept": true,
39
+ "message-state": "warning",
40
+ "message": "Please confirm your current time:",
41
+ "options": [
42
+ {
43
+ "label": "Thu Nov 13, 7:29AM PST (selected)",
44
+ "on-select": {
45
+ "display": "Current Time: Thu Nov 13, 7:29AM PST"
46
+ }
47
+ },
48
+ {
49
+ "label": "Thu Nov 13, 8:29AM MST",
50
+ "on-select": {
51
+ "display": "Current Time: Thu Nov 13, 8:29AM MST"
52
+ }
53
+ },
54
+ {
55
+ "label": "Thu Nov 13, 9:29AM CST",
56
+ "on-select": {
57
+ "display": "Current Time: Thu Nov 13, 9:29AM CST"
58
+ }
59
+ },
60
+ {
61
+ "label": "Thu Nov 13, 10:29AM EST",
62
+ "on-select": {
63
+ "display": "Current Time: Thu Nov 13, 10:29AM EST"
64
+ }
65
+ },
66
+ {
67
+ "label": "Custom time...",
68
+ "user-input": true
69
+ }
70
+ ]
71
+ }
72
+ },
73
+ {
74
+ "type": "csv-match-column",
75
+ "category": "display-menu",
76
+ "match": [
77
+ "Date"
78
+ ],
79
+ "handler": {
80
+ "highlight-concept": true,
81
+ "message-state": "warning",
82
+ "message": "Please confirm the timezone for this column:",
83
+ "options": [
84
+ {
85
+ "label": "PST (Pacific Standard Time)",
86
+ "on-select": {
87
+ "display": "Timezone: PST"
88
+ }
89
+ },
90
+ {
91
+ "label": "MST (Mountain Standard Time)",
92
+ "on-select": {
93
+ "display": "Timezone: MST"
94
+ }
95
+ },
96
+ {
97
+ "label": "CST (Central Standard Time)",
98
+ "on-select": {
99
+ "display": "Timezone: CST"
100
+ }
101
+ },
102
+ {
103
+ "label": "EST (Eastern Standard Time)",
104
+ "on-select": {
105
+ "display": "Timezone: EST"
106
+ }
107
+ },
108
+ {
109
+ "label": "AKST (Alaska Standard Time)",
110
+ "on-select": {
111
+ "display": "Timezone: AKST"
112
+ }
113
+ },
114
+ {
115
+ "label": "HST (Hawaii Standard Time)",
116
+ "on-select": {
117
+ "display": "Timezone: HST"
118
+ }
119
+ }
120
+ ]
121
+ }
122
+ }
123
+ ],
124
+ "info": [
125
+ {
126
+ "type": "match",
127
+ "category": "display-menu-with-uri",
128
+ "match": ["@analytics"],
129
+ "handler": {
130
+ "highlight-concept": true,
131
+ "message-state": "info",
132
+ "message": "Showing available analytics",
133
+ "options": [
134
+ {
135
+ "label": "Assets under management (AUM)",
136
+ "on-select": {
137
+ "display": "@analytics/Assets-under-management-(AUM)"
138
+ },
139
+ "uri": "https://en.wikipedia.org/wiki/Assets_under_management",
140
+ "description": "AUM is a strong indicator of client trust and satisfaction."
141
+ },
142
+ {
143
+ "label": "Lifetime value",
144
+ "on-select": {
145
+ "display": "@analytics/Lifetime-value"
146
+ },
147
+ "uri": "https://en.wikipedia.org/wiki/Customer_lifetime_value",
148
+ "description": "This metric assesses the total profit a client is expected to generate for the firm over the entire length of their relationship."
149
+ },
150
+ {
151
+ "label": "YTD Commission",
152
+ "on-select": {
153
+ "display": "@analytics/YTD-Commission"
154
+ },
155
+ "uri": "https://en.wikipedia.org/wiki/Commission_(remuneration)",
156
+ "description": "The YTD commission the client has generated"
157
+ }
158
+ ]
159
+ }
160
+ },
161
+ {
162
+ "type": "match",
163
+ "description": "Showing client quick list",
164
+ "category":"display-menu",
165
+ "match": ["@client"],
166
+ "handler": {
167
+ "highlight-concept": true,
168
+ "filter": true,
169
+ "message-state": "info",
170
+ "message": "Select a client from the list below:",
171
+ "options": [
172
+ {
173
+ "label": "Blackrock",
174
+ "on-select": {
175
+ "display": "@client/Blackrock"
176
+ },
177
+ "description": "BlackRock, Inc. is an American multinational investment company."
178
+ },
179
+ {
180
+ "label": "Morgan Stanley",
181
+ "on-select": {
182
+ "display": "@client/Morgan-Stanley"
183
+ },
184
+ "description": "Morgan Stanley is an American multinational investment bank and financial services company headquartered at 1585 Broadway in Midtown Manhattan, New York City."
185
+ },
186
+ {
187
+ "label": "Bank of America",
188
+ "on-select": {
189
+ "display": "@client/Bank-of-America"
190
+ },
191
+ "description": "Bank of America Corporation (Bank of America; often abbreviated BAC or BoA) is an American multinational investment bank and financial services holding company headquartered at the Bank of America Corporate Center in Charlotte, North Carolina."
192
+ }
193
+ ]
194
+ }
195
+ }
196
+ ]
197
+ },
198
+ "$license": {
199
+ "license": "Generated by TrustQuery",
200
+ "terms": "TrustQuery.com/license/1.0",
201
+ "version": "1.0",
202
+ "created": "2025-11-08T13:59:34.970Z"
203
+ }
204
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustquery/browser",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Turn any textarea into an interactive trigger-based editor with inline styling",
5
5
  "type": "module",
6
6
  "main": "dist/trustquery.js",
@@ -17,6 +17,8 @@
17
17
  "files": [
18
18
  "dist",
19
19
  "src",
20
+ "examples/tql-triggers.json",
21
+ "examples/assets",
20
22
  "README.md"
21
23
  ],
22
24
  "scripts": {