fontdue-js 2.10.0 → 2.10.1

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
@@ -1,3 +1,7 @@
1
+ ## 2.10.1
2
+
3
+ - Fixed issue with combining characters causing React hydration errors
4
+
1
5
  ## 2.10.0
2
6
 
3
7
  - Fix an issue displaying JPY prices
@@ -359,7 +359,7 @@ function CharacterViewerComponent(_ref3) {
359
359
  onClick: () => setSelectedGlyph(selection),
360
360
  onMouseEnter: () => setActiveGlyph(selection),
361
361
  "data-selected": compareGlyphs(selectedGlyph, selection)
362
- }, chars, areCombiningChars(chars) ? ' ' : '');
362
+ }, areCombiningChars(chars) ? /*#__PURE__*/_react.default.createElement("span", null, '\u200C', chars) : chars);
363
363
  })))));
364
364
  }))));
365
365
  }
package/dist/fontdue.css CHANGED
@@ -1239,7 +1239,7 @@ body[data-fontdue-store-modal=open] {
1239
1239
  grid-template-columns: 1fr auto 1fr;
1240
1240
  padding: 10px 15px;
1241
1241
  grid-gap: 10px;
1242
- align-items: center;
1242
+ align-items: baseline;
1243
1243
  }
1244
1244
  .store-modal__container__nav[data-has-back-text=false] {
1245
1245
  grid-template-columns: auto max-content;
@@ -1386,6 +1386,8 @@ body[data-fontdue-store-modal=open] {
1386
1386
 
1387
1387
  .store-modal__family__title {
1388
1388
  font-family: var(--font-family__bold, inherit);
1389
+ font-weight: 400;
1390
+ font-style: normal;
1389
1391
  margin-bottom: 20px;
1390
1392
  }
1391
1393
 
@@ -1469,9 +1471,8 @@ body[data-fontdue-store-modal=open] {
1469
1471
  }
1470
1472
 
1471
1473
  .store-modal__family-button__container {
1472
- display: grid;
1474
+ display: flex;
1473
1475
  align-items: baseline;
1474
- grid-template-columns: minmax(0, max-content) auto max-content;
1475
1476
  grid-column-gap: 10px;
1476
1477
  grid-row-gap: 10px;
1477
1478
  }
@@ -1570,6 +1571,8 @@ body[data-fontdue-store-modal=open] {
1570
1571
 
1571
1572
  .store-modal__license-selection__title {
1572
1573
  font-family: var(--font-family__bold, inherit);
1574
+ font-weight: 400;
1575
+ font-style: normal;
1573
1576
  margin-bottom: 20px;
1574
1577
  }
1575
1578
 
@@ -1941,8 +1944,7 @@ body[data-fontdue-store-modal=open] {
1941
1944
  }
1942
1945
 
1943
1946
  .store-modal__style-button__container {
1944
- display: grid;
1945
- grid-template-columns: minmax(0, max-content) auto max-content;
1947
+ display: flex;
1946
1948
  grid-column-gap: 10px;
1947
1949
  align-items: baseline;
1948
1950
  }
@@ -2133,6 +2135,7 @@ body[data-fontdue-store-modal=open] {
2133
2135
  }
2134
2136
  .cart-item__name {
2135
2137
  margin-top: 30px; /* line up to the baseline of next column */
2138
+ font-weight: 400;
2136
2139
  }
2137
2140
  .cart-item__licenses {
2138
2141
  margin: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fontdue-js",
3
- "version": "2.10.0",
3
+ "version": "2.10.1",
4
4
  "scripts": {
5
5
  "build": "npm run relay && run-p build-js build-css build-ts-declarations",
6
6
  "build-js": "babel src --out-dir dist --extensions .ts,.tsx,.js,.jsx",