Merged in monorepo-step-1 (pull request #1080)

Migrate to a monorepo setup - step 1

* Move web to subfolder /apps/scandic-web

* Yarn + transitive deps

- Move to yarn
- design-system package removed for now since yarn doesn't
support the parameter for token (ie project currently broken)
- Add missing transitive dependencies as Yarn otherwise
prevents these imports
- VS Code doesn't pick up TS path aliases unless you open
/apps/scandic-web instead of root (will be fixed with monorepo)

* Pin framer-motion to temporarily fix typing issue

https://github.com/adobe/react-spectrum/issues/7494

* Pin zod to avoid typ error

There seems to have been a breaking change in the types
returned by zod where error is now returned as undefined
instead of missing in the type. We should just handle this
but to avoid merge conflicts just pin the dependency for
now.

* Pin react-intl version

Pin version of react-intl to avoid tiny type issue where formatMessage
does not accept a generic any more. This will be fixed in a future
commit, but to avoid merge conflicts just pin for now.

* Pin typescript version

Temporarily pin version as newer versions as stricter and results in
a type error. Will be fixed in future commit after merge.

* Setup workspaces

* Add design-system as a monorepo package

* Remove unused env var DESIGN_SYSTEM_ACCESS_TOKEN

* Fix husky for monorepo setup

* Update netlify.toml

* Add lint script to root package.json

* Add stub readme

* Fix react-intl formatMessage types

* Test netlify.toml in root

* Remove root toml

* Update netlify.toml publish path

* Remove package-lock.json

* Update build for branch/preview builds


Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2025-02-26 10:36:17 +00:00
committed by Linus Flood
parent 667cab6fb6
commit 80100e7631
2731 changed files with 30986 additions and 23708 deletions

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="21px" height="36px" viewBox="0 0 21 36" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<title>Shape</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="arrow-double-big-camel" fill="#86807A">
<path d="M13,1.2 C12.5,0.2 11.3,-0.3 10.2,0.2 C9.2,0.6 8.7,1.8 9.2,2.8 L16.4,18 L9.2,33.2 C9.1,33.4 9,33.7 9,34 C9,34.8 9.5,35.5 10.2,35.8 C11.3,36.3 12.5,35.8 13,34.8 L21,18 L13,1.2 Z M4,1.2 C3.5,0.2 2.3,-0.3 1.2,0.2 C0.2,0.6 -0.3,1.8 0.2,2.8 L7.4,18 L0.2,33.2 C0.1,33.4 0,33.7 0,34 C0,34.8 0.5,35.5 1.2,35.8 C2.3,36.3 3.5,35.8 4,34.8 L12,18 L4,1.2 Z" id="Shape"></path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 914 B

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="12px" height="12px" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<title>arrow-double-nordicsea-left</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="arrow-double-nordicsea-left" fill="#86807A">
<path d="M5.9370915,0.0445677 C6.1568056,0.1128077 6.2463858,0.1957877 6.3386131,0.4165187 C6.4565312,0.6987367 6.4421039,0.9740147 6.2976721,1.1976937 C6.2303131,1.3020117 5.2241968,2.4255682 4.0618575,3.6944873 L1.948513,6.0016134 L2.08687,6.1671956 C2.162966,6.2582656 3.1290406,7.3427252 4.2337016,8.5771047 C5.3383626,9.8114843 6.2697459,10.883935 6.3034421,10.960328 C6.440622,11.271332 6.3147001,11.698342 6.0195437,11.92305 C5.8793804,12.029758 5.4890919,12.00323 5.3075247,11.87465 C5.0356532,11.682121 0.01182912,6.033015 0.05277202,5.9658724 C0.09928102,5.8896024 5.3920772,0.1032237 5.44237,0.0736647 C5.538399,0.0172247 5.7995898,0.0018647 5.9370915,0.0445647 L5.9370915,0.0445677 Z" id="path3783"></path>
<path d="M10.940149,0.04227072 C11.141678,0.10350072 11.231628,0.18967072 11.337907,0.42330772 C11.462316,0.69680072 11.455681,0.94459772 11.317997,1.1670367 C11.255217,1.2684607 10.247465,2.3954512 9.0785476,3.6714602 C7.6071249,5.2776895 6.9657221,6.0120895 6.9938018,6.0584735 C7.0161088,6.0953215 7.9953766,7.1737579 9.1699529,8.4549991 C10.344529,9.7362391 11.333337,10.832914 11.367304,10.892053 C11.401274,10.951193 11.429874,11.111534 11.430864,11.248368 C11.432564,11.479122 11.414764,11.515062 11.185692,11.744131 C10.970691,11.959132 10.911758,11.991104 10.730457,11.991104 C10.615914,11.991104 10.459661,11.962614 10.383228,11.927784 C10.229217,11.857614 5.0086575,6.0656126 5.0348605,5.9939869 C5.0573105,5.9326249 10.364958,0.12643272 10.435634,0.08592372 C10.547892,0.02158372 10.800207,-0.0002462801 10.940154,0.04227372 L10.940154,0.04227372 L10.940149,0.04227072 Z" id="path3785"></path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="36px" height="12px" viewBox="0 0 36 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<title>Shape</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="arrow-down-camel" fill="#4E4E4E">
<path d="M2,0 C2.3,0 2.6,0.1 2.8,0.2 L18,7.4 L33.2,0.2 C34.2,-0.3 35.4,0.2 35.8,1.3 C36.3,2.4 35.8,3.6 34.8,4.1 L18,12 L1.2,4 C0.2,3.5 -0.3,2.3 0.2,1.2 C0.5,0.5 1.2,0 2,0 Z" id="Shape"></path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 729 B

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="36px" height="12px" viewBox="0 0 36 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<title>Shape</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="arrow-down-camel" fill="#D8D8D8">
<path d="M2,0 C2.3,0 2.6,0.1 2.8,0.2 L18,7.4 L33.2,0.2 C34.2,-0.3 35.4,0.2 35.8,1.3 C36.3,2.4 35.8,3.6 34.8,4.1 L18,12 L1.2,4 C0.2,3.5 -0.3,2.3 0.2,1.2 C0.5,0.5 1.2,0 2,0 Z" id="Shape"></path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="19px" height="19px" viewBox="0 0 19 19" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<title>Shape</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="bullet-list-arrow-circle-white-dark" fill="#282828">
<g id="Page-1">
<g id="bullet-list-arrow-circle-camel">
<path d="M9.5,0 C4.3,0 0,4.3 0,9.5 C0,14.7 4.3,19 9.5,19 C14.7,19 19,14.7 19,9.5 C19,4.3 14.7,0 9.5,0 Z M8.2,14.8 C7.9,15.1 7.5,15.1 7.2,14.8 C7.1,14.7 7,14.5 7,14.3 C7,14.1 7.1,14 7.2,13.8 L11.1,9.5 L7.2,5.2 C6.9,4.9 7,4.5 7.2,4.2 C7.5,3.9 7.9,3.9 8.2,4.2 L13,9.5 L8.2,14.8 Z" id="Shape"></path>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 982 B

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="19px" height="19px" viewBox="0 0 19 19" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<title>Shape</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="bullet-list-arrow-circle-camel" fill="#D8D8D8">
<path d="M9.5,0 C4.3,0 0,4.3 0,9.5 C0,14.7 4.3,19 9.5,19 C14.7,19 19,14.7 19,9.5 C19,4.3 14.7,0 9.5,0 Z M8.2,14.8 C7.9,15.1 7.5,15.1 7.2,14.8 C7.1,14.7 7,14.5 7,14.3 C7,14.1 7.1,14 7.2,13.8 L11.1,9.5 L7.2,5.2 C6.9,4.9 7,4.5 7.2,4.2 C7.5,3.9 7.9,3.9 8.2,4.2 L13,9.5 L8.2,14.8 Z" id="Shape"></path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 847 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="170px" height="70px" viewBox="0 0 170 70" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<title>Slice 1</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="GC_Logotyp_40-40-40" fill="#282828">
<path d="M158.5,20.4 C158.5,22.3 157.8,23 156.2,23 L155.3,23 L155.3,8.6 L156.2,8.6 C157.8,8.6 158.5,9.2 158.5,11.2 L158.5,20.4 Z M127.4,29.1 L127.4,15.3 L127.7,15.3 L132.8,29.1 L127.4,29.1 L127.4,29.1 Z M100.3,29.1 L101.2,24.5 L106.5,24.5 L107.4,29.1 L100.3,29.1 Z M103.7,10.3 L104,10.3 L105.4,18.7 L102.3,18.7 L103.7,10.3 Z M80.8,29.1 L77.4,29.1 L77.4,19.2 L78.6,19.2 C80.3,19.2 80.9,20.1 80.9,22 L80.9,29.1 L80.8,29.1 Z M77.4,7.8 L78.5,7.8 C80,7.8 80.7,8.6 80.7,10.3 C80.7,12 80,13.2 78.3,13.2 L77.3,13.2 L77.3,7.8 L77.4,7.8 Z M159.8,29.1 C163.4,28 165.3,25.3 165.3,19.5 L165.3,12.1 C165.3,4 161.8,1.9 155,1.9 L148.6,1.9 L148.6,29.2 L139.8,29.2 L139.8,1.9 L133.6,1.9 L133.6,14.9 L133.3,14.9 L128.3,1.9 L121.2,1.9 L121.2,29.2 L114.2,29.2 L107.9,1.9 L100,1.9 L93.6,29.2 L87.5,29.2 L87.5,21.9 C87.5,17.9 85.4,16.2 83.5,15.6 L83.5,15.4 C85.3,14.4 87.2,12.3 87.2,9.2 C87.2,5.6 85.2,1.9 78.7,1.9 L70.6,1.9 L70.6,29.2 L58.6,29.2 C60.7,27.8 62.3,25.2 62.3,20.6 L62.3,15.3 L53.1,15.3 L53.1,21.1 L56,21.1 L56,21.7 C56,23.5 55,24.1 53.8,24.1 C52.5,24.1 51.5,23.3 51.5,21.3 L51.5,10.4 C51.5,8.3 52.7,7.7 53.8,7.7 C55,7.7 56.1,8.3 56,11.1 L62.4,11.2 C62.5,2.2 56.8,0.9 53.7,0.9 C49.8,0.9 44.8,2.9 44.8,10.6 L44.8,20.3 C44.8,25.1 46.4,27.6 48.5,29 L0,29 L0,30.5 L169.5,30.5 L169.5,29 L159.8,29 L159.8,29.1 Z M131.7,67.5 L132.5,63 L137.8,63 L138.6,67.5 L131.7,67.5 Z M135.1,48.8 L135.4,48.8 L136.8,57.2 L133.7,57.2 L135.1,48.8 Z M112.2,67.5 L108.8,67.5 L108.8,57.8 L110,57.8 C111.7,57.8 112.3,58.7 112.3,60.6 L112.3,67.5 L112.2,67.5 Z M108.8,46.3 L109.9,46.3 C111.4,46.3 112.1,47.1 112.1,48.8 C112.1,50.5 111.4,51.7 109.7,51.7 L108.7,51.7 L108.7,46.3 L108.8,46.3 Z M58.6,67.5 L58.6,53.8 L58.9,53.8 L63.9,67.5 L58.6,67.5 Z M166.1,67.5 L166.1,61.5 L159.2,61.5 L159.2,40.4 L152.6,40.4 L152.6,67.5 L145.5,67.5 L139.3,40.4 L131.5,40.4 L125.1,67.5 L119,67.5 L119,60.4 C119,56.4 116.9,54.7 115,54.1 L115,53.9 C116.8,52.9 118.7,50.8 118.7,47.7 C118.7,44.1 116.7,40.4 110.2,40.4 L102.1,40.4 L102.1,67.5 L90,67.5 L90,46.9 L94.7,46.9 L94.7,40.4 L78.3,40.4 L78.3,46.9 L83.2,46.9 L83.2,67.5 L70.9,67.5 L70.9,40.4 L64.7,40.4 L64.7,53.4 L64.4,53.4 L59.4,40.4 L52.3,40.4 L52.3,67.5 L44.1,67.5 L44.1,61.5 L36.6,61.5 L36.6,56.9 L43.6,56.9 L43.6,50.6 L36.6,50.6 L36.6,47 L44,47 L44,40.3 L29.9,40.3 L29.9,67.4 L18.7,67.4 C20.6,65.9 22.1,63.1 21.9,58 L15.5,58 C15.6,61.3 15,62.1 13.6,62.1 C12.4,62.1 11.8,61.3 11.8,59.6 L11.8,48.9 C11.8,47.3 12.3,46.4 13.6,46.4 C14.9,46.4 15.6,47.3 15.5,50 L22,50 C22.2,41.3 17.4,39.5 13.7,39.5 C10.4,39.5 5.1,40.9 5.1,48.7 L5.1,59.9 C5.1,63.9 6.5,66.2 8.3,67.5 L0,67.5 L0,69 L12.3,69 C12.8,69.1 13.2,69.1 13.7,69.1 C14.1,69.1 14.5,69.1 15,69 L169.6,69 L169.6,67.5 L166.1,67.5 Z M4,3 L4,6.1 L2.8,6.1 L2.8,3 L0.7,3 L0.7,11.8 L2.8,11.8 L2.8,8.1 L4,8.1 L4,11.8 L6.1,11.8 L6.1,3 L4,3 Z M12.3,9.1 C12.3,9.7 12,9.9 11.6,9.9 C11.2,9.9 10.9,9.7 10.9,9.1 L10.9,5.8 C10.9,5.2 11.2,5 11.6,5 C12,5 12.3,5.2 12.3,5.8 L12.3,9.1 Z M11.5,2.7 C10,2.7 8.7,3.6 8.7,5.7 L8.7,9.1 C8.7,11.3 10.1,12.1 11.5,12.1 C13,12.1 14.3,11.3 14.3,9.1 L14.3,5.7 C14.4,3.6 13,2.7 11.5,2.7 L11.5,2.7 Z M16.5,3 L16.5,5 L18,5 L18,11.8 L20.1,11.8 L20.1,5 L21.6,5 L21.6,3 L16.5,3 Z M26.2,9.7 L26.2,8.2 L28.4,8.2 L28.4,6.2 L26.2,6.2 L26.2,5.1 L28.5,5.1 L28.5,3 L24,3 L24,11.8 L28.5,11.8 L28.5,9.7 L26.2,9.7 L26.2,9.7 Z M33.3,9.7 L33.3,3 L31.2,3 L31.2,11.8 L35.5,11.8 L35.5,9.7 L33.3,9.7 L33.3,9.7 Z" id="XMLID_238_"></path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="80px" height="80px" viewBox="0 0 80 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<title>Slice 1</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Layer-1" fill="#282828">
<path d="M39.999981,79.779755 C18.016424,79.779755 0.220211,61.983536 0.220211,39.999981 C0.220211,18.016424 18.016425,0.220211 39.999981,0.220211 C61.983537,0.220211 79.779755,18.016425 79.779755,39.999981 C79.779755,61.983536 61.983536,79.779755 39.999981,79.779755 L39.999981,79.779755 Z M58.947708,24.820858 L22.936554,24.820858 C20.84288,24.820858 19.167944,26.495796 19.167944,28.589466 C19.167944,30.68314 20.84288,32.358074 22.936554,32.358074 L58.947708,32.358074 C61.041382,32.358074 62.716324,30.68314 62.716324,28.589466 C62.716324,26.495796 61.041382,24.820858 58.947708,24.820858 Z M58.947708,38.115677 L22.936554,38.115677 C20.84288,38.115677 19.167944,39.790611 19.167944,41.884285 C19.167944,43.977959 20.84288,45.652897 22.936554,45.652897 L58.947708,45.652897 C61.041382,45.652897 62.716324,43.977959 62.716324,41.884285 C62.716324,39.790611 61.041382,38.115677 58.947708,38.115677 Z M58.947708,51.410492 L22.936554,51.410492 C20.84288,51.410492 19.167944,53.08543 19.167944,55.1791 C19.167944,57.272774 20.84288,58.947708 22.936554,58.947708 L58.947708,58.947708 C61.041382,58.947708 62.716324,57.272774 62.716324,55.1791 C62.716324,53.08543 61.041382,51.410492 58.947708,51.410492 Z" id="svg_1"></path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="80px" height="80px" viewBox="0 0 80 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<title>hotelpage-menu-close</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="hotelpage-menu-close">
<path d="M40,80 C17.9,80 0,62.1 0,40 C0,17.9 17.9,0 40,0 C62.1,0 80,17.9 80,40 C80,62.1 62.1,80 40,80 Z" id="Shape" fill="#282828"></path>
<path d="M46.3,39.9 L60,26.2 C61.5,24.7 61.5,22.3 60,20.8 C58.5,19.3 56.1,19.3 54.6,20.8 L40.9,34.5 L27.3,20.9 C25.8,19.4 23.4,19.4 21.9,20.9 C20.4,22.4 20.4,24.8 21.9,26.3 L35.6,40 L21.9,53.6 C20.4,55.1 20.4,57.5 21.9,59 C23.4,60.5 25.8,60.5 27.3,59 L41,45.3 L54.7,59 C56.2,60.5 58.6,60.5 60.1,59 C61.6,57.5 61.6,55.1 60.1,53.6 L46.3,39.9 Z" id="Shape" fill="#FFFFFF"></path>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="80px" height="80px" viewBox="0 0 80 80" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 52.5 (67469) - http://www.bohemiancoding.com/sketch -->
<title>hotelpage-menu-close</title>
<desc>Created with Sketch.</desc>
<g id="hotelpage-menu-close" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M40,80 C17.9,80 0,62.1 0,40 C0,17.9 17.9,0 40,0 C62.1,0 80,17.9 80,40 C80,62.1 62.1,80 40,80 Z M46.3,39.9 L60,26.2 C61.5,24.7 61.5,22.3 60,20.8 C58.5,19.3 56.1,19.3 54.6,20.8 L40.9,34.5 L27.3,20.9 C25.8,19.4 23.4,19.4 21.9,20.9 C20.4,22.4 20.4,24.8 21.9,26.3 L35.6,40 L21.9,53.6 C20.4,55.1 20.4,57.5 21.9,59 C23.4,60.5 25.8,60.5 27.3,59 L41,45.3 L54.7,59 C56.2,60.5 58.6,60.5 60.1,59 C61.6,57.5 61.6,55.1 60.1,53.6 L46.3,39.9 Z" id="Combined-Shape" fill="#FFFFFF"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 946 B