cozy-harvest-lib 18.1.0 → 18.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
## [18.1.2](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@18.1.1...cozy-harvest-lib@18.1.2) (2023-10-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **harvest:** Check the flag during React Lifecycle ([0e6ea82](https://github.com/cozy/cozy-libs/commit/0e6ea82642a9db04187cf457651ee33264f4c5e0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [18.1.1](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@18.1.0...cozy-harvest-lib@18.1.1) (2023-10-09)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package cozy-harvest-lib
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [18.1.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@18.0.1...cozy-harvest-lib@18.1.0) (2023-10-06)
|
|
7
26
|
|
|
8
27
|
|
|
@@ -101,7 +101,6 @@ export var DumbLaunchTriggerCard = function DumbLaunchTriggerCard(_ref) {
|
|
|
101
101
|
}
|
|
102
102
|
}))));
|
|
103
103
|
};
|
|
104
|
-
var DumbComponent = flag('harvest.inappconnectors.enabled') ? LaunchTriggerAlert : DumbLaunchTriggerCard;
|
|
105
104
|
/**
|
|
106
105
|
* Shows the state of the trigger and provides the ability to
|
|
107
106
|
* relaunch a trigger
|
|
@@ -110,6 +109,8 @@ var DumbComponent = flag('harvest.inappconnectors.enabled') ? LaunchTriggerAlert
|
|
|
110
109
|
*/
|
|
111
110
|
|
|
112
111
|
var LaunchTriggerCard = function LaunchTriggerCard(props) {
|
|
112
|
+
var DumbComponent = flag('harvest.inappconnectors.enabled') ? LaunchTriggerAlert : DumbLaunchTriggerCard;
|
|
113
|
+
|
|
113
114
|
if (props.flow) {
|
|
114
115
|
return /*#__PURE__*/React.createElement(DumbComponent, props);
|
|
115
116
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-harvest-lib",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.2",
|
|
4
4
|
"description": "Provides logic, modules and components for Cozy's harvest applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"cozy-client": "^41.0.0",
|
|
76
76
|
"cozy-device-helper": "^3.0.0",
|
|
77
77
|
"cozy-flags": "^3.0.1",
|
|
78
|
-
"cozy-intent": "^2.17.
|
|
78
|
+
"cozy-intent": "^2.17.1",
|
|
79
79
|
"cozy-keys-lib": "^6.0.0",
|
|
80
80
|
"cozy-realtime": "^5.0.0",
|
|
81
81
|
"cozy-tsconfig": "^1.0.0",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"react-router-dom": ">=4.3.1"
|
|
113
113
|
},
|
|
114
114
|
"sideEffects": false,
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "db4a954385db84b920e714ae87bda1fb96010c80"
|
|
116
116
|
}
|
|
@@ -107,10 +107,6 @@ export const DumbLaunchTriggerCard = ({ flow, className, f, t, disabled }) => {
|
|
|
107
107
|
)
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
const DumbComponent = flag('harvest.inappconnectors.enabled')
|
|
111
|
-
? LaunchTriggerAlert
|
|
112
|
-
: DumbLaunchTriggerCard
|
|
113
|
-
|
|
114
110
|
/**
|
|
115
111
|
* Shows the state of the trigger and provides the ability to
|
|
116
112
|
* relaunch a trigger
|
|
@@ -118,6 +114,9 @@ const DumbComponent = flag('harvest.inappconnectors.enabled')
|
|
|
118
114
|
* - Will follow the connection flow and re-render in case of change
|
|
119
115
|
*/
|
|
120
116
|
const LaunchTriggerCard = props => {
|
|
117
|
+
const DumbComponent = flag('harvest.inappconnectors.enabled')
|
|
118
|
+
? LaunchTriggerAlert
|
|
119
|
+
: DumbLaunchTriggerCard
|
|
121
120
|
if (props.flow) {
|
|
122
121
|
return <DumbComponent {...props} />
|
|
123
122
|
}
|