domflax 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/LICENSE +214 -0
  2. package/dist/chunk-4HHISSMR.js +2227 -0
  3. package/dist/chunk-4HHISSMR.js.map +1 -0
  4. package/dist/chunk-6WVVF6AD.js +55 -0
  5. package/dist/chunk-6WVVF6AD.js.map +1 -0
  6. package/dist/chunk-77SLHRN6.js +2047 -0
  7. package/dist/chunk-77SLHRN6.js.map +1 -0
  8. package/dist/chunk-ZJ2S36GY.js +175 -0
  9. package/dist/chunk-ZJ2S36GY.js.map +1 -0
  10. package/dist/cli.cjs +5207 -0
  11. package/dist/cli.cjs.map +1 -0
  12. package/dist/cli.d.cts +1 -0
  13. package/dist/cli.d.ts +1 -0
  14. package/dist/cli.js +1310 -0
  15. package/dist/cli.js.map +1 -0
  16. package/dist/index.cjs +4383 -0
  17. package/dist/index.cjs.map +1 -0
  18. package/dist/index.d.cts +539 -0
  19. package/dist/index.d.ts +539 -0
  20. package/dist/index.js +110 -0
  21. package/dist/index.js.map +1 -0
  22. package/dist/pattern-CX6iBzTD.d.ts +237 -0
  23. package/dist/pattern-P4FIKAUB.d.cts +237 -0
  24. package/dist/pattern-kit.cjs +630 -0
  25. package/dist/pattern-kit.cjs.map +1 -0
  26. package/dist/pattern-kit.d.cts +80 -0
  27. package/dist/pattern-kit.d.ts +80 -0
  28. package/dist/pattern-kit.js +55 -0
  29. package/dist/pattern-kit.js.map +1 -0
  30. package/dist/types-BQ7l6dVe.d.cts +749 -0
  31. package/dist/types-BQ7l6dVe.d.ts +749 -0
  32. package/dist/verify.cjs +2747 -0
  33. package/dist/verify.cjs.map +1 -0
  34. package/dist/verify.d.cts +245 -0
  35. package/dist/verify.d.ts +245 -0
  36. package/dist/verify.js +2700 -0
  37. package/dist/verify.js.map +1 -0
  38. package/dist/webpack-loader.cjs +4149 -0
  39. package/dist/webpack-loader.cjs.map +1 -0
  40. package/dist/webpack-loader.d.cts +21 -0
  41. package/dist/webpack-loader.d.ts +21 -0
  42. package/dist/webpack-loader.js +30 -0
  43. package/dist/webpack-loader.js.map +1 -0
  44. package/package.json +99 -0
package/LICENSE ADDED
@@ -0,0 +1,214 @@
1
+ Domflax Software License (DSL-1.0)
2
+ Based on Functional Source License 1.1
3
+
4
+ Copyright (c) 2024 Krishnesh Mishra (github.com/Krishnesh-Mishra)
5
+ Project: Domflax (domflax) — https://github.com/Krishnesh-Mishra/domflax
6
+
7
+ ═══════════════════════════════════════════════════════════════════
8
+
9
+ CHANGE DATE: Ten (10) years from the release date of each
10
+ respective version of the Software.
11
+
12
+ CHANGE LICENSE: Apache License, Version 2.0
13
+ https://www.apache.org/licenses/LICENSE-2.0
14
+
15
+ ═══════════════════════════════════════════════════════════════════
16
+
17
+ 1. DEFINITIONS
18
+
19
+ "Software" means the Domflax source code, compiled forms,
20
+ documentation, pattern library core, and associated files
21
+ distributed under this license, as published by Krishnesh Mishra.
22
+
23
+ "Licensor" means Krishnesh Mishra, the original author and
24
+ sole copyright holder of the Software.
25
+
26
+ "You" means the individual or legal entity exercising rights
27
+ under this license.
28
+
29
+ "Compete" means providing a product or service to third parties
30
+ that: (a) substitutes for the Software; (b) is offered as a DOM
31
+ optimization, DOM flattening, CSS compression, or semantic DOM
32
+ transformation tool; and (c) derives substantial functionality
33
+ from this Software's source code.
34
+
35
+ "Change Date" means the date that is ten (10) years from the
36
+ original release date of each specific version of the Software.
37
+ Each version carries its own Change Date independently.
38
+
39
+ "Production Use" means deploying or executing the Software or
40
+ its output as part of a product or service delivered to end users.
41
+
42
+ ═══════════════════════════════════════════════════════════════════
43
+
44
+ 2. LICENSE GRANT — BEFORE CHANGE DATE
45
+
46
+ Subject to the terms of this license, the Licensor grants You
47
+ a worldwide, royalty-free, non-sublicensable, non-exclusive
48
+ license to:
49
+
50
+ a) USE the Software for any purpose, including commercial and
51
+ private Production Use within your own products and services.
52
+
53
+ b) COPY and DISTRIBUTE verbatim copies of the Software for
54
+ non-competing purposes.
55
+
56
+ c) MODIFY the Software for your own internal use and for
57
+ contributing modifications back to the original repository.
58
+
59
+ d) EMBED the runtime components of the Software
60
+ (domflax/runtime, domflax/cli, domflax/patterns) into your
61
+ own applications and distribute those applications
62
+ commercially, including closed-source applications.
63
+
64
+ ═══════════════════════════════════════════════════════════════════
65
+
66
+ 3. RESTRICTIONS — BEFORE CHANGE DATE
67
+
68
+ You may NOT, before the Change Date of the applicable version:
69
+
70
+ a) COMPETE: Use the Software, in whole or in part, to build,
71
+ market, or distribute a product or service that Competes
72
+ with the Software as defined in Section 1.
73
+
74
+ b) REBRAND AND SELL: Fork, rebrand, rename, or repackage the
75
+ Software and offer it as your own DOM optimization product,
76
+ whether free or paid.
77
+
78
+ c) CLOSE SOURCE: Take the Software, modify it, and distribute
79
+ it in a form that does not make the complete corresponding
80
+ source code available under terms at least as permissive as
81
+ this license.
82
+
83
+ d) MISATTRIBUTE: Remove, obscure, or alter any copyright
84
+ notices, author attribution, or this license text from any
85
+ copy or substantial portion of the Software.
86
+
87
+ e) HOSTED SERVICE: Offer the Software or a modified version
88
+ of it as a paid hosted service, SaaS product, or managed
89
+ service to third parties without explicit written permission
90
+ from the Licensor.
91
+
92
+ ═══════════════════════════════════════════════════════════════════
93
+
94
+ 4. AFTER CHANGE DATE — AUTOMATIC CONVERSION
95
+
96
+ On the Change Date of each version, that version of the Software
97
+ automatically and irrevocably converts to the terms of the
98
+ Apache License, Version 2.0. From that date forward, that
99
+ version is governed solely by Apache 2.0 and may be used,
100
+ copied, modified, and distributed under its terms without
101
+ restriction.
102
+
103
+ For clarity: newer versions released after an earlier version's
104
+ Change Date still carry their own ten (10) year restriction
105
+ window from their own release date.
106
+
107
+ ═══════════════════════════════════════════════════════════════════
108
+
109
+ 5. CONTRIBUTIONS
110
+
111
+ By submitting a contribution (pull request, patch, issue with
112
+ code, or any modification) to the official Domflax repository:
113
+
114
+ a) You grant the Licensor a perpetual, worldwide, royalty-free,
115
+ irrevocable license to use, reproduce, modify, and
116
+ distribute your contribution as part of the Software under
117
+ any license the Licensor chooses, including this license
118
+ and future versions of it.
119
+
120
+ b) You represent that you have the legal right to make the
121
+ contribution and that it does not violate any third-party
122
+ rights.
123
+
124
+ c) You understand that your contribution will be governed by
125
+ this license and will convert to Apache 2.0 on the
126
+ applicable Change Date along with the rest of the Software.
127
+
128
+ d) Attribution: Your name will be recorded in the project's
129
+ CONTRIBUTORS file as a permanent record of your contribution.
130
+
131
+ ═══════════════════════════════════════════════════════════════════
132
+
133
+ 6. PATENT RIGHTS
134
+
135
+ Each contributor grants You a non-exclusive, worldwide,
136
+ royalty-free patent license under that contributor's essential
137
+ patent claims that are necessarily infringed by their
138
+ contribution alone or in combination with the Software. If You
139
+ institute patent litigation against any entity alleging that
140
+ the Software or a contribution infringes a patent, any patent
141
+ licenses granted to You under this license shall terminate.
142
+
143
+ ═══════════════════════════════════════════════════════════════════
144
+
145
+ 7. RUNTIME EXCEPTION
146
+
147
+ The following components of the Software are licensed under the
148
+ MIT License instead of this license, because they are embedded
149
+ directly into end-user application bundles:
150
+
151
+ - domflax/runtime (the _tmpl, _patch, cloneNode helpers)
152
+ - domflax/cli (the command line interface)
153
+ - domflax/patterns (the pattern library)
154
+
155
+ MIT License for the above components:
156
+
157
+ Permission is hereby granted, free of charge, to any person
158
+ obtaining a copy of these components, to deal in them without
159
+ restriction, including without limitation the rights to use,
160
+ copy, modify, merge, publish, distribute, sublicense, and/or
161
+ sell copies, subject to the following conditions:
162
+
163
+ The above copyright notice and this permission notice shall be
164
+ included in all copies or substantial portions of the Software.
165
+
166
+ ═══════════════════════════════════════════════════════════════════
167
+
168
+ 8. DISCLAIMER OF WARRANTIES
169
+
170
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
171
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
172
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE,
173
+ AND NON-INFRINGEMENT. IN NO EVENT SHALL THE LICENSOR BE LIABLE
174
+ FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION
175
+ OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN
176
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
177
+ THE SOFTWARE.
178
+
179
+ ═══════════════════════════════════════════════════════════════════
180
+
181
+ 9. TERMINATION
182
+
183
+ Your rights under this license terminate automatically if:
184
+
185
+ a) You violate any term of this license.
186
+ b) You initiate patent litigation against the Licensor or any
187
+ contributor regarding the Software.
188
+
189
+ Upon termination you must destroy all copies of the Software
190
+ in your possession. Sections 7, 8, and 9 survive termination.
191
+
192
+ ═══════════════════════════════════════════════════════════════════
193
+
194
+ 10. GOVERNING LAW
195
+
196
+ This license shall be governed by and construed in accordance
197
+ with the laws of India, without regard to conflict of law
198
+ principles. Any disputes arising under this license shall be
199
+ subject to the jurisdiction of the courts of India.
200
+
201
+ ═══════════════════════════════════════════════════════════════════
202
+
203
+ 11. CONTACT
204
+
205
+ For commercial licensing inquiries, explicit permissions beyond
206
+ this license, or acquisition discussions:
207
+
208
+ Krishnesh Mishra
209
+ GitHub: https://github.com/Krishnesh-Mishra
210
+ Project: https://github.com/Krishnesh-Mishra/domflax
211
+
212
+ ═══════════════════════════════════════════════════════════════════
213
+
214
+ END OF DOMFLAX SOFTWARE LICENSE (DSL-1.0)