@nxgt/material 2.2.0 → 2.3.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.
- package/README.md +7 -2
- package/dist/{_Uint8Array-BlYETJ93.js → _Uint8Array-BDK6FjpM.js} +20 -20
- package/dist/{abnfDiagram-O67JEVCF-UBHbDvRt.js → abnfDiagram-O67JEVCF-C7NxOWqd.js} +8 -8
- package/dist/architecture-7GRP2DOG-CMg7-eYj.js +3 -0
- package/dist/{architectureDiagram-NJMV4G6O-YUaZEFrZ.js → architectureDiagram-NJMV4G6O-BIvwyzEh.js} +12 -12
- package/dist/{blockDiagram-BEXU5L5S-LYb2ZWFy.js → blockDiagram-BEXU5L5S-C8q-lXgt.js} +18 -18
- package/dist/{c4Diagram-YGBWAQC7-C-2N38iN.js → c4Diagram-YGBWAQC7-WgqlRIL5.js} +10 -10
- package/dist/channel-Ba8pEAWx.js +5 -0
- package/dist/{chunk-2Q5K7J3B-kzxEEeTu.js → chunk-2Q5K7J3B-C1pX24ft.js} +2 -2
- package/dist/{chunk-3FUC2YCW-uD4dp-_M.js → chunk-3FUC2YCW-BGpNbruY.js} +11 -11
- package/dist/{chunk-5DYCD2WN-B2Jnu3zk.js → chunk-5DYCD2WN-Bqi3iL5i.js} +5 -5
- package/dist/{chunk-5VM5RSS4-Cr17nBXp.js → chunk-5VM5RSS4-BFskf6Qk.js} +2 -2
- package/dist/{chunk-6AEJRKK7-C9kihZu8.js → chunk-6AEJRKK7-DDXoGWDs.js} +4 -4
- package/dist/{chunk-742MDFTN-C8SK_MEU.js → chunk-742MDFTN-nG_ROTnT.js} +14 -14
- package/dist/{chunk-7INBJB4K-CyUOVm3_.js → chunk-7INBJB4K-Dg64CbhT.js} +10 -10
- package/dist/{chunk-7M6MHVWA-stRISv0F.js → chunk-7M6MHVWA-_-i4Sb1c.js} +14 -14
- package/dist/{chunk-7PRAP22T-DSh07ASj.js → chunk-7PRAP22T-DIiYRAce.js} +3 -3
- package/dist/{chunk-DUW6YSOI-BdOla2G8.js → chunk-DUW6YSOI-9R-v-IIp.js} +2 -2
- package/dist/{chunk-FOHPRMQF-Crq0JMf2.js → chunk-FOHPRMQF-DBc3Omt0.js} +1 -1
- package/dist/{chunk-GNY47TPC-CNRH-hmN.js → chunk-GNY47TPC-BJperC1X.js} +14 -14
- package/dist/{chunk-GTNCS2PH-Dd-9mUKz.js → chunk-GTNCS2PH-CzDYTYNy.js} +5 -5
- package/dist/{chunk-GWA4HPMP-LeZ8CTY7.js → chunk-GWA4HPMP-CmsxMX3A.js} +5 -5
- package/dist/{chunk-J5ZVWO5B-CYzz6Pq8.js → chunk-J5ZVWO5B-DmRRmhon.js} +2 -2
- package/dist/{chunk-JWPE2WC7-Ccb0QaC8.js → chunk-JWPE2WC7-BGVSGRTC.js} +2 -2
- package/dist/{chunk-LNGE3PJU-CiGrDO_F.js → chunk-LNGE3PJU-DJjGTS7O.js} +2 -2
- package/dist/{chunk-MBY4JIJT-efJLM0ZL.js → chunk-MBY4JIJT-IA2XBafa.js} +8 -8
- package/dist/{chunk-NETBCI7D-Dh3LtOKr.js → chunk-NETBCI7D-D0kbMnm0.js} +3 -3
- package/dist/{chunk-O7XYJQB3-CocGKgmL.js → chunk-O7XYJQB3-C87zK8E5.js} +5 -5
- package/dist/{chunk-UA2S7LBM-C81eiQ4_.js → chunk-UA2S7LBM-B0LGFGu3.js} +10 -10
- package/dist/{chunk-WEXAMYUT-Dt2jrFYj.js → chunk-WEXAMYUT-C-QP0DFq.js} +4 -4
- package/dist/{chunk-XXDRQBXY-mQqOBHO_.js → chunk-XXDRQBXY-Bq4sFnO2.js} +3 -3
- package/dist/{chunk-Y2CYZVJY-i11wjrBe.js → chunk-Y2CYZVJY-BAad7w_K.js} +1 -1
- package/dist/{chunk-Z7XXMR3K-D00WQ1MY.js → chunk-Z7XXMR3K-CJmPL4k9.js} +12 -12
- package/dist/{chunk-ZIGJFQKS-Dqo-x9kg.js → chunk-ZIGJFQKS-HDJ6e6OJ.js} +29 -29
- package/dist/{classDiagram-v2-NBCMYWYE-C4ucYlr1.js → classDiagram-v2-NBCMYWYE-DRoCWiaP.js} +18 -18
- package/dist/{client-only.utils-ojMUdy5B.js → client-only.utils-qMX_CMiw.js} +25 -25
- package/dist/{components-DqMrnRRo.js → components-CRrswCsD.js} +33211 -26822
- package/dist/components.js +6 -7
- package/dist/{cose-bilkent-JH36ORCC-BgR2hiLh.js → cose-bilkent-JH36ORCC-11-T1rfk.js} +5 -5
- package/dist/cynefin-OW5HDTMX-BGe4AjUw.js +3 -0
- package/dist/{cynefinDiagram-VND7K2PF-wsthSZGu.js → cynefinDiagram-VND7K2PF-1kHi2rGa.js} +8 -8
- package/dist/{cytoscape.esm-_jXi1N4y.js → cytoscape.esm-DXVRLXF3.js} +1 -1
- package/dist/{dagre-6A5THRUB-D9hh4vCU.js → dagre-6A5THRUB-B11jdkPL.js} +104 -104
- package/dist/{diagram-22UHCM2B-Bu26TJjA.js → diagram-22UHCM2B-CAVrn_uY.js} +20 -20
- package/dist/diagram-3UASUU5V-uO9-gtWR.js +525 -0
- package/dist/{diagram-ATOU4E4O-DNtxHPVW.js → diagram-ATOU4E4O-Clju_0RY.js} +8 -8
- package/dist/{diagram-CDSNMT55-BrwCxgMX.js → diagram-CDSNMT55-w7kkJ6MU.js} +10 -10
- package/dist/{diagram-MLGK6HIB-Bk26pSvC.js → diagram-MLGK6HIB-mUOtRVmm.js} +8 -8
- package/dist/{diagram-MPIPVDR6-Bl3F8b-U.js → diagram-MPIPVDR6-DEUw58dq.js} +8 -8
- package/dist/{dist-C-0DUGrt.js → dist-CeHNxLJG.js} +30 -30
- package/dist/{dist-CZn89tDX.js → dist-gYpAi-su.js} +2 -2
- package/dist/dnd.js +1 -1
- package/dist/{ebnfDiagram-ZINNZB2B-C7vCu85A.js → ebnfDiagram-ZINNZB2B-BYfatie5.js} +8 -8
- package/dist/{elk-276RUBZZ-ChJLevem.js → elk-276RUBZZ-BALenDhN.js} +16 -16
- package/dist/{erDiagram-OPXOYQCR-DLzDCh2a.js → erDiagram-OPXOYQCR-FtFHGu-P.js} +17 -17
- package/dist/eventmodeling-NTZA5JFV-38h1xeNf.js +3 -0
- package/dist/{field-blur-CtjbtCDw.js → field-blur-DkydMwaN.js} +614 -643
- package/dist/flowDiagram-KWPJA3E3-DZwUgKQu.js +17 -0
- package/dist/{ganttDiagram-FUAMR5RP-35sd5PoK.js → ganttDiagram-FUAMR5RP-CmMpH0CG.js} +436 -1117
- package/dist/gitGraph-4MIJSDKK-C-5NH3Jx.js +3 -0
- package/dist/{gitGraphDiagram-X574FWY7-Z7zhlcB8.js → gitGraphDiagram-X574FWY7-DcGaPSwy.js} +8 -8
- package/dist/{graphlib-DlxAzBTD.js → graphlib-DovxbouT.js} +43 -43
- package/dist/hooks.js +15 -15
- package/dist/i18n.js +4 -4
- package/dist/{icon-button-38As1vrs.js → icon-button-Dl9PDYCE.js} +15 -15
- package/dist/info-A6RAGUB7-DTwpNebQ.js +3 -0
- package/dist/{infoDiagram-VRGFBTTK-BwoHwPPX.js → infoDiagram-VRGFBTTK-Cvj167dl.js} +6 -6
- package/dist/{init-Buj1GKRa.js → init-B-aM8wRX.js} +1 -1
- package/dist/{isArrayLikeObject-DsRXN32g.js → isArrayLikeObject-D0u9Q9Yg.js} +11 -11
- package/dist/{ishikawaDiagram-OU5B5YK6-C-aWtSta.js → ishikawaDiagram-OU5B5YK6-ChBwjCfr.js} +7 -7
- package/dist/{journeyDiagram-ZHPQQLJL-vXvTzJwE.js → journeyDiagram-ZHPQQLJL-DVxTOFQu.js} +7 -7
- package/dist/{kanban-definition-PNTS6WVX-Co0CvKcV.js → kanban-definition-PNTS6WVX-BRoa-Yp5.js} +14 -14
- package/dist/{katex-BMQ6LGsM.js → katex-BLTzjTha.js} +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/index.d.ts +3 -3
- package/dist/lib/components/ui/media/pdf-viewer/pdf-page-list.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/pdf-reader-body.d.ts +2 -2
- package/dist/lib/components/ui/media/pdf-viewer/pdf-reader.reducer.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/pdf-sidebar.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/pdf-thumbnail-sidebar.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/types.d.ts +3 -3
- package/dist/lib/components/ui/media/pdf-viewer/use-pdf-document-search.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/use-pdf-file-actions.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/use-pdf-page-area.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/use-pdf-reader.d.ts +1 -1
- package/dist/lib/components/ui/media/pdf-viewer/use-pdf-search-hits.d.ts +1 -2
- package/dist/lib/components/ui/media/pdf-viewer/use-pdf-source.d.ts +1 -1
- package/dist/lib/hooks/use-formatters.d.ts +1 -1
- package/dist/lib/lib/index.d.ts +1 -1
- package/dist/lib/print/components/print-data-table/print-data-table.d.ts +1 -1
- package/dist/lib/print/components/print-data-table/print-key-value.d.ts +2 -2
- package/dist/lib/print/components/print-data-table/print-metric.d.ts +2 -2
- package/dist/lib/print/components/print-document/print-document.d.ts +1 -1
- package/dist/lib/print/components/print-document/print-render-context.d.ts +1 -1
- package/dist/lib/print/components/print-header.d.ts +1 -1
- package/dist/lib/print/index.d.ts +4 -4
- package/dist/lib/print/output/index.d.ts +2 -2
- package/dist/lib/print/output/pdf-response.d.ts +1 -1
- package/dist/lib/print/output/types.d.ts +3 -3
- package/dist/lib/print/output/use-pdf-file.d.ts +1 -1
- package/dist/lib/vite/index.d.ts +5 -64
- package/dist/{lib-uF8iIfvP.js → lib-B_cBmfz5.js} +70 -69
- package/dist/lib.js +5 -6
- package/dist/main.js +17 -19
- package/dist/map.js +4 -4
- package/dist/{math-C5EhTgJw.js → math-D0ky-xWd.js} +1 -1
- package/dist/{merge-Z2oE4ahJ.js → merge-DQLOWMVN.js} +24 -24
- package/dist/{mermaid-parser.core-Cz-MfB4Z.js → mermaid-parser.core-BXD_TD1T.js} +32 -32
- package/dist/{mermaid.core-6Yzht5pQ.js → mermaid.core-CQ6lUhgC.js} +59 -59
- package/dist/{mindmap-definition-NLK3R4M7-AxpMaPtm.js → mindmap-definition-NLK3R4M7-DyB5NgHM.js} +18 -18
- package/dist/{number.utils-CRFiOD5c.js → number.utils-BiBN2hWJ.js} +48 -48
- package/dist/{ordinal-DuP05kVQ.js → ordinal-DwxdXP1t.js} +3 -3
- package/dist/packet-AYTQ26CC-Cc2sGaDY.js +3 -0
- package/dist/{path-Cjou0lUh.js → path-Cxq8zobN.js} +3 -3
- package/dist/{pdf.worker.min-DRpqlnXj.js → pdf.worker.min-ByGJNiUH.js} +1 -1
- package/dist/{pegDiagram-GJSIUBJH-DjilqSgv.js → pegDiagram-GJSIUBJH-Dcm3LCQX.js} +8 -8
- package/dist/pie-WAS4IAKB-Qm7ZL20Y.js +3 -0
- package/dist/{pieDiagram-5QR66LMP-H8rVCHkC.js → pieDiagram-5QR66LMP-DCdDWF2H.js} +16 -16
- package/dist/print.js +164 -1113
- package/dist/{quadrantDiagram-O4NWA36T-CEDIjm-K.js → quadrantDiagram-O4NWA36T-BMfcGUfy.js} +5 -5
- package/dist/radar-RG4KPBEZ-TQ0zaqCR.js +3 -0
- package/dist/railroad-74A4TZTK-bk-BYNub.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-Bdw25bd-.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-DiFjNUyt.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-xf3JLr_Y.js +3 -0
- package/dist/{railroadDiagram-XR7U4H2S-BxR9jg9Y.js → railroadDiagram-XR7U4H2S-CzOJlTUA.js} +8 -8
- package/dist/{requirementDiagram-PLB6GJNP-DAuKYcHc.js → requirementDiagram-PLB6GJNP-Bg-uQlZj.js} +16 -16
- package/dist/{rough.esm-rcMoXTJj.js → rough.esm-Cvc79rxE.js} +1 -1
- package/dist/{sankeyDiagram-IPEJSGJF-C3JJqzLE.js → sankeyDiagram-IPEJSGJF-E-o_7bq2.js} +18 -18
- package/dist/{sequenceDiagram-PO4LG4MO-Cs8x9lRY.js → sequenceDiagram-PO4LG4MO-DMLeIQ03.js} +9 -9
- package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-C_032szM.js} +2 -2
- package/dist/{sortable-provider-DalccwHj.js → sortable-provider-NE74zkmo.js} +7 -7
- package/dist/{src-BIbdeDuO.js → src-CJ8DNrI1.js} +82 -82
- package/dist/{stateDiagram-v2-GCMORJYK-PpP0APmW.js → stateDiagram-v2-GCMORJYK-BDB4K1Fw.js} +17 -17
- package/dist/{step-B6KjpKgN.js → step-Dt43c9X4.js} +17 -17
- package/dist/{string-B-ZWXCs2.js → string-BqyOfyFV.js} +8 -8
- package/dist/{swimlanes-2SLR337P-BmqILJTV.js → swimlanes-2SLR337P-C406S8ui.js} +14 -14
- package/dist/swimlanesDiagram-TC7HE7FX-BstKZ--K.js +28 -0
- package/dist/{timeline-definition-EJHVYXUP-CEOIzkcq.js → timeline-definition-EJHVYXUP-BmhxT0qo.js} +8 -8
- package/dist/{translate-material-BO32ZDCi.js → translate-material-CRxs5aS3.js} +1 -1
- package/dist/{translator-CiPgm2s3.js → translator-BfyVF7Ej.js} +88 -88
- package/dist/treeView-Q6P3EWNA-Dyk8HSag.js +3 -0
- package/dist/treemap-WGGIJYW6-CHrhBv7m.js +3 -0
- package/dist/{use-heading-spy-DSs5Coe-.js → use-heading-spy-BiLosksJ.js} +2 -2
- package/dist/{use-material-translation-RhoPY_RC.js → use-material-translation-D3HwtYDm.js} +1 -1
- package/dist/{usecaseDiagram-POWQR4AR-CMvboR6A.js → usecaseDiagram-POWQR4AR-cHGV1E_T.js} +403 -403
- package/dist/{utils-Brj-Qb2N.js → utils-UBn-46YY.js} +2 -2
- package/dist/{vennDiagram-UO4OBE2U-xN_G4DeI.js → vennDiagram-UO4OBE2U-Aql8mhcy.js} +8 -8
- package/dist/vite.js +1 -17
- package/dist/wardley-WFR3VGLG-DnLHjx6k.js +3 -0
- package/dist/{wardleyDiagram-VNRHLVJA-C0B-kQ2b.js → wardleyDiagram-VNRHLVJA-tknlhG_t.js} +8 -8
- package/dist/{xychartDiagram-PMCCYNJV-Crmi6_s-.js → xychartDiagram-PMCCYNJV-ixeD_kO0.js} +24 -24
- package/docs/components/rich-widgets.md +2 -0
- package/docs/getting-started.md +20 -0
- package/docs/guides/printing.md +6 -2
- package/docs/guides/ssr.md +8 -2
- package/docs/troubleshooting.md +57 -2
- package/package.json +30 -33
- package/dist/architecture-7GRP2DOG-DDr0RGVC.js +0 -3
- package/dist/channel-CUIVvEUM.js +0 -5
- package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +0 -3
- package/dist/diagram-3UASUU5V-BEydDExL.js +0 -724
- package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +0 -3
- package/dist/flowDiagram-KWPJA3E3-uiZryqlC.js +0 -17
- package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +0 -3
- package/dist/info-A6RAGUB7-BvtuPd9C.js +0 -3
- package/dist/lib/components/ui/fields/currency-field/currency-digits.d.ts +0 -7
- package/dist/lib/components/ui/forms/field-blur-layers.d.ts +0 -34
- package/dist/lib/components/ui/media/pdf-viewer/pdf-document-search.d.ts +0 -44
- package/dist/lib/components/ui/media/pdf-viewer/pdf-escape.d.ts +0 -6
- package/dist/lib/components/ui/media/pdf-viewer/pdf-page-geometry.d.ts +0 -57
- package/dist/lib/components/ui/media/pdf-viewer/pdf-page-sizes.d.ts +0 -37
- package/dist/lib/components/ui/media/pdf-viewer/pdf-scroll-spy.d.ts +0 -42
- package/dist/lib/components/ui/media/pdf-viewer/pdf-text-search.d.ts +0 -25
- package/dist/lib/lib/pdf-download.d.ts +0 -35
- package/dist/lib/lib/pdf-file-name.d.ts +0 -9
- package/dist/lib/lib/pdf-source.d.ts +0 -57
- package/dist/lib/lib/print-format.utils.d.ts +0 -59
- package/dist/lib/lib/print-fraction-digits.d.ts +0 -12
- package/dist/lib/lib/print-table.utils.d.ts +0 -60
- package/dist/lib/lib/print-value.utils.d.ts +0 -40
- package/dist/lib/pdf-core/file-loader.d.ts +0 -18
- package/dist/lib/pdf-core/http.d.ts +0 -22
- package/dist/lib/pdf-core/index.d.ts +0 -11
- package/dist/lib/pdf-core/model/builders.d.ts +0 -54
- package/dist/lib/pdf-core/model/data-table.d.ts +0 -24
- package/dist/lib/pdf-core/model/index.d.ts +0 -4
- package/dist/lib/pdf-core/model/nodes.d.ts +0 -133
- package/dist/lib/pdf-core/model/theme.d.ts +0 -16
- package/dist/lib/pdf-core/model/types.d.ts +0 -108
- package/dist/lib/pdf-core/render/context.d.ts +0 -50
- package/dist/lib/pdf-core/render/document.d.ts +0 -21
- package/dist/lib/pdf-core/render/index.d.ts +0 -5
- package/dist/lib/pdf-core/render/nodes/blocks.d.ts +0 -19
- package/dist/lib/pdf-core/render/nodes/header.d.ts +0 -14
- package/dist/lib/pdf-core/render/nodes/layout.d.ts +0 -44
- package/dist/lib/pdf-core/render/nodes/table.d.ts +0 -14
- package/dist/lib/pdf-core/render/page.d.ts +0 -30
- package/dist/lib/pdf-core/render/render-node.d.ts +0 -10
- package/dist/lib/pdf-core/render/styles.d.ts +0 -303
- package/dist/packet-AYTQ26CC-CshIswP8.js +0 -3
- package/dist/pdf-download-hrKrI5_6.js +0 -153
- package/dist/pie-WAS4IAKB-CYs22y4X.js +0 -3
- package/dist/print-format.utils-B7K9qvuo.js +0 -53
- package/dist/print-fraction-digits-WtEBeztr.js +0 -5
- package/dist/radar-RG4KPBEZ-BOJKjbGv.js +0 -3
- package/dist/railroad-74A4TZTK-Dt1BmUkI.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +0 -3
- package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +0 -3
- package/dist/swimlanesDiagram-TC7HE7FX-DO3BxSlE.js +0 -28
- package/dist/treeView-Q6P3EWNA-BrJylG9N.js +0 -3
- package/dist/treemap-WGGIJYW6-DpIZuqbj.js +0 -3
- package/dist/wardley-WFR3VGLG-CbwdAAbH.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules/clsx/dist/clsx.mjs
|
|
1
|
+
//#region ../../node_modules/clsx/dist/clsx.mjs
|
|
2
2
|
function e(t) {
|
|
3
3
|
var n, r, i = "";
|
|
4
4
|
if (typeof t == "string" || typeof t == "number") i += t;
|
|
@@ -13,7 +13,7 @@ function t() {
|
|
|
13
13
|
return i;
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
|
-
//#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
16
|
+
//#region ../../node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
17
17
|
var n = (e, t) => {
|
|
18
18
|
let n = Array(e.length + t.length);
|
|
19
19
|
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as e } from "./src-
|
|
2
|
-
import { i as t } from "./chunk-ZIGJFQKS-
|
|
3
|
-
import { n } from "./chunk-Y2CYZVJY-
|
|
4
|
-
import { H as r, U as i, a, b as o, c as s, f as c, it as l, nt as u, q as d, rt as f, tt as p, v as m, w as h, y as g } from "./chunk-O7XYJQB3-
|
|
5
|
-
import { t as _ } from "./chunk-6AEJRKK7-
|
|
6
|
-
import { t as v } from "./rough.esm-
|
|
7
|
-
//#region node_modules/khroma/dist/methods/transparentize.js
|
|
1
|
+
import { t as e } from "./src-CJ8DNrI1.js";
|
|
2
|
+
import { i as t } from "./chunk-ZIGJFQKS-HDJ6e6OJ.js";
|
|
3
|
+
import { n } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
|
4
|
+
import { H as r, U as i, a, b as o, c as s, f as c, it as l, nt as u, q as d, rt as f, tt as p, v as m, w as h, y as g } from "./chunk-O7XYJQB3-C87zK8E5.js";
|
|
5
|
+
import { t as _ } from "./chunk-6AEJRKK7-DDXoGWDs.js";
|
|
6
|
+
import { t as v } from "./rough.esm-Cvc79rxE.js";
|
|
7
|
+
//#region ../../node_modules/khroma/dist/methods/transparentize.js
|
|
8
8
|
var y = (e, t) => f(e, "a", -t), b = 1e-10;
|
|
9
9
|
function x(e, t) {
|
|
10
10
|
let n = C(e), r = n.filter((t) => S(t, e)), i = 0, a = 0, o = [];
|
|
@@ -908,7 +908,7 @@ function we(e, t = {}) {
|
|
|
908
908
|
}));
|
|
909
909
|
}
|
|
910
910
|
//#endregion
|
|
911
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-UO4OBE2U.mjs
|
|
911
|
+
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-UO4OBE2U.mjs
|
|
912
912
|
var W = (function() {
|
|
913
913
|
var e = /* @__PURE__ */ n(function(e, t, n, r) {
|
|
914
914
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
package/dist/vite.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
function e() {
|
|
3
|
-
let e = /[A-Za-z_$][\w$]*\(\s*(['"])#standard-fonts\/(\w+)\1\s*\)/g;
|
|
4
|
-
return {
|
|
5
|
-
name: "nxgt-material:pdfkit-standard-fonts",
|
|
6
|
-
enforce: "pre",
|
|
7
|
-
transform(t, n) {
|
|
8
|
-
if (!n.includes("pdfkit") || !t.includes("#standard-fonts/")) return null;
|
|
9
|
-
let r = /* @__PURE__ */ new Set(), i = t.replace(e, (e, t, n) => (r.add(n), `__stdFont_${n}`));
|
|
10
|
-
return i.includes("#standard-fonts/") && this.error(`${n} still references '#standard-fonts/' after the transform — pdfkit changed how it loads its standard fonts. See the doc comment on pdfkitStandardFonts() in the /vite entry.`), {
|
|
11
|
-
code: `${[...r].map((e) => `import __stdFont_${e} from './standard-fonts/${e}.mjs';`).join("\n")}\n${i}`,
|
|
12
|
-
map: null
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
1
|
+
import { pdfkitStandardFonts as e } from "@nxgt/material-core/vite";
|
|
18
2
|
export { e as pdfkitStandardFonts };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as e } from "./src-
|
|
2
|
-
import { i as t } from "./chunk-ZIGJFQKS-
|
|
3
|
-
import { n } from "./mermaid-parser.core-
|
|
4
|
-
import { n as r } from "./chunk-Y2CYZVJY-
|
|
5
|
-
import { D as i, H as a, U as o, a as s, b as c, c as l, q as u, v as d, w as f, x as p, y as m } from "./chunk-O7XYJQB3-
|
|
6
|
-
import { t as h } from "./chunk-6AEJRKK7-
|
|
7
|
-
import { t as g } from "./chunk-JWPE2WC7-
|
|
8
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-VNRHLVJA.mjs
|
|
1
|
+
import { n as e } from "./src-CJ8DNrI1.js";
|
|
2
|
+
import { i as t } from "./chunk-ZIGJFQKS-HDJ6e6OJ.js";
|
|
3
|
+
import { n } from "./mermaid-parser.core-BXD_TD1T.js";
|
|
4
|
+
import { n as r } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
|
5
|
+
import { D as i, H as a, U as o, a as s, b as c, c as l, q as u, v as d, w as f, x as p, y as m } from "./chunk-O7XYJQB3-C87zK8E5.js";
|
|
6
|
+
import { t as h } from "./chunk-6AEJRKK7-DDXoGWDs.js";
|
|
7
|
+
import { t as g } from "./chunk-JWPE2WC7-BGVSGRTC.js";
|
|
8
|
+
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-VNRHLVJA.mjs
|
|
9
9
|
var _ = /* @__PURE__ */ r((e, t) => {
|
|
10
10
|
let n = e <= 1 ? e * 100 : e;
|
|
11
11
|
if (n < 0 || n > 100) throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as r } from "./src-
|
|
3
|
-
import { i } from "./chunk-ZIGJFQKS-
|
|
4
|
-
import { n as a } from "./chunk-Y2CYZVJY-
|
|
5
|
-
import { D as o, H as s, U as c, a as l, b as u, c as d, f, q as p, v as m, w as h, y as g, z as _ } from "./chunk-O7XYJQB3-
|
|
6
|
-
import { t as v } from "./chunk-6AEJRKK7-
|
|
7
|
-
import "./chunk-742MDFTN-
|
|
8
|
-
import { t as y } from "./chunk-MBY4JIJT-
|
|
9
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PMCCYNJV.mjs
|
|
1
|
+
import { at as e, rt as t, st as n } from "./components-CRrswCsD.js";
|
|
2
|
+
import { n as r } from "./src-CJ8DNrI1.js";
|
|
3
|
+
import { i } from "./chunk-ZIGJFQKS-HDJ6e6OJ.js";
|
|
4
|
+
import { n as a } from "./chunk-Y2CYZVJY-BAad7w_K.js";
|
|
5
|
+
import { D as o, H as s, U as c, a as l, b as u, c as d, f, q as p, v as m, w as h, y as g, z as _ } from "./chunk-O7XYJQB3-C87zK8E5.js";
|
|
6
|
+
import { t as v } from "./chunk-6AEJRKK7-DDXoGWDs.js";
|
|
7
|
+
import "./chunk-742MDFTN-nG_ROTnT.js";
|
|
8
|
+
import { t as y } from "./chunk-MBY4JIJT-IA2XBafa.js";
|
|
9
|
+
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PMCCYNJV.mjs
|
|
10
10
|
var b = (function() {
|
|
11
11
|
var e = /* @__PURE__ */ a(function(e, t, n, r) {
|
|
12
12
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
@@ -1492,14 +1492,14 @@ var T = class {
|
|
|
1492
1492
|
static {
|
|
1493
1493
|
a(this, "BandAxis");
|
|
1494
1494
|
}
|
|
1495
|
-
constructor(
|
|
1496
|
-
super(
|
|
1495
|
+
constructor(t, n, r, i, a) {
|
|
1496
|
+
super(t, i, a, n), this.categories = r, this.scale = e().domain(this.categories).range(this.getRange());
|
|
1497
1497
|
}
|
|
1498
1498
|
setRange(e) {
|
|
1499
1499
|
super.setRange(e);
|
|
1500
1500
|
}
|
|
1501
1501
|
recalculateScale() {
|
|
1502
|
-
this.scale =
|
|
1502
|
+
this.scale = e().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5), r.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
|
|
1503
1503
|
}
|
|
1504
1504
|
getTickValues() {
|
|
1505
1505
|
return this.categories;
|
|
@@ -1670,34 +1670,34 @@ var ie = class {
|
|
|
1670
1670
|
a(this, "LinePlot");
|
|
1671
1671
|
}
|
|
1672
1672
|
getDrawableElement() {
|
|
1673
|
-
let
|
|
1674
|
-
if (
|
|
1673
|
+
let e = this.plotData.data.map((e) => [this.xAxis.getScaleValue(e[0]), this.yAxis.getScaleValue(e[1])]), t;
|
|
1674
|
+
if (t = this.orientation === "horizontal" ? n().y((e) => e[0]).x((e) => e[1])(e) : n().x((e) => e[0]).y((e) => e[1])(e), !t) return [];
|
|
1675
1675
|
let r = [{
|
|
1676
1676
|
groupTexts: ["plot", `line-plot-${this.plotIndex}`],
|
|
1677
1677
|
type: "path",
|
|
1678
1678
|
data: [{
|
|
1679
|
-
path:
|
|
1679
|
+
path: t,
|
|
1680
1680
|
strokeFill: this.plotData.strokeFill,
|
|
1681
1681
|
strokeWidth: this.plotData.strokeWidth
|
|
1682
1682
|
}]
|
|
1683
1683
|
}];
|
|
1684
1684
|
if (this.plotData.pointLabels && this.plotData.pointLabels.length > 0) {
|
|
1685
|
-
let
|
|
1686
|
-
for (let [n, [r, i]] of
|
|
1687
|
-
let
|
|
1688
|
-
|
|
1685
|
+
let t = [];
|
|
1686
|
+
for (let [n, [r, i]] of e.entries()) {
|
|
1687
|
+
let e = this.plotData.pointLabels[n];
|
|
1688
|
+
e && (this.orientation === "horizontal" ? t.push({
|
|
1689
1689
|
x: i + 10,
|
|
1690
1690
|
y: r,
|
|
1691
|
-
text:
|
|
1691
|
+
text: e,
|
|
1692
1692
|
fill: this.plotData.strokeFill,
|
|
1693
1693
|
verticalPos: "middle",
|
|
1694
1694
|
horizontalPos: "left",
|
|
1695
1695
|
fontSize: 12,
|
|
1696
1696
|
rotation: 0
|
|
1697
|
-
}) :
|
|
1697
|
+
}) : t.push({
|
|
1698
1698
|
x: r,
|
|
1699
1699
|
y: i - 10,
|
|
1700
|
-
text:
|
|
1700
|
+
text: e,
|
|
1701
1701
|
fill: this.plotData.strokeFill,
|
|
1702
1702
|
verticalPos: "middle",
|
|
1703
1703
|
horizontalPos: "center",
|
|
@@ -1705,14 +1705,14 @@ var ie = class {
|
|
|
1705
1705
|
rotation: 0
|
|
1706
1706
|
}));
|
|
1707
1707
|
}
|
|
1708
|
-
|
|
1708
|
+
t.length > 0 && r.push({
|
|
1709
1709
|
groupTexts: [
|
|
1710
1710
|
"plot",
|
|
1711
1711
|
`line-plot-${this.plotIndex}`,
|
|
1712
1712
|
"labels"
|
|
1713
1713
|
],
|
|
1714
1714
|
type: "text",
|
|
1715
|
-
data:
|
|
1715
|
+
data: t
|
|
1716
1716
|
});
|
|
1717
1717
|
}
|
|
1718
1718
|
return r;
|
|
@@ -293,6 +293,8 @@ editor's `@` list does).
|
|
|
293
293
|

|
|
294
294
|
|
|
295
295
|
Tiptap editor with toolbar, bubble menu, slash commands, mentions, tables, emoji and images.
|
|
296
|
+
Built on tiptap 3.31: an app that also installs `@tiptap/*` should use `^3.31.3`
|
|
297
|
+
(see [troubleshooting](../troubleshooting.md#types-have-separate-declarations-of-a-private-property-on-a-richtexteditor-onupdate-or-oncreate-handler)).
|
|
296
298
|
|
|
297
299
|
```tsx
|
|
298
300
|
import { useState } from 'react';
|
package/docs/getting-started.md
CHANGED
|
@@ -312,3 +312,23 @@ packages' CSS yourself to make up for it, drop the import
|
|
|
312
312
|
(`externalLinkTarget="_blank"`), rather than replacing your app. Pass
|
|
313
313
|
`externalLinkTarget="_self"` for the previous behaviour
|
|
314
314
|
([details](troubleshooting.md#a-link-in-a-pdf-replaces-the-page-the-reader-is-on)).
|
|
315
|
+
|
|
316
|
+
### 2.3.0: `@nxgt/material-core` comes with it
|
|
317
|
+
|
|
318
|
+
The PDF model and renderer, the print formatters and the other
|
|
319
|
+
framework-free helpers now live in `@nxgt/material-core`, which
|
|
320
|
+
`@nxgt/material` depends on and re-exports at the same subpaths. Nothing
|
|
321
|
+
changes in your imports or your `package.json`: your install adds
|
|
322
|
+
`@nxgt/material-core` as a dependency.
|
|
323
|
+
|
|
324
|
+
The one thing to check: a server bundle that inlines `@nxgt/material`
|
|
325
|
+
(`ssr.noExternal`, or a bundle step with an `--external` list), or that runs
|
|
326
|
+
without `node_modules`, must include `@nxgt/material-core` as well
|
|
327
|
+
([details](troubleshooting.md#cannot-find-package-nxgtmaterial-core)):
|
|
328
|
+
|
|
329
|
+
```ts
|
|
330
|
+
// vite.config.ts
|
|
331
|
+
export default defineConfig({
|
|
332
|
+
ssr: { noExternal: ['@nxgt/material', '@nxgt/material-core'] },
|
|
333
|
+
});
|
|
334
|
+
```
|
package/docs/guides/printing.md
CHANGED
|
@@ -1253,7 +1253,7 @@ it (`ssr.noExternal`), choose by one fact: does the runtime image keep a
|
|
|
1253
1253
|
|
|
1254
1254
|
| Runtime image | What to do |
|
|
1255
1255
|
| --- | --- |
|
|
1256
|
-
| Keeps `node_modules` | Leave the library external: `@nxgt/material` **out** of `ssr.noExternal`, and `--external @nxgt/material` in the bundle step. pdfkit then loads from `node_modules` as designed, and ~12 MB of it stays out of the artifact |
|
|
1256
|
+
| Keeps `node_modules` | Leave the library external: `@nxgt/material` and `@nxgt/material-core` **out** of `ssr.noExternal`, and `--external @nxgt/material --external @nxgt/material-core` in the bundle step. pdfkit then loads from `node_modules` as designed, and ~12 MB of it stays out of the artifact |
|
|
1257
1257
|
| Ships the bundle alone | Add `pdfkitStandardFonts()` from `@nxgt/material/vite`, **first** in `plugins`. It rewrites those calls into static imports, so the font data is inlined and the artifact is self-contained |
|
|
1258
1258
|
|
|
1259
1259
|
```ts
|
|
@@ -1264,10 +1264,14 @@ import { defineConfig } from 'vite';
|
|
|
1264
1264
|
|
|
1265
1265
|
export default defineConfig({
|
|
1266
1266
|
plugins: [pdfkitStandardFonts(), reactRouter()],
|
|
1267
|
-
ssr: { noExternal: ['@nxgt/material'] },
|
|
1267
|
+
ssr: { noExternal: ['@nxgt/material', '@nxgt/material-core'] },
|
|
1268
1268
|
});
|
|
1269
1269
|
```
|
|
1270
1270
|
|
|
1271
|
+
`@nxgt/material-core` goes with it: the library's built code imports it by
|
|
1272
|
+
name, so a bundle that inlines one and not the other fails at boot with
|
|
1273
|
+
[`Cannot find package '@nxgt/material-core'`](../troubleshooting.md#cannot-find-package-nxgtmaterial-core).
|
|
1274
|
+
|
|
1271
1275
|
```ts
|
|
1272
1276
|
function pdfkitStandardFonts(): import('vite').Plugin; // enforce: 'pre'
|
|
1273
1277
|
```
|
package/docs/guides/ssr.md
CHANGED
|
@@ -11,10 +11,15 @@ The usual setup bundles the package into the server build:
|
|
|
11
11
|
import { defineConfig } from 'vite';
|
|
12
12
|
|
|
13
13
|
export default defineConfig({
|
|
14
|
-
ssr: { noExternal: ['@nxgt/material'] },
|
|
14
|
+
ssr: { noExternal: ['@nxgt/material', '@nxgt/material-core'] },
|
|
15
15
|
});
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
`@nxgt/material-core` is a dependency of this package that its built code
|
|
19
|
+
imports by name: bundle it together with `@nxgt/material`, or a server run
|
|
20
|
+
without it in `node_modules` fails at boot with
|
|
21
|
+
[`Cannot find package '@nxgt/material-core'`](../troubleshooting.md#cannot-find-package-nxgtmaterial-core).
|
|
22
|
+
|
|
18
23
|
With that, **every module the barrels reach is evaluated when the server
|
|
19
24
|
boots**, whether or not a page renders the component. A browser global touched
|
|
20
25
|
at import time would crash the server before it answers anything.
|
|
@@ -108,7 +113,8 @@ State the server cannot know must be resolved the same way on both sides:
|
|
|
108
113
|
| --- | --- | --- |
|
|
109
114
|
| `ReferenceError: window is not defined` at server boot, or a blank page | `@nxgt/material/map` (or another browser-only module) imported statically by server code | `clientOnly(lazy(() => import('./map-view')))` ([maps](maps.md#browser-only)) |
|
|
110
115
|
| `ReferenceError: DOMMatrix is not defined` at server boot | a static `react-pdf` / `pdfjs-dist` import in your own code | `import()` + `clientOnly` |
|
|
111
|
-
| Built server answers nothing on every route; log says `Cannot find module '#standard-fonts/Helvetica'` | `@nxgt/material/print` bundled into the server | Leave the library external, or `pdfkitStandardFonts()` ([printing](printing.md#bundling-print-into-an-ssr-server)) |
|
|
116
|
+
| Built server answers nothing on every route; log says `Cannot find module '#standard-fonts/Helvetica'` | `@nxgt/material/print` bundled into the server | Leave the library and `@nxgt/material-core` external, or `pdfkitStandardFonts()` ([printing](printing.md#bundling-print-into-an-ssr-server)) |
|
|
117
|
+
| Built server fails at boot with `Cannot find package '@nxgt/material-core'` | the library bundled into the server, its core left out | Add `@nxgt/material-core` wherever `@nxgt/material` is in `ssr.noExternal` or `--external` ([troubleshooting](../troubleshooting.md#cannot-find-package-nxgtmaterial-core)) |
|
|
112
118
|
| Hydration mismatch on every page | an `<svg><title>` in your markup | `role="img"` + `aria-label` |
|
|
113
119
|
| Attribute hydration warning on a page with a `TimeField`, before 2.2.0 | the server rendered the phone trigger, a desktop the popover one | upgrade ([troubleshooting](../troubleshooting.md#a-tree-hydrated-but-some-attributes-of-the-server-rendered-html-didnt-match-the-client-properties)) |
|
|
114
120
|
| Server log: `` `useMedia` When server side rendering, defaultState should be defined… ``, and a hydration mismatch on a phone (on a desktop, for `Stepper`), before 2.2.0 | a responsive component asked for the screen width with no server answer | upgrade ([troubleshooting](../troubleshooting.md#usemedia-when-server-side-rendering-defaultstate-should-be-defined-to-prevent-a-hydration-mismatches)) |
|
package/docs/troubleshooting.md
CHANGED
|
@@ -13,6 +13,7 @@ words in your error.
|
|
|
13
13
|
- [`Cannot find package 'leaflet'`](#cannot-find-package-leaflet)
|
|
14
14
|
- [`Invalid hook call. Hooks can only be called inside of the body of a function component`](#invalid-hook-call-hooks-can-only-be-called-inside-of-the-body-of-a-function-component)
|
|
15
15
|
- [`is missing the following properties from type 'Pick<any, "variant" | "color">'`](#is-missing-the-following-properties-from-type-pickany-variant--color)
|
|
16
|
+
- [`Types have separate declarations of a private property` on a `RichTextEditor` `onUpdate` or `onCreate` handler](#types-have-separate-declarations-of-a-private-property-on-a-richtexteditor-onupdate-or-oncreate-handler)
|
|
16
17
|
|
|
17
18
|
**Styles & assets**
|
|
18
19
|
|
|
@@ -28,6 +29,7 @@ words in your error.
|
|
|
28
29
|
- [`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties` (a `TimeField`)](#a-tree-hydrated-but-some-attributes-of-the-server-rendered-html-didnt-match-the-client-properties)
|
|
29
30
|
- [`` `useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches. ``](#usemedia-when-server-side-rendering-defaultstate-should-be-defined-to-prevent-a-hydration-mismatches)
|
|
30
31
|
- [`useMatches must be used within a data router`](#usematches-must-be-used-within-a-data-router)
|
|
32
|
+
- [`Cannot find package '@nxgt/material-core'`](#cannot-find-package-nxgtmaterial-core)
|
|
31
33
|
|
|
32
34
|
**Printing**
|
|
33
35
|
|
|
@@ -227,6 +229,34 @@ now fail if any declaration file imports through `node_modules/`:
|
|
|
227
229
|
bun run build && bun run verify:dts && bun pm pack
|
|
228
230
|
```
|
|
229
231
|
|
|
232
|
+
### `Types have separate declarations of a private property` on a `RichTextEditor` `onUpdate` or `onCreate` handler
|
|
233
|
+
|
|
234
|
+
**When:** type-checking an app that installs `@tiptap/*` itself at a version
|
|
235
|
+
below 3.31.3 (for example `@tiptap/react` 3.29), on an `onUpdate` or
|
|
236
|
+
`onCreate` handler whose argument is annotated with the app's own `Editor`
|
|
237
|
+
type. The editor works at runtime.
|
|
238
|
+
**Why:** `@nxgt/material` depends on the tiptap packages at `^3.31.3`. An app
|
|
239
|
+
pinned lower gets a second copy, nested under `@nxgt/material`. The editor
|
|
240
|
+
code is bundled, so nothing breaks at runtime, but the `RichTextEditor` props
|
|
241
|
+
are typed with the nested copy's `Editor`, and TypeScript does not treat two
|
|
242
|
+
declarations of a class with private members as the same type.
|
|
243
|
+
**Fix:** raise the app's tiptap packages to `^3.31.3`, so one copy is
|
|
244
|
+
installed, or leave the handler's argument unannotated and let the prop type
|
|
245
|
+
it:
|
|
246
|
+
|
|
247
|
+
```sh
|
|
248
|
+
# and every other @tiptap/* your app lists (starter-kit, extensions)
|
|
249
|
+
bun add @tiptap/react@^3.31.3 @tiptap/core@^3.31.3 @tiptap/pm@^3.31.3
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
```tsx
|
|
253
|
+
// Before: the app's own Editor, from its own @tiptap/react
|
|
254
|
+
<RichTextEditor onUpdate={({ editor }: { editor: Editor }) => save(editor.getHTML())} />
|
|
255
|
+
|
|
256
|
+
// After: typed by RichTextEditor
|
|
257
|
+
<RichTextEditor onUpdate={({ editor }) => save(editor.getHTML())} />
|
|
258
|
+
```
|
|
259
|
+
|
|
230
260
|
## Styles & assets
|
|
231
261
|
|
|
232
262
|
### Components render unstyled, with no error
|
|
@@ -428,6 +458,30 @@ const router = createBrowserRouter(routes);
|
|
|
428
458
|
|
|
429
459
|
Check `bun pm ls --all | grep ' react-router@'` lists one version.
|
|
430
460
|
|
|
461
|
+
### `Cannot find package '@nxgt/material-core'`
|
|
462
|
+
|
|
463
|
+
**When:** a built SSR server fails at boot, before it answers anything. Bun
|
|
464
|
+
prints `Cannot find module '@nxgt/material-core'` (or one of its subpaths),
|
|
465
|
+
for the same cause.
|
|
466
|
+
**Why:** `@nxgt/material` depends on `@nxgt/material-core` and its built code
|
|
467
|
+
imports it by name. A server that inlines `@nxgt/material` (`ssr.noExternal`,
|
|
468
|
+
or a bundle step that inlines all but an `--external` list) but not its core
|
|
469
|
+
keeps that import, and a runtime without `node_modules` (or with a pruned
|
|
470
|
+
one that holds only your app's direct dependencies) cannot resolve it.
|
|
471
|
+
**Fix:** treat the two as one. Bundle both:
|
|
472
|
+
|
|
473
|
+
```ts
|
|
474
|
+
// vite.config.ts
|
|
475
|
+
import { defineConfig } from 'vite';
|
|
476
|
+
|
|
477
|
+
export default defineConfig({
|
|
478
|
+
ssr: { noExternal: ['@nxgt/material', '@nxgt/material-core'] },
|
|
479
|
+
});
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
or leave both external, with a `node_modules` that keeps `@nxgt/material`'s
|
|
483
|
+
dependencies: `--external @nxgt/material --external @nxgt/material-core`.
|
|
484
|
+
|
|
431
485
|
## Printing
|
|
432
486
|
|
|
433
487
|
### `Cannot find module '#standard-fonts/Helvetica'`
|
|
@@ -445,8 +499,9 @@ directory and fails.
|
|
|
445
499
|
|
|
446
500
|
```ts
|
|
447
501
|
// Image keeps node_modules: leave the library external.
|
|
448
|
-
// vite.config.ts: keep '@nxgt/material' OUT of
|
|
449
|
-
// and pass `--external @nxgt/material
|
|
502
|
+
// vite.config.ts: keep '@nxgt/material' and '@nxgt/material-core' OUT of
|
|
503
|
+
// ssr.noExternal, and pass `--external @nxgt/material
|
|
504
|
+
// --external @nxgt/material-core` to the bundle step.
|
|
450
505
|
|
|
451
506
|
// Image ships the bundle alone: inline the fonts.
|
|
452
507
|
import { pdfkitStandardFonts } from '@nxgt/material/vite';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxgt/material",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "stevegires@gmail.com"
|
|
@@ -90,17 +90,15 @@
|
|
|
90
90
|
"scripts": {
|
|
91
91
|
"dev": "bun storybook",
|
|
92
92
|
"build": "tsc -b && vite build",
|
|
93
|
-
"postbuild": "bun scripts/copy-styles.ts && bun run verify:ssr && bun run verify:dts",
|
|
93
|
+
"postbuild": "bun ../../scripts/copy-styles.ts && bun run verify:ssr && bun run verify:dts",
|
|
94
94
|
"prepack": "bun run verify:dts",
|
|
95
95
|
"storybook": "storybook dev -p 6006",
|
|
96
96
|
"build-storybook": "storybook build",
|
|
97
97
|
"test": "vitest run --project unit",
|
|
98
|
-
"
|
|
99
|
-
"changeset:version": "changeset version",
|
|
100
|
-
"changeset:publish": "bun run build && bun run scripts/publish.ts",
|
|
101
|
-
"changeset:status": "changeset status --since=origin/develop",
|
|
98
|
+
"test:scripts": "bun test ./scripts/",
|
|
102
99
|
"shadcn:add": "bunx --bun shadcn@latest add",
|
|
103
100
|
"tsc": "tsc -b",
|
|
101
|
+
"typecheck": "tsc -b",
|
|
104
102
|
"check": "biome check --write",
|
|
105
103
|
"format": "biome format --write",
|
|
106
104
|
"lint": "biome lint --write",
|
|
@@ -110,6 +108,7 @@
|
|
|
110
108
|
"docs:previews": "vitest run --project previews"
|
|
111
109
|
},
|
|
112
110
|
"dependencies": {
|
|
111
|
+
"@nxgt/material-core": "^0.1.0",
|
|
113
112
|
"@base-ui/react": "^1.6.0",
|
|
114
113
|
"@dnd-kit/core": "^6.3.1",
|
|
115
114
|
"@dnd-kit/sortable": "^10.0.0",
|
|
@@ -126,30 +125,30 @@
|
|
|
126
125
|
"@nivo/radar": "^0.99.0",
|
|
127
126
|
"@nivo/scatterplot": "^0.99.0",
|
|
128
127
|
"@nivo/theming": "^0.99.0",
|
|
129
|
-
"@tiptap/extension-character-count": "^3.
|
|
130
|
-
"@tiptap/extension-code-block-lowlight": "^3.
|
|
131
|
-
"@tiptap/extension-emoji": "^3.
|
|
132
|
-
"@tiptap/extension-focus": "^3.
|
|
133
|
-
"@tiptap/extension-font-family": "^3.
|
|
134
|
-
"@tiptap/extension-highlight": "^3.
|
|
135
|
-
"@tiptap/extension-image": "^3.
|
|
136
|
-
"@tiptap/extension-list": "^3.
|
|
137
|
-
"@tiptap/extension-mention": "^3.
|
|
138
|
-
"@tiptap/extension-placeholder": "^3.
|
|
139
|
-
"@tiptap/extension-subscript": "^3.
|
|
140
|
-
"@tiptap/extension-superscript": "^3.
|
|
141
|
-
"@tiptap/extension-table": "^3.
|
|
142
|
-
"@tiptap/extension-table-cell": "^3.
|
|
143
|
-
"@tiptap/extension-table-header": "^3.
|
|
144
|
-
"@tiptap/extension-table-row": "^3.
|
|
145
|
-
"@tiptap/extension-text-align": "^3.
|
|
146
|
-
"@tiptap/extension-text-style": "^3.
|
|
147
|
-
"@tiptap/extension-typography": "^3.
|
|
148
|
-
"@tiptap/extension-youtube": "^3.
|
|
149
|
-
"@tiptap/extensions": "^3.
|
|
150
|
-
"@tiptap/pm": "^3.
|
|
151
|
-
"@tiptap/react": "^3.
|
|
152
|
-
"@tiptap/starter-kit": "^3.
|
|
128
|
+
"@tiptap/extension-character-count": "^3.31.3",
|
|
129
|
+
"@tiptap/extension-code-block-lowlight": "^3.31.3",
|
|
130
|
+
"@tiptap/extension-emoji": "^3.31.3",
|
|
131
|
+
"@tiptap/extension-focus": "^3.31.3",
|
|
132
|
+
"@tiptap/extension-font-family": "^3.31.3",
|
|
133
|
+
"@tiptap/extension-highlight": "^3.31.3",
|
|
134
|
+
"@tiptap/extension-image": "^3.31.3",
|
|
135
|
+
"@tiptap/extension-list": "^3.31.3",
|
|
136
|
+
"@tiptap/extension-mention": "^3.31.3",
|
|
137
|
+
"@tiptap/extension-placeholder": "^3.31.3",
|
|
138
|
+
"@tiptap/extension-subscript": "^3.31.3",
|
|
139
|
+
"@tiptap/extension-superscript": "^3.31.3",
|
|
140
|
+
"@tiptap/extension-table": "^3.31.3",
|
|
141
|
+
"@tiptap/extension-table-cell": "^3.31.3",
|
|
142
|
+
"@tiptap/extension-table-header": "^3.31.3",
|
|
143
|
+
"@tiptap/extension-table-row": "^3.31.3",
|
|
144
|
+
"@tiptap/extension-text-align": "^3.31.3",
|
|
145
|
+
"@tiptap/extension-text-style": "^3.31.3",
|
|
146
|
+
"@tiptap/extension-typography": "^3.31.3",
|
|
147
|
+
"@tiptap/extension-youtube": "^3.31.3",
|
|
148
|
+
"@tiptap/extensions": "^3.31.3",
|
|
149
|
+
"@tiptap/pm": "^3.31.3",
|
|
150
|
+
"@tiptap/react": "^3.31.3",
|
|
151
|
+
"@tiptap/starter-kit": "^3.31.3",
|
|
153
152
|
"@uiw/color-convert": "^2.10.3",
|
|
154
153
|
"@uiw/react-color-chrome": "^2.10.3",
|
|
155
154
|
"@uiw/react-color-github": "^2.10.3",
|
|
@@ -193,10 +192,8 @@
|
|
|
193
192
|
},
|
|
194
193
|
"devDependencies": {
|
|
195
194
|
"@adamscybot/react-leaflet-component-marker": "^2.0.3",
|
|
196
|
-
"@biomejs/biome": "2.5.13",
|
|
197
|
-
"@changesets/changelog-github": "^1.0.1",
|
|
198
|
-
"@changesets/cli": "^3.0.1",
|
|
199
195
|
"@chromatic-com/storybook": "^5.3.1",
|
|
196
|
+
"@nxgt/material-testing": "0.0.0",
|
|
200
197
|
"@nxgt/playwright": "^0.1.0",
|
|
201
198
|
"@react-leaflet/core": "^3.0.0",
|
|
202
199
|
"@react-pdf/renderer": "^4.9.0",
|
package/dist/channel-CUIVvEUM.js
DELETED