cozy-sharing 32.1.0 → 32.1.2

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.
@@ -12,7 +12,14 @@ const config = {
12
12
  docs: {
13
13
  autodocs: true
14
14
  },
15
- staticDirs: ['./public']
15
+ staticDirs: ['./public'],
16
+ webpackFinal: async (config) => {
17
+ config.resolve.alias = {
18
+ ...config.resolve.alias,
19
+ 'cozy-client/dist/types': require.resolve('cozy-client/dist/index.js')
20
+ }
21
+ return config
22
+ }
16
23
  }
17
24
 
18
25
  export default config
@@ -1,12 +1,13 @@
1
1
  import React from "react";
2
2
 
3
- import 'cozy-ui/dist/cozy-ui.min.css'
4
3
  import 'cozy-ui/dist/cozy-ui.utils.min.css'
5
4
  import 'cozy-ui/transpiled/react/stylesheet.css'
5
+ import 'cozy-ui-plus/dist/stylesheet.css'
6
6
  import '../dist/stylesheet.css'
7
7
 
8
8
  import I18n from "twake-i18n"
9
9
  import { BreakpointsProvider } from 'cozy-ui/transpiled/react/providers/Breakpoints'
10
+ import AlertProvider from 'cozy-ui/transpiled/react/providers/Alert'
10
11
  import CozyTheme from 'cozy-ui-plus/dist/providers/CozyTheme'
11
12
  import { CozyProvider, createFakeClient } from 'cozy-client'
12
13
 
@@ -40,16 +41,20 @@ const preview = {
40
41
  })
41
42
  return (
42
43
  <CozyProvider client={fakeClient}>
43
- <CozyTheme>
44
+ <CozyTheme ignoreCozySettings>
44
45
  <BreakpointsProvider>
45
46
  <SharingContext.Provider value={{
46
47
  revokeGroup: () => {},
47
- revokeSelf: () => {}
48
+ revokeSelf: () => {},
49
+ getDocumentPermissions: () => [],
50
+ getSharingLink: () => ''
48
51
  }}>
49
52
  <I18n lang="en" dictRequire={() => enLocale}>
50
- <div style={{position: "relative"}}>
51
- <Story />
52
- </div>
53
+ <AlertProvider>
54
+ <div style={{position: "relative"}}>
55
+ <Story />
56
+ </div>
57
+ </AlertProvider>
53
58
  </I18n>
54
59
  </SharingContext.Provider>
55
60
  </BreakpointsProvider>
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [32.1.2](https://github.com/cozy/cozy-libs/compare/cozy-sharing@32.1.1...cozy-sharing@32.1.2) (2026-05-19)
7
+
8
+ **Note:** Version bump only for package cozy-sharing
9
+
10
+ ## [32.1.1](https://github.com/cozy/cozy-libs/compare/cozy-sharing@32.1.0...cozy-sharing@32.1.1) (2026-05-18)
11
+
12
+ **Note:** Version bump only for package cozy-sharing
13
+
6
14
  # [32.1.0](https://github.com/cozy/cozy-libs/compare/cozy-sharing@32.0.0...cozy-sharing@32.1.0) (2026-05-18)
7
15
 
8
16
  ### Features
@@ -6,6 +6,9 @@ var meta = {
6
6
  verifyRecipient: function verifyRecipient() {
7
7
  return true;
8
8
  },
9
+ document: {
10
+ _id: '123'
11
+ },
9
12
  fadeIn: false
10
13
  }
11
14
  };
@@ -1,7 +1,11 @@
1
1
  import LinkRecipientPermissions from './LinkRecipientPermissions';
2
2
  var meta = {
3
3
  component: LinkRecipientPermissions,
4
- args: {}
4
+ args: {
5
+ document: {
6
+ _id: '123'
7
+ }
8
+ }
5
9
  };
6
10
  export default meta;
7
11
  export var Default = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-sharing",
3
- "version": "32.1.0",
3
+ "version": "32.1.2",
4
4
  "description": "Provides sharing login for React applications.",
5
5
  "main": "dist/index.js",
6
6
  "author": "Cozy",
@@ -58,7 +58,7 @@
58
58
  "cozy-intent": "^2.31.1",
59
59
  "cozy-minilog": "^3.10.1",
60
60
  "cozy-ui": "^138.1.0",
61
- "cozy-ui-plus": "^8.0.0",
61
+ "cozy-ui-plus": "^8.0.1",
62
62
  "jest": "30.3.0",
63
63
  "jest-environment-jsdom": "30.3.0",
64
64
  "react": "16.12.0",
@@ -83,5 +83,5 @@
83
83
  "sideEffects": [
84
84
  "*.css"
85
85
  ],
86
- "gitHead": "1ad45fcf02b511f01376ac0d5e2f2f7bb4b39fc0"
86
+ "gitHead": "9a0df81fbae4d16cd70fea539f652f7bc8930ca7"
87
87
  }
@@ -5,6 +5,7 @@ const meta = {
5
5
  args: {
6
6
  recipientConfirmationData: false,
7
7
  verifyRecipient: () => true,
8
+ document: { _id: '123' },
8
9
  fadeIn: false
9
10
  }
10
11
  }
@@ -2,7 +2,9 @@ import LinkRecipientPermissions from './LinkRecipientPermissions'
2
2
 
3
3
  const meta = {
4
4
  component: LinkRecipientPermissions,
5
- args: {}
5
+ args: {
6
+ document: { _id: '123' }
7
+ }
6
8
  }
7
9
 
8
10
  export default meta