@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 +16 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +32 -20
- package/package.json +1 -1
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: ({
|
|
91001
|
-
|
|
91002
|
-
|
|
91003
|
-
|
|
91004
|
-
|
|
91005
|
-
|
|
91006
|
-
|
|
91007
|
-
|
|
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:
|
|
91010
|
-
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
|
-
|
|
91016
|
-
),
|
|
91017
|
-
|
|
91018
|
-
|
|
91019
|
-
|
|
91020
|
-
|
|
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
|
-
}),
|
|
91035
|
+
}), o.updateState(o.state.apply(o.state.tr)), !0;
|
|
91024
91036
|
}
|
|
91025
91037
|
};
|
|
91026
91038
|
},
|