dce-reactkit 3.9.10 → 3.10.1
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/cjs/index.js +15 -13
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +15 -13
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/RadioButton.tsx +9 -5
- package/src/helpers/genRouteHandler.ts +7 -7
package/package.json
CHANGED
|
@@ -101,11 +101,14 @@ const RadioButton: React.FC<Props> = (props) => {
|
|
|
101
101
|
}
|
|
102
102
|
}}
|
|
103
103
|
>
|
|
104
|
-
<
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
<div className="d-flex">
|
|
105
|
+
<div className="align-items-center">
|
|
106
|
+
<FontAwesomeIcon
|
|
107
|
+
icon={selected ? faDotCircle : faCircle}
|
|
108
|
+
className="me-1"
|
|
109
|
+
/>
|
|
110
|
+
</div>
|
|
111
|
+
{
|
|
109
112
|
useComplexFormatting
|
|
110
113
|
? (
|
|
111
114
|
<pre
|
|
@@ -123,6 +126,7 @@ const RadioButton: React.FC<Props> = (props) => {
|
|
|
123
126
|
</div>
|
|
124
127
|
)
|
|
125
128
|
}
|
|
129
|
+
</div>
|
|
126
130
|
</button>
|
|
127
131
|
);
|
|
128
132
|
};
|
|
@@ -625,16 +625,16 @@ const genRouteHandler = (
|
|
|
625
625
|
|
|
626
626
|
// Main log info
|
|
627
627
|
const mainLogInfo: LogMainInfo = {
|
|
628
|
-
id: `${launchInfo ? 'unknown'
|
|
629
|
-
userFirstName: (launchInfo ? 'unknown'
|
|
630
|
-
userLastName: (launchInfo ? 'unknown'
|
|
631
|
-
userEmail: (launchInfo ? 'unknown'
|
|
632
|
-
userId: (launchInfo ? 'unknown'
|
|
628
|
+
id: `${launchInfo ? launchInfo.userId : 'unknown'}-${Date.now()}-${Math.floor(Math.random() * 100000)}-${Math.floor(Math.random() * 100000)}`,
|
|
629
|
+
userFirstName: (launchInfo ? launchInfo.userFirstName: 'unknown'),
|
|
630
|
+
userLastName: (launchInfo ? launchInfo.userLastName : 'unknown'),
|
|
631
|
+
userEmail: (launchInfo ? launchInfo.userEmail : 'unknown'),
|
|
632
|
+
userId: (launchInfo ? launchInfo.userId : 'unknown'),
|
|
633
633
|
isLearner: (launchInfo && !!launchInfo.isLearner),
|
|
634
634
|
isAdmin: (launchInfo && !!launchInfo.isAdmin),
|
|
635
635
|
isTTM: (launchInfo && !!launchInfo.isTTM),
|
|
636
|
-
courseId: (launchInfo ? 'unknown'
|
|
637
|
-
courseName: (launchInfo ? 'unknown'
|
|
636
|
+
courseId: (launchInfo ? launchInfo.courseId : 'unknown' ),
|
|
637
|
+
courseName: (launchInfo ? launchInfo.contextLabel : 'unknown'),
|
|
638
638
|
browser,
|
|
639
639
|
device,
|
|
640
640
|
year,
|