@aglyn/shared-ui-jsx 1.0.0-beta.143
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/LICENSE +201 -0
- package/README.md +7 -0
- package/package.json +63 -0
- package/src/index.d.ts +48 -0
- package/src/index.js +179 -0
- package/src/index.js.map +1 -0
- package/src/lib/components/aglyn-text.d.ts +86 -0
- package/src/lib/components/aglyn-text.js +44 -0
- package/src/lib/components/aglyn-text.js.map +1 -0
- package/src/lib/components/app-link.d.ts +74 -0
- package/src/lib/components/app-link.js +139 -0
- package/src/lib/components/app-link.js.map +1 -0
- package/src/lib/components/aspect-ratio.d.ts +59 -0
- package/src/lib/components/aspect-ratio.js +153 -0
- package/src/lib/components/aspect-ratio.js.map +1 -0
- package/src/lib/components/background-image.component.d.ts +30 -0
- package/src/lib/components/background-image.component.js +42 -0
- package/src/lib/components/background-image.component.js.map +1 -0
- package/src/lib/components/card-columns.d.ts +86 -0
- package/src/lib/components/card-columns.js +148 -0
- package/src/lib/components/card-columns.js.map +1 -0
- package/src/lib/components/card-display.d.ts +36 -0
- package/src/lib/components/card-display.js +158 -0
- package/src/lib/components/card-display.js.map +1 -0
- package/src/lib/components/card-list-item.d.ts +35 -0
- package/src/lib/components/card-list-item.js +137 -0
- package/src/lib/components/card-list-item.js.map +1 -0
- package/src/lib/components/children-function-prop.d.ts +25 -0
- package/src/lib/components/children-function-prop.js +29 -0
- package/src/lib/components/children-function-prop.js.map +1 -0
- package/src/lib/components/confirmation-provider.component.d.ts +19 -0
- package/src/lib/components/confirmation-provider.component.js +83 -0
- package/src/lib/components/confirmation-provider.component.js.map +1 -0
- package/src/lib/components/container.d.ts +25 -0
- package/src/lib/components/container.js +62 -0
- package/src/lib/components/container.js.map +1 -0
- package/src/lib/components/data-table.component.d.ts +54 -0
- package/src/lib/components/data-table.component.js +211 -0
- package/src/lib/components/data-table.component.js.map +1 -0
- package/src/lib/components/dialog-confirm.d.ts +36 -0
- package/src/lib/components/dialog-confirm.js +74 -0
- package/src/lib/components/dialog-confirm.js.map +1 -0
- package/src/lib/components/ellipsis-pulse.component.d.ts +22 -0
- package/src/lib/components/ellipsis-pulse.component.js +51 -0
- package/src/lib/components/ellipsis-pulse.component.js.map +1 -0
- package/src/lib/components/emotion-cache-provider.d.ts +31 -0
- package/src/lib/components/emotion-cache-provider.js +40 -0
- package/src/lib/components/emotion-cache-provider.js.map +1 -0
- package/src/lib/components/empty-state.component.d.ts +63 -0
- package/src/lib/components/empty-state.component.js +214 -0
- package/src/lib/components/empty-state.component.js.map +1 -0
- package/src/lib/components/error-boundary.component.d.ts +28 -0
- package/src/lib/components/error-boundary.component.js +86 -0
- package/src/lib/components/error-boundary.component.js.map +1 -0
- package/src/lib/components/grid-buttons.d.ts +26 -0
- package/src/lib/components/grid-buttons.js +45 -0
- package/src/lib/components/grid-buttons.js.map +1 -0
- package/src/lib/components/grid-items.d.ts +103 -0
- package/src/lib/components/grid-items.js +336 -0
- package/src/lib/components/grid-items.js.map +1 -0
- package/src/lib/components/grid-list.d.ts +37 -0
- package/src/lib/components/grid-list.js +156 -0
- package/src/lib/components/grid-list.js.map +1 -0
- package/src/lib/components/help-tip.component.d.ts +30 -0
- package/src/lib/components/help-tip.component.js +139 -0
- package/src/lib/components/help-tip.component.js.map +1 -0
- package/src/lib/components/link-navigation-reporter.d.ts +24 -0
- package/src/lib/components/link-navigation-reporter.js +64 -0
- package/src/lib/components/link-navigation-reporter.js.map +1 -0
- package/src/lib/components/list-pagination.component.d.ts +57 -0
- package/src/lib/components/list-pagination.component.js +90 -0
- package/src/lib/components/list-pagination.component.js.map +1 -0
- package/src/lib/components/list-table.component.d.ts +155 -0
- package/src/lib/components/list-table.component.js +369 -0
- package/src/lib/components/list-table.component.js.map +1 -0
- package/src/lib/components/loading-layout-app.component.d.ts +35 -0
- package/src/lib/components/loading-layout-app.component.js +42 -0
- package/src/lib/components/loading-layout-app.component.js.map +1 -0
- package/src/lib/components/loading-modal-overlay.d.ts +30 -0
- package/src/lib/components/loading-modal-overlay.js +156 -0
- package/src/lib/components/loading-modal-overlay.js.map +1 -0
- package/src/lib/components/loading-modal.d.ts +19 -0
- package/src/lib/components/loading-modal.js +113 -0
- package/src/lib/components/loading-modal.js.map +1 -0
- package/src/lib/components/loading-text.component.d.ts +21 -0
- package/src/lib/components/loading-text.component.js +40 -0
- package/src/lib/components/loading-text.component.js.map +1 -0
- package/src/lib/components/mdi-icon/index.d.ts +2 -0
- package/src/lib/components/mdi-icon/index.js +4 -0
- package/src/lib/components/mdi-icon/index.js.map +1 -0
- package/src/lib/components/mdi-icon/md-icon-stack.d.ts +31 -0
- package/src/lib/components/mdi-icon/md-icon-stack.js +101 -0
- package/src/lib/components/mdi-icon/md-icon-stack.js.map +1 -0
- package/src/lib/components/mdi-icon/md-icon.d.ts +32 -0
- package/src/lib/components/mdi-icon/md-icon.js +147 -0
- package/src/lib/components/mdi-icon/md-icon.js.map +1 -0
- package/src/lib/components/mdi-icon/mdi-icon-from-id.d.ts +23 -0
- package/src/lib/components/mdi-icon/mdi-icon-from-id.js +35 -0
- package/src/lib/components/mdi-icon/mdi-icon-from-id.js.map +1 -0
- package/src/lib/components/mdi-icon/mdi-icon.d.ts +24 -0
- package/src/lib/components/mdi-icon/mdi-icon.js +46 -0
- package/src/lib/components/mdi-icon/mdi-icon.js.map +1 -0
- package/src/lib/components/measured-figures.component.d.ts +64 -0
- package/src/lib/components/measured-figures.component.js +161 -0
- package/src/lib/components/measured-figures.component.js.map +1 -0
- package/src/lib/components/menu.d.ts +45 -0
- package/src/lib/components/menu.js +229 -0
- package/src/lib/components/menu.js.map +1 -0
- package/src/lib/components/mui-shadow-dom.d.ts +38 -0
- package/src/lib/components/mui-shadow-dom.js +161 -0
- package/src/lib/components/mui-shadow-dom.js.map +1 -0
- package/src/lib/components/navigation-drawer.component.d.ts +31 -0
- package/src/lib/components/navigation-drawer.component.js +76 -0
- package/src/lib/components/navigation-drawer.component.js.map +1 -0
- package/src/lib/components/navigation-intent.d.ts +18 -0
- package/src/lib/components/navigation-intent.js +56 -0
- package/src/lib/components/navigation-intent.js.map +1 -0
- package/src/lib/components/navigation-view/index.d.ts +18 -0
- package/src/lib/components/navigation-view/index.js +19 -0
- package/src/lib/components/navigation-view/index.js.map +1 -0
- package/src/lib/components/navigation-view/navigation-view.d.ts +35 -0
- package/src/lib/components/navigation-view/navigation-view.js +175 -0
- package/src/lib/components/navigation-view/navigation-view.js.map +1 -0
- package/src/lib/components/next-link.d.ts +27 -0
- package/src/lib/components/next-link.js +88 -0
- package/src/lib/components/next-link.js.map +1 -0
- package/src/lib/components/popper-styled.component.d.ts +25 -0
- package/src/lib/components/popper-styled.component.js +129 -0
- package/src/lib/components/popper-styled.component.js.map +1 -0
- package/src/lib/components/quota-readout.component.d.ts +69 -0
- package/src/lib/components/quota-readout.component.js +52 -0
- package/src/lib/components/quota-readout.component.js.map +1 -0
- package/src/lib/components/resizeable-stack.d.ts +4 -0
- package/src/lib/components/resizeable-stack.js +23 -0
- package/src/lib/components/resizeable-stack.js.map +1 -0
- package/src/lib/components/row-actions-menu.component.d.ts +53 -0
- package/src/lib/components/row-actions-menu.component.js +132 -0
- package/src/lib/components/row-actions-menu.component.js.map +1 -0
- package/src/lib/components/ruler-guides.component.d.ts +35 -0
- package/src/lib/components/ruler-guides.component.js +166 -0
- package/src/lib/components/ruler-guides.component.js.map +1 -0
- package/src/lib/components/sandbox-frame.d.ts +42 -0
- package/src/lib/components/sandbox-frame.js +122 -0
- package/src/lib/components/sandbox-frame.js.map +1 -0
- package/src/lib/components/scroll-reaction.d.ts +59 -0
- package/src/lib/components/scroll-reaction.js +43 -0
- package/src/lib/components/scroll-reaction.js.map +1 -0
- package/src/lib/components/scroll-table.component.d.ts +124 -0
- package/src/lib/components/scroll-table.component.js +103 -0
- package/src/lib/components/scroll-table.component.js.map +1 -0
- package/src/lib/components/shadow-dom/index.d.ts +18 -0
- package/src/lib/components/shadow-dom/index.js +19 -0
- package/src/lib/components/shadow-dom/index.js.map +1 -0
- package/src/lib/components/shadow-dom/shadow-dom.d.ts +42 -0
- package/src/lib/components/shadow-dom/shadow-dom.js +123 -0
- package/src/lib/components/shadow-dom/shadow-dom.js.map +1 -0
- package/src/lib/components/splash-screen.d.ts +33 -0
- package/src/lib/components/splash-screen.js +105 -0
- package/src/lib/components/splash-screen.js.map +1 -0
- package/src/lib/components/sr-only.d.ts +20 -0
- package/src/lib/components/sr-only.js +25 -0
- package/src/lib/components/sr-only.js.map +1 -0
- package/src/lib/components/status-screen-plain.component.d.ts +27 -0
- package/src/lib/components/status-screen-plain.component.js +178 -0
- package/src/lib/components/status-screen-plain.component.js.map +1 -0
- package/src/lib/components/usage-meter.component.d.ts +30 -0
- package/src/lib/components/usage-meter.component.js +92 -0
- package/src/lib/components/usage-meter.component.js.map +1 -0
- package/src/lib/components/variable-text-field.component.d.ts +50 -0
- package/src/lib/components/variable-text-field.component.js +188 -0
- package/src/lib/components/variable-text-field.component.js.map +1 -0
- package/src/lib/components/zoomable-panning-component/index.d.ts +1 -0
- package/src/lib/components/zoomable-panning-component/index.js +3 -0
- package/src/lib/components/zoomable-panning-component/index.js.map +1 -0
- package/src/lib/components/zoomable-panning-component/util.d.ts +58 -0
- package/src/lib/components/zoomable-panning-component/util.js +114 -0
- package/src/lib/components/zoomable-panning-component/util.js.map +1 -0
- package/src/lib/components/zoomable-panning-component/zoomable-panning-component.d.ts +132 -0
- package/src/lib/components/zoomable-panning-component/zoomable-panning-component.js +728 -0
- package/src/lib/components/zoomable-panning-component/zoomable-panning-component.js.map +1 -0
- package/src/lib/const/aglyn-besigner-logo-full.d.ts +39 -0
- package/src/lib/const/aglyn-besigner-logo-full.js +146 -0
- package/src/lib/const/aglyn-besigner-logo-full.js.map +1 -0
- package/src/lib/const/aglyn-console-logo-full.d.ts +34 -0
- package/src/lib/const/aglyn-console-logo-full.js +142 -0
- package/src/lib/const/aglyn-console-logo-full.js.map +1 -0
- package/src/lib/const/aglyn-logo-class-keys.d.ts +30 -0
- package/src/lib/const/aglyn-logo-class-keys.js +32 -0
- package/src/lib/const/aglyn-logo-class-keys.js.map +1 -0
- package/src/lib/const/aglyn-logo-full.d.ts +29 -0
- package/src/lib/const/aglyn-logo-full.js +111 -0
- package/src/lib/const/aglyn-logo-full.js.map +1 -0
- package/src/lib/const/list-filter.d.ts +260 -0
- package/src/lib/const/list-filter.js +409 -0
- package/src/lib/const/list-filter.js.map +1 -0
- package/src/lib/const/prebuilt-components.d.ts +17 -0
- package/src/lib/const/prebuilt-components.js +22 -0
- package/src/lib/const/prebuilt-components.js.map +1 -0
- package/src/lib/const/svg-icons.d.ts +75 -0
- package/src/lib/const/svg-icons.js +313 -0
- package/src/lib/const/svg-icons.js.map +1 -0
- package/src/lib/const/table-pagination.d.ts +106 -0
- package/src/lib/const/table-pagination.js +106 -0
- package/src/lib/const/table-pagination.js.map +1 -0
- package/src/lib/contexts/confirmation.context.d.ts +996 -0
- package/src/lib/contexts/confirmation.context.js +49 -0
- package/src/lib/contexts/confirmation.context.js.map +1 -0
- package/src/lib/contexts/loading.context.d.ts +93 -0
- package/src/lib/contexts/loading.context.js +126 -0
- package/src/lib/contexts/loading.context.js.map +1 -0
- package/src/lib/hocs/create-hoc-with-context-consumer.d.ts +36 -0
- package/src/lib/hocs/create-hoc-with-context-consumer.js +44 -0
- package/src/lib/hocs/create-hoc-with-context-consumer.js.map +1 -0
- package/src/lib/hocs/with-hoc.d.ts +32 -0
- package/src/lib/hocs/with-hoc.js +37 -0
- package/src/lib/hocs/with-hoc.js.map +1 -0
- package/src/lib/hooks/mdi-icon/use-mdi-icon.d.ts +20 -0
- package/src/lib/hooks/mdi-icon/use-mdi-icon.js +48 -0
- package/src/lib/hooks/mdi-icon/use-mdi-icon.js.map +1 -0
- package/src/lib/hooks/mdi-icon/use-mdi-icons-fuzzy.d.ts +26 -0
- package/src/lib/hooks/mdi-icon/use-mdi-icons-fuzzy.js +73 -0
- package/src/lib/hooks/mdi-icon/use-mdi-icons-fuzzy.js.map +1 -0
- package/src/lib/hooks/mdi-icon/use-mdi-icons.d.ts +19 -0
- package/src/lib/hooks/mdi-icon/use-mdi-icons.js +49 -0
- package/src/lib/hooks/mdi-icon/use-mdi-icons.js.map +1 -0
- package/src/lib/hooks/router-events.d.ts +56 -0
- package/src/lib/hooks/router-events.js +88 -0
- package/src/lib/hooks/router-events.js.map +1 -0
- package/src/lib/hooks/use-async-effect.d.ts +24 -0
- package/src/lib/hooks/use-async-effect.js +44 -0
- package/src/lib/hooks/use-async-effect.js.map +1 -0
- package/src/lib/hooks/use-callback-param-ref.d.ts +19 -0
- package/src/lib/hooks/use-callback-param-ref.js +29 -0
- package/src/lib/hooks/use-callback-param-ref.js.map +1 -0
- package/src/lib/hooks/use-id.d.ts +21 -0
- package/src/lib/hooks/use-id.js +28 -0
- package/src/lib/hooks/use-id.js.map +1 -0
- package/src/lib/hooks/use-isomorphic-layout-effect.d.ts +19 -0
- package/src/lib/hooks/use-isomorphic-layout-effect.js +20 -0
- package/src/lib/hooks/use-isomorphic-layout-effect.js.map +1 -0
- package/src/lib/hooks/use-merge-refs.d.ts +38 -0
- package/src/lib/hooks/use-merge-refs.js +52 -0
- package/src/lib/hooks/use-merge-refs.js.map +1 -0
- package/src/lib/hooks/use-subscribable.d.ts +29 -0
- package/src/lib/hooks/use-subscribable.js +50 -0
- package/src/lib/hooks/use-subscribable.js.map +1 -0
- package/src/lib/types.d.ts +18 -0
- package/src/lib/types.js +18 -0
- package/src/lib/types.js.map +1 -0
- package/src/lib/utils/make-link-elements.d.ts +24 -0
- package/src/lib/utils/make-link-elements.js +32 -0
- package/src/lib/utils/make-link-elements.js.map +1 -0
- package/src/lib/utils/make-meta-elements.d.ts +24 -0
- package/src/lib/utils/make-meta-elements.js +32 -0
- package/src/lib/utils/make-meta-elements.js.map +1 -0
- package/src/lib/utils/scroll-overflow.d.ts +120 -0
- package/src/lib/utils/scroll-overflow.js +115 -0
- package/src/lib/utils/scroll-overflow.js.map +1 -0
- package/src/lib/utils/vendor.d.ts +17 -0
- package/src/lib/utils/vendor.js +18 -0
- package/src/lib/utils/vendor.js.map +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aglyn/shared-ui-jsx",
|
|
3
|
+
"version": "1.0.0-beta.143",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"homepage": "https://aglyn.com",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/aglyn/aglyn.git",
|
|
9
|
+
"directory": "libs/shared/ui/jsx"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public",
|
|
13
|
+
"provenance": true
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./src/index.d.ts",
|
|
19
|
+
"default": "./src/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./*": {
|
|
22
|
+
"types": "./src/lib/*.d.ts",
|
|
23
|
+
"default": "./src/lib/*.js"
|
|
24
|
+
},
|
|
25
|
+
"./package.json": "./package.json"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@aglyn/shared-data-mdi": "1.0.0-beta.143",
|
|
29
|
+
"@aglyn/shared-ui-theme": "1.0.0-beta.143",
|
|
30
|
+
"@aglyn/shared-util-tools": "1.0.0-beta.143",
|
|
31
|
+
"@aglyn/shared-util-vendor": "1.0.0-beta.143",
|
|
32
|
+
"@mdi/js": "^7.4.47",
|
|
33
|
+
"@swc/helpers": "0.5.23",
|
|
34
|
+
"change-case": "^5.4.4",
|
|
35
|
+
"clsx": "^2.1.1",
|
|
36
|
+
"framer-motion": "^12.42.2",
|
|
37
|
+
"jss": "^10.10.0",
|
|
38
|
+
"jss-rtl": "^0.3.0",
|
|
39
|
+
"lodash-es": "^4.18.1",
|
|
40
|
+
"mobx": "^6.16.1",
|
|
41
|
+
"react-frame-component": "^5.3.2",
|
|
42
|
+
"react-is": "^19.2.8",
|
|
43
|
+
"react-use": "^17.6.1",
|
|
44
|
+
"react-virtuoso": "^4.18.11",
|
|
45
|
+
"rxjs": "^7.8.2",
|
|
46
|
+
"warning": "^4.0.3"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@mui/base": "5.0.0-beta.70",
|
|
50
|
+
"@mui/material": "^9.3.1",
|
|
51
|
+
"@mui/styles": "^6.4.8",
|
|
52
|
+
"@mui/system": "^9.2.0",
|
|
53
|
+
"@mui/utils": "^9.2.0",
|
|
54
|
+
"@mui/x-data-grid": "^9.12.0",
|
|
55
|
+
"next": "16.3.3",
|
|
56
|
+
"react": "^19.2.8",
|
|
57
|
+
"react-dom": "^19.2.8"
|
|
58
|
+
},
|
|
59
|
+
"sideEffects": false,
|
|
60
|
+
"types": "./src/index.d.ts",
|
|
61
|
+
"module": "./src/index.js",
|
|
62
|
+
"main": "./src/index.js"
|
|
63
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
export * from './lib/components/app-link';
|
|
18
|
+
export * from './lib/components/card-display';
|
|
19
|
+
export * from './lib/components/card-list-item';
|
|
20
|
+
export * from './lib/components/container';
|
|
21
|
+
export * from './lib/components/error-boundary.component';
|
|
22
|
+
export * from './lib/components/grid-items';
|
|
23
|
+
export * from './lib/components/aglyn-text';
|
|
24
|
+
export * from './lib/components/help-tip.component';
|
|
25
|
+
export * from './lib/components/menu';
|
|
26
|
+
export * from './lib/components/mui-shadow-dom';
|
|
27
|
+
export * from './lib/components/shadow-dom';
|
|
28
|
+
export * from './lib/components/sr-only';
|
|
29
|
+
export * from './lib/contexts/confirmation.context';
|
|
30
|
+
export * from './lib/contexts/loading.context';
|
|
31
|
+
export * from './lib/hooks/router-events';
|
|
32
|
+
export * from './lib/hooks/use-callback-param-ref';
|
|
33
|
+
export * from './lib/hooks/use-async-effect';
|
|
34
|
+
export * from './lib/hooks/use-id';
|
|
35
|
+
export * from './lib/hooks/use-isomorphic-layout-effect';
|
|
36
|
+
export * from './lib/hooks/use-merge-refs';
|
|
37
|
+
export * from './lib/hooks/use-subscribable';
|
|
38
|
+
export * from './lib/const/svg-icons';
|
|
39
|
+
export * from './lib/hocs/create-hoc-with-context-consumer';
|
|
40
|
+
export * from './lib/hocs/with-hoc';
|
|
41
|
+
export * from './lib/utils/make-link-elements';
|
|
42
|
+
export * from './lib/utils/make-meta-elements';
|
|
43
|
+
export * from './lib/types';
|
|
44
|
+
export * from './lib/hooks/mdi-icon/use-mdi-icon';
|
|
45
|
+
export * from './lib/hooks/mdi-icon/use-mdi-icons';
|
|
46
|
+
export * from './lib/components/mdi-icon/mdi-icon';
|
|
47
|
+
export * from './lib/components/mdi-icon/mdi-icon-from-id';
|
|
48
|
+
export * from '@aglyn/shared-data-mdi';
|
package/src/index.js
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/ // ── Barrel discipline (AGL-1290, extending AGL-1151) ────────────────────────
|
|
17
|
+
// The tenant runtime reaches this barrel statically (the node renderer
|
|
18
|
+
// imports ShadowDom/ErrorBoundary through it), and Turbopack cannot prove a
|
|
19
|
+
// module with top-level `styled()`/`forwardRef()` calls side-effect-free —
|
|
20
|
+
// so EVERY component re-exported here ships eagerly on EVERY published
|
|
21
|
+
// customer page, used or not. Measured: RulerGuides, SplashScreen,
|
|
22
|
+
// NavigationDrawer, DialogConfirm and the whole MUI Dialog/Drawer/Popper
|
|
23
|
+
// stack were in /pricing's first-load chunks, imported by nothing.
|
|
24
|
+
//
|
|
25
|
+
// Rule: a component joins this barrel only if the tenant page graph or the
|
|
26
|
+
// besigner needs it by name. Console-/www-only components are imported by
|
|
27
|
+
// subpath instead: '@aglyn/shared-ui-jsx/components/<file>' (the tsconfig
|
|
28
|
+
// wildcard path already resolves it — same pattern as DataTable/GridList
|
|
29
|
+
// below). Pure modules (hooks, types, const data) are exempt: the bundler
|
|
30
|
+
// proves them pure and drops the unused ones.
|
|
31
|
+
//
|
|
32
|
+
// THIS RULE IS ENFORCED (AGL-1895) — `npm run check:jsx-barrel`, in CI. Every
|
|
33
|
+
// line below is pinned in `tools/scripts/jsx-barrel-baseline.json`, along with
|
|
34
|
+
// every third-party package this barrel transitively reaches, so a heavy
|
|
35
|
+
// import added inside a module ALREADY listed here goes red too. Adding or
|
|
36
|
+
// removing an export fails until the allowlist moves in the same commit,
|
|
37
|
+
// which is what puts the cost in front of a reviewer. Measured with esbuild,
|
|
38
|
+
// minified and GZIPPED: re-exporting data-table.component costs +162,866 B and
|
|
39
|
+
// grid-list +20,386 B on every page of every published customer site.
|
|
40
|
+
// Until then this rule was a comment, and a comment cannot fail.
|
|
41
|
+
//
|
|
42
|
+
// `package.json` here declares `"sideEffects": false`, which is what lets a
|
|
43
|
+
// bundler act on the paragraph above rather than only obey it. Without the
|
|
44
|
+
// declaration every module reachable from this file has to be assumed
|
|
45
|
+
// side-effectful and kept, so a named import of one component through this
|
|
46
|
+
// barrel still drags the rest — measured on a published page's cold load, the
|
|
47
|
+
// PAGES ROUTER (`next/router`, reached from `hooks/router-events`) was a 40 KB
|
|
48
|
+
// chunk on a page that has no Pages Router, and declaring this tree pure is
|
|
49
|
+
// what took it off the wire. The claim was audited file by file: the only
|
|
50
|
+
// module-scope work here is local `.displayName` / `.aglyn` assignment and
|
|
51
|
+
// `createContext`, none of which another module can observe. `shadow-dom` and
|
|
52
|
+
// `mui-shadow-dom` build a Proxy over a module-local Map, which is not an
|
|
53
|
+
// exception either. A second clause stood here for `use-observer-resize`,
|
|
54
|
+
// whose default import of `resize-observer-polyfill` was the one bare-looking
|
|
55
|
+
// import in the tree; the hook went with the nineteen nothing called and the
|
|
56
|
+
// dependency followed it out of `package.json` (AGL-2706), so the audit is
|
|
57
|
+
// shorter by a module rather than by an argument.
|
|
58
|
+
// A module added here that DOES do observable
|
|
59
|
+
// work at import time — a global write, a registration, a bare polyfill
|
|
60
|
+
// import — must be listed in `sideEffects` in the same commit, or it will be
|
|
61
|
+
// dropped from builds that never name it.
|
|
62
|
+
export * from "./lib/components/app-link.js";
|
|
63
|
+
// aspect-ratio, background-image, children-function-prop, dialog-confirm +
|
|
64
|
+
// confirmation-provider, ellipsis-pulse, grid-buttons, loading-layout,
|
|
65
|
+
// loading-modal, loading-text, navigation-view, next-link, popper-styled,
|
|
66
|
+
// resizeable-stack, ruler-guides, sandbox-frame, scroll-reaction,
|
|
67
|
+
// splash-screen, emotion-cache-provider and const/prebuilt-components are
|
|
68
|
+
// NOT in the barrel (AGL-1290) — subpath-import them (see rule above).
|
|
69
|
+
// navigation-drawer is the one deliberate exception, below.
|
|
70
|
+
export * from "./lib/components/card-display.js";
|
|
71
|
+
export * from "./lib/components/card-list-item.js";
|
|
72
|
+
// NOT in the barrel (AGL-1151). `DataTable` wraps MUI X DataGrid, which with
|
|
73
|
+
// its virtualizer is ~257 KB of the bundle — and exporting it here put all of
|
|
74
|
+
// that behind every `@aglyn/shared-ui-jsx` import, including the tenant
|
|
75
|
+
// runtime. Every visitor to every published site downloaded a data grid to
|
|
76
|
+
// render a page that has never contained one; nothing in the tenant or the
|
|
77
|
+
// node renderer references DataTable at all.
|
|
78
|
+
//
|
|
79
|
+
// Measured both ways: removing this line drops MuiDataGrid from the tenant
|
|
80
|
+
// bundle entirely (13741 KB → 13484 KB built output).
|
|
81
|
+
//
|
|
82
|
+
// Import it from '@aglyn/shared-ui-jsx/components/data-table.component' — the
|
|
83
|
+
// subpath already resolves. Kept out of the barrel rather than lazy-loaded
|
|
84
|
+
// because `GridOverlay` is used at module scope inside `styled()`, so the
|
|
85
|
+
// module cannot be deferred without splitting the component.
|
|
86
|
+
export * from "./lib/components/container.js";
|
|
87
|
+
export * from "./lib/components/error-boundary.component.js";
|
|
88
|
+
export * from "./lib/components/grid-items.js";
|
|
89
|
+
// `grid-list` is deliberately NOT re-exported (AGL-1151). It is the only
|
|
90
|
+
// consumer of `react-virtuoso`, and the tenant runtime imports this barrel —
|
|
91
|
+
// so exporting it here put a virtualizer into every published customer page to
|
|
92
|
+
// render a list those pages never contain. Exactly what `DataTable` did with
|
|
93
|
+
// MUI X DataGrid in 828c43939. Import it from
|
|
94
|
+
// `@aglyn/shared-ui-jsx/components/grid-list` instead.
|
|
95
|
+
export * from "./lib/components/aglyn-text.js";
|
|
96
|
+
export * from "./lib/components/help-tip.component.js";
|
|
97
|
+
export * from "./lib/components/menu.js";
|
|
98
|
+
export * from "./lib/components/mui-shadow-dom.js";
|
|
99
|
+
// navigation-drawer is NOT re-exported (AGL-1290): it kept the MUI Drawer
|
|
100
|
+
// stack in the tenant's first-load chunk. Import it from
|
|
101
|
+
// `@aglyn/shared-ui-jsx/components/navigation-drawer.component`.
|
|
102
|
+
export * from "./lib/components/shadow-dom/index.js";
|
|
103
|
+
export * from "./lib/components/sr-only.js";
|
|
104
|
+
// zoomable-panning-component is NOT re-exported (AGL-2486), for the same
|
|
105
|
+
// reason navigation-drawer is not — and with less excuse, because nothing
|
|
106
|
+
// imports it. The only references left in the tree are a COMMENTED-OUT import
|
|
107
|
+
// in `viewport-canvas.component.tsx` and three prose mentions; the barrel
|
|
108
|
+
// export was its last live edge, so every published customer page was paying
|
|
109
|
+
// to parse an editor-only pan/zoom canvas class (and the five
|
|
110
|
+
// `getBoundingClientRect()` call sites in it) that nothing on the page mounts.
|
|
111
|
+
// Still importable from
|
|
112
|
+
// `@aglyn/shared-ui-jsx/components/zoomable-panning-component` if the besigner
|
|
113
|
+
// ever uncomments that import.
|
|
114
|
+
export * from "./lib/contexts/confirmation.context.js";
|
|
115
|
+
export * from "./lib/contexts/loading.context.js";
|
|
116
|
+
// Nineteen hooks were DELETED here, not merely un-exported (AGL-2706):
|
|
117
|
+
// use-client-rect, use-debounce, use-debounced-transition,
|
|
118
|
+
// use-effect-post-mount, use-element-position, use-interval,
|
|
119
|
+
// use-local-storage-item-state, use-mouse-enter, use-mouse-over,
|
|
120
|
+
// use-mouse-position, use-node-property, use-observer-intersection,
|
|
121
|
+
// use-observer-mutation, use-observer-resize, use-on-mouse-enter,
|
|
122
|
+
// use-on-mouse-over, use-tag-name, use-timeout and use-timeout-delay.
|
|
123
|
+
//
|
|
124
|
+
// Not one had a caller — not an app, not a plugin, not a tool — and a React
|
|
125
|
+
// hook cannot be reached except by importing it, so nothing could have. The
|
|
126
|
+
// AGL-2486 note that stood here for `use-observer-resize` said exactly this
|
|
127
|
+
// and stopped at dropping the re-export; the rest were in the same position
|
|
128
|
+
// and had been for as long.
|
|
129
|
+
//
|
|
130
|
+
// `useLocalStorageItemState` is the one worth naming, because it is the one
|
|
131
|
+
// that was TRIED. Roughly twenty places in the console, the plugins and the
|
|
132
|
+
// besigner keep a value in `localStorage` and hand-roll the same hook beside
|
|
133
|
+
// it, and every one of them reads storage in a mount effect with the same
|
|
134
|
+
// comment: reading during render hydrate-mismatches, because there is no
|
|
135
|
+
// `localStorage` on the server. This hook seeded `useState` from storage
|
|
136
|
+
// directly, which is precisely the defect they were each working around, so
|
|
137
|
+
// adopting it would have been a regression. Deleted rather than widened: the
|
|
138
|
+
// shape those callers actually need is a patch update over typed defaults,
|
|
139
|
+
// which is not this signature, and designing a second one against no caller
|
|
140
|
+
// is how the first got here.
|
|
141
|
+
//
|
|
142
|
+
// Deleting cost zero bytes — the barrel declares `sideEffects: false` and
|
|
143
|
+
// every one of these was already tree-shaken out of both apps. What it buys
|
|
144
|
+
// is that nobody adopts them by mistake.
|
|
145
|
+
export * from "./lib/hooks/router-events.js";
|
|
146
|
+
export * from "./lib/hooks/use-callback-param-ref.js";
|
|
147
|
+
export * from "./lib/hooks/use-async-effect.js";
|
|
148
|
+
export * from "./lib/hooks/use-id.js";
|
|
149
|
+
export * from "./lib/hooks/use-isomorphic-layout-effect.js";
|
|
150
|
+
export * from "./lib/hooks/use-merge-refs.js";
|
|
151
|
+
export * from "./lib/hooks/use-subscribable.js";
|
|
152
|
+
// prebuilt-components is a module-scope `<LoadingModal open />` — rendering
|
|
153
|
+
// at import time is exactly the impurity the rule above exists for.
|
|
154
|
+
export * from "./lib/const/svg-icons.js";
|
|
155
|
+
export * from "./lib/hocs/create-hoc-with-context-consumer.js";
|
|
156
|
+
export * from "./lib/hocs/with-hoc.js";
|
|
157
|
+
export * from "./lib/utils/make-link-elements.js";
|
|
158
|
+
export * from "./lib/utils/make-meta-elements.js";
|
|
159
|
+
// `./lib/utils/vendor` is NOT re-exported (AGL-2682). It wraps eleven `react-is`
|
|
160
|
+
// predicates and NOTHING reads any of them from this index — the two real
|
|
161
|
+
// consumers, `aglyn-node-renderer`'s `leaf.tsx` and the besigner's
|
|
162
|
+
// `component-icon.component.tsx`, import `react-is` directly. So the line's
|
|
163
|
+
// only effect was to hold `react-is` inside the reachable set of a barrel that
|
|
164
|
+
// ships eagerly on every published page. Still importable as
|
|
165
|
+
// `@aglyn/shared-ui-jsx/utils/vendor`.
|
|
166
|
+
export * from "./lib/types.js";
|
|
167
|
+
export * from "./lib/hooks/mdi-icon/use-mdi-icon.js";
|
|
168
|
+
export * from "./lib/hooks/mdi-icon/use-mdi-icons.js";
|
|
169
|
+
export * from "./lib/components/mdi-icon/mdi-icon.js";
|
|
170
|
+
export * from "./lib/components/mdi-icon/mdi-icon-from-id.js";
|
|
171
|
+
export * from "@aglyn/shared-data-mdi"; // import dynamic from 'next/dynamic'
|
|
172
|
+
// export const MdiIconFromId = dynamic(
|
|
173
|
+
// () => import('./components/mdi-svg-icon'),
|
|
174
|
+
// {loading: () => (<span />)},
|
|
175
|
+
// )
|
|
176
|
+
// MdiIconFromId.displayName = 'MdiIconFromId'
|
|
177
|
+
// MdiIconFromId.aglyn = true
|
|
178
|
+
|
|
179
|
+
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../libs/shared/ui/jsx/src/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// ── Barrel discipline (AGL-1290, extending AGL-1151) ────────────────────────\n// The tenant runtime reaches this barrel statically (the node renderer\n// imports ShadowDom/ErrorBoundary through it), and Turbopack cannot prove a\n// module with top-level `styled()`/`forwardRef()` calls side-effect-free —\n// so EVERY component re-exported here ships eagerly on EVERY published\n// customer page, used or not. Measured: RulerGuides, SplashScreen,\n// NavigationDrawer, DialogConfirm and the whole MUI Dialog/Drawer/Popper\n// stack were in /pricing's first-load chunks, imported by nothing.\n//\n// Rule: a component joins this barrel only if the tenant page graph or the\n// besigner needs it by name. Console-/www-only components are imported by\n// subpath instead: '@aglyn/shared-ui-jsx/components/<file>' (the tsconfig\n// wildcard path already resolves it — same pattern as DataTable/GridList\n// below). Pure modules (hooks, types, const data) are exempt: the bundler\n// proves them pure and drops the unused ones.\n//\n// THIS RULE IS ENFORCED (AGL-1895) — `npm run check:jsx-barrel`, in CI. Every\n// line below is pinned in `tools/scripts/jsx-barrel-baseline.json`, along with\n// every third-party package this barrel transitively reaches, so a heavy\n// import added inside a module ALREADY listed here goes red too. Adding or\n// removing an export fails until the allowlist moves in the same commit,\n// which is what puts the cost in front of a reviewer. Measured with esbuild,\n// minified and GZIPPED: re-exporting data-table.component costs +162,866 B and\n// grid-list +20,386 B on every page of every published customer site.\n// Until then this rule was a comment, and a comment cannot fail.\n//\n// `package.json` here declares `\"sideEffects\": false`, which is what lets a\n// bundler act on the paragraph above rather than only obey it. Without the\n// declaration every module reachable from this file has to be assumed\n// side-effectful and kept, so a named import of one component through this\n// barrel still drags the rest — measured on a published page's cold load, the\n// PAGES ROUTER (`next/router`, reached from `hooks/router-events`) was a 40 KB\n// chunk on a page that has no Pages Router, and declaring this tree pure is\n// what took it off the wire. The claim was audited file by file: the only\n// module-scope work here is local `.displayName` / `.aglyn` assignment and\n// `createContext`, none of which another module can observe. `shadow-dom` and\n// `mui-shadow-dom` build a Proxy over a module-local Map, which is not an\n// exception either. A second clause stood here for `use-observer-resize`,\n// whose default import of `resize-observer-polyfill` was the one bare-looking\n// import in the tree; the hook went with the nineteen nothing called and the\n// dependency followed it out of `package.json` (AGL-2706), so the audit is\n// shorter by a module rather than by an argument.\n// A module added here that DOES do observable\n// work at import time — a global write, a registration, a bare polyfill\n// import — must be listed in `sideEffects` in the same commit, or it will be\n// dropped from builds that never name it.\nexport * from './lib/components/app-link'\n// aspect-ratio, background-image, children-function-prop, dialog-confirm +\n// confirmation-provider, ellipsis-pulse, grid-buttons, loading-layout,\n// loading-modal, loading-text, navigation-view, next-link, popper-styled,\n// resizeable-stack, ruler-guides, sandbox-frame, scroll-reaction,\n// splash-screen, emotion-cache-provider and const/prebuilt-components are\n// NOT in the barrel (AGL-1290) — subpath-import them (see rule above).\n// navigation-drawer is the one deliberate exception, below.\nexport * from './lib/components/card-display'\nexport * from './lib/components/card-list-item'\n// NOT in the barrel (AGL-1151). `DataTable` wraps MUI X DataGrid, which with\n// its virtualizer is ~257 KB of the bundle — and exporting it here put all of\n// that behind every `@aglyn/shared-ui-jsx` import, including the tenant\n// runtime. Every visitor to every published site downloaded a data grid to\n// render a page that has never contained one; nothing in the tenant or the\n// node renderer references DataTable at all.\n//\n// Measured both ways: removing this line drops MuiDataGrid from the tenant\n// bundle entirely (13741 KB → 13484 KB built output).\n//\n// Import it from '@aglyn/shared-ui-jsx/components/data-table.component' — the\n// subpath already resolves. Kept out of the barrel rather than lazy-loaded\n// because `GridOverlay` is used at module scope inside `styled()`, so the\n// module cannot be deferred without splitting the component.\nexport * from './lib/components/container'\nexport * from './lib/components/error-boundary.component'\nexport * from './lib/components/grid-items'\n// `grid-list` is deliberately NOT re-exported (AGL-1151). It is the only\n// consumer of `react-virtuoso`, and the tenant runtime imports this barrel —\n// so exporting it here put a virtualizer into every published customer page to\n// render a list those pages never contain. Exactly what `DataTable` did with\n// MUI X DataGrid in 828c43939. Import it from\n// `@aglyn/shared-ui-jsx/components/grid-list` instead.\nexport * from './lib/components/aglyn-text'\nexport * from './lib/components/help-tip.component'\nexport * from './lib/components/menu'\nexport * from './lib/components/mui-shadow-dom'\n// navigation-drawer is NOT re-exported (AGL-1290): it kept the MUI Drawer\n// stack in the tenant's first-load chunk. Import it from\n// `@aglyn/shared-ui-jsx/components/navigation-drawer.component`.\nexport * from './lib/components/shadow-dom'\nexport * from './lib/components/sr-only'\n// zoomable-panning-component is NOT re-exported (AGL-2486), for the same\n// reason navigation-drawer is not — and with less excuse, because nothing\n// imports it. The only references left in the tree are a COMMENTED-OUT import\n// in `viewport-canvas.component.tsx` and three prose mentions; the barrel\n// export was its last live edge, so every published customer page was paying\n// to parse an editor-only pan/zoom canvas class (and the five\n// `getBoundingClientRect()` call sites in it) that nothing on the page mounts.\n// Still importable from\n// `@aglyn/shared-ui-jsx/components/zoomable-panning-component` if the besigner\n// ever uncomments that import.\n\nexport * from './lib/contexts/confirmation.context'\nexport * from './lib/contexts/loading.context'\n\n// Nineteen hooks were DELETED here, not merely un-exported (AGL-2706):\n// use-client-rect, use-debounce, use-debounced-transition,\n// use-effect-post-mount, use-element-position, use-interval,\n// use-local-storage-item-state, use-mouse-enter, use-mouse-over,\n// use-mouse-position, use-node-property, use-observer-intersection,\n// use-observer-mutation, use-observer-resize, use-on-mouse-enter,\n// use-on-mouse-over, use-tag-name, use-timeout and use-timeout-delay.\n//\n// Not one had a caller — not an app, not a plugin, not a tool — and a React\n// hook cannot be reached except by importing it, so nothing could have. The\n// AGL-2486 note that stood here for `use-observer-resize` said exactly this\n// and stopped at dropping the re-export; the rest were in the same position\n// and had been for as long.\n//\n// `useLocalStorageItemState` is the one worth naming, because it is the one\n// that was TRIED. Roughly twenty places in the console, the plugins and the\n// besigner keep a value in `localStorage` and hand-roll the same hook beside\n// it, and every one of them reads storage in a mount effect with the same\n// comment: reading during render hydrate-mismatches, because there is no\n// `localStorage` on the server. This hook seeded `useState` from storage\n// directly, which is precisely the defect they were each working around, so\n// adopting it would have been a regression. Deleted rather than widened: the\n// shape those callers actually need is a patch update over typed defaults,\n// which is not this signature, and designing a second one against no caller\n// is how the first got here.\n//\n// Deleting cost zero bytes — the barrel declares `sideEffects: false` and\n// every one of these was already tree-shaken out of both apps. What it buys\n// is that nobody adopts them by mistake.\nexport * from './lib/hooks/router-events'\nexport * from './lib/hooks/use-callback-param-ref'\nexport * from './lib/hooks/use-async-effect'\nexport * from './lib/hooks/use-id'\nexport * from './lib/hooks/use-isomorphic-layout-effect'\nexport * from './lib/hooks/use-merge-refs'\nexport * from './lib/hooks/use-subscribable'\n\n// prebuilt-components is a module-scope `<LoadingModal open />` — rendering\n// at import time is exactly the impurity the rule above exists for.\nexport * from './lib/const/svg-icons'\n\nexport * from './lib/hocs/create-hoc-with-context-consumer'\nexport * from './lib/hocs/with-hoc'\n\nexport * from './lib/utils/make-link-elements'\nexport * from './lib/utils/make-meta-elements'\n// `./lib/utils/vendor` is NOT re-exported (AGL-2682). It wraps eleven `react-is`\n// predicates and NOTHING reads any of them from this index — the two real\n// consumers, `aglyn-node-renderer`'s `leaf.tsx` and the besigner's\n// `component-icon.component.tsx`, import `react-is` directly. So the line's\n// only effect was to hold `react-is` inside the reachable set of a barrel that\n// ships eagerly on every published page. Still importable as\n// `@aglyn/shared-ui-jsx/utils/vendor`.\n\nexport * from './lib/types'\n\nexport * from './lib/hooks/mdi-icon/use-mdi-icon'\nexport * from './lib/hooks/mdi-icon/use-mdi-icons'\n\nexport * from './lib/components/mdi-icon/mdi-icon'\nexport * from './lib/components/mdi-icon/mdi-icon-from-id'\n\nexport * from '@aglyn/shared-data-mdi'\n\n// import dynamic from 'next/dynamic'\n// export const MdiIconFromId = dynamic(\n// () => import('./components/mdi-svg-icon'),\n// {loading: () => (<span />)},\n// )\n// MdiIconFromId.displayName = 'MdiIconFromId'\n// MdiIconFromId.aglyn = true\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,+EAA+E;AAC/E,uEAAuE;AACvE,4EAA4E;AAC5E,2EAA2E;AAC3E,uEAAuE;AACvE,mEAAmE;AACnE,yEAAyE;AACzE,mEAAmE;AACnE,EAAE;AACF,2EAA2E;AAC3E,0EAA0E;AAC1E,0EAA0E;AAC1E,yEAAyE;AACzE,0EAA0E;AAC1E,8CAA8C;AAC9C,EAAE;AACF,8EAA8E;AAC9E,+EAA+E;AAC/E,yEAAyE;AACzE,2EAA2E;AAC3E,yEAAyE;AACzE,6EAA6E;AAC7E,+EAA+E;AAC/E,sEAAsE;AACtE,iEAAiE;AACjE,EAAE;AACF,4EAA4E;AAC5E,2EAA2E;AAC3E,sEAAsE;AACtE,2EAA2E;AAC3E,8EAA8E;AAC9E,+EAA+E;AAC/E,4EAA4E;AAC5E,0EAA0E;AAC1E,2EAA2E;AAC3E,8EAA8E;AAC9E,0EAA0E;AAC1E,0EAA0E;AAC1E,8EAA8E;AAC9E,6EAA6E;AAC7E,2EAA2E;AAC3E,kDAAkD;AAClD,8CAA8C;AAC9C,wEAAwE;AACxE,6EAA6E;AAC7E,0CAA0C;AAC1C,cAAc,+BAA2B;AACzC,2EAA2E;AAC3E,uEAAuE;AACvE,0EAA0E;AAC1E,kEAAkE;AAClE,0EAA0E;AAC1E,uEAAuE;AACvE,4DAA4D;AAC5D,cAAc,mCAA+B;AAC7C,cAAc,qCAAiC;AAC/C,6EAA6E;AAC7E,8EAA8E;AAC9E,wEAAwE;AACxE,2EAA2E;AAC3E,2EAA2E;AAC3E,6CAA6C;AAC7C,EAAE;AACF,2EAA2E;AAC3E,sDAAsD;AACtD,EAAE;AACF,8EAA8E;AAC9E,2EAA2E;AAC3E,0EAA0E;AAC1E,6DAA6D;AAC7D,cAAc,gCAA4B;AAC1C,cAAc,+CAA2C;AACzD,cAAc,iCAA6B;AAC3C,yEAAyE;AACzE,6EAA6E;AAC7E,+EAA+E;AAC/E,6EAA6E;AAC7E,8CAA8C;AAC9C,uDAAuD;AACvD,cAAc,iCAA6B;AAC3C,cAAc,yCAAqC;AACnD,cAAc,2BAAuB;AACrC,cAAc,qCAAiC;AAC/C,0EAA0E;AAC1E,yDAAyD;AACzD,iEAAiE;AACjE,cAAc,uCAA6B;AAC3C,cAAc,8BAA0B;AACxC,yEAAyE;AACzE,0EAA0E;AAC1E,8EAA8E;AAC9E,0EAA0E;AAC1E,6EAA6E;AAC7E,8DAA8D;AAC9D,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAC/E,+BAA+B;AAE/B,cAAc,yCAAqC;AACnD,cAAc,oCAAgC;AAE9C,uEAAuE;AACvE,2DAA2D;AAC3D,6DAA6D;AAC7D,iEAAiE;AACjE,oEAAoE;AACpE,kEAAkE;AAClE,sEAAsE;AACtE,EAAE;AACF,4EAA4E;AAC5E,4EAA4E;AAC5E,4EAA4E;AAC5E,4EAA4E;AAC5E,4BAA4B;AAC5B,EAAE;AACF,4EAA4E;AAC5E,4EAA4E;AAC5E,6EAA6E;AAC7E,0EAA0E;AAC1E,yEAAyE;AACzE,yEAAyE;AACzE,4EAA4E;AAC5E,6EAA6E;AAC7E,2EAA2E;AAC3E,4EAA4E;AAC5E,6BAA6B;AAC7B,EAAE;AACF,0EAA0E;AAC1E,4EAA4E;AAC5E,yCAAyC;AACzC,cAAc,+BAA2B;AACzC,cAAc,wCAAoC;AAClD,cAAc,kCAA8B;AAC5C,cAAc,wBAAoB;AAClC,cAAc,8CAA0C;AACxD,cAAc,gCAA4B;AAC1C,cAAc,kCAA8B;AAE5C,4EAA4E;AAC5E,oEAAoE;AACpE,cAAc,2BAAuB;AAErC,cAAc,iDAA6C;AAC3D,cAAc,yBAAqB;AAEnC,cAAc,oCAAgC;AAC9C,cAAc,oCAAgC;AAC9C,iFAAiF;AACjF,0EAA0E;AAC1E,mEAAmE;AACnE,4EAA4E;AAC5E,+EAA+E;AAC/E,6DAA6D;AAC7D,uCAAuC;AAEvC,cAAc,iBAAa;AAE3B,cAAc,uCAAmC;AACjD,cAAc,wCAAoC;AAElD,cAAc,wCAAoC;AAClD,cAAc,gDAA4C;AAE1D,cAAc,yBAAwB,CAEtC,qCAAqC;CACrC,wCAAwC;CACxC,+CAA+C;CAC/C,iCAAiC;CACjC,IAAI;CACJ,8CAA8C;CAC9C,6BAA6B"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* The authored text of a leaf, as a plain element (AGL-2011).
|
|
19
|
+
*
|
|
20
|
+
* ## Why this is no longer a shadow host
|
|
21
|
+
*
|
|
22
|
+
* This used to be `ShadowDom.AglynText` — a `shadowDomRootFactory` host that
|
|
23
|
+
* `attachShadow`ed and then rendered the string through a `createPortal` into
|
|
24
|
+
* the shadow root. The tag name is unchanged, so every
|
|
25
|
+
* `querySelectorAll('aglyn-text')` and every editor ref target still resolves;
|
|
26
|
+
* what is gone is the shadow boundary.
|
|
27
|
+
*
|
|
28
|
+
* A shadow root exists to encapsulate STYLE, and here it encapsulated nothing.
|
|
29
|
+
* Measured on the live `/pricing` page: **960 hosts, 960 shadow roots holding a
|
|
30
|
+
* single bare text node, zero elements inside any of them, and zero carrying
|
|
31
|
+
* any CSS** — no `adoptedStyleSheets`, no `<style>`, no `<link>`. There was
|
|
32
|
+
* nothing for a selector to match, and inherited typography (font, colour,
|
|
33
|
+
* line-height) crosses a shadow boundary regardless. The encapsulation was a
|
|
34
|
+
* no-op.
|
|
35
|
+
*
|
|
36
|
+
* The COSTS were not. A shadow root makes text invisible to `textContent`,
|
|
37
|
+
* and the repo paid for that four separate times:
|
|
38
|
+
*
|
|
39
|
+
* - **AGL-2349 shipped a bug.** Every published split accordion summary named
|
|
40
|
+
* its chevron "Toggle section", because the label could not be read back.
|
|
41
|
+
* `accordion.tsx` still carries the bespoke `childText` React-tree walker
|
|
42
|
+
* written to work around it.
|
|
43
|
+
* - Legal-page verification had to read the **Flight payload** rather than the
|
|
44
|
+
* DOM (`published-legal-pages.ts`).
|
|
45
|
+
* - `leaf.spec.tsx` records that `textContent` cannot see it.
|
|
46
|
+
* - Every external check — drift tooling, a11y tooling, find-in-page — needed
|
|
47
|
+
* a bespoke shadow-piercing walk before the page would yield any text.
|
|
48
|
+
*
|
|
49
|
+
* ## Why dropping it is safe
|
|
50
|
+
*
|
|
51
|
+
* The original reason for the shadow root was to give the editor a ref target
|
|
52
|
+
* for inline editing. That is not load-bearing: an ELEMENT provides the ref,
|
|
53
|
+
* not a shadow root, and the besigner's inline text and markdown editors mount
|
|
54
|
+
* **light-DOM** `contenteditable` halves (`besigner/core` → `text-entry.ts`).
|
|
55
|
+
* Nothing edits inside this element.
|
|
56
|
+
*
|
|
57
|
+
* Layout is unchanged: an unknown element defaults to `display: inline`, which
|
|
58
|
+
* is what the shadow HOST already was, and the host was always in the light
|
|
59
|
+
* tree — only its CONTENT moved.
|
|
60
|
+
*
|
|
61
|
+
* Hydration gets simpler rather than riskier. The old component rendered the
|
|
62
|
+
* text as light DOM on the server and during the first client render, then
|
|
63
|
+
* attached the shadow in a layout effect and re-rendered the same string
|
|
64
|
+
* through a portal; the light copy stopped displaying only because a shadow
|
|
65
|
+
* host without slots hides its children. Now the server output is final — and
|
|
66
|
+
* a page like `/pricing` does 960 fewer `attachShadow` calls and mounts 960
|
|
67
|
+
* fewer portals.
|
|
68
|
+
*/
|
|
69
|
+
export interface AglynTextProps {
|
|
70
|
+
children?: any;
|
|
71
|
+
/**
|
|
72
|
+
* Sanitized author markup, for a leaf whose text carries formatting
|
|
73
|
+
* (AGL-2557). Every caller passes the output of `sanitizeAuthorHtml`,
|
|
74
|
+
* re-sanitized on each render per AGL-497 — this element does no filtering
|
|
75
|
+
* of its own and must never be handed a raw stored value.
|
|
76
|
+
*
|
|
77
|
+
* It rides this element rather than a wrapper of its own so the formatted
|
|
78
|
+
* label and the plain one are the SAME edit target on the canvas, which is
|
|
79
|
+
* the element the besigner looks for (AGL-2556).
|
|
80
|
+
*/
|
|
81
|
+
dangerouslySetInnerHTML?: {
|
|
82
|
+
__html: string;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
export declare const AglynText: import("react").ForwardRefExoticComponent<AglynTextProps & import("react").RefAttributes<HTMLElement>>;
|
|
86
|
+
export default AglynText;
|