@1agh/maude 0.17.2 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/cli/commands/design.mjs +92 -29
  2. package/package.json +8 -8
  3. package/plugins/design/dev-server/bin/screenshot.sh +12 -0
  4. package/plugins/design/dev-server/boot-self-heal.ts +87 -0
  5. package/plugins/design/dev-server/build.ts +56 -2
  6. package/plugins/design/dev-server/config.schema.json +12 -0
  7. package/plugins/design/dev-server/dist/client.bundle.js +3 -3
  8. package/plugins/design/dev-server/dist/runtime/pixi-js.js +52708 -0
  9. package/plugins/design/dev-server/dist/runtime/react-dom.js +249 -0
  10. package/plugins/design/dev-server/dist/runtime/react-dom_client.js +10375 -0
  11. package/plugins/design/dev-server/dist/runtime/react.js +553 -0
  12. package/plugins/design/dev-server/dist/runtime/react_jsx-dev-runtime.js +78 -0
  13. package/plugins/design/dev-server/dist/runtime/react_jsx-runtime.js +103 -0
  14. package/plugins/design/dev-server/http.ts +5 -3
  15. package/plugins/design/dev-server/paths.ts +115 -0
  16. package/plugins/design/dev-server/runtime-bundle.ts +80 -7
  17. package/plugins/design/dev-server/server.ts +6 -0
  18. package/plugins/design/dev-server/test/boot-self-heal.test.ts +87 -0
  19. package/plugins/design/dev-server/test/paths.test.ts +31 -0
  20. package/plugins/design/dev-server/test/runtime-bundle-error-mapping.test.ts +43 -0
  21. package/plugins/design/templates/canvas.tsx.template +7 -7
  22. package/plugins/design/templates/design-system-inspiration/audience-pro/colors-presence.html +1 -1
  23. package/plugins/design/templates/design-system-inspiration/core/README.philosophy.md.tpl +11 -7
  24. package/plugins/design/templates/design-system-inspiration/core/SKILL.md.tpl +4 -3
  25. package/plugins/design/templates/design-system-inspiration/core/colors_and_type.css.tpl +61 -57
  26. package/plugins/design/templates/design-system-inspiration/core/config.json.tpl +2 -0
  27. package/plugins/design/templates/design-system-inspiration/core/preview/colors-accent.html +4 -4
  28. package/plugins/design/templates/design-system-inspiration/meta/presence-multiplayer.html +1 -1
  29. package/plugins/design/templates/design-system-inspiration/platform-desktop/ui_kits-desktop-showcase.html +3 -0
  30. package/plugins/design/templates/design-system-inspiration/platform-mobile/ui_kits-mobile-showcase.html +1 -1
  31. package/plugins/design/templates/design-system-inspiration/theme-both/colors-themes-side-by-side.html +6 -6
  32. package/plugins/design/templates/design-system-inspiration/universal/components-dialogs.html +3 -2
  33. package/plugins/design/templates/design-system-inspiration/universal/logo.html +2 -1
@@ -0,0 +1,249 @@
1
+ var __create = Object.create;
2
+ var __getProtoOf = Object.getPrototypeOf;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ function __accessProp(key) {
7
+ return this[key];
8
+ }
9
+ var __toESMCache_node;
10
+ var __toESMCache_esm;
11
+ var __toESM = (mod, isNodeMode, target) => {
12
+ var canCache = mod != null && typeof mod === "object";
13
+ if (canCache) {
14
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
15
+ var cached = cache.get(mod);
16
+ if (cached)
17
+ return cached;
18
+ }
19
+ target = mod != null ? __create(__getProtoOf(mod)) : {};
20
+ const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
21
+ for (let key of __getOwnPropNames(mod))
22
+ if (!__hasOwnProp.call(to, key))
23
+ __defProp(to, key, {
24
+ get: __accessProp.bind(mod, key),
25
+ enumerable: true
26
+ });
27
+ if (canCache)
28
+ cache.set(mod, to);
29
+ return to;
30
+ };
31
+ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
32
+ var __returnValue = (v) => v;
33
+ function __exportSetter(name, newValue) {
34
+ this[name] = __returnValue.bind(null, newValue);
35
+ }
36
+ var __export = (target, all) => {
37
+ for (var name in all)
38
+ __defProp(target, name, {
39
+ get: all[name],
40
+ enumerable: true,
41
+ configurable: true,
42
+ set: __exportSetter.bind(all, name)
43
+ });
44
+ };
45
+ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
46
+
47
+ // ../../../node_modules/.pnpm/react-dom@19.2.6_react@19.2.6/node_modules/react-dom/cjs/react-dom.production.js
48
+ var exports_react_dom_production = {};
49
+ __export(exports_react_dom_production, {
50
+ version: () => $version,
51
+ useFormStatus: () => $useFormStatus,
52
+ useFormState: () => $useFormState,
53
+ unstable_batchedUpdates: () => $unstable_batchedUpdates,
54
+ requestFormReset: () => $requestFormReset,
55
+ preloadModule: () => $preloadModule,
56
+ preload: () => $preload,
57
+ preinitModule: () => $preinitModule,
58
+ preinit: () => $preinit,
59
+ prefetchDNS: () => $prefetchDNS,
60
+ preconnect: () => $preconnect,
61
+ flushSync: () => $flushSync,
62
+ createPortal: () => $createPortal,
63
+ __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE: () => $__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE
64
+ });
65
+ import * as React from "react";
66
+ function formatProdErrorMessage(code) {
67
+ var url = "https://react.dev/errors/" + code;
68
+ if (1 < arguments.length) {
69
+ url += "?args[]=" + encodeURIComponent(arguments[1]);
70
+ for (var i = 2;i < arguments.length; i++)
71
+ url += "&args[]=" + encodeURIComponent(arguments[i]);
72
+ }
73
+ return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
74
+ }
75
+ function noop() {}
76
+ function createPortal$1(children, containerInfo, implementation) {
77
+ var key = 3 < arguments.length && arguments[3] !== undefined ? arguments[3] : null;
78
+ return {
79
+ $$typeof: REACT_PORTAL_TYPE,
80
+ key: key == null ? null : "" + key,
81
+ children,
82
+ containerInfo,
83
+ implementation
84
+ };
85
+ }
86
+ function getCrossOriginStringAs(as, input) {
87
+ if (as === "font")
88
+ return "";
89
+ if (typeof input === "string")
90
+ return input === "use-credentials" ? input : "";
91
+ }
92
+ var Internals, REACT_PORTAL_TYPE, ReactSharedInternals, $__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $createPortal = function(children, container) {
93
+ var key = 2 < arguments.length && arguments[2] !== undefined ? arguments[2] : null;
94
+ if (!container || container.nodeType !== 1 && container.nodeType !== 9 && container.nodeType !== 11)
95
+ throw Error(formatProdErrorMessage(299));
96
+ return createPortal$1(children, container, null, key);
97
+ }, $flushSync = function(fn) {
98
+ var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
99
+ try {
100
+ if (ReactSharedInternals.T = null, Internals.p = 2, fn)
101
+ return fn();
102
+ } finally {
103
+ ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f();
104
+ }
105
+ }, $preconnect = function(href, options) {
106
+ typeof href === "string" && (options ? (options = options.crossOrigin, options = typeof options === "string" ? options === "use-credentials" ? options : "" : undefined) : options = null, Internals.d.C(href, options));
107
+ }, $prefetchDNS = function(href) {
108
+ typeof href === "string" && Internals.d.D(href);
109
+ }, $preinit = function(href, options) {
110
+ if (typeof href === "string" && options && typeof options.as === "string") {
111
+ var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = typeof options.integrity === "string" ? options.integrity : undefined, fetchPriority = typeof options.fetchPriority === "string" ? options.fetchPriority : undefined;
112
+ as === "style" ? Internals.d.S(href, typeof options.precedence === "string" ? options.precedence : undefined, {
113
+ crossOrigin,
114
+ integrity,
115
+ fetchPriority
116
+ }) : as === "script" && Internals.d.X(href, {
117
+ crossOrigin,
118
+ integrity,
119
+ fetchPriority,
120
+ nonce: typeof options.nonce === "string" ? options.nonce : undefined
121
+ });
122
+ }
123
+ }, $preinitModule = function(href, options) {
124
+ if (typeof href === "string")
125
+ if (typeof options === "object" && options !== null) {
126
+ if (options.as == null || options.as === "script") {
127
+ var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
128
+ Internals.d.M(href, {
129
+ crossOrigin,
130
+ integrity: typeof options.integrity === "string" ? options.integrity : undefined,
131
+ nonce: typeof options.nonce === "string" ? options.nonce : undefined
132
+ });
133
+ }
134
+ } else
135
+ options == null && Internals.d.M(href);
136
+ }, $preload = function(href, options) {
137
+ if (typeof href === "string" && typeof options === "object" && options !== null && typeof options.as === "string") {
138
+ var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
139
+ Internals.d.L(href, as, {
140
+ crossOrigin,
141
+ integrity: typeof options.integrity === "string" ? options.integrity : undefined,
142
+ nonce: typeof options.nonce === "string" ? options.nonce : undefined,
143
+ type: typeof options.type === "string" ? options.type : undefined,
144
+ fetchPriority: typeof options.fetchPriority === "string" ? options.fetchPriority : undefined,
145
+ referrerPolicy: typeof options.referrerPolicy === "string" ? options.referrerPolicy : undefined,
146
+ imageSrcSet: typeof options.imageSrcSet === "string" ? options.imageSrcSet : undefined,
147
+ imageSizes: typeof options.imageSizes === "string" ? options.imageSizes : undefined,
148
+ media: typeof options.media === "string" ? options.media : undefined
149
+ });
150
+ }
151
+ }, $preloadModule = function(href, options) {
152
+ if (typeof href === "string")
153
+ if (options) {
154
+ var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
155
+ Internals.d.m(href, {
156
+ as: typeof options.as === "string" && options.as !== "script" ? options.as : undefined,
157
+ crossOrigin,
158
+ integrity: typeof options.integrity === "string" ? options.integrity : undefined
159
+ });
160
+ } else
161
+ Internals.d.m(href);
162
+ }, $requestFormReset = function(form) {
163
+ Internals.d.r(form);
164
+ }, $unstable_batchedUpdates = function(fn, a) {
165
+ return fn(a);
166
+ }, $useFormState = function(action, initialState, permalink) {
167
+ return ReactSharedInternals.H.useFormState(action, initialState, permalink);
168
+ }, $useFormStatus = function() {
169
+ return ReactSharedInternals.H.useHostTransitionStatus();
170
+ }, $version = "19.2.6";
171
+ var init_react_dom_production = __esm(() => {
172
+ Internals = {
173
+ d: {
174
+ f: noop,
175
+ r: function() {
176
+ throw Error(formatProdErrorMessage(522));
177
+ },
178
+ D: noop,
179
+ C: noop,
180
+ L: noop,
181
+ m: noop,
182
+ X: noop,
183
+ S: noop,
184
+ M: noop
185
+ },
186
+ p: 0,
187
+ findDOMNode: null
188
+ };
189
+ REACT_PORTAL_TYPE = Symbol.for("react.portal");
190
+ ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
191
+ $__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
192
+ });
193
+
194
+ // ../../../node_modules/.pnpm/react-dom@19.2.6_react@19.2.6/node_modules/react-dom/index.js
195
+ var require_react_dom = __commonJS((exports, module) => {
196
+ init_react_dom_production();
197
+ function checkDCE() {
198
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
199
+ return;
200
+ }
201
+ if (false) {}
202
+ try {
203
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
204
+ } catch (err) {
205
+ console.error(err);
206
+ }
207
+ }
208
+ if (true) {
209
+ checkDCE();
210
+ module.exports = exports_react_dom_production;
211
+ }
212
+ });
213
+
214
+ // synth:/home/runner/work/maude/maude/plugins/design/dev-server/.runtime-bundle-react-dom-entry.tsx
215
+ var __mod__ = __toESM(require_react_dom(), 1);
216
+ var {
217
+ __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
218
+ createPortal,
219
+ flushSync,
220
+ preconnect,
221
+ prefetchDNS,
222
+ preinit,
223
+ preinitModule,
224
+ preload,
225
+ preloadModule,
226
+ requestFormReset,
227
+ unstable_batchedUpdates,
228
+ useFormState,
229
+ useFormStatus,
230
+ version
231
+ } = __mod__;
232
+ var __runtime_bundle_react_dom_entry_default = __mod__;
233
+ export {
234
+ version,
235
+ useFormStatus,
236
+ useFormState,
237
+ unstable_batchedUpdates,
238
+ requestFormReset,
239
+ preloadModule,
240
+ preload,
241
+ preinitModule,
242
+ preinit,
243
+ prefetchDNS,
244
+ preconnect,
245
+ flushSync,
246
+ __runtime_bundle_react_dom_entry_default as default,
247
+ createPortal,
248
+ __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE
249
+ };