From 4d491c127b3fa888bc993ef2def5e241fe23962a Mon Sep 17 00:00:00 2001 From: Conrad VanLandingham Date: Fri, 1 Mar 2024 12:07:27 -0600 Subject: [PATCH] Upgrade phosphor (#185) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 🐛 Issue Phosphor is outdated and need new icons in event block pr ## ✏️ Solution Update phoshpor Note on the PR size: 1. Workspaces weren't properly setup, which was messing with dependencies across the packages. The workspace was kinda setup, but anytime yarn did something it spit out a warning aobut workspaces only working on private packages. so I made the base package.json private and it snapped into order 2. There were lint/format issues in some of the files and so the formatting got updated upon save. I can try to revert these changes if too heavy handed ## 🔬 To Test 1. 3. ## 📸 Screenshots --- micro-service/package.json | 2 +- micro-service/yarn.lock | 54 +- package.json | 3 +- .../components/Auth/AuthLayout/AuthLayout.js | 15 +- .../components/Breadcrumbs/Breadcrumbs.js | 2 +- .../Features/HorizontalCardListFeature.js | 2 +- .../Features/HorizontalMediaListFeature.js | 2 +- .../FeatureFeed/Features/PrayerListFeature.js | 38 +- .../FeatureFeed/Features/ScriptureFeature.js | 2 +- .../Features/VerticalCardListFeature.js | 2 +- packages/web-shared/components/Modal/Modal.js | 2 +- .../web-shared/components/Profile/Profile.js | 52 +- .../components/Searchbar/Autocomplete.js | 2 +- .../components/Searchbar/SearchResults.js | 2 +- .../components/Searchbar/Searchbar.js | 2 +- packages/web-shared/package.json | 2 + .../ui-kit/ButtonGroup/ButtonGroup.js | 2 +- .../ui-kit/ContentCard/ContentCard.js | 2 +- .../web-shared/ui-kit/MediaItem/MediaItem.js | 29 +- .../ui-kit/PhospherIcon/PhospherIcon.js | 4 +- .../ui-kit/ResourceCard/ResourceCard.js | 2 +- .../ui-kit/ShareButton/ShareButton.js | 2 +- web-embeds/package.json | 2 +- web-embeds/widget/index.js | 327589 ++++++++++++++- web-embeds/yarn.lock | 49 +- yarn.lock | 198 + 26 files changed, 327928 insertions(+), 135 deletions(-) create mode 100644 yarn.lock diff --git a/micro-service/package.json b/micro-service/package.json index 3070ec32..370147fb 100644 --- a/micro-service/package.json +++ b/micro-service/package.json @@ -19,6 +19,7 @@ "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", + "@phosphor-icons/react": "2.0.15", "algoliasearch": "^4.17.0", "amplitude-js": "^8.21.9", "apollo-upload-client": "^17.0.0", @@ -31,7 +32,6 @@ "graphql": "^16.6.0", "lodash": "^4.17.21", "moment": "^2.29.1", - "phosphor-react": "^1.4.1", "postcss": "^7.0.39", "prop-types": "^15.8.1", "react": "^18.2.0", diff --git a/micro-service/yarn.lock b/micro-service/yarn.lock index 66891b90..0a9d920d 100644 --- a/micro-service/yarn.lock +++ b/micro-service/yarn.lock @@ -1379,6 +1379,13 @@ dependencies: regenerator-runtime "^0.13.11" +"@babel/runtime@^7.17.8": + version "7.24.0" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.0.tgz#584c450063ffda59697021430cb47101b085951e" + integrity sha512-Chk32uHMg6TnQdvw2e9IlqPpFX/6NLuK0Ys2PqLb7/gL5uFn9mXvK715FGLlOLQrcO4qIkNHkvPGktzzXexsFw== + dependencies: + regenerator-runtime "^0.14.0" + "@babel/template@^7.22.5", "@babel/template@^7.3.3": version "7.22.5" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.5.tgz#0c8c4d944509875849bd0344ff0050756eefc6ec" @@ -1608,6 +1615,14 @@ resolved "https://registry.yarnpkg.com/@graphql-typed-document-node/core/-/core-3.2.0.tgz#5f3d96ec6b2354ad6d8a28bf216a1d97b5426861" integrity sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ== +"@headlessui/react@^1.7.18": + version "1.7.18" + resolved "https://registry.yarnpkg.com/@headlessui/react/-/react-1.7.18.tgz#30af4634d2215b2ca1aa29d07f33d02bea82d9d7" + integrity sha512-4i5DOrzwN4qSgNsL4Si61VMkUcWbcSKueUV7sFhpHzQcSShdlHENE5+QBntMSRvHt8NyoFO2AGG8si9lq+w4zQ== + dependencies: + "@tanstack/react-virtual" "^3.0.0-beta.60" + client-only "^0.0.1" + "@humanwhocodes/config-array@^0.11.10": version "0.11.10" resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.10.tgz#5a3ffe32cc9306365fb3fd572596cd602d5e12d2" @@ -1998,6 +2013,11 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" +"@phosphor-icons/react@2.0.15": + version "2.0.15" + resolved "https://registry.yarnpkg.com/@phosphor-icons/react/-/react-2.0.15.tgz#4d8e28484d45649f53a6cd75db161cf8b8379e1d" + integrity sha512-PQKNcRrfERlC8gJGNz0su0i9xVmeubXSNxucPcbCLDd9u0cwJVTEyYK87muul/svf0UXFdL2Vl6bbeOhT1Mwow== + "@pmmmwh/react-refresh-webpack-plugin@^0.5.3": version "0.5.10" resolved "https://registry.yarnpkg.com/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.5.10.tgz#2eba163b8e7dbabb4ce3609ab5e32ab63dda3ef8" @@ -3278,6 +3298,18 @@ "@svgr/plugin-svgo" "^5.5.0" loader-utils "^2.0.0" +"@tanstack/react-virtual@^3.0.0-beta.60": + version "3.1.3" + resolved "https://registry.yarnpkg.com/@tanstack/react-virtual/-/react-virtual-3.1.3.tgz#4ef2a7dd819a7dd2b634d50cbd6ba498f06529ec" + integrity sha512-YCzcbF/Ws/uZ0q3Z6fagH+JVhx4JLvbSflgldMgLsuvB8aXjZLLb3HvrEVxY480F9wFlBiXlvQxOyXb5ENPrNA== + dependencies: + "@tanstack/virtual-core" "3.1.3" + +"@tanstack/virtual-core@3.1.3": + version "3.1.3" + resolved "https://registry.yarnpkg.com/@tanstack/virtual-core/-/virtual-core-3.1.3.tgz#77ced625f19ec9350f6e460f142b3be9bff03866" + integrity sha512-Y5B4EYyv1j9V8LzeAoOVeTg0LI7Fo5InYKgAjkY1Pu9GjtUwX/EKxNcU7ng3sKr99WEf+bPTcktAeybyMOYo+g== + "@testing-library/dom@^7.28.1": version "7.31.2" resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-7.31.2.tgz#df361db38f5212b88555068ab8119f5d841a8c4a" @@ -4773,6 +4805,11 @@ clean-css@^5.2.2: dependencies: source-map "~0.6.0" +client-only@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1" + integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA== + cliui@^7.0.2: version "7.0.4" resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" @@ -8570,11 +8607,6 @@ performance-now@^2.1.0: resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow== -phosphor-react@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/phosphor-react/-/phosphor-react-1.4.1.tgz#97b0e034d9937db9b97fe53b186e9646464fd4e7" - integrity sha512-gO5j7U0xZrdglTAYDYPACU4xDOFBTJmptrrB/GeR+tHhCZF3nUMyGmV/0hnloKjuTrOmpSFlbfOY78H39rgjUQ== - picocolors@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-0.2.1.tgz#570670f793646851d1ba135996962abad587859f" @@ -8614,6 +8646,13 @@ pkg-up@^3.1.0: dependencies: find-up "^3.0.0" +polished@^4.1.2: + version "4.3.1" + resolved "https://registry.yarnpkg.com/polished/-/polished-4.3.1.tgz#5a00ae32715609f83d89f6f31d0f0261c6170548" + integrity sha512-OBatVyC/N7SCW/FaDHrSd+vn0o5cS855TOmYi4OkdWUMSJCET/xip//ch8xGUvtr3i44X9LVyWwQlRMTN3pwSA== + dependencies: + "@babel/runtime" "^7.17.8" + postcss-attribute-case-insensitive@^5.0.2: version "5.0.2" resolved "https://registry.yarnpkg.com/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-5.0.2.tgz#03d761b24afc04c09e757e92ff53716ae8ea2741" @@ -9653,6 +9692,11 @@ regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.9: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== +regenerator-runtime@^0.14.0: + version "0.14.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f" + integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw== + regenerator-transform@^0.15.1: version "0.15.1" resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.1.tgz#f6c4e99fc1b4591f780db2586328e4d9a9d8dc56" diff --git a/package.json b/package.json index ca826392..6c35aeaf 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "apollos-embeds", + "private": true, "version": "0.0.1", "main": "index.js", "repository": "https://github.com/ApollosProject/apollos-embeds.git", @@ -9,6 +10,6 @@ "packages": [ "packages/*" ], - "nohoist": [ ] + "nohoist": [] } } diff --git a/packages/web-shared/components/Auth/AuthLayout/AuthLayout.js b/packages/web-shared/components/Auth/AuthLayout/AuthLayout.js index acf0ede7..28d6907a 100644 --- a/packages/web-shared/components/Auth/AuthLayout/AuthLayout.js +++ b/packages/web-shared/components/Auth/AuthLayout/AuthLayout.js @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { CaretLeft } from 'phosphor-react'; +import { CaretLeft } from '@phosphor-icons/react'; import { Box, Card, Button } from '../../../ui-kit'; import customizations from './customizations'; @@ -34,14 +34,7 @@ function AuthLayout(props = {}) { alignItems="center" backgroundColor="neutral.gray6" > - + {state.prevStep === authSteps.Identity ? (