@appquality/unguess-design-system 4.0.72 → 4.1.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ # v4.1.0 (Wed May 13 2026)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Enhance Observation model with creatorType and end attributes [#595](https://github.com/AppQuality/unguess-design-system/pull/595) ([@iacopolea](https://github.com/iacopolea))
6
+
7
+ #### 🐛 Bug Fix
8
+
9
+ - new release [#596](https://github.com/AppQuality/unguess-design-system/pull/596) ([@iacopolea](https://github.com/iacopolea))
10
+
11
+ #### Authors: 1
12
+
13
+ - Iacopo Leardini ([@iacopolea](https://github.com/iacopolea))
14
+
15
+ ---
16
+
1
17
  # v4.0.72 (Wed May 06 2026)
2
18
 
3
19
  #### 🐛 Bug Fix
package/build/index.d.ts CHANGED
@@ -934,6 +934,8 @@ declare const DefaultObservationWrapper: ({ title, color, children, observations
934
934
  id: number;
935
935
  title: string;
936
936
  color: string;
937
+ creatorType?: "human" | "ai";
938
+ end?: number;
937
939
  }[];
938
940
  }) => JSX_2.Element;
939
941
 
@@ -1864,6 +1866,7 @@ declare type ObservationType = {
1864
1866
  end: number;
1865
1867
  text: string;
1866
1868
  color?: `#${string}`;
1869
+ creatorType?: "human" | "ai";
1867
1870
  };
1868
1871
 
1869
1872
  export declare interface OnOptionClickArgs {
package/build/index.js CHANGED
@@ -90787,7 +90787,8 @@ class rct {
90787
90787
  end: o.end,
90788
90788
  id: o.id,
90789
90789
  title: o.text,
90790
- color: o.color
90790
+ color: o.color,
90791
+ creatorType: o.creatorType
90791
90792
  },
90792
90793
  content: a
90793
90794
  }
@@ -90960,7 +90961,9 @@ const lct = ({
90960
90961
  start: l.attrs.start,
90961
90962
  id: l.attrs.id,
90962
90963
  title: l.attrs.title,
90963
- color: l.attrs.color
90964
+ color: l.attrs.color,
90965
+ creatorType: l.attrs.creatorType,
90966
+ end: l.attrs.end
90964
90967
  })),
90965
90968
  children: /* @__PURE__ */ M.jsx(I1, { as: "span", className: "content is-editable" })
90966
90969
  }
@@ -90985,6 +90988,9 @@ const lct = ({
90985
90988
  },
90986
90989
  title: {
90987
90990
  default: ""
90991
+ },
90992
+ creatorType: {
90993
+ default: null
90988
90994
  }
90989
90995
  };
90990
90996
  },
@@ -90997,30 +91003,36 @@ const lct = ({
90997
91003
  },
90998
91004
  addCommands() {
90999
91005
  return {
91000
- addObservation: ({ id: e, title: t, color: n }) => ({ tr: r, state: i, view: a }) => {
91001
- const { from: o, to: l } = i.selection;
91002
- let c, f;
91003
- return i.doc.nodesBetween(o, l, (g, m) => {
91004
- g.type.name === "Word" && (c || (c = g), f = g);
91005
- }), i.doc.nodesBetween(o, l, (g, m) => {
91006
- if (g.type.name === "Word") {
91007
- const b = i.schema.nodes.Observation.create(
91006
+ addObservation: ({
91007
+ id: e,
91008
+ title: t,
91009
+ color: n,
91010
+ creatorType: r
91011
+ }) => ({ tr: i, state: a, view: o }) => {
91012
+ const { from: l, to: c } = a.selection;
91013
+ let f, g;
91014
+ return a.doc.nodesBetween(l, c, (m, b) => {
91015
+ m.type.name === "Word" && (f || (f = m), g = m);
91016
+ }), a.doc.nodesBetween(l, c, (m, b) => {
91017
+ if (m.type.name === "Word") {
91018
+ const w = a.schema.nodes.Observation.create(
91008
91019
  {
91009
- start: c.attrs["data-start"],
91010
- end: f.attrs["data-end"],
91020
+ start: f.attrs["data-start"],
91021
+ end: g.attrs["data-end"],
91011
91022
  id: e,
91012
91023
  title: t,
91013
- color: n
91024
+ color: n,
91025
+ creatorType: r
91014
91026
  },
91015
- g.content
91016
- ), w = g.copy(it.from(b));
91017
- r.replaceWith(
91018
- r.mapping.map(m),
91019
- r.mapping.map(m + g.nodeSize),
91020
- w
91027
+ m.content
91028
+ ), E = m.copy(it.from(w));
91029
+ i.replaceWith(
91030
+ i.mapping.map(b),
91031
+ i.mapping.map(b + m.nodeSize),
91032
+ E
91021
91033
  );
91022
91034
  }
91023
- }), a.updateState(a.state.apply(a.state.tr)), !0;
91035
+ }), o.updateState(o.state.apply(o.state.tr)), !0;
91024
91036
  }
91025
91037
  };
91026
91038
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "4.0.72",
3
+ "version": "4.1.0",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",