@texonom/nreact 1.3.1 → 1.4.0

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.
Files changed (78) hide show
  1. package/build/.tsbuildinfo +1 -1
  2. package/build/{chunk-HJGIONX2.js → chunk-72RHNPWF.js} +56 -107
  3. package/build/{chunk-LB5ZQ7L5.js → chunk-P7HX4BAT.js} +2 -3
  4. package/build/dev/{chunk-NVAEYUJK.js → chunk-64UJZ76E.js} +57 -108
  5. package/build/dev/{chunk-NVAEYUJK.js.map → chunk-64UJZ76E.js.map} +1 -1
  6. package/build/dev/{chunk-CWNFRR32.js → chunk-ABDRHJEI.js} +3 -4
  7. package/build/dev/{chunk-CWNFRR32.js.map → chunk-ABDRHJEI.js.map} +1 -1
  8. package/build/dev/{chunk-JX5CEG3A.js → chunk-OAIRL2FN.js} +1 -1
  9. package/build/dev/{chunk-4XJBBVRZ.js → chunk-SEA7YL2O.js} +57 -108
  10. package/build/dev/chunk-SEA7YL2O.js.map +1 -0
  11. package/build/dev/index.js +42 -55
  12. package/build/dev/index.js.map +1 -1
  13. package/build/dev/third-party/code.js +3 -4
  14. package/build/dev/third-party/code.js.map +1 -1
  15. package/build/dev/third-party/collection.js +137 -113
  16. package/build/dev/third-party/collection.js.map +1 -1
  17. package/build/dev/third-party/equation.js +3 -4
  18. package/build/dev/third-party/equation.js.map +1 -1
  19. package/build/dev/third-party/modal.js +1 -1
  20. package/build/dev/third-party/pdf.js +1 -1
  21. package/build/index.js +42 -55
  22. package/build/next.d.ts.map +1 -1
  23. package/build/third-party/code.js +3 -4
  24. package/build/third-party/collection.js +137 -113
  25. package/build/third-party/equation.js +3 -4
  26. package/build/third-party/modal.js +1 -1
  27. package/build/third-party/pdf.js +1 -1
  28. package/build/utils.d.ts.map +1 -1
  29. package/package.json +12 -12
  30. package/build/chunk-26XPY26R.js +0 -1364
  31. package/build/chunk-3GUXT4PT.js +0 -1386
  32. package/build/chunk-3R4ITV3N.js +0 -1358
  33. package/build/chunk-626ANHMX.js +0 -4519
  34. package/build/chunk-BYOAK6PN.js +0 -1362
  35. package/build/chunk-E7SOYYOP.js +0 -1364
  36. package/build/chunk-GDUEQGYI.js +0 -1373
  37. package/build/chunk-INDII3MG.js +0 -1346
  38. package/build/chunk-LAZZ76RR.js +0 -142
  39. package/build/chunk-NH6F5YHO.js +0 -90
  40. package/build/chunk-THLNCQWF.js +0 -1364
  41. package/build/chunk-YEVPS76Z.js +0 -1355
  42. package/build/dev/chunk-2LHADYU7.js +0 -1365
  43. package/build/dev/chunk-2LHADYU7.js.map +0 -1
  44. package/build/dev/chunk-4XJBBVRZ.js.map +0 -1
  45. package/build/dev/chunk-5DDQTDIS.js +0 -1365
  46. package/build/dev/chunk-5DDQTDIS.js.map +0 -1
  47. package/build/dev/chunk-73CYHEZ6.js +0 -1374
  48. package/build/dev/chunk-73CYHEZ6.js.map +0 -1
  49. package/build/dev/chunk-7R2ZX3WF.js +0 -1359
  50. package/build/dev/chunk-7R2ZX3WF.js.map +0 -1
  51. package/build/dev/chunk-CRSVOVI5.js +0 -1387
  52. package/build/dev/chunk-CRSVOVI5.js.map +0 -1
  53. package/build/dev/chunk-EDEWD2W7.js +0 -1363
  54. package/build/dev/chunk-EDEWD2W7.js.map +0 -1
  55. package/build/dev/chunk-O5ZUWUSN.js +0 -158
  56. package/build/dev/chunk-O5ZUWUSN.js.map +0 -1
  57. package/build/dev/chunk-QAD7OWKG.js +0 -91
  58. package/build/dev/chunk-QAD7OWKG.js.map +0 -1
  59. package/build/dev/chunk-QHYYIFZL.js +0 -1365
  60. package/build/dev/chunk-QHYYIFZL.js.map +0 -1
  61. package/build/dev/chunk-QN4Z7A2J.js +0 -1359
  62. package/build/dev/chunk-QN4Z7A2J.js.map +0 -1
  63. package/build/dev/chunk-RO7JTBZN.js +0 -1356
  64. package/build/dev/chunk-RO7JTBZN.js.map +0 -1
  65. package/build/dev/chunk-UE6LH4B3.js +0 -1347
  66. package/build/dev/chunk-UE6LH4B3.js.map +0 -1
  67. package/build/dev/chunk-VHTSGS2P.js +0 -1365
  68. package/build/dev/chunk-VHTSGS2P.js.map +0 -1
  69. package/build/dev/chunk-VZCA75U7.js +0 -143
  70. package/build/dev/chunk-VZCA75U7.js.map +0 -1
  71. package/build/dev/chunk-XJQFUGEP.js +0 -4520
  72. package/build/dev/chunk-XJQFUGEP.js.map +0 -1
  73. package/build/map-image-url.d.ts +0 -3
  74. package/build/map-image-url.d.ts.map +0 -1
  75. package/build/map-page-url.d.ts +0 -2
  76. package/build/map-page-url.d.ts.map +0 -1
  77. /package/build/{chunk-723T62SD.js → chunk-C6BUIPAM.js} +0 -0
  78. /package/build/dev/{chunk-JX5CEG3A.js.map → chunk-OAIRL2FN.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/icons/type-checkbox.tsx","../../src/icons/type-date.tsx","../../src/icons/type-email.tsx","../../src/icons/type-file.tsx","../../src/icons/type-formula.tsx","../../src/icons/type-multi-select.tsx","../../src/icons/type-number.tsx","../../src/icons/type-person.tsx","../../src/icons/type-person-2.tsx","../../src/icons/type-phone-number.tsx","../../src/icons/type-relation.tsx","../../src/icons/type-select.tsx","../../src/icons/type-text.tsx","../../src/icons/type-timestamp.tsx","../../src/icons/type-title.tsx","../../src/icons/type-url.tsx","../../src/icons/property-icon.tsx","../../src/third-party/collection-column-title.tsx"],"sourcesContent":["import React from 'react'\n\nfunction SvgTypeCheckbox(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M0 3a3 3 0 013-3h8a3 3 0 013 3v8a3 3 0 01-3 3H3a3 3 0 01-3-3V3zm3-1.5A1.5 1.5 0 001.5 3v8A1.5 1.5 0 003 12.5h8a1.5 1.5 0 001.5-1.5V3A1.5 1.5 0 0011 1.5H3zm-.167 5.316l.566-.542.177-.17.347-.332.346.334.176.17 1.139 1.098 3.699-3.563.177-.17.347-.335.347.334.177.17.563.543.177.171.372.36-.372.36-.177.17-4.786 4.615-.177.171-.347.334-.347-.334-.177-.17-2.23-2.15-.177-.172-.375-.361.376-.36.179-.17z' />\n </svg>\n )\n}\n\nexport default SvgTypeCheckbox\n","import React from 'react'\n\nfunction SvgTypeDate(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M10.889 5.5H3.11v1.556h7.778V5.5zm1.555-4.444h-.777V0H10.11v1.056H3.89V0H2.333v1.056h-.777c-.864 0-1.548.7-1.548 1.555L0 12.5c0 .856.692 1.5 1.556 1.5h10.888C13.3 14 14 13.356 14 12.5V2.611c0-.855-.7-1.555-1.556-1.555zm0 11.444H1.556V3.944h10.888V12.5zM8.556 8.611H3.11v1.556h5.445V8.61z' />\n </svg>\n )\n}\n\nexport default SvgTypeDate\n","import React from 'react'\n\nfunction SvgTypeEmail(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M14 6.225c0 .822-.133 1.574-.4 2.256-.267.683-.644 1.218-1.13 1.606-.488.388-.946.6-1.494.6-.429 0-.808-.102-1.139-.305a1.753 1.753 0 01-.713-.8c-.613.736-1.563 1.104-2.531 1.104-1.027 0-1.835-.304-2.427-.912-.591-.608-.887-1.44-.887-2.496 0-1.204.389-2.175 1.166-2.911.776-.736 1.791-1.105 3.044-1.105.498 0 2.032.212 2.252.268.51.13.86.593.835 1.112l-.156 3.287c0 .794.22 1.19.66 1.19.372 0 .668-.267.888-.8.22-.534.33-1.232.33-2.094 0-.919-.194-1.731-.582-2.436a3.924 3.924 0 00-1.64-1.614c-.704-.371-1.509-.557-2.413-.557-1.172 0-2.19.237-3.053.711a4.785 4.785 0 00-1.988 2.05c-.46.894-.691 1.926-.691 3.096 0 1.576.428 2.784 1.283 3.627.855.841 2.094 1.262 3.718 1.262.615 0 1.29-.067 2.027-.2.225-.042.518-.108.877-.2a.863.863 0 011.025.527.76.76 0 01-.502.993c-1.052.316-2.17.488-3.357.516-2.204 0-3.922-.57-5.154-1.713C.616 11.146 0 9.56 0 7.527c0-1.41.315-2.69.944-3.84A6.792 6.792 0 013.63.98C4.794.327 6.131 0 7.645 0c1.276 0 2.514.29 3.418.77.905.481 1.574 1.228 2.12 2.176.544.947.817 2.04.817 3.28zm-8.615 1.01c0 1.208.488 1.811 1.466 1.811.511 0 .9-.181 1.168-.545.267-.363.429-.954.486-1.772l.11-1.896a4.638 4.638 0 00-.98-.095c-.71 0-1.263.224-1.658.67-.395.446-.592 1.055-.592 1.828z' />\n </svg>\n )\n}\n\nexport default SvgTypeEmail\n","import React from 'react'\n\nfunction SvgTypeFile(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M5.946 14a4.975 4.975 0 01-3.497-1.415A4.731 4.731 0 011 9.174c0-1.288.515-2.5 1.449-3.41L7.456.986c1.345-1.313 3.722-1.318 5.08.007a3.453 3.453 0 010 4.961L8.03 10.241c-.867.847-2.293.848-3.17-.006a2.158 2.158 0 010-3.102l1.744-1.701 1.272 1.24-1.744 1.701a.43.43 0 000 .621c.23.223.405.223.636 0l4.503-4.288a1.723 1.723 0 00-.007-2.473c-.68-.663-1.864-.663-2.543 0L3.713 7.011a3.006 3.006 0 00-.915 2.163c0 .82.328 1.591.922 2.17 1.19 1.162 3.262 1.162 4.451 0l2.248-2.192 1.272 1.24-2.248 2.193A4.978 4.978 0 015.946 14z' />\n </svg>\n )\n}\n\nexport default SvgTypeFile\n","import React from 'react'\n\nfunction SvgTypeFormula(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M7.779 7.063l-3.157 4.224a.49.49 0 00-.072.218.35.35 0 00.346.357h6.242c.476 0 .862.398.862.889v.36c0 .491-.386.889-.862.889H1.862A.876.876 0 011 13.111v-.425a.82.82 0 01.177-.54L4.393 7.8a1.367 1.367 0 00-.006-1.625L1.4 2.194a.822.822 0 01-.18-.544V.89C1.22.398 1.604 0 2.08 0h8.838c.476 0 .861.398.861.889v.36c0 .491-.385.89-.86.89H5.135c-.19 0-.345.159-.345.356a.489.489 0 00.07.216l2.92 3.975c.049.062.063.107.06.188a.246.246 0 01-.062.189z' />\n </svg>\n )\n}\n\nexport default SvgTypeFormula\n","import React from 'react'\n\nfunction SvgTypeMultiSelect(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M4 3a1 1 0 011-1h7a1 1 0 110 2H5a1 1 0 01-1-1zm0 4a1 1 0 011-1h7a1 1 0 110 2H5a1 1 0 01-1-1zm0 4a1 1 0 011-1h7a1 1 0 110 2H5a1 1 0 01-1-1zM2 4a1 1 0 110-2 1 1 0 010 2zm0 4a1 1 0 110-2 1 1 0 010 2zm0 4a1 1 0 110-2 1 1 0 010 2z' />\n </svg>\n )\n}\n\nexport default SvgTypeMultiSelect\n","import React from 'react'\n\nfunction SvgTypeNumber(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M4.462 0c-.595 0-1.078.482-1.078 1.078v2.306H1.078a1.078 1.078 0 100 2.155h2.306v2.922H1.078a1.078 1.078 0 100 2.155h2.306v2.306a1.078 1.078 0 002.155 0v-2.306H8.46v2.306a1.078 1.078 0 002.156 0v-2.306h2.306a1.078 1.078 0 100-2.155h-2.306V5.539h2.306a1.078 1.078 0 100-2.155h-2.306V1.078a1.078 1.078 0 00-2.156 0v2.306H5.54V1.078C5.54.482 5.056 0 4.461 0zm1.077 8.46V5.54H8.46v2.92H5.54z' />\n </svg>\n )\n}\n\nexport default SvgTypeNumber\n","import React from 'react'\n\nfunction SvgTypePerson(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M9.625 10.847C8.912 10.289 8.121 9.926 7 9.26v-.54a3.33 3.33 0 00.538-.888c.408-.1.774-.498.774-.832 0-.482-.202-.673-.44-.829 0-.015.003-.03.003-.046 0-.711-.438-2.625-2.625-2.625-2.188 0-2.625 1.915-2.625 2.625 0 .017.003.03.003.046-.238.156-.44.347-.44.829 0 .334.366.731.774.833.146.343.326.643.538.886v.541c-1.12.665-1.912 1.028-2.625 1.587C.041 11.498 0 12.469 0 14h10.5c0-1.531-.041-2.502-.875-3.153zm3.5-3.5c-.713-.558-1.504-.921-2.625-1.587v-.54c.212-.244.392-.544.538-.888.408-.1.774-.498.774-.832 0-.482-.202-.673-.44-.829 0-.015.003-.03.003-.046C11.375 1.914 10.937 0 8.75 0 6.562 0 6.125 1.915 6.125 2.625c0 .017.003.03.003.046-.016.012-.03.025-.047.036 1.751.359 2.516 1.841 2.647 3.04.248.262.46.65.46 1.253 0 .603-.417 1.203-1.004 1.515-.057.109-.117.214-.181.315l.437.245c.64.357 1.194.666 1.724 1.081.138.108.256.224.365.343H14c0-1.53-.041-2.5-.875-3.153z' />\n </svg>\n )\n}\n\nexport default SvgTypePerson\n","import React from 'react'\n\nfunction SvgTypePerson2(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M13.125 10.035c-.571-.55-2.324-1.504-3.5-2.16v-.834c.224-.322.42-.671.566-1.055.394-.242.746-.702.746-1.173 0-.458-.005-.87-.47-1.208C10.305 1.558 9.436 0 7 0S3.695 1.558 3.533 3.605c-.465.338-.47.75-.47 1.208 0 .471.352.93.746 1.173.146.384.342.733.566 1.055v.834c-1.176.656-2.929 1.61-3.5 2.16C.165 10.72 0 11.812 0 14h14c0-2.188-.164-3.281-.875-3.965z' />\n </svg>\n )\n}\n\nexport default SvgTypePerson2\n","import React from 'react'\n\nfunction SvgTypePhoneNumber(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M2.207.013a.487.487 0 00-.29.02C.87.438.213 1.93.058 2.955c-.484 3.33 2.15 6.215 4.57 8.113 2.149 1.684 6.273 4.453 8.713 1.781.31-.329.678-.813.658-1.297-.058-.813-.813-1.394-1.394-1.84-.445-.329-1.375-1.239-1.956-1.22-.522.02-.851.562-1.18.891l-.582.581c-.096.097-1.336-.716-1.471-.813a9.881 9.881 0 01-1.414-1.104A9.13 9.13 0 014.86 6.732c-.097-.136-.89-1.317-.813-1.414 0 0 .677-.736.871-1.026.407-.62.717-1.104.252-1.84-.174-.27-.387-.484-.62-.716-.406-.387-.813-.794-1.278-1.123-.251-.194-.677-.542-1.065-.6z' />\n </svg>\n )\n}\n\nexport default SvgTypePhoneNumber\n","import React from 'react'\n\nfunction SvgTypeRelation(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M4.5 1v2h5.086L1 11.586 2.414 13 11 4.414V9.5h2V1z' />\n </svg>\n )\n}\n\nexport default SvgTypeRelation\n","import React from 'react'\n\nfunction SvgTypeSelect(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M7 13A6 6 0 107 1a6 6 0 000 12zM3.751 5.323A.2.2 0 013.909 5h6.182a.2.2 0 01.158.323L7.158 9.297a.2.2 0 01-.316 0L3.751 5.323z' />\n </svg>\n )\n}\n\nexport default SvgTypeSelect\n","import React from 'react'\n\nfunction SvgTypeText(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M7 4.568a.5.5 0 00-.5-.5h-6a.5.5 0 00-.5.5v1.046a.5.5 0 00.5.5h6a.5.5 0 00.5-.5V4.568zM.5 1a.5.5 0 00-.5.5v1.045a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V1.5a.5.5 0 00-.5-.5H.5zM0 8.682a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V7.636a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v1.046zm0 3.068a.5.5 0 00.5.5h9a.5.5 0 00.5-.5v-1.045a.5.5 0 00-.5-.5h-9a.5.5 0 00-.5.5v1.045z' />\n </svg>\n )\n}\n\nexport default SvgTypeText\n","import React from 'react'\n\nfunction SvgTypeTimestamp(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M6.986 14c-1.79 0-3.582-.69-4.944-2.068-2.723-2.72-2.723-7.172 0-9.892 2.725-2.72 7.182-2.72 9.906 0A6.972 6.972 0 0114 6.996c0 1.88-.728 3.633-2.052 4.955A7.058 7.058 0 016.986 14zm3.285-6.99v1.645H5.526v-5.47h1.841v3.63h2.904v.194zm1.89-.014c0-1.379-.542-2.67-1.522-3.648-2.006-2.005-5.287-2.007-7.297-.009l-.009.009a5.168 5.168 0 000 7.295c2.01 2.007 5.297 2.007 7.306 0a5.119 5.119 0 001.521-3.647z' />\n </svg>\n )\n}\n\nexport default SvgTypeTimestamp\n","import React from 'react'\n\nfunction SvgTypeTitle(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M7.74 8.697a.81.81 0 01.073.308.894.894 0 01-.9.888.867.867 0 01-.825-.592l-.333-.961H2.058l-.333.961a.882.882 0 01-.838.592A.884.884 0 010 9.005c0-.11.025-.222.062-.308l2.403-6.211c.222-.58.776-.986 1.442-.986.653 0 1.22.407 1.442.986l2.39 6.211zM2.6 6.824h2.613L3.907 3.102 2.6 6.824zm8.8-3.118c1.355 0 2.6.542 2.6 2.255V9.08a.8.8 0 01-.789.814.797.797 0 01-.788-.703c-.395.468-1.097.764-1.874.764-.949 0-2.07-.64-2.07-1.972 0-1.392 1.121-1.897 2.07-1.897.789 0 1.491.246 1.886.727v-.826c0-.604-.518-.998-1.306-.998-.469 0-.888.123-1.32.394a.64.64 0 01-.307.086.602.602 0 01-.592-.604c0-.221.123-.419.284-.517a3.963 3.963 0 012.206-.641zm-.222 5.188c.505 0 .998-.172 1.257-.517v-.74c-.259-.345-.752-.517-1.257-.517-.616 0-1.122.332-1.122.9 0 .554.506.874 1.122.874zM.656 11.125h12.688a.656.656 0 110 1.313H.656a.656.656 0 110-1.313z' />\n </svg>\n )\n}\n\nexport default SvgTypeTitle\n","import React from 'react'\n\nfunction SvgTypeUrl(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M3.733 3.867h3.734c1.03 0 1.866.837 1.866 1.866 0 1.03-.837 1.867-1.866 1.867h-.934a.934.934 0 000 1.867h.934a3.734 3.734 0 000-7.467H3.733A3.73 3.73 0 001.89 8.977a4.637 4.637 0 01.314-2.18 1.854 1.854 0 01-.336-1.064c0-1.03.837-1.866 1.866-1.866zm8.377 1.422a4.6 4.6 0 01-.316 2.176c.212.303.34.67.34 1.068 0 1.03-.838 1.867-1.867 1.867H6.533a1.869 1.869 0 01-1.866-1.867c0-1.03.837-1.866 1.866-1.866h.934a.934.934 0 000-1.867h-.934a3.733 3.733 0 000 7.467h3.734a3.73 3.73 0 001.843-6.978z' />\n </svg>\n )\n}\n\nexport default SvgTypeUrl\n","import React from 'react'\n\nimport { PropertyType } from '@texonom/ntypes'\n\nimport CheckboxIcon from './type-checkbox'\nimport DateIcon from './type-date'\nimport EmailIcon from './type-email'\nimport FileIcon from './type-file'\nimport FormulaIcon from './type-formula'\nimport MultiSelectIcon from './type-multi-select'\nimport NumberIcon from './type-number'\nimport PersonIcon from './type-person'\nimport Person2Icon from './type-person-2'\nimport PhoneNumberIcon from './type-phone-number'\nimport RelationIcon from './type-relation'\nimport SelectIcon from './type-select'\nimport TextIcon from './type-text'\nimport TimestampIcon from './type-timestamp'\nimport TitleIcon from './type-title'\nimport UrlIcon from './type-url'\n\ninterface PropertyIconProps {\n className?: string\n type: PropertyType\n}\n\nexport const iconMap = {\n title: TitleIcon,\n text: TextIcon,\n number: NumberIcon,\n select: SelectIcon,\n multi_select: MultiSelectIcon,\n date: DateIcon,\n person: PersonIcon,\n file: FileIcon,\n checkbox: CheckboxIcon,\n url: UrlIcon,\n email: EmailIcon,\n phone_number: PhoneNumberIcon,\n formula: FormulaIcon,\n relation: RelationIcon,\n created_time: TimestampIcon,\n last_edited_time: TimestampIcon,\n created_by: Person2Icon,\n last_edited_by: Person2Icon\n}\n\nexport const PropertyIcon: React.FC<PropertyIconProps> = ({ type, ...rest }) => {\n const icon = iconMap[type] as (...args: unknown[]) => React.JSX.Element\n\n if (!icon) return null\n\n return icon(rest)\n}\n","import React from 'react'\n\nimport { CollectionPropertySchema } from '@texonom/ntypes'\n\nimport { PropertyIcon } from '../icons/property-icon'\n\nexport const CollectionColumnTitle: React.FC<{\n schema: CollectionPropertySchema\n}> = ({ schema }) => {\n return (\n <div className='notion-collection-column-title'>\n <PropertyIcon className='notion-collection-column-title-icon' type={schema.type} />\n\n <div className='notion-collection-column-title-body'>{schema.name}</div>\n </div>\n )\n}\n"],"mappings":";;;;;;AAAA,OAAO,WAAW;AAElB,SAAS,gBAAgB,OAAsC;AAC7D,SACE,oCAAC,wBAAI,SAAQ,eAAgB,QAC3B,oCAAC,UAAK,GAAE,mZAAkZ,CAC5Z;AAEJ;AAEA,IAAO,wBAAQ;;;ACVf,OAAOA,YAAW;AAElB,SAAS,YAAY,OAAsC;AACzD,SACE,gBAAAC,OAAA,cAAC,wBAAI,SAAQ,eAAgB,QAC3B,gBAAAA,OAAA,cAAC,UAAK,GAAE,mSAAkS,CAC5S;AAEJ;AAEA,IAAO,oBAAQ;;;ACVf,OAAOC,YAAW;AAElB,SAAS,aAAa,OAAsC;AAC1D,SACE,gBAAAC,OAAA,cAAC,wBAAI,SAAQ,eAAgB,QAC3B,gBAAAA,OAAA,cAAC,UAAK,GAAE,qrCAAorC,CAC9rC;AAEJ;AAEA,IAAO,qBAAQ;;;ACVf,OAAOC,YAAW;AAElB,SAAS,YAAY,OAAsC;AACzD,SACE,gBAAAC,OAAA,cAAC,wBAAI,SAAQ,eAAgB,QAC3B,gBAAAA,OAAA,cAAC,UAAK,GAAE,+gBAA8gB,CACxhB;AAEJ;AAEA,IAAO,oBAAQ;;;ACVf,OAAOC,YAAW;AAElB,SAAS,eAAe,OAAsC;AAC5D,SACE,gBAAAC,OAAA,cAAC,wBAAI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BAAgB;AAClB;AAEO,IAAM,eAA4C,CAAC,OAAsB;AAAtB,eAAE,OA/C5D,IA+C0D,IAAW,iBAAX,IAAW,CAAT;AAC1D,QAAM,OAAO,QAAQ,IAAI;AAEzB,MAAI,CAAC;AAAM,WAAO;AAElB,SAAO,KAAK,IAAI;AAClB;;;ACrDA,OAAOC,aAAW;AAMX,IAAM,wBAER,CAAC,EAAE,OAAO,MAAM;AACnB,SACE,gBAAAC,QAAA,cAAC,SAAI,WAAU,oCACb,gBAAAA,QAAA,cAAC,gBAAa,WAAU,uCAAsC,MAAM,OAAO,MAAM,GAEjF,gBAAAA,QAAA,cAAC,SAAI,WAAU,yCAAuC,OAAO,IAAK,CACpE;AAEJ;","names":["React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React"]}
1
+ {"version":3,"sources":["../../src/icons/type-checkbox.tsx","../../src/icons/type-date.tsx","../../src/icons/type-email.tsx","../../src/icons/type-file.tsx","../../src/icons/type-formula.tsx","../../src/icons/type-multi-select.tsx","../../src/icons/type-number.tsx","../../src/icons/type-person.tsx","../../src/icons/type-person-2.tsx","../../src/icons/type-phone-number.tsx","../../src/icons/type-relation.tsx","../../src/icons/type-select.tsx","../../src/icons/type-text.tsx","../../src/icons/type-timestamp.tsx","../../src/icons/type-title.tsx","../../src/icons/type-url.tsx","../../src/icons/property-icon.tsx","../../src/third-party/collection-column-title.tsx"],"sourcesContent":["import React from 'react'\n\nfunction SvgTypeCheckbox(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M0 3a3 3 0 013-3h8a3 3 0 013 3v8a3 3 0 01-3 3H3a3 3 0 01-3-3V3zm3-1.5A1.5 1.5 0 001.5 3v8A1.5 1.5 0 003 12.5h8a1.5 1.5 0 001.5-1.5V3A1.5 1.5 0 0011 1.5H3zm-.167 5.316l.566-.542.177-.17.347-.332.346.334.176.17 1.139 1.098 3.699-3.563.177-.17.347-.335.347.334.177.17.563.543.177.171.372.36-.372.36-.177.17-4.786 4.615-.177.171-.347.334-.347-.334-.177-.17-2.23-2.15-.177-.172-.375-.361.376-.36.179-.17z' />\n </svg>\n )\n}\n\nexport default SvgTypeCheckbox\n","import React from 'react'\n\nfunction SvgTypeDate(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M10.889 5.5H3.11v1.556h7.778V5.5zm1.555-4.444h-.777V0H10.11v1.056H3.89V0H2.333v1.056h-.777c-.864 0-1.548.7-1.548 1.555L0 12.5c0 .856.692 1.5 1.556 1.5h10.888C13.3 14 14 13.356 14 12.5V2.611c0-.855-.7-1.555-1.556-1.555zm0 11.444H1.556V3.944h10.888V12.5zM8.556 8.611H3.11v1.556h5.445V8.61z' />\n </svg>\n )\n}\n\nexport default SvgTypeDate\n","import React from 'react'\n\nfunction SvgTypeEmail(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M14 6.225c0 .822-.133 1.574-.4 2.256-.267.683-.644 1.218-1.13 1.606-.488.388-.946.6-1.494.6-.429 0-.808-.102-1.139-.305a1.753 1.753 0 01-.713-.8c-.613.736-1.563 1.104-2.531 1.104-1.027 0-1.835-.304-2.427-.912-.591-.608-.887-1.44-.887-2.496 0-1.204.389-2.175 1.166-2.911.776-.736 1.791-1.105 3.044-1.105.498 0 2.032.212 2.252.268.51.13.86.593.835 1.112l-.156 3.287c0 .794.22 1.19.66 1.19.372 0 .668-.267.888-.8.22-.534.33-1.232.33-2.094 0-.919-.194-1.731-.582-2.436a3.924 3.924 0 00-1.64-1.614c-.704-.371-1.509-.557-2.413-.557-1.172 0-2.19.237-3.053.711a4.785 4.785 0 00-1.988 2.05c-.46.894-.691 1.926-.691 3.096 0 1.576.428 2.784 1.283 3.627.855.841 2.094 1.262 3.718 1.262.615 0 1.29-.067 2.027-.2.225-.042.518-.108.877-.2a.863.863 0 011.025.527.76.76 0 01-.502.993c-1.052.316-2.17.488-3.357.516-2.204 0-3.922-.57-5.154-1.713C.616 11.146 0 9.56 0 7.527c0-1.41.315-2.69.944-3.84A6.792 6.792 0 013.63.98C4.794.327 6.131 0 7.645 0c1.276 0 2.514.29 3.418.77.905.481 1.574 1.228 2.12 2.176.544.947.817 2.04.817 3.28zm-8.615 1.01c0 1.208.488 1.811 1.466 1.811.511 0 .9-.181 1.168-.545.267-.363.429-.954.486-1.772l.11-1.896a4.638 4.638 0 00-.98-.095c-.71 0-1.263.224-1.658.67-.395.446-.592 1.055-.592 1.828z' />\n </svg>\n )\n}\n\nexport default SvgTypeEmail\n","import React from 'react'\n\nfunction SvgTypeFile(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M5.946 14a4.975 4.975 0 01-3.497-1.415A4.731 4.731 0 011 9.174c0-1.288.515-2.5 1.449-3.41L7.456.986c1.345-1.313 3.722-1.318 5.08.007a3.453 3.453 0 010 4.961L8.03 10.241c-.867.847-2.293.848-3.17-.006a2.158 2.158 0 010-3.102l1.744-1.701 1.272 1.24-1.744 1.701a.43.43 0 000 .621c.23.223.405.223.636 0l4.503-4.288a1.723 1.723 0 00-.007-2.473c-.68-.663-1.864-.663-2.543 0L3.713 7.011a3.006 3.006 0 00-.915 2.163c0 .82.328 1.591.922 2.17 1.19 1.162 3.262 1.162 4.451 0l2.248-2.192 1.272 1.24-2.248 2.193A4.978 4.978 0 015.946 14z' />\n </svg>\n )\n}\n\nexport default SvgTypeFile\n","import React from 'react'\n\nfunction SvgTypeFormula(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M7.779 7.063l-3.157 4.224a.49.49 0 00-.072.218.35.35 0 00.346.357h6.242c.476 0 .862.398.862.889v.36c0 .491-.386.889-.862.889H1.862A.876.876 0 011 13.111v-.425a.82.82 0 01.177-.54L4.393 7.8a1.367 1.367 0 00-.006-1.625L1.4 2.194a.822.822 0 01-.18-.544V.89C1.22.398 1.604 0 2.08 0h8.838c.476 0 .861.398.861.889v.36c0 .491-.385.89-.86.89H5.135c-.19 0-.345.159-.345.356a.489.489 0 00.07.216l2.92 3.975c.049.062.063.107.06.188a.246.246 0 01-.062.189z' />\n </svg>\n )\n}\n\nexport default SvgTypeFormula\n","import React from 'react'\n\nfunction SvgTypeMultiSelect(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M4 3a1 1 0 011-1h7a1 1 0 110 2H5a1 1 0 01-1-1zm0 4a1 1 0 011-1h7a1 1 0 110 2H5a1 1 0 01-1-1zm0 4a1 1 0 011-1h7a1 1 0 110 2H5a1 1 0 01-1-1zM2 4a1 1 0 110-2 1 1 0 010 2zm0 4a1 1 0 110-2 1 1 0 010 2zm0 4a1 1 0 110-2 1 1 0 010 2z' />\n </svg>\n )\n}\n\nexport default SvgTypeMultiSelect\n","import React from 'react'\n\nfunction SvgTypeNumber(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M4.462 0c-.595 0-1.078.482-1.078 1.078v2.306H1.078a1.078 1.078 0 100 2.155h2.306v2.922H1.078a1.078 1.078 0 100 2.155h2.306v2.306a1.078 1.078 0 002.155 0v-2.306H8.46v2.306a1.078 1.078 0 002.156 0v-2.306h2.306a1.078 1.078 0 100-2.155h-2.306V5.539h2.306a1.078 1.078 0 100-2.155h-2.306V1.078a1.078 1.078 0 00-2.156 0v2.306H5.54V1.078C5.54.482 5.056 0 4.461 0zm1.077 8.46V5.54H8.46v2.92H5.54z' />\n </svg>\n )\n}\n\nexport default SvgTypeNumber\n","import React from 'react'\n\nfunction SvgTypePerson(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M9.625 10.847C8.912 10.289 8.121 9.926 7 9.26v-.54a3.33 3.33 0 00.538-.888c.408-.1.774-.498.774-.832 0-.482-.202-.673-.44-.829 0-.015.003-.03.003-.046 0-.711-.438-2.625-2.625-2.625-2.188 0-2.625 1.915-2.625 2.625 0 .017.003.03.003.046-.238.156-.44.347-.44.829 0 .334.366.731.774.833.146.343.326.643.538.886v.541c-1.12.665-1.912 1.028-2.625 1.587C.041 11.498 0 12.469 0 14h10.5c0-1.531-.041-2.502-.875-3.153zm3.5-3.5c-.713-.558-1.504-.921-2.625-1.587v-.54c.212-.244.392-.544.538-.888.408-.1.774-.498.774-.832 0-.482-.202-.673-.44-.829 0-.015.003-.03.003-.046C11.375 1.914 10.937 0 8.75 0 6.562 0 6.125 1.915 6.125 2.625c0 .017.003.03.003.046-.016.012-.03.025-.047.036 1.751.359 2.516 1.841 2.647 3.04.248.262.46.65.46 1.253 0 .603-.417 1.203-1.004 1.515-.057.109-.117.214-.181.315l.437.245c.64.357 1.194.666 1.724 1.081.138.108.256.224.365.343H14c0-1.53-.041-2.5-.875-3.153z' />\n </svg>\n )\n}\n\nexport default SvgTypePerson\n","import React from 'react'\n\nfunction SvgTypePerson2(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M13.125 10.035c-.571-.55-2.324-1.504-3.5-2.16v-.834c.224-.322.42-.671.566-1.055.394-.242.746-.702.746-1.173 0-.458-.005-.87-.47-1.208C10.305 1.558 9.436 0 7 0S3.695 1.558 3.533 3.605c-.465.338-.47.75-.47 1.208 0 .471.352.93.746 1.173.146.384.342.733.566 1.055v.834c-1.176.656-2.929 1.61-3.5 2.16C.165 10.72 0 11.812 0 14h14c0-2.188-.164-3.281-.875-3.965z' />\n </svg>\n )\n}\n\nexport default SvgTypePerson2\n","import React from 'react'\n\nfunction SvgTypePhoneNumber(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M2.207.013a.487.487 0 00-.29.02C.87.438.213 1.93.058 2.955c-.484 3.33 2.15 6.215 4.57 8.113 2.149 1.684 6.273 4.453 8.713 1.781.31-.329.678-.813.658-1.297-.058-.813-.813-1.394-1.394-1.84-.445-.329-1.375-1.239-1.956-1.22-.522.02-.851.562-1.18.891l-.582.581c-.096.097-1.336-.716-1.471-.813a9.881 9.881 0 01-1.414-1.104A9.13 9.13 0 014.86 6.732c-.097-.136-.89-1.317-.813-1.414 0 0 .677-.736.871-1.026.407-.62.717-1.104.252-1.84-.174-.27-.387-.484-.62-.716-.406-.387-.813-.794-1.278-1.123-.251-.194-.677-.542-1.065-.6z' />\n </svg>\n )\n}\n\nexport default SvgTypePhoneNumber\n","import React from 'react'\n\nfunction SvgTypeRelation(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M4.5 1v2h5.086L1 11.586 2.414 13 11 4.414V9.5h2V1z' />\n </svg>\n )\n}\n\nexport default SvgTypeRelation\n","import React from 'react'\n\nfunction SvgTypeSelect(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M7 13A6 6 0 107 1a6 6 0 000 12zM3.751 5.323A.2.2 0 013.909 5h6.182a.2.2 0 01.158.323L7.158 9.297a.2.2 0 01-.316 0L3.751 5.323z' />\n </svg>\n )\n}\n\nexport default SvgTypeSelect\n","import React from 'react'\n\nfunction SvgTypeText(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M7 4.568a.5.5 0 00-.5-.5h-6a.5.5 0 00-.5.5v1.046a.5.5 0 00.5.5h6a.5.5 0 00.5-.5V4.568zM.5 1a.5.5 0 00-.5.5v1.045a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V1.5a.5.5 0 00-.5-.5H.5zM0 8.682a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V7.636a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v1.046zm0 3.068a.5.5 0 00.5.5h9a.5.5 0 00.5-.5v-1.045a.5.5 0 00-.5-.5h-9a.5.5 0 00-.5.5v1.045z' />\n </svg>\n )\n}\n\nexport default SvgTypeText\n","import React from 'react'\n\nfunction SvgTypeTimestamp(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M6.986 14c-1.79 0-3.582-.69-4.944-2.068-2.723-2.72-2.723-7.172 0-9.892 2.725-2.72 7.182-2.72 9.906 0A6.972 6.972 0 0114 6.996c0 1.88-.728 3.633-2.052 4.955A7.058 7.058 0 016.986 14zm3.285-6.99v1.645H5.526v-5.47h1.841v3.63h2.904v.194zm1.89-.014c0-1.379-.542-2.67-1.522-3.648-2.006-2.005-5.287-2.007-7.297-.009l-.009.009a5.168 5.168 0 000 7.295c2.01 2.007 5.297 2.007 7.306 0a5.119 5.119 0 001.521-3.647z' />\n </svg>\n )\n}\n\nexport default SvgTypeTimestamp\n","import React from 'react'\n\nfunction SvgTypeTitle(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M7.74 8.697a.81.81 0 01.073.308.894.894 0 01-.9.888.867.867 0 01-.825-.592l-.333-.961H2.058l-.333.961a.882.882 0 01-.838.592A.884.884 0 010 9.005c0-.11.025-.222.062-.308l2.403-6.211c.222-.58.776-.986 1.442-.986.653 0 1.22.407 1.442.986l2.39 6.211zM2.6 6.824h2.613L3.907 3.102 2.6 6.824zm8.8-3.118c1.355 0 2.6.542 2.6 2.255V9.08a.8.8 0 01-.789.814.797.797 0 01-.788-.703c-.395.468-1.097.764-1.874.764-.949 0-2.07-.64-2.07-1.972 0-1.392 1.121-1.897 2.07-1.897.789 0 1.491.246 1.886.727v-.826c0-.604-.518-.998-1.306-.998-.469 0-.888.123-1.32.394a.64.64 0 01-.307.086.602.602 0 01-.592-.604c0-.221.123-.419.284-.517a3.963 3.963 0 012.206-.641zm-.222 5.188c.505 0 .998-.172 1.257-.517v-.74c-.259-.345-.752-.517-1.257-.517-.616 0-1.122.332-1.122.9 0 .554.506.874 1.122.874zM.656 11.125h12.688a.656.656 0 110 1.313H.656a.656.656 0 110-1.313z' />\n </svg>\n )\n}\n\nexport default SvgTypeTitle\n","import React from 'react'\n\nfunction SvgTypeUrl(props: React.SVGProps<SVGSVGElement>) {\n return (\n <svg viewBox='0 0 14 14' {...props}>\n <path d='M3.733 3.867h3.734c1.03 0 1.866.837 1.866 1.866 0 1.03-.837 1.867-1.866 1.867h-.934a.934.934 0 000 1.867h.934a3.734 3.734 0 000-7.467H3.733A3.73 3.73 0 001.89 8.977a4.637 4.637 0 01.314-2.18 1.854 1.854 0 01-.336-1.064c0-1.03.837-1.866 1.866-1.866zm8.377 1.422a4.6 4.6 0 01-.316 2.176c.212.303.34.67.34 1.068 0 1.03-.838 1.867-1.867 1.867H6.533a1.869 1.869 0 01-1.866-1.867c0-1.03.837-1.866 1.866-1.866h.934a.934.934 0 000-1.867h-.934a3.733 3.733 0 000 7.467h3.734a3.73 3.73 0 001.843-6.978z' />\n </svg>\n )\n}\n\nexport default SvgTypeUrl\n","import React from 'react'\n\nimport { PropertyType } from '@texonom/ntypes'\n\nimport CheckboxIcon from './type-checkbox'\nimport DateIcon from './type-date'\nimport EmailIcon from './type-email'\nimport FileIcon from './type-file'\nimport FormulaIcon from './type-formula'\nimport MultiSelectIcon from './type-multi-select'\nimport NumberIcon from './type-number'\nimport PersonIcon from './type-person'\nimport Person2Icon from './type-person-2'\nimport PhoneNumberIcon from './type-phone-number'\nimport RelationIcon from './type-relation'\nimport SelectIcon from './type-select'\nimport TextIcon from './type-text'\nimport TimestampIcon from './type-timestamp'\nimport TitleIcon from './type-title'\nimport UrlIcon from './type-url'\n\ninterface PropertyIconProps {\n className?: string\n type: PropertyType\n}\n\nexport const iconMap = {\n title: TitleIcon,\n text: TextIcon,\n number: NumberIcon,\n select: SelectIcon,\n multi_select: MultiSelectIcon,\n date: DateIcon,\n person: PersonIcon,\n file: FileIcon,\n checkbox: CheckboxIcon,\n url: UrlIcon,\n email: EmailIcon,\n phone_number: PhoneNumberIcon,\n formula: FormulaIcon,\n relation: RelationIcon,\n created_time: TimestampIcon,\n last_edited_time: TimestampIcon,\n created_by: Person2Icon,\n last_edited_by: Person2Icon\n}\n\nexport const PropertyIcon: React.FC<PropertyIconProps> = ({ type, ...rest }) => {\n const icon = iconMap[type] as (...args: unknown[]) => React.JSX.Element\n\n if (!icon) return null\n\n return icon(rest)\n}\n","import React from 'react'\n\nimport { CollectionPropertySchema } from '@texonom/ntypes'\n\nimport { PropertyIcon } from '../icons/property-icon'\n\nexport const CollectionColumnTitle: React.FC<{\n schema: CollectionPropertySchema\n}> = ({ schema }) => {\n return (\n <div className='notion-collection-column-title'>\n <PropertyIcon className='notion-collection-column-title-icon' type={schema.type} />\n\n <div className='notion-collection-column-title-body'>{schema.name}</div>\n </div>\n )\n}\n"],"mappings":";;;;;;AAAA,OAAO,WAAW;AAElB,SAAS,gBAAgB,OAAsC;AAC7D,SACE,oCAAC,wBAAI,SAAQ,eAAgB,QAC3B,oCAAC,UAAK,GAAE,mZAAkZ,CAC5Z;AAEJ;AAEA,IAAO,wBAAQ;;;ACVf,OAAOA,YAAW;AAElB,SAAS,YAAY,OAAsC;AACzD,SACE,gBAAAC,OAAA,cAAC,wBAAI,SAAQ,eAAgB,QAC3B,gBAAAA,OAAA,cAAC,UAAK,GAAE,mSAAkS,CAC5S;AAEJ;AAEA,IAAO,oBAAQ;;;ACVf,OAAOC,YAAW;AAElB,SAAS,aAAa,OAAsC;AAC1D,SACE,gBAAAC,OAAA,cAAC,wBAAI,SAAQ,eAAgB,QAC3B,gBAAAA,OAAA,cAAC,UAAK,GAAE,qrCAAorC,CAC9rC;AAEJ;AAEA,IAAO,qBAAQ;;;ACVf,OAAOC,YAAW;AAElB,SAAS,YAAY,OAAsC;AACzD,SACE,gBAAAC,OAAA,cAAC,wBAAI,SAAQ,eAAgB,QAC3B,gBAAAA,OAAA,cAAC,UAAK,GAAE,+gBAA8gB,CACxhB;AAEJ;AAEA,IAAO,oBAAQ;;;ACVf,OAAOC,YAAW;AAElB,SAAS,eAAe,OAA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d,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,gBAAgB;AAClB;AAEO,IAAM,eAA4C,CAAC,OAAsB;AAAtB,eAAE,OA/C5D,IA+C0D,IAAW,iBAAX,IAAW,CAAT;AAC1D,QAAM,OAAO,QAAQ,IAAI;AAEzB,MAAI,CAAC,KAAM,QAAO;AAElB,SAAO,KAAK,IAAI;AAClB;;;ACrDA,OAAOC,aAAW;AAMX,IAAM,wBAER,CAAC,EAAE,OAAO,MAAM;AACnB,SACE,gBAAAC,QAAA,cAAC,SAAI,WAAU,oCACb,gBAAAA,QAAA,cAAC,gBAAa,WAAU,uCAAsC,MAAM,OAAO,MAAM,GAEjF,gBAAAA,QAAA,cAAC,SAAI,WAAU,yCAAuC,OAAO,IAAK,CACpE;AAEJ;","names":["React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React","React"]}
@@ -81,4 +81,4 @@ export {
81
81
  __toESM,
82
82
  __async
83
83
  };
84
- //# sourceMappingURL=chunk-JX5CEG3A.js.map
84
+ //# sourceMappingURL=chunk-OAIRL2FN.js.map
@@ -5,7 +5,7 @@ import {
5
5
  __spreadProps,
6
6
  __spreadValues,
7
7
  __toESM
8
- } from "./chunk-JX5CEG3A.js";
8
+ } from "./chunk-OAIRL2FN.js";
9
9
 
10
10
  // ../../node_modules/.pnpm/lodash.throttle@4.1.1/node_modules/lodash.throttle/index.js
11
11
  var require_lodash = __commonJS({
@@ -170,8 +170,7 @@ var Checkbox = ({ isChecked }) => {
170
170
  let content = null;
171
171
  if (isChecked)
172
172
  content = /* @__PURE__ */ React2.createElement("div", { className: "notion-property-checkbox-checked" }, /* @__PURE__ */ React2.createElement(check_default, null));
173
- else
174
- content = /* @__PURE__ */ React2.createElement("div", { className: "notion-property-checkbox-unchecked" });
173
+ else content = /* @__PURE__ */ React2.createElement("div", { className: "notion-property-checkbox-unchecked" });
175
174
  return /* @__PURE__ */ React2.createElement("span", { className: "notion-property notion-property-checkbox" }, content);
176
175
  };
177
176
 
@@ -193,8 +192,7 @@ var groupBlockContent = (blockMap) => {
193
192
  lastType = blockType;
194
193
  output[index] = [];
195
194
  }
196
- if (index > -1)
197
- output[index].push(blockId);
195
+ if (index > -1) output[index].push(blockId);
198
196
  });
199
197
  lastType = void 0;
200
198
  });
@@ -203,8 +201,7 @@ var groupBlockContent = (blockMap) => {
203
201
  var getListNumber = (blockId, blockMap) => {
204
202
  const groups = groupBlockContent(blockMap);
205
203
  const group = groups.find((g) => g.includes(blockId));
206
- if (!group)
207
- return;
204
+ if (!group) return;
208
205
  return group.indexOf(blockId) + 1;
209
206
  };
210
207
  var getHashFragmentValue = (url) => {
@@ -221,12 +218,10 @@ var youtubeDomains = /* @__PURE__ */ new Set([
221
218
  var getYoutubeId = (url) => {
222
219
  try {
223
220
  const { hostname } = new URL(url);
224
- if (!youtubeDomains.has(hostname))
225
- return null;
221
+ if (!youtubeDomains.has(hostname)) return null;
226
222
  const regExp = /^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/i;
227
223
  const match = url.match(regExp);
228
- if (match && match[2].length == 11)
229
- return match[2];
224
+ if (match && match[2].length == 11) return match[2];
230
225
  } catch (e) {
231
226
  }
232
227
  return null;
@@ -260,16 +255,14 @@ var LazyImage = (_a) => {
260
255
  const onLoad = React3.useCallback(
261
256
  (e) => {
262
257
  if (zoomable && (e.target.src || e.target.srcset)) {
263
- if (zoomRef.current)
264
- zoomRef.current.attach(e.target);
258
+ if (zoomRef.current) zoomRef.current.attach(e.target);
265
259
  }
266
260
  },
267
261
  [zoomRef, zoomable]
268
262
  );
269
263
  const attachZoom = React3.useCallback(
270
264
  (image) => {
271
- if (zoomRef.current && image)
272
- zoomRef.current.attach(image);
265
+ if (zoomRef.current && image) zoomRef.current.attach(image);
273
266
  },
274
267
  [zoomRef]
275
268
  );
@@ -347,13 +340,11 @@ var LiteYouTubeEmbed = ({
347
340
  const [iframeInitialized, setIframeInitialized] = React4.useState(defaultPlay);
348
341
  const [isIframeLoaded, setIsIframeLoaded] = React4.useState(false);
349
342
  const warmConnections = React4.useCallback(() => {
350
- if (isPreconnected)
351
- return;
343
+ if (isPreconnected) return;
352
344
  setIsPreconnected(true);
353
345
  }, [isPreconnected]);
354
346
  const onLoadIframe = React4.useCallback(() => {
355
- if (iframeInitialized)
356
- return;
347
+ if (iframeInitialized) return;
357
348
  setIframeInitialized(true);
358
349
  }, [iframeInitialized]);
359
350
  const onIframeLoaded = React4.useCallback(() => {
@@ -407,8 +398,7 @@ var supportedAssetTypes = [
407
398
  var Asset = ({ block, zoomable = true, children }) => {
408
399
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
409
400
  const { recordMap, mapImageUrl, components } = useNotionContext();
410
- if (!block || !supportedAssetTypes.includes(block.type))
411
- return null;
401
+ if (!block || !supportedAssetTypes.includes(block.type)) return null;
412
402
  const style = {
413
403
  position: "relative",
414
404
  display: "flex",
@@ -422,17 +412,12 @@ var Asset = ({ block, zoomable = true, children }) => {
422
412
  if (block.format) {
423
413
  const { block_aspect_ratio, block_height, block_width, block_full_width, block_page_width, block_preserve_scale } = block.format;
424
414
  if (block_full_width || block_page_width) {
425
- if (block_full_width)
426
- style.width = "100vw";
427
- else
428
- style.width = "100%";
415
+ if (block_full_width) style.width = "100vw";
416
+ else style.width = "100%";
429
417
  if (block.type === "video") {
430
- if (block_height)
431
- style.height = block_height;
432
- else if (block_aspect_ratio)
433
- style.paddingBottom = `${block_aspect_ratio * 100}%`;
434
- else if (block_preserve_scale)
435
- style.objectFit = "contain";
418
+ if (block_height) style.height = block_height;
419
+ else if (block_aspect_ratio) style.paddingBottom = `${block_aspect_ratio * 100}%`;
420
+ else if (block_preserve_scale) style.objectFit = "contain";
436
421
  } else if (block_aspect_ratio && block.type !== "image") {
437
422
  style.paddingBottom = `${block_aspect_ratio * 100}%`;
438
423
  } else if (block_height) {
@@ -460,32 +445,25 @@ var Asset = ({ block, zoomable = true, children }) => {
460
445
  break;
461
446
  }
462
447
  }
463
- if (block_width)
464
- style.width = block_width;
448
+ if (block_width) style.width = block_width;
465
449
  if (block_preserve_scale && block.type !== "image") {
466
450
  style.paddingBottom = "50%";
467
451
  style.minHeight = 100;
468
452
  } else {
469
- if (block_height && block.type !== "image")
470
- style.height = block_height;
453
+ if (block_height && block.type !== "image") style.height = block_height;
471
454
  }
472
455
  }
473
- if (block.type === "image")
474
- assetStyle.objectFit = "cover";
475
- else if (block_preserve_scale)
476
- assetStyle.objectFit = "contain";
456
+ if (block.type === "image") assetStyle.objectFit = "cover";
457
+ else if (block_preserve_scale) assetStyle.objectFit = "contain";
477
458
  }
478
459
  let source = ((_b = recordMap.signed_urls) == null ? void 0 : _b[block.id]) || ((_e = (_d = (_c = block.properties) == null ? void 0 : _c.source) == null ? void 0 : _d[0]) == null ? void 0 : _e[0]);
479
460
  let content = null;
480
- if (!source)
481
- return null;
461
+ if (!source) return null;
482
462
  if (block.type === "tweet") {
483
463
  const src = source;
484
- if (!src)
485
- return null;
464
+ if (!src) return null;
486
465
  const id = src.split("?")[0].split("/").pop();
487
- if (!id)
488
- return null;
466
+ if (!id) return null;
489
467
  content = /* @__PURE__ */ React5.createElement(
490
468
  "div",
491
469
  {
@@ -502,10 +480,8 @@ var Asset = ({ block, zoomable = true, children }) => {
502
480
  style.overflow = "auto";
503
481
  style.background = "rgb(226, 226, 226)";
504
482
  style.display = "block";
505
- if (!style.padding)
506
- style.padding = "8px 16px";
507
- if (!isServer)
508
- content = /* @__PURE__ */ React5.createElement(components.Pdf, { file: source });
483
+ if (!style.padding) style.padding = "8px 16px";
484
+ if (!isServer) content = /* @__PURE__ */ React5.createElement(components.Pdf, { file: source });
509
485
  } else if (block.type === "embed" || block.type === "video" || block.type === "figma" || block.type === "typeform" || block.type === "gist" || block.type === "maps" || block.type === "excalidraw" || block.type === "codepen" || block.type === "drive") {
510
486
  if (block.type === "video" && source && source.indexOf("youtube") < 0 && source.indexOf("youtu.be") < 0 && source.indexOf("vimeo") < 0 && source.indexOf("wistia") < 0 && source.indexOf("loom") < 0 && source.indexOf("videoask") < 0 && source.indexOf("getcloudapp") < 0) {
511
487
  style.paddingBottom = void 0;
@@ -517,8 +493,7 @@ var Asset = ({ block, zoomable = true, children }) => {
517
493
  if (youtubeVideoId) {
518
494
  content = /* @__PURE__ */ React5.createElement(LiteYouTubeEmbed, { id: youtubeVideoId, style: assetStyle, className: "notion-asset-object-fit" });
519
495
  } else if (block.type === "gist") {
520
- if (!src.endsWith(".pibb"))
521
- src = `${src}.pibb`;
496
+ if (!src.endsWith(".pibb")) src = `${src}.pibb`;
522
497
  assetStyle.width = "100%";
523
498
  style.paddingBottom = "50%";
524
499
  content = /* @__PURE__ */ React5.createElement(
@@ -551,8 +526,7 @@ var Asset = ({ block, zoomable = true, children }) => {
551
526
  }
552
527
  }
553
528
  } else if (block.type === "image") {
554
- if (source.includes("file.notion.so"))
555
- source = (_i = (_h = (_g = block.properties) == null ? void 0 : _g.source) == null ? void 0 : _h[0]) == null ? void 0 : _i[0];
529
+ if (source.includes("file.notion.so")) source = (_i = (_h = (_g = block.properties) == null ? void 0 : _g.source) == null ? void 0 : _h[0]) == null ? void 0 : _i[0];
556
530
  const src = mapImageUrl(source, block);
557
531
  const caption = getTextContent((_j = block.properties) == null ? void 0 : _j.caption);
558
532
  const alt = caption || "notion image";
@@ -586,8 +560,7 @@ var EOI = ({ block, inline, className }) => {
586
560
  var _a, _b, _c;
587
561
  const { components } = useNotionContext();
588
562
  const { original_url, attributes, domain } = (block == null ? void 0 : block.format) || {};
589
- if (!original_url || !attributes)
590
- return null;
563
+ if (!original_url || !attributes) return null;
591
564
  const title = (_a = attributes.find((attr) => attr.id === "title")) == null ? void 0 : _a.values[0];
592
565
  let owner = (_b = attributes.find((attr) => attr.id === "owner")) == null ? void 0 : _b.values[0];
593
566
  const lastUpdatedAt = (_c = attributes.find((attr) => attr.id === "updated_at")) == null ? void 0 : _c.values[0];
@@ -623,10 +596,8 @@ var EOI = ({ block, inline, className }) => {
623
596
  import React8 from "react";
624
597
  import { Img } from "react-image";
625
598
  var GracefulImage = (props) => {
626
- if (isBrowser)
627
- return /* @__PURE__ */ React8.createElement(Img, __spreadValues({}, props));
628
- else
629
- return /* @__PURE__ */ React8.createElement("img", __spreadValues({}, props));
599
+ if (isBrowser) return /* @__PURE__ */ React8.createElement(Img, __spreadValues({}, props));
600
+ else return /* @__PURE__ */ React8.createElement("img", __spreadValues({}, props));
630
601
  };
631
602
 
632
603
  // src/components/page-title.tsx
@@ -636,17 +607,14 @@ var PageTitleImpl = (_a) => {
636
607
  var _b = _a, { block, className, defaultIcon } = _b, rest = __objRest(_b, ["block", "className", "defaultIcon"]);
637
608
  var _a2, _b2;
638
609
  const { recordMap } = useNotionContext();
639
- if (!block)
640
- return null;
610
+ if (!block) return null;
641
611
  if (block.type === "collection_view_page" || block.type === "collection_view") {
642
612
  const title = getBlockTitle(block, recordMap);
643
- if (!title)
644
- return null;
613
+ if (!title) return null;
645
614
  const titleDecoration = [[title]];
646
615
  return /* @__PURE__ */ React9.createElement("span", __spreadValues({ className: `notion-page-title ${className || ""}` }, rest), /* @__PURE__ */ React9.createElement(PageIcon, { block, defaultIcon, className: "notion-page-title-icon" }), /* @__PURE__ */ React9.createElement("span", { className: "notion-page-title-text" }, /* @__PURE__ */ React9.createElement(Text, { value: titleDecoration, block })));
647
616
  }
648
- if (!((_a2 = block.properties) == null ? void 0 : _a2.title))
649
- return null;
617
+ if (!((_a2 = block.properties) == null ? void 0 : _a2.title)) return null;
650
618
  return /* @__PURE__ */ React9.createElement("span", __spreadValues({ className: `notion-page-title ${className || ""}` }, rest), /* @__PURE__ */ React9.createElement(PageIcon, { block, defaultIcon, className: "notion-page-title-icon" }), /* @__PURE__ */ React9.createElement("span", { className: "notion-page-title-text" }, /* @__PURE__ */ React9.createElement(Text, { value: (_b2 = block.properties) == null ? void 0 : _b2.title, block })));
651
619
  };
652
620
  var PageTitle = React9.memo(PageTitleImpl);
@@ -657,10 +625,8 @@ var Text = ({ value, block, linkProps, linkProtocol }) => {
657
625
  return /* @__PURE__ */ React10.createElement(React10.Fragment, null, value == null ? void 0 : value.map((deco, index) => {
658
626
  const [text, decorations] = deco;
659
627
  if (!decorations)
660
- if (text === ",")
661
- return /* @__PURE__ */ React10.createElement("span", { key: index, style: { padding: "0.5em" } });
662
- else
663
- return /* @__PURE__ */ React10.createElement(React10.Fragment, { key: index }, text);
628
+ if (text === ",") return /* @__PURE__ */ React10.createElement("span", { key: index, style: { padding: "0.5em" } });
629
+ else return /* @__PURE__ */ React10.createElement(React10.Fragment, { key: index }, text);
664
630
  const formatted = decorations.reduce(
665
631
  (element, decorator) => {
666
632
  var _a, _b, _c, _d, _e;
@@ -732,6 +698,7 @@ var Text = ({ value, block, linkProps, linkProtocol }) => {
732
698
  return /* @__PURE__ */ React10.createElement(components.Equation, { math: decorator[1], inline: true });
733
699
  case "m":
734
700
  return element;
701
+ //still need to return the base element
735
702
  case "a": {
736
703
  const v = decorator[1];
737
704
  const pathname = v.substring(1);
@@ -750,6 +717,7 @@ var Text = ({ value, block, linkProps, linkProtocol }) => {
750
717
  );
751
718
  }
752
719
  }
720
+ // Date
753
721
  case "d": {
754
722
  const v = decorator[1];
755
723
  const type = v == null ? void 0 : v.type;
@@ -764,6 +732,7 @@ var Text = ({ value, block, linkProps, linkProtocol }) => {
764
732
  return element;
765
733
  }
766
734
  }
735
+ // User
767
736
  case "u": {
768
737
  const userId = decorator[1];
769
738
  const user = (_d = recordMap.notion_user[userId]) == null ? void 0 : _d.value;
@@ -789,8 +758,7 @@ var Text = ({ value, block, linkProps, linkProtocol }) => {
789
758
  return /* @__PURE__ */ React10.createElement(EOI, { block: externalObjectInstance, inline: true });
790
759
  }
791
760
  default:
792
- if (true)
793
- console.debug("unsupported text format", decorator);
761
+ if (true) console.debug("unsupported text format", decorator);
794
762
  return element;
795
763
  }
796
764
  },
@@ -812,8 +780,7 @@ var AssetWrapper = ({ blockId, block }) => {
812
780
  if (caption) {
813
781
  const id = parsePageId2(caption, { uuid: true });
814
782
  const isPage = caption.charAt(0) === "/" && id;
815
- if (isPage || isValidURL(caption))
816
- isURL = true;
783
+ if (isPage || isValidURL(caption)) isURL = true;
817
784
  }
818
785
  }
819
786
  const figure = /* @__PURE__ */ React11.createElement(
@@ -901,8 +868,7 @@ var SearchDialog = class extends React15.Component {
901
868
  searchError: null
902
869
  };
903
870
  this._onAfterOpen = () => {
904
- if (this._inputRef.current)
905
- this._inputRef.current.focus();
871
+ if (this._inputRef.current) this._inputRef.current.focus();
906
872
  };
907
873
  this._onChangeQuery = (e) => {
908
874
  const query = e.target.value;
@@ -946,19 +912,16 @@ var SearchDialog = class extends React15.Component {
946
912
  const results = searchResult.results.map((result2) => {
947
913
  var _a, _b;
948
914
  const block = (_a = searchResult.recordMap.block[result2.id]) == null ? void 0 : _a.value;
949
- if (!block)
950
- return;
915
+ if (!block) return;
951
916
  const title = getBlockTitle2(block, searchResult.recordMap);
952
- if (!title)
953
- return;
917
+ if (!title) return;
954
918
  result2.title = title;
955
919
  result2.block = block;
956
920
  result2.recordMap = searchResult.recordMap;
957
921
  result2.page = getBlockParentPage(block, searchResult.recordMap, {
958
922
  inclusive: true
959
923
  }) || block;
960
- if (!result2.page.id)
961
- return;
924
+ if (!result2.page.id) return;
962
925
  if ((_b = result2.highlight) == null ? void 0 : _b.text)
963
926
  result2.highlight.html = result2.highlight.text.replace(/<gzkNfoUU>/gi, "<b>").replace(/<\/gzkNfoUU>/gi, "</b>");
964
927
  return result2;
@@ -971,8 +934,7 @@ var SearchDialog = class extends React15.Component {
971
934
  );
972
935
  searchResult.results = Object.values(searchResultsMap);
973
936
  }
974
- if (this.state.query === query)
975
- this.setState({ isLoading: false, searchResult, searchError });
937
+ if (this.state.query === query) this.setState({ isLoading: false, searchResult, searchError });
976
938
  });
977
939
  this._inputRef = React15.createRef();
978
940
  }
@@ -1039,21 +1001,17 @@ var Breadcrumbs = ({ block, rootOnly = false }) => {
1039
1001
  const { recordMap, mapPageUrl, components } = useNotionContext();
1040
1002
  const breadcrumbs = React16.useMemo(() => {
1041
1003
  const breadcrumbs2 = getPageBreadcrumbs(recordMap, block.id);
1042
- if (rootOnly)
1043
- return [breadcrumbs2[0]].filter(Boolean);
1004
+ if (rootOnly) return [breadcrumbs2[0]].filter(Boolean);
1044
1005
  return breadcrumbs2;
1045
1006
  }, [recordMap, block.id, rootOnly]);
1046
1007
  return /* @__PURE__ */ React16.createElement("div", { className: "breadcrumbs", key: "breadcrumbs" }, breadcrumbs.map((breadcrumb, index) => {
1047
- if (!breadcrumb)
1048
- return null;
1008
+ if (!breadcrumb) return null;
1049
1009
  const pageLinkProps = {};
1050
1010
  const componentMap = {
1051
1011
  pageLink: components.PageLink
1052
1012
  };
1053
- if (breadcrumb.active)
1054
- componentMap.pageLink = (props) => /* @__PURE__ */ React16.createElement("div", __spreadValues({}, props));
1055
- else
1056
- pageLinkProps.href = mapPageUrl(breadcrumb.pageId);
1013
+ if (breadcrumb.active) componentMap.pageLink = (props) => /* @__PURE__ */ React16.createElement("div", __spreadValues({}, props));
1014
+ else pageLinkProps.href = mapPageUrl(breadcrumb.pageId);
1057
1015
  return /* @__PURE__ */ React16.createElement(React16.Fragment, { key: breadcrumb.pageId }, /* @__PURE__ */ React16.createElement(componentMap.pageLink, __spreadValues({ className: `breadcrumb ${breadcrumb.active && "active"}` }, pageLinkProps), breadcrumb.icon && /* @__PURE__ */ React16.createElement(PageIcon, { className: "icon", block: breadcrumb.block }), breadcrumb.title && /* @__PURE__ */ React16.createElement("span", { className: "title" }, breadcrumb.title)), index < breadcrumbs.length - 1 && /* @__PURE__ */ React16.createElement("span", { className: "spacer" }, "/"));
1058
1016
  }));
1059
1017
  };
@@ -1069,8 +1027,7 @@ var Search = ({ block, search, title = "Search" }) => {
1069
1027
  }, []);
1070
1028
  const onCloseSearch = React16.useCallback(() => {
1071
1029
  setIsSearchOpen(false);
1072
- if (onHideSearch)
1073
- onHideSearch();
1030
+ if (onHideSearch) onHideSearch();
1074
1031
  }, [onHideSearch]);
1075
1032
  useHotkeys("cmd+p", (event) => {
1076
1033
  onOpenSearch();
@@ -1116,8 +1073,7 @@ var wrapNextImage = (NextImage) => {
1116
1073
  "style",
1117
1074
  "layout"
1118
1075
  ]);
1119
- if (!layout)
1120
- layout = width && height ? "intrinsic" : "fill";
1076
+ if (!layout) layout = width && height ? "intrinsic" : "fill";
1121
1077
  return /* @__PURE__ */ React17.createElement(
1122
1078
  NextImage,
1123
1079
  __spreadValues({
@@ -1245,20 +1201,14 @@ var NotionContextProvider = (_a) => {
1245
1201
  "mapImageUrl",
1246
1202
  "rootPageId"
1247
1203
  ]);
1248
- for (const key of Object.keys(rest))
1249
- if (rest[key] === void 0)
1250
- delete rest[key];
1204
+ for (const key of Object.keys(rest)) if (rest[key] === void 0) delete rest[key];
1251
1205
  const wrappedThemeComponents = React18.useMemo(
1252
1206
  () => __spreadValues({}, themeComponents),
1253
1207
  [themeComponents]
1254
1208
  );
1255
- if (wrappedThemeComponents.nextImage)
1256
- wrappedThemeComponents.Image = wrapNextImage(themeComponents.nextImage);
1257
- if (wrappedThemeComponents.nextLink)
1258
- wrappedThemeComponents.nextLink = wrapNextLink(themeComponents.nextLink);
1259
- for (const key of Object.keys(wrappedThemeComponents))
1260
- if (!wrappedThemeComponents[key])
1261
- delete wrappedThemeComponents[key];
1209
+ if (wrappedThemeComponents.nextImage) wrappedThemeComponents.Image = wrapNextImage(themeComponents.nextImage);
1210
+ if (wrappedThemeComponents.nextLink) wrappedThemeComponents.nextLink = wrapNextLink(themeComponents.nextLink);
1211
+ for (const key of Object.keys(wrappedThemeComponents)) if (!wrappedThemeComponents[key]) delete wrappedThemeComponents[key];
1262
1212
  const value = React18.useMemo(
1263
1213
  () => __spreadProps(__spreadValues(__spreadValues({}, defaultNotionContext), rest), {
1264
1214
  rootPageId,
@@ -1311,8 +1261,7 @@ var PageIconImpl = ({ block, className, inline = true, hideDefaultIcon = false,
1311
1261
  content = /* @__PURE__ */ React20.createElement("span", { className: `${className || ""} notion-page-icon`, role: "img", "aria-label": icon }, icon);
1312
1262
  }
1313
1263
  }
1314
- if (!content)
1315
- return null;
1264
+ if (!content) return null;
1316
1265
  return /* @__PURE__ */ React20.createElement(
1317
1266
  "div",
1318
1267
  {
@@ -1356,4 +1305,4 @@ export {
1356
1305
  Asset,
1357
1306
  AssetWrapper
1358
1307
  };
1359
- //# sourceMappingURL=chunk-4XJBBVRZ.js.map
1308
+ //# sourceMappingURL=chunk-SEA7YL2O.js.map