Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cozy/cozy-libs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cozy-device-helper@2.1.0
Choose a base ref
...
head repository: cozy/cozy-libs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cozy-device-helper@2.2.0
Choose a head ref

Commits on May 11, 2022

  1. Copy the full SHA
    7f5a5da View commit details
  2. Copy the full SHA
    34d8f0d View commit details
  3. fix: Adjust input size for information step

    The text field must have the same width as its container in mobile
    Modification of the padding (14px by default),
    to prevent small shifts in some situations
    Merkur39 committed May 11, 2022
    Copy the full SHA
    ec3d6a3 View commit details
  4. feat: Change character by default for the maskPlaceholder

    ASCII codes 717
    Merkur39 committed May 11, 2022
    Copy the full SHA
    5769d31 View commit details
  5. Copy the full SHA
    783b589 View commit details
  6. [skip ci] Publish

     - cozy-mespapiers-lib@0.22.0
     - @cozy/repo-doctor@0.7.4
    Cozy Bot committed May 11, 2022
    Copy the full SHA
    99908c7 View commit details
  7. Copy the full SHA
    2945f89 View commit details
  8. Copy the full SHA
    fd1f583 View commit details
  9. feat: Create PaperCardItem

    JF-Cozy committed May 11, 2022
    Copy the full SHA
    ee866ef View commit details
  10. Copy the full SHA
    daa4bc7 View commit details
  11. refactor: Don't use svgr but icons from sprites

    As we do everywhere on this lib
    JF-Cozy committed May 11, 2022
    Copy the full SHA
    b3cd144 View commit details
  12. [skip ci] Publish

     - cozy-mespapiers-lib@0.23.0
    Cozy Bot committed May 11, 2022
    Copy the full SHA
    fe50c1d View commit details
  13. Copy the full SHA
    ab818b6 View commit details
  14. [skip ci] Publish

     - cozy-mespapiers-lib@0.24.0
    Cozy Bot committed May 11, 2022
    Copy the full SHA
    2d76056 View commit details
  15. Copy the full SHA
    c3bcda9 View commit details
  16. [skip ci] Publish

     - cozy-mespapiers-lib@0.25.0
    Cozy Bot committed May 11, 2022
    Copy the full SHA
    108e528 View commit details
  17. fix: Add maximum length rule on national_id_card paper

    Due to an error in the last PR
    #1601
    Merkur39 committed May 11, 2022
    Copy the full SHA
    13a3f07 View commit details
  18. Copy the full SHA
    2ccecce View commit details
  19. [skip ci] Publish

     - cozy-mespapiers-lib@0.26.0
    Cozy Bot committed May 11, 2022
    Copy the full SHA
    84cc8d4 View commit details

Commits on May 12, 2022

  1. refactor: Improve the construction of the Actions menu

    To improve the UX/DX
    Merkur39 committed May 12, 2022
    Copy the full SHA
    c082a76 View commit details
  2. Copy the full SHA
    3f3c6a8 View commit details
  3. Copy the full SHA
    c326164 View commit details
  4. feat: Add new actions

    Merkur39 committed May 12, 2022
    Copy the full SHA
    65a5d6a View commit details
  5. feat: Add the select option in the options of each line of paper

    Reorganization of options
    Merkur39 committed May 12, 2022
    Copy the full SHA
    f91b397 View commit details
  6. refactor: Split Actions file

    It will be easier to maintain each action separately
    Merkur39 committed May 12, 2022
    Copy the full SHA
    251ee3f View commit details
  7. Copy the full SHA
    9498c18 View commit details
  8. Copy the full SHA
    633f194 View commit details
  9. [skip ci] Publish

     - cozy-mespapiers-lib@0.27.0
    Cozy Bot committed May 12, 2022
    Copy the full SHA
    40ba116 View commit details
  10. fix: App Amirale browsing

    BREAKING CHANGE: registerWebview is now
    (uri: string, ref: WebviewRef). unregisterWebview is now (uri: string).
    acezard committed May 12, 2022
    Copy the full SHA
    bef060c View commit details
  11. [skip ci] Publish

     - cozy-harvest-lib@9.2.3
     - cozy-intent@2.0.0
     - cozy-mespapiers-lib@0.27.1
    Cozy Bot committed May 12, 2022
    Copy the full SHA
    42c9dfb View commit details

Commits on May 13, 2022

  1. Copy the full SHA
    6b17ecb View commit details
  2. Copy the full SHA
    84df410 View commit details
  3. Copy the full SHA
    bed93bb View commit details
  4. [skip ci] Publish

     - commitlint-config-cozy@0.7.7
     - cozy-doctypes@1.83.8
     - cozy-harvest-lib@9.2.4
     - cozy-mespapiers-lib@0.27.2
     - cozy-procedures@0.49.9
     - cozy-scanner@2.2.2
     - cozy-sharing@4.2.2
     - cozy-playgrounds@1.19.2
    Cozy Bot committed May 13, 2022
    Copy the full SHA
    01c44c3 View commit details
  5. fix: Add cozy-device-helper as real dependency

    When it's a dev-dependency, the publish will fail.
    Lerna will not be able to access the typings.
    As a real dep, it should be able to.
    acezard committed May 13, 2022
    Copy the full SHA
    f123989 View commit details
  6. [skip ci] Publish

     - cozy-harvest-lib@9.2.5
     - cozy-intent@2.0.1
     - cozy-mespapiers-lib@0.27.3
    Cozy Bot committed May 13, 2022
    Copy the full SHA
    85cd37d View commit details
  7. fix: Decouple cozy-intent from cozy-device-helper

    As it's used only once and blocking the CI when publishing,
    it is simpler for the time being to decouple the two libs.
    We are investigating why is the lerna publishing failing.
    acezard committed May 13, 2022
    Copy the full SHA
    091c611 View commit details
  8. fix: Missing data in metadata files

    The addition of the `.select` on the first query,
    which is executed on the Home,
    has significantly improved performance but has a side effect
    cozy/cozy-client#1175
    
    While waiting for a resolution,
    we can simply remove the `fetchPolicy` from this request,
    which is executed on a component that needs the full file.
    Merkur39 committed May 13, 2022
    Copy the full SHA
    85c22f5 View commit details
  9. [skip ci] Publish

     - cozy-harvest-lib@9.2.6
     - cozy-intent@2.0.2
     - cozy-mespapiers-lib@0.27.4
    Cozy Bot committed May 13, 2022
    Copy the full SHA
    0c0ce75 View commit details

Commits on May 14, 2022

  1. fix: bump leaflet from 1.7.1 to 1.8.0

    Bumps [leaflet](https://github.com/Leaflet/Leaflet) from 1.7.1 to 1.8.0.
    - [Release notes](https://github.com/Leaflet/Leaflet/releases)
    - [Changelog](https://github.com/Leaflet/Leaflet/blob/main/CHANGELOG.md)
    - [Commits](Leaflet/Leaflet@v1.7.1...v1.8.0)
    
    ---
    updated-dependencies:
    - dependency-name: leaflet
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and acezard committed May 14, 2022
    Copy the full SHA
    e4ae32d View commit details
  2. fix: bump exec-sh from 0.3.2 to 0.4.0

    Bumps [exec-sh](https://github.com/tsertkov/exec-sh) from 0.3.2 to 0.4.0.
    - [Release notes](https://github.com/tsertkov/exec-sh/releases)
    - [Commits](https://github.com/tsertkov/exec-sh/commits/v0.4.0)
    
    ---
    updated-dependencies:
    - dependency-name: exec-sh
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and acezard committed May 14, 2022
    Copy the full SHA
    8bb2874 View commit details
  3. [skip ci] Publish

     - cozy-harvest-lib@9.2.7
     - cozy-mespapiers-lib@0.27.5
     - cozy-release@1.12.0
    Cozy Bot committed May 14, 2022
    Copy the full SHA
    a295402 View commit details

Commits on May 16, 2022

  1. chore: Update codeowners

    Crash-- committed May 16, 2022
    Copy the full SHA
    948cb2e View commit details

Commits on May 17, 2022

  1. feat: Remove useVaultClient call in LegacyTriggerManager

    because VaultProvider is not necessarily present
    JF-Cozy committed May 17, 2022
    Copy the full SHA
    439e603 View commit details
  2. Copy the full SHA
    f59a438 View commit details
  3. [skip ci] Publish

     - cozy-harvest-lib@9.3.0
     - cozy-mespapiers-lib@0.27.6
    Cozy Bot committed May 17, 2022
    Copy the full SHA
    057e65e View commit details

Commits on May 18, 2022

  1. Copy the full SHA
    df9eb4f View commit details
  2. Copy the full SHA
    c57231d View commit details
  3. feat: Add Multipapers SVG

    Merkur39 committed May 18, 2022
    Copy the full SHA
    dd31a0c View commit details
  4. feat: Improve PaperCardItem

    Add the `className` & `square` props
    needed to properly manage the effect of the `hover`
    on the component
    Merkur39 committed May 18, 2022
    Copy the full SHA
    20a418f View commit details
Showing with 4,053 additions and 1,270 deletions.
  1. +1 −1 CODEOWNERS
  2. +1 −1 package.json
  3. +16 −0 packages/cli-tree/CHANGELOG.md
  4. +2 −2 packages/cli-tree/package.json
  5. +11 −0 packages/commitlint-config-cozy/CHANGELOG.md
  6. +3 −3 packages/commitlint-config-cozy/package.json
  7. +24 −0 packages/cozy-app-publish/CHANGELOG.md
  8. +1 −0 packages/cozy-app-publish/README.md
  9. +2 −2 packages/cozy-app-publish/package.json
  10. +11 −0 packages/cozy-authentication/CHANGELOG.md
  11. +2 −2 packages/cozy-authentication/package.json
  12. +28 −0 packages/cozy-codemods/CHANGELOG.md
  13. +6 −4 packages/cozy-codemods/README.md
  14. +8 −3 packages/cozy-codemods/package.json
  15. +108 −0 packages/cozy-codemods/src/__mocks__/imports.js
  16. +31 −1 packages/cozy-codemods/src/imports.js
  17. +69 −35 packages/cozy-codemods/src/imports.spec.js
  18. +8 −0 packages/cozy-codemods/src/transforms/__testfixtures__/transform-viewer-with-sharing.input.js
  19. +11 −0 packages/cozy-codemods/src/transforms/__testfixtures__/transform-viewer-with-sharing.output.js
  20. +9 −0 packages/cozy-codemods/src/transforms/__testfixtures__/transform-viewer-without-sharing.input.js
  21. +10 −0 packages/cozy-codemods/src/transforms/__testfixtures__/transform-viewer-without-sharing.output.js
  22. +8 −0 packages/cozy-codemods/src/transforms/__tests__/transform-viewer.spec.js
  23. +62 −0 packages/cozy-codemods/src/transforms/transform-viewer.js
  24. +16 −0 packages/cozy-device-helper/CHANGELOG.md
  25. +2 −2 packages/cozy-device-helper/package.json
  26. +11 −0 packages/cozy-doctypes/CHANGELOG.md
  27. +2 −2 packages/cozy-doctypes/package.json
  28. +16 −0 packages/cozy-flags/CHANGELOG.md
  29. +2 −2 packages/cozy-flags/package.json
  30. +123 −0 packages/cozy-harvest-lib/CHANGELOG.md
  31. +8 −8 packages/cozy-harvest-lib/package.json
  32. +3 −5 packages/cozy-harvest-lib/src/components/InAppBrowser.spec.jsx
  33. +116 −0 ...st-lib/src/components/KonnectorConfiguration/ConfigurationTab/BIContractActivationWindow.spec.jsx
  34. +77 −0 ...harvest-lib/src/components/KonnectorConfiguration/ConfigurationTab/BiContractActivationWindow.jsx
  35. +2 −0 packages/cozy-harvest-lib/src/components/KonnectorConfiguration/ConfigurationTab/Contracts.jsx
  36. +25 −28 packages/cozy-harvest-lib/src/components/TriggerManager.jsx
  37. +9 −5 packages/cozy-harvest-lib/src/helpers/oauth.js
  38. +2 −1 packages/cozy-harvest-lib/src/locales/en.json
  39. +2 −1 packages/cozy-harvest-lib/src/locales/fr.json
  40. +19 −0 packages/cozy-harvest-lib/src/services/bi-http.js
  41. +137 −10 packages/cozy-harvest-lib/src/services/biWebView.js
  42. +135 −4 packages/cozy-harvest-lib/src/services/biWebView.spec.js
  43. +1 −13 packages/cozy-harvest-lib/src/services/budget-insight.js
  44. +22 −0 packages/cozy-harvest-lib/src/types.js
  45. +55 −0 packages/cozy-intent/CHANGELOG.md
  46. +3 −5 packages/cozy-intent/package.json
  47. +1 −2 packages/cozy-intent/src/api/constants/numbers.ts
  48. +9 −3 packages/cozy-intent/src/api/constants/strings.ts
  49. +3 −0 packages/cozy-intent/src/api/models/environments.ts
  50. +6 −2 packages/cozy-intent/src/api/services/NativeMessenger.ts
  51. +18 −27 packages/cozy-intent/src/api/services/NativeService.spec.ts
  52. +17 −28 packages/cozy-intent/src/api/services/NativeService.ts
  53. +12 −23 packages/cozy-intent/src/view/components/WebviewIntentProvider.spec.tsx
  54. +1 −3 packages/cozy-intent/src/view/components/WebviewIntentProvider.tsx
  55. +0 −4 packages/cozy-intent/src/view/hooks/useWebviewIntent.spec.tsx
  56. +1 −7 packages/cozy-intent/tests/mocks.ts
  57. +322 −0 packages/cozy-mespapiers-lib/CHANGELOG.md
  58. +7 −0 packages/cozy-mespapiers-lib/README.md
  59. +9 −9 packages/cozy-mespapiers-lib/package.json
  60. +1 −0 packages/cozy-mespapiers-lib/src/assets/icons/Multipapers.svg
  61. +64 −0 packages/cozy-mespapiers-lib/src/components/Actions/ActionMenuItemWrapper.jsx
  62. +24 −0 packages/cozy-mespapiers-lib/src/components/Actions/ActionMenuWrapper.jsx
  63. +0 −143 packages/cozy-mespapiers-lib/src/components/Actions/Actions.jsx
  64. +10 −56 packages/cozy-mespapiers-lib/src/components/Actions/ActionsItems.jsx
  65. +26 −0 packages/cozy-mespapiers-lib/src/components/Actions/Items/download.js
  66. +26 −0 packages/cozy-mespapiers-lib/src/components/Actions/Items/forward.js
  67. +10 −0 packages/cozy-mespapiers-lib/src/components/Actions/Items/hr.js
  68. +30 −0 packages/cozy-mespapiers-lib/src/components/Actions/Items/open.js
  69. +36 −0 packages/cozy-mespapiers-lib/src/components/Actions/Items/select.js
  70. +37 −0 packages/cozy-mespapiers-lib/src/components/Actions/Items/trash.js
  71. +38 −0 packages/cozy-mespapiers-lib/src/components/Actions/Items/viewInDrive.js
  72. +0 −12 packages/cozy-mespapiers-lib/src/components/Actions/makeActions.jsx
  73. +102 −3 packages/cozy-mespapiers-lib/src/components/Actions/utils.js
  74. +51 −10 packages/cozy-mespapiers-lib/src/components/Actions/utils.spec.js
  75. +6 −0 packages/cozy-mespapiers-lib/src/components/AppRouter.jsx
  76. +54 −0 packages/cozy-mespapiers-lib/src/components/Contexts/MultiSelectionProvider.jsx
  77. +184 −0 packages/cozy-mespapiers-lib/src/components/Contexts/MultiSelectionProvider.spec.jsx
  78. +29 −14 packages/cozy-mespapiers-lib/src/components/Home/Home.jsx
  79. +47 −29 packages/cozy-mespapiers-lib/src/components/Home/Home.spec.jsx
  80. +46 −0 packages/cozy-mespapiers-lib/src/components/Home/HomeToolbar.jsx
  81. +13 −0 packages/cozy-mespapiers-lib/src/components/Hooks/useMultiSelection.jsx
  82. +17 −10 packages/cozy-mespapiers-lib/src/components/MesPapiersLib.jsx
  83. +2 −1 packages/cozy-mespapiers-lib/src/components/ModelSteps/Information.jsx
  84. +3 −1 packages/cozy-mespapiers-lib/src/components/ModelSteps/widgets/InputTextAdapter.jsx
  85. +4 −4 packages/cozy-mespapiers-lib/src/components/ModelSteps/widgets/InputTextAdapter.spec.jsx
  86. +47 −0 packages/cozy-mespapiers-lib/src/components/MoreOptions/MoreOptions.jsx
  87. +47 −0 packages/cozy-mespapiers-lib/src/components/Multiselect/ForwardModal.jsx
  88. +49 −0 packages/cozy-mespapiers-lib/src/components/Multiselect/GhostButton.jsx
  89. +47 −0 packages/cozy-mespapiers-lib/src/components/Multiselect/MultiselectContent.jsx
  90. +44 −0 packages/cozy-mespapiers-lib/src/components/Multiselect/MultiselectContent.spec.jsx
  91. +56 −0 packages/cozy-mespapiers-lib/src/components/Multiselect/MultiselectView.jsx
  92. +144 −0 packages/cozy-mespapiers-lib/src/components/Multiselect/MultiselectViewActions.jsx
  93. +48 −0 packages/cozy-mespapiers-lib/src/components/Papers/PaperCardItem.jsx
  94. +87 −0 packages/cozy-mespapiers-lib/src/components/Papers/PaperItem.jsx
  95. +34 −76 packages/cozy-mespapiers-lib/src/components/Papers/PaperLine.jsx
  96. +19 −13 packages/cozy-mespapiers-lib/src/components/Papers/PapersList.jsx
  97. +52 −0 packages/cozy-mespapiers-lib/src/components/Papers/PapersListToolbar.jsx
  98. +10 −19 packages/cozy-mespapiers-lib/src/components/Papers/PapersListWrapper.jsx
  99. +5 −4 packages/cozy-mespapiers-lib/src/components/Placeholders/PlaceholderThemesList.jsx
  100. +2 −2 packages/cozy-mespapiers-lib/src/components/Placeholders/PlaceholdersList.jsx
  101. +2 −3 packages/cozy-mespapiers-lib/src/components/SearchInput/SearchInput.jsx
  102. +1 −22 packages/cozy-mespapiers-lib/src/components/ThemesFilter/ThemesFilter.jsx
  103. +9 −2 packages/cozy-mespapiers-lib/src/components/Viewer/FilesViewer.jsx
  104. +34 −0 packages/cozy-mespapiers-lib/src/components/Viewer/SelectFileButton.jsx
  105. +26 −1 packages/cozy-mespapiers-lib/src/constants/papersDefinitions.json
  106. +1 −0 packages/cozy-mespapiers-lib/src/doctypes/index.js
  107. +1 −2 packages/cozy-mespapiers-lib/src/helpers/queries.js
  108. +29 −2 packages/cozy-mespapiers-lib/src/locales/en.json
  109. +29 −2 packages/cozy-mespapiers-lib/src/locales/fr.json
  110. +1 −1 packages/cozy-mespapiers-lib/src/utils/getSharingLink.js
  111. +26 −0 packages/cozy-mespapiers-lib/src/utils/handleConflictFilename.js
  112. +62 −0 packages/cozy-mespapiers-lib/src/utils/handleConflictFilename.spec.js
  113. +18 −13 packages/cozy-mespapiers-lib/test/components/AppLike.jsx
  114. +11 −0 packages/cozy-procedures/CHANGELOG.md
  115. +2 −2 packages/cozy-procedures/package.json
  116. +11 −0 packages/cozy-realtime/CHANGELOG.md
  117. +2 −2 packages/cozy-realtime/package.json
  118. +16 −0 packages/cozy-release/CHANGELOG.md
  119. +2 −2 packages/cozy-release/package.json
  120. +22 −0 packages/cozy-scanner/CHANGELOG.md
  121. +3 −3 packages/cozy-scanner/package.json
  122. +19 −0 packages/cozy-sharing/CHANGELOG.md
  123. +3 −3 packages/cozy-sharing/package.json
  124. +24 −0 packages/playgrounds/CHANGELOG.md
  125. +7 −7 packages/playgrounds/package.json
  126. +28 −0 packages/repo-doctor/CHANGELOG.md
  127. +2 −2 packages/repo-doctor/package.json
  128. +1 −1 packages/repo-doctor/src/config.js
  129. +1 −1 packages/repo-doctor/src/rules/index.js
  130. +483 −554 yarn.lock
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
packages/cozy-harvest-lib @doubleface @trollepierre
packages/cozy-doctypes/ @doubleface @trollepierre
packages/cozy-flags/ @acezard @trollepierre @Ldoppea
packages/cozy-app-publish/ @acezard @doubleface @trollepierre @sblaisot
packages/cozy-app-publish/ @acezard @doubleface @trollepierre
packages/cozy-interapp/ @Ldoppea @acezard @trollepierre
packages/cozy-intent/ @Ldoppea @acezard
packages/cozy-realtime/ @Ldoppea @trollepierre
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@
"devDependencies": {
"@babel/cli": "7.16.8",
"@babel/core": "7.16.12",
"@babel/runtime": "7.16.7",
"@babel/runtime": "7.18.3",
"babel-loader": "8.2.3",
"babel-preset-cozy-app": "^1.5.0",
"css-loader": "2.1.1",
16 changes: 16 additions & 0 deletions packages/cli-tree/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# 0.6.0 (2022-05-25)


### Bug Fixes

* bump argparse from 1.0.10 to 2.0.1 ([832b3db](https://github.com/cozy/cozy-libs/commit/832b3dbdfe774061357a3fc451976574b1d653fd))


### Features

* Remove useVaultClient call in LegacyTriggerManager ([439e603](https://github.com/cozy/cozy-libs/commit/439e603cef915e9fede72ae293ae35ca330347eb))





# 0.5.0 (2022-02-03)


4 changes: 2 additions & 2 deletions packages/cli-tree/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@cozy/cli-tree",
"version": "0.5.0",
"version": "0.6.0",
"main": "src/index.js",
"license": "MIT",
"dependencies": {
"argparse": "^1.0.10",
"argparse": "^2.0.1",
"lodash": "^4.17.19",
"tabtab": "^3.0.2"
},
11 changes: 11 additions & 0 deletions packages/commitlint-config-cozy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.7.7 (2022-05-13)


### Bug Fixes

* **deps:** update commitlint monorepo to v16.2.4 ([6b17ecb](https://github.com/cozy/cozy-libs/commit/6b17ecb23d5c16a31422cff636cc2e4f9a7c1ae9))





## 0.7.6 (2022-04-04)


6 changes: 3 additions & 3 deletions packages/commitlint-config-cozy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "commitlint-config-cozy",
"version": "0.7.6",
"version": "0.7.7",
"description": "Shareable commitlint config enforcing the cozy commit convention",
"main": "index.js",
"author": "Cozy",
@@ -18,12 +18,12 @@
},
"devDependencies": {
"@babel/core": "7.16.12",
"@commitlint/lint": "16.0.0",
"@commitlint/lint": "16.2.4",
"babel-jest": "26.6.3",
"babel-preset-cozy-app": "^2.0.2",
"jest": "26.6.3"
},
"dependencies": {
"@commitlint/cli": "16.2.3"
"@commitlint/cli": "16.2.4"
}
}
24 changes: 24 additions & 0 deletions packages/cozy-app-publish/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,30 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.30.1](https://github.com/cozy/cozy-libs/compare/cozy-app-publish@0.30.0...cozy-app-publish@0.30.1) (2022-06-02)

**Note:** Version bump only for package cozy-app-publish





# 0.30.0 (2022-05-25)


### Bug Fixes

* bump argparse from 1.0.10 to 2.0.1 ([832b3db](https://github.com/cozy/cozy-libs/commit/832b3dbdfe774061357a3fc451976574b1d653fd))


### Features

* Remove useVaultClient call in LegacyTriggerManager ([439e603](https://github.com/cozy/cozy-libs/commit/439e603cef915e9fede72ae293ae35ca330347eb))





# 0.29.0 (2022-02-03)


1 change: 1 addition & 0 deletions packages/cozy-app-publish/README.md
Original file line number Diff line number Diff line change
@@ -194,6 +194,7 @@ To print more logs when using tool (useful for debug).
#### Release workflow

- A new branch is created from the current state of `master`. Let's say we want to deploy version `1.0.0` of the app.
- Since we created a new branch, we have to bump the version of `master`, so we have to create a PR to bump to `1.1.0` everywhere is necessary
- The only type of commits allowed on this release branch are bug fixes.
- Every time one or more bugs are fixed and the version is considered for release, the latest commit is tagged with a prerelease version number, eg. `1.0.0-beta.1`, `1.0.0-beta.2`, etc…
- Each of these prereleases is automatically uploaded on downcloud and deployed on instances that are on the `beta` channel.
4 changes: 2 additions & 2 deletions packages/cozy-app-publish/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cozy-app-publish",
"version": "0.29.0",
"version": "0.30.1",
"main": "src/index.js",
"author": "Cozy",
"license": "MIT",
@@ -20,7 +20,7 @@
"cozy-app-publish": "./src/cozy-app-publish.js"
},
"dependencies": {
"argparse": "^1.0.10",
"argparse": "^2.0.1",
"chalk": "^2.4.2",
"cross-spawn": "^6.0.5",
"fs-extra": "^7.0.1",
11 changes: 11 additions & 0 deletions packages/cozy-authentication/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# 2.10.0 (2022-06-03)


### Features

* **harvest:** HandleOAuthResponse can deal with cozy-data from DOM ([7c6ac1a](https://github.com/cozy/cozy-libs/commit/7c6ac1a8de7dd2b136530d0aafdb1e3f9e28fa56))





## [2.9.1](https://github.com/cozy/cozy-libs/compare/cozy-authentication@2.9.0...cozy-authentication@2.9.1) (2022-05-10)

**Note:** Version bump only for package cozy-authentication
4 changes: 2 additions & 2 deletions packages/cozy-authentication/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cozy-authentication",
"version": "2.9.1",
"version": "2.10.0",
"description": "Component providing login to a Cozy",
"main": "dist/index.js",
"files": [
@@ -38,7 +38,7 @@
"react-router": "6.3.0"
},
"dependencies": {
"cozy-device-helper": "^2.1.0",
"cozy-device-helper": "^2.2.0",
"localforage": "1.7.3",
"prop-types": "15.7.2",
"snarkdown": "1.2.2",
28 changes: 28 additions & 0 deletions packages/cozy-codemods/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,34 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.16.2](https://github.com/cozy/cozy-libs/compare/@cozy/codemods@1.16.1...@cozy/codemods@1.16.2) (2022-06-03)

**Note:** Version bump only for package @cozy/codemods





## [1.16.1](https://github.com/cozy/cozy-libs/compare/@cozy/codemods@1.16.0...@cozy/codemods@1.16.1) (2022-05-25)

**Note:** Version bump only for package @cozy/codemods





# 1.16.0 (2022-05-23)


### Features

* Add codemods for Viewer ([13a5a82](https://github.com/cozy/cozy-libs/commit/13a5a82133936e114b6e44c25308a5f03b185b6a))
* **cozy-codemods:** Add helper for make JSX element ([9790a77](https://github.com/cozy/cozy-libs/commit/9790a77cf62afec5832e27ac7a9b67ec9ada97d9))





## [1.15.1](https://github.com/cozy/cozy-libs/compare/@cozy/codemods@1.15.0...@cozy/codemods@1.15.1) (2022-05-04)


10 changes: 6 additions & 4 deletions packages/cozy-codemods/README.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

## Cozy codeshifts

A collection of utils and transforms for [jscodeshift][].
A collection of utils and transforms for [jscodeshift](https://github.com/facebook/jscodeshift).

Codeshifts are automatic transformations of Javascript code. They can be used
for
@@ -11,11 +11,13 @@ for
- flag removal
- general automatic code changes...

See [here][jscodeshift-docs] for more information on codeshifts.
### Documentation

[jscodeshift]: https://github.com/facebook/jscodeshift
See [jscodeshift-docs](https://github.com/facebook/jscodeshift/wiki/jscodeshift-Documentation) for more information on codeshifts.

[jscodeshift-docs]: https://github.com/facebook/jscodeshift/wiki/jscodeshift-Documentation
Here are nice examples about [import manipulation](https://www.codeshiftcommunity.com/docs/import-manipulation/) and [React & JSX manipulation](https://www.codeshiftcommunity.com/docs/react).

The [API doc](https://npmdoc.github.io/node-npmdoc-jscodeshift/build/apidoc.html) can be usefull too.

### Installation

11 changes: 8 additions & 3 deletions packages/cozy-codemods/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cozy/codemods",
"version": "1.15.1",
"version": "1.16.2",
"description": "Codeshifts used inside Cozies",
"main": "index.js",
"repository": "https://github.com/cozy/cozy-libs",
@@ -12,11 +12,16 @@
"scripts": {
"docs": "jsdoc2md -f 'src/**/*.js' -t .README.md.template > README.md",
"build": "babel src -d dist --verbose",
"test": "jest src",
"test": "jest",
"cli": "node src/cli.js"
},
"jest": {
"roots": [
"src"
]
},
"dependencies": {
"@cozy/cli-tree": "^0.5.0",
"@cozy/cli-tree": "^0.6.0",
"jscodeshift": "^0.11.0"
},
"devDependencies": {
108 changes: 108 additions & 0 deletions packages/cozy-codemods/src/__mocks__/imports.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
export const before = `
import React from 'react'
import 'side-effect-package'
import DialogFile from 'cozy-ui/transpiled/react/DialogFile'
import DialogContent from 'cozy-ui/transpiled/react/DialogContent'
import Dialog from 'cozy-ui/transpiled/react/Dialog'
import Tabs, { TabPanels, TabPanel } from 'cozy-ui/transpiled/react/Tabs'
`

export const after = `
import React from 'react'
import 'side-effect-package'
import Dialog, { DialogFile, DialogContent } from "cozy-ui/transpiled/react/Dialog";
import Tabs, { TabPanels, TabPanel } from 'cozy-ui/transpiled/react/Tabs'
`

export const JSXElementWithoutClosingElement = {
openingElement: expect.any(Object),
closingElement: null,
attributes: [],
children: [],
name: expect.objectContaining({
name: 'SomeElement',
type: 'JSXIdentifier'
}),
selfClosing: true,
type: 'JSXElement'
}

export const JSXElementWithClosingElement = {
openingElement: expect.any(Object),
closingElement: expect.any(Object),
attributes: [],
children: [],
name: expect.objectContaining({
name: 'SomeElement',
type: 'JSXIdentifier'
}),
selfClosing: false,
type: 'JSXElement'
}

export const JSXElementWithChildren = {
openingElement: expect.any(Object),
closingElement: expect.any(Object),
attributes: [],
children: expect.arrayContaining([
expect.objectContaining({
openingElement: expect.any(Object),
closingElement: null,
attributes: [],
children: [],
name: expect.objectContaining({
name: 'Child',
type: 'JSXIdentifier'
}),
selfClosing: true,
type: 'JSXElement'
})
]),
name: expect.objectContaining({
name: 'SomeElement',
type: 'JSXIdentifier'
}),
selfClosing: false,
type: 'JSXElement'
}

export const JSXElementWithAttribute = {
attributes: expect.arrayContaining([
expect.objectContaining({
name: expect.objectContaining({
name: 'attr0',
type: 'JSXIdentifier'
}),
type: 'JSXAttribute',
value: expect.objectContaining({
regex: null,
type: 'Literal',
value: '0'
})
})
]),
children: [],
closingElement: null,
name: expect.objectContaining({
name: 'SomeElement',
type: 'JSXIdentifier'
}),
openingElement: expect.objectContaining({
attributes: expect.arrayContaining([
expect.objectContaining({
name: expect.objectContaining({
name: 'attr0',
type: 'JSXIdentifier'
}),
value: expect.objectContaining({
regex: null,
type: 'Literal',
value: '0'
}),
type: 'JSXAttribute'
})
])
}),
selfClosing: true,
type: 'JSXElement'
}
Loading