dce-reactkit 3.2.2-beta.53 → 3.2.2-beta.55

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 CHANGED
@@ -3119,7 +3119,7 @@ const LogReviewer = (props) => {
3119
3119
  /*------------------------------------------------------------------------*/
3120
3120
  /* Setup */
3121
3121
  /*------------------------------------------------------------------------*/
3122
- var _a, _b, _c, _d, _e, _f;
3122
+ var _a, _b, _c, _d;
3123
3123
  /* -------------- Props ------------- */
3124
3124
  // Destructure props
3125
3125
  const { LogMetadata, onClose, } = props;
@@ -3167,8 +3167,8 @@ const LogReviewer = (props) => {
3167
3167
  };
3168
3168
  // Create initial context filter state
3169
3169
  const initContextFilterState = {};
3170
- Object.keys((_c = LogMetadata.Context) !== null && _c !== void 0 ? _c : {}).forEach((context) => {
3171
- var _a, _b;
3170
+ Object.keys(contextMap).forEach((context) => {
3171
+ var _a;
3172
3172
  const contextValue = ((_a = LogMetadata.Context) !== null && _a !== void 0 ? _a : {})[context];
3173
3173
  if (typeof contextValue === 'string') {
3174
3174
  // Case: no subcontexts, init as checked
@@ -3177,7 +3177,7 @@ const LogReviewer = (props) => {
3177
3177
  else {
3178
3178
  // Case: subcontexts exist
3179
3179
  initContextFilterState[context] = {};
3180
- Object.values(((_b = LogMetadata.Context) !== null && _b !== void 0 ? _b : {})[context]).forEach((subcontext) => {
3180
+ Object.values(contextMap[context]).forEach((subcontext) => {
3181
3181
  // Skip self ("_")
3182
3182
  if (subcontext === '_') {
3183
3183
  return;
@@ -3189,7 +3189,7 @@ const LogReviewer = (props) => {
3189
3189
  });
3190
3190
  // Create initial tag filter state
3191
3191
  const initTagFilterState = {};
3192
- Object.keys((_d = LogMetadata.Tag) !== null && _d !== void 0 ? _d : {}).forEach((tag) => {
3192
+ Object.keys((_c = LogMetadata.Tag) !== null && _c !== void 0 ? _c : {}).forEach((tag) => {
3193
3193
  initTagFilterState[tag] = false;
3194
3194
  });
3195
3195
  // Create advanced filter state
@@ -3216,16 +3216,12 @@ const LogReviewer = (props) => {
3216
3216
  target: {},
3217
3217
  action: {},
3218
3218
  };
3219
- Object.values((_e = LogMetadata.Target) !== null && _e !== void 0 ? _e : {}).forEach((target) => {
3219
+ Object.values(targetMap).forEach((target) => {
3220
3220
  initActionErrorFilterState.target[target] = true;
3221
3221
  });
3222
3222
  Object.values(LogAction$1).forEach((action) => {
3223
3223
  initActionErrorFilterState.action[action] = true;
3224
3224
  });
3225
- // Add built-in targets
3226
- Object.values(LogBuiltInMetadata.Target).forEach((target) => {
3227
- initActionErrorFilterState.target[target] = true;
3228
- });
3229
3225
  // Initial state
3230
3226
  const initialState = {
3231
3227
  loading: true,
@@ -3450,7 +3446,7 @@ const LogReviewer = (props) => {
3450
3446
  const pickableItems = [];
3451
3447
  Object.keys(contextMap)
3452
3448
  .forEach((context) => {
3453
- const value = (contextMap)[context];
3449
+ const value = contextMap[context];
3454
3450
  if (typeof value === 'string') {
3455
3451
  // No subcategories
3456
3452
  const item = {
@@ -3534,7 +3530,7 @@ const LogReviewer = (props) => {
3534
3530
  // Create filter UI
3535
3531
  filterDrawer = (React__default["default"].createElement(TabBox, { title: "Tags" },
3536
3532
  React__default["default"].createElement("div", null, "If any tags are selected, logs must contain at least one (but not necessarily all) of the selected tags."),
3537
- React__default["default"].createElement("div", { className: "d-flex gap-1 flex-wrap" }, Object.keys((_f = LogMetadata.Tag) !== null && _f !== void 0 ? _f : {})
3533
+ React__default["default"].createElement("div", { className: "d-flex gap-1 flex-wrap" }, Object.keys((_d = LogMetadata.Tag) !== null && _d !== void 0 ? _d : {})
3538
3534
  .map((tag) => {
3539
3535
  const description = genHumanReadableName(tag);
3540
3536
  return (React__default["default"].createElement(CheckboxButton, { key: tag, id: `LogReviewer-tag-${tag}-checkbox`, text: description, ariaLabel: `require that logs be tagged with "${description}" or any other selected tag`, checked: tagFilterState[tag], onChanged: (checked) => {
@@ -3580,7 +3576,6 @@ const LogReviewer = (props) => {
3580
3576
  const description = genHumanReadableName(action);
3581
3577
  return (React__default["default"].createElement(CheckboxButton, { key: action, id: `LogReviewer-action-${action}-checkbox`, text: description, ariaLabel: `include logs with action type "${description}" in results`, noMarginOnRight: true, checked: actionErrorFilterState.action[action], onChanged: (checked) => {
3582
3578
  actionErrorFilterState.action[action] = checked;
3583
- console.log(actionErrorFilterState, action, checked);
3584
3579
  dispatch({
3585
3580
  type: ActionType.UpdateActionErrorFilterState,
3586
3581
  actionErrorFilterState,
@@ -3593,7 +3588,6 @@ const LogReviewer = (props) => {
3593
3588
  const description = genHumanReadableName(target);
3594
3589
  return (React__default["default"].createElement(CheckboxButton, { key: target, id: `LogReviewer-target-${target}-checkbox`, text: description, ariaLabel: `include logs with target "${description}" in results`, checked: actionErrorFilterState.target[target], noMarginOnRight: true, onChanged: (checked) => {
3595
3590
  actionErrorFilterState.target[target] = checked;
3596
- console.log(actionErrorFilterState, target, checked);
3597
3591
  dispatch({
3598
3592
  type: ActionType.UpdateActionErrorFilterState,
3599
3593
  actionErrorFilterState,