@cccsaurora/clue-ui 1.1.0-dev.90 → 1.1.0-dev.98

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.
@@ -1,9 +1,10 @@
1
+ import { ChipOwnProps } from '@mui/material';
1
2
  import { default as React } from 'react';
2
3
 
3
4
  interface EnrichedChipProps {
4
5
  classification: string;
5
6
  }
6
- declare const _default: React.NamedExoticComponent<EnrichedChipProps & import('@mui/material').ChipOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
+ declare const _default: React.NamedExoticComponent<EnrichedChipProps & ChipOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
8
  ref?: React.Ref<HTMLDivElement>;
8
9
  }, "disabled" | "icon" | "color" | "style" | "size" | "children" | "variant" | "classes" | "className" | "sx" | "label" | "tabIndex" | "onDelete" | "avatar" | "clickable" | "deleteIcon" | "skipFocusWhenDisabled"> & {
9
10
  component?: React.ElementType;
@@ -6,7 +6,7 @@ const adaptSchema = (_schema) => {
6
6
  const newSchema = {
7
7
  ...schema,
8
8
  properties: Object.fromEntries(
9
- Object.entries(schema.properties ?? {}).filter(([name]) => !["raw_data", "selector", "selectors"].includes(name)).map(([name, def]) => {
9
+ Object.entries(schema.properties ?? {}).filter(([name]) => !["raw_data", "selector", "selectors", "context"].includes(name)).map(([name, def]) => {
10
10
  var _a, _b;
11
11
  requiredFields.push(name);
12
12
  if (typeof def === "boolean") {
@@ -27,12 +27,13 @@ const adaptSchema = (_schema) => {
27
27
  }
28
28
  if (((_b = def.allOf) == null ? void 0 : _b.length) > 0) {
29
29
  if (typeof def.allOf[0] !== "boolean" && def.allOf[0].$ref) {
30
- def = {
30
+ const newDef = {
31
31
  ...def,
32
32
  ...get(schema, def.allOf[0].$ref.replace("#/", "").replaceAll("/", ".")),
33
33
  title: def.title
34
34
  };
35
- delete def.allOf;
35
+ delete newDef.allOf;
36
+ return [name, newDef];
36
37
  }
37
38
  }
38
39
  return [name, def];
@@ -23,10 +23,32 @@ function flatRest(func) {
23
23
  function parent(object, path) {
24
24
  return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
25
25
  }
26
+ var objectProto = Object.prototype;
27
+ var hasOwnProperty = objectProto.hasOwnProperty;
26
28
  function baseUnset(object, path) {
27
29
  path = castPath(path, object);
28
- object = parent(object, path);
29
- return object == null || delete object[toKey(last(path))];
30
+ var index = -1, length = path.length;
31
+ if (!length) {
32
+ return true;
33
+ }
34
+ var isRootPrimitive = object == null || typeof object !== "object" && typeof object !== "function";
35
+ while (++index < length) {
36
+ var key = path[index];
37
+ if (typeof key !== "string") {
38
+ continue;
39
+ }
40
+ if (key === "__proto__" && !hasOwnProperty.call(object, "__proto__")) {
41
+ return false;
42
+ }
43
+ if (key === "constructor" && index + 1 < length && typeof path[index + 1] === "string" && path[index + 1] === "prototype") {
44
+ if (isRootPrimitive && index === 0) {
45
+ continue;
46
+ }
47
+ return false;
48
+ }
49
+ }
50
+ var obj = parent(object, path);
51
+ return obj == null || delete obj[toKey(last(path))];
30
52
  }
31
53
  function customOmitClone(value) {
32
54
  return isPlainObject(value) ? void 0 : value;
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "fuse.js": "^7.1.0",
24
24
  "i18next": "^23.16.8",
25
25
  "i18next-browser-languagedetector": "^7.2.2",
26
- "lodash-es": "^4.17.21",
26
+ "lodash-es": "^4.17.23",
27
27
  "react-i18next": "^13.5.0",
28
28
  "react-markdown": "10.1.0",
29
29
  "react-syntax-highlighter": "^15.6.1",
@@ -63,7 +63,7 @@
63
63
  },
64
64
  "type": "module",
65
65
  "types": "main.d.ts",
66
- "version": "1.1.0-dev.90",
66
+ "version": "1.1.0-dev.98",
67
67
  "exports": {
68
68
  ".": "./main.js",
69
69
  "./index.css": "./index.css",