@equinor/fusion-framework-react-components-bookmark 1.1.1 → 1.1.2-next.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,5 +1,20 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 1.1.2-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3693](https://github.com/equinor/fusion-framework/pull/3693) [`d6be2c4`](https://github.com/equinor/fusion-framework/commit/d6be2c4f2e01bab008b4d1f78f9adecb06647e66) Thanks [@github-actions](https://github.com/apps/github-actions)! - Fix MSAL v4 compatibility in bookmark SharedIcon component.
|
|
8
|
+
|
|
9
|
+
- Replace deprecated defaultAccount with account property
|
|
10
|
+
- Ensure proper account information access for bookmark sharing logic
|
|
11
|
+
|
|
12
|
+
This change ensures the bookmark component works correctly with MSAL v4 while maintaining backward compatibility.
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`d6be2c4`](https://github.com/equinor/fusion-framework/commit/d6be2c4f2e01bab008b4d1f78f9adecb06647e66)]:
|
|
15
|
+
- @equinor/fusion-framework-react@7.4.19-next.0
|
|
16
|
+
- @equinor/fusion-framework-react-module-bookmark@5.0.2-next.0
|
|
17
|
+
|
|
3
18
|
## 1.1.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -18,7 +18,7 @@ const Styled = {
|
|
|
18
18
|
`,
|
|
19
19
|
};
|
|
20
20
|
export const SharedIcon = ({ createdBy, createdById }) => {
|
|
21
|
-
const myId = useFramework().modules.auth.
|
|
21
|
+
const myId = useFramework().modules.auth.account?.localAccountId;
|
|
22
22
|
const isMe = createdById === myId;
|
|
23
23
|
return (_jsxs(Styled.Row, { children: [!isMe && _jsxs(Styled.CreatedBy, { children: ["shared by ", createdBy] }), _jsx(Icon, { name: "share", color: isMe
|
|
24
24
|
? tokens.colors.interactive.primary__resting.hex
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SharedIcon.js","sourceRoot":"","sources":["../../../../src/components/shared/SharedIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,MAAM,GAAG;IACb,GAAG,EAAE,MAAM,CAAC,GAAG,CAAA;;;;KAIZ;IACH,SAAS,EAAE,MAAM,CAAC,CAAC,CAAA;;;;;;KAMhB;CACJ,CAAC;AAOF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,SAAS,EAAE,WAAW,EAAmB,EAAE,EAAE;IACxE,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"SharedIcon.js","sourceRoot":"","sources":["../../../../src/components/shared/SharedIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,MAAM,MAAM,GAAG;IACb,GAAG,EAAE,MAAM,CAAC,GAAG,CAAA;;;;KAIZ;IACH,SAAS,EAAE,MAAM,CAAC,CAAC,CAAA;;;;;;KAMhB;CACJ,CAAC;AAOF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAE,SAAS,EAAE,WAAW,EAAmB,EAAE,EAAE;IACxE,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC;IAEjE,MAAM,IAAI,GA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