authscape 1.0.668 → 1.0.670

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.668",
3
+ "version": "1.0.670",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,11 +15,11 @@
15
15
  "react-dom": "^18.2.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@babel/cli": "^7.21.5",
19
- "@babel/core": "^7.22.1",
20
- "@babel/preset-env": "^7.22.2",
21
- "@babel/preset-react": "^7.0.0",
22
- "react-dom": "^18.2.0"
18
+ "@babel/cli": "^7.27.0",
19
+ "@babel/core": "^7.26.10",
20
+ "@babel/preset-env": "^7.26.9",
21
+ "@babel/preset-react": "^7.26.3",
22
+ "react-dom": "^18.3.1"
23
23
  },
24
24
  "dependencies": {
25
25
  "@microsoft/signalr": "^8.0.0",
@@ -219,12 +219,25 @@ export function AuthScapeApp ({Component, layout, loadingLayout, pageProps, muiT
219
219
 
220
220
  if (frontEndLoadedState)
221
221
  {
222
- if (process.env.googleAnalytics4 != "")
222
+ if (pageProps.googleAnalytics4Code != null)
223
+ {
224
+ initGA(pageProps.googleAnalytics4Code);
225
+ }
226
+ else if (process.env.googleAnalytics4 != "")
223
227
  {
224
228
  initGA(process.env.googleAnalytics4);
225
229
  }
226
230
 
227
- if (process.env.microsoftClarityTrackingCode != "")
231
+ if (pageProps.microsoftClarityCode != null)
232
+ {
233
+ clarity.init(pageProps.microsoftClarityCode);
234
+
235
+ if (signedInUser.current != null && clarity.hasStarted())
236
+ {
237
+ clarity.identify('USER_ID', { userProperty: signedInUser.current.id.toString() });
238
+ }
239
+ }
240
+ else if (process.env.microsoftClarityTrackingCode != "")
228
241
  {
229
242
  clarity.init(process.env.microsoftClarityTrackingCode);
230
243
 
@@ -1,103 +0,0 @@
1
- .Container {
2
- display: flex;
3
- flex-direction: column;
4
- grid-auto-rows: max-content;
5
- overflow: hidden;
6
- box-sizing: border-box;
7
- appearance: none;
8
- outline: none;
9
- min-width: 350px;
10
- margin: 10px;
11
- border-radius: 5px;
12
- min-height: 200px;
13
- transition: background-color 350ms ease;
14
- background-color: rgba(246, 246, 246, 1);
15
- border: 1px solid rgba(0, 0, 0, 0.05);
16
- font-size: 1em;
17
-
18
- .ul {
19
- display: grid;
20
- grid-gap: 10px;
21
- grid-template-columns: repeat(var(--columns, 1), 1fr);
22
- list-style: none;
23
- padding: 20px;
24
- margin: 0;
25
- }
26
-
27
- &.scrollable {
28
- .ul {
29
- overflow-y: auto;
30
- }
31
- }
32
-
33
- &.placeholder {
34
- justify-content: center;
35
- align-items: center;
36
- cursor: pointer;
37
- color: rgba(0, 0, 0, 0.5);
38
- background-color: transparent;
39
- border-style: dashed;
40
- border-color: rgba(0, 0, 0, 0.08);
41
-
42
- /* &:hover {
43
- border-color: rgba(0, 0, 0, 0.15);
44
- } */
45
- }
46
-
47
- &.hover {
48
- background-color: rgb(235, 235, 235, 1);
49
- }
50
-
51
- &.unstyled {
52
- overflow: visible;
53
- background-color: transparent !important;
54
- border: none !important;
55
- }
56
-
57
- &.horizontal {
58
- width: 100%;
59
-
60
- .ul {
61
- grid-auto-flow: column;
62
- }
63
- }
64
-
65
- &.shadow {
66
- box-shadow: 0 1px 10px 0 rgba(34, 33, 81, 0.1);
67
- }
68
-
69
- /* &:focus-visible {
70
- border-color: transparent;
71
- box-shadow: 0 0 0 2px rgba(255, 255, 255, 0), 0 0px 0px 2px #4c9ffe;
72
- } */
73
- }
74
-
75
- .Header {
76
- display: flex;
77
- padding: 5px 20px;
78
- padding-right: 8px;
79
- align-items: center;
80
- justify-content: space-between;
81
- background-color: #fff;
82
- border-top-left-radius: 5px;
83
- border-top-right-radius: 5px;
84
- border-bottom: 1px solid rgba(0, 0, 0, 0.08);
85
-
86
- /* &:hover {
87
- .Actions > * {
88
- opacity: 1 !important;
89
- }
90
- } */
91
- }
92
-
93
- /* .Actions {
94
- display: flex;
95
-
96
- > *:first-child:not(:last-child) {
97
- opacity: 0;
98
-
99
- &:focus-visible {
100
- opacity: 1;
101
- }
102
- }
103
- } */
@@ -1,135 +0,0 @@
1
- @keyframes pop {
2
- 0% {
3
- transform: scale(1);
4
- box-shadow: var(--box-shadow);
5
- }
6
- 100% {
7
- transform: scale(var(--scale));
8
- box-shadow: var(--box-shadow-picked-up);
9
- }
10
- }
11
-
12
- @keyframes fadeIn {
13
- 0% {
14
- opacity: 0;
15
- }
16
- 100% {
17
- opacity: 1;
18
- }
19
- }
20
-
21
- .Wrapper {
22
- display: flex;
23
- box-sizing: border-box;
24
- transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0)
25
- scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));
26
- transform-origin: 0 0;
27
- touch-action: manipulation;
28
-
29
- &.fadeIn {
30
- animation: fadeIn 500ms ease;
31
- }
32
-
33
- &.dragOverlay {
34
- --scale: 1.05;
35
- --box-shadow: $box-shadow;
36
- --box-shadow-picked-up: $box-shadow-border,
37
- -1px 0 15px 0 rgba(34, 33, 81, 0.01),
38
- 0px 15px 15px 0 rgba(34, 33, 81, 0.25);
39
- z-index: 999;
40
- }
41
- }
42
-
43
- .Item {
44
- position: relative;
45
- display: flex;
46
- flex-grow: 1;
47
- align-items: center;
48
- padding: 18px 20px;
49
- background-color: #fff;
50
- box-shadow: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
51
- outline: none;
52
- border-radius: calc(4px / var(--scale-x, 1));
53
- box-sizing: border-box;
54
- list-style: none;
55
- transform-origin: 50% 50%;
56
-
57
- -webkit-tap-highlight-color: transparent;
58
-
59
- color: #333;
60
- font-weight: 400;
61
- font-size: 1rem;
62
- white-space: nowrap;
63
-
64
- transform: scale(var(--scale, 1));
65
- transition: box-shadow 200ms cubic-bezier(0.18, 0.67, 0.6, 1.22);
66
-
67
- /* &:focus-visible {
68
- box-shadow: 0 0px 4px 1px #4c9ffe, 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
69
- } */
70
-
71
- &:not(.withHandle) {
72
- touch-action: manipulation;
73
- cursor: pointer;
74
- }
75
-
76
- &.dragging:not(.dragOverlay) {
77
- opacity: var(--dragging-opacity, 0.5);
78
- z-index: 0;
79
-
80
- /* &:focus {
81
- box-shadow: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
82
- } */
83
- }
84
-
85
- &.disabled {
86
- color: #999;
87
- background-color: #f1f1f1;
88
- /* &:focus {
89
- box-shadow: 0 0px 4px 1px rgba(0, 0, 0, 0.1), 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
90
- } */
91
- cursor: not-allowed;
92
- }
93
-
94
- &.dragOverlay {
95
- cursor: inherit;
96
- /* box-shadow: 0 0px 6px 2px $focused-outline-color; */
97
- animation: pop 200ms cubic-bezier(0.18, 0.67, 0.6, 1.22);
98
- transform: scale(var(--scale));
99
- box-shadow: var(--box-shadow-picked-up);
100
- opacity: 1;
101
- }
102
-
103
- &.color:before {
104
- content: '';
105
- position: absolute;
106
- top: 50%;
107
- transform: translateY(-50%);
108
- left: 0;
109
- height: 100%;
110
- width: 3px;
111
- display: block;
112
- border-top-left-radius: 3px;
113
- border-bottom-left-radius: 3px;
114
- background-color: var(--color);
115
- }
116
-
117
- /* &:hover {
118
- .Remove {
119
- visibility: visible;
120
- }
121
- } */
122
- }
123
-
124
- .Remove {
125
- visibility: hidden;
126
- }
127
-
128
- .Actions {
129
- display: flex;
130
- align-self: flex-start;
131
- margin-top: -12px;
132
- margin-left: auto;
133
- margin-bottom: -15px;
134
- margin-right: -10px;
135
- }