cozy-ui-plus 12.3.10 → 12.3.12

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
@@ -3,6 +3,16 @@
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
+ ## [12.3.12](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@12.3.11...cozy-ui-plus@12.3.12) (2026-08-31)
7
+
8
+ ### Bug Fixes
9
+
10
+ - Use CozyTheme from cozy-ui-plus in Intent components ([53a764f](https://github.com/cozy/cozy-libs/commit/53a764f416c77d8dce4338dec251d70d0c00e4aa))
11
+
12
+ ## [12.3.11](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@12.3.10...cozy-ui-plus@12.3.11) (2026-08-26)
13
+
14
+ **Note:** Version bump only for package cozy-ui-plus
15
+
6
16
  ## [12.3.10](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@12.3.9...cozy-ui-plus@12.3.10) (2026-08-25)
7
17
 
8
18
  **Note:** Version bump only for package cozy-ui-plus
@@ -21,7 +21,7 @@ var _CozyDialogs = require("cozy-ui/transpiled/react/CozyDialogs");
21
21
 
22
22
  var _Dialog = _interopRequireDefault(require("cozy-ui/transpiled/react/Dialog"));
23
23
 
24
- var _CozyTheme = _interopRequireDefault(require("cozy-ui/transpiled/react/providers/CozyTheme"));
24
+ var _CozyTheme = _interopRequireDefault(require("../../providers/CozyTheme"));
25
25
 
26
26
  var _IntentIframe = _interopRequireWildcard(require("../IntentIframe"));
27
27
 
@@ -35,7 +35,7 @@ var _cozyInterapp = require("cozy-interapp");
35
35
 
36
36
  var _Spinner = _interopRequireDefault(require("cozy-ui/transpiled/react/Spinner"));
37
37
 
38
- var _CozyTheme = _interopRequireDefault(require("cozy-ui/transpiled/react/providers/CozyTheme"));
38
+ var _CozyTheme = _interopRequireDefault(require("../../providers/CozyTheme"));
39
39
 
40
40
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
41
41
 
@@ -167,7 +167,7 @@ var IntentIframe = /*#__PURE__*/function (_React$Component) {
167
167
  readyToUse = _this$state.readyToUse;
168
168
  var loading = error === null && (!frameLoaded || waitForReadyToUse && !readyToUse);
169
169
  var themeType = data === null || data === void 0 ? void 0 : (_data$theme = data.theme) === null || _data$theme === void 0 ? void 0 : _data$theme.type;
170
- var forcedTheme = ['light', 'dark'].includes(themeType) ? themeType : null;
170
+ var forcedTheme = ['light', 'dark'].includes(themeType) ? themeType : undefined;
171
171
  return /*#__PURE__*/_react.default.createElement(_CozyTheme.default, {
172
172
  type: forcedTheme,
173
173
  ignoreItself: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui-plus",
3
- "version": "12.3.10",
3
+ "version": "12.3.12",
4
4
  "description": "Cozy-ui-plus is an extension of cozy-ui and provides components based on cozy-client",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "cozy-intent": "^2.31.1",
39
39
  "cozy-interapp": "^0.19.0",
40
40
  "cozy-logger": "^1.18.1",
41
- "cozy-sharing": "^37.5.1",
41
+ "cozy-sharing": "^37.5.3",
42
42
  "cozy-stack-client": "^60.21.1",
43
43
  "cozy-ui": "^138.1.0",
44
44
  "jest": "30.3.0",
@@ -78,5 +78,5 @@
78
78
  "react-dom": "^16 || ^17 || ^18",
79
79
  "twake-i18n": ">=0.3.0"
80
80
  },
81
- "gitHead": "1f5ca5edaf02675c51870c3d525eef0112781453"
81
+ "gitHead": "9a29fb9929ba6bc8203172785e5d803a2b04f7db"
82
82
  }
@@ -3,8 +3,8 @@ import React, { useState } from 'react'
3
3
 
4
4
  import { DialogCloseButton } from 'cozy-ui/transpiled/react/CozyDialogs'
5
5
  import Dialog from 'cozy-ui/transpiled/react/Dialog'
6
- import CozyTheme from 'cozy-ui/transpiled/react/providers/CozyTheme'
7
6
 
7
+ import CozyTheme from '../../providers/CozyTheme'
8
8
  import IntentIframe, { iframeProps } from '../IntentIframe'
9
9
 
10
10
  /**
@@ -7,9 +7,9 @@ import React from 'react'
7
7
  import { withClient } from 'cozy-client'
8
8
  import { Intents } from 'cozy-interapp'
9
9
  import Spinner from 'cozy-ui/transpiled/react/Spinner'
10
- import CozyTheme from 'cozy-ui/transpiled/react/providers/CozyTheme'
11
10
 
12
11
  import styles from './styles.styl'
12
+ import CozyTheme from '../../providers/CozyTheme'
13
13
 
14
14
  const DEFAULT_DATA = {
15
15
  // TODO remove `closeable` since it is only there for backward compatibility
@@ -85,7 +85,10 @@ class IntentIframe extends React.Component {
85
85
  const loading =
86
86
  error === null && (!frameLoaded || (waitForReadyToUse && !readyToUse))
87
87
  const themeType = data?.theme?.type
88
- const forcedTheme = ['light', 'dark'].includes(themeType) ? themeType : null
88
+ const forcedTheme = ['light', 'dark'].includes(themeType)
89
+ ? themeType
90
+ : undefined
91
+
89
92
  return (
90
93
  <CozyTheme
91
94
  type={forcedTheme}