@design.estate/dees-catalog 10.0.0 → 11.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 (26) hide show
  1. package/dist_bundle/bundle.js +914 -780
  2. package/dist_bundle/bundle.js.map +1 -1
  3. package/dist_ts_web/00_commitinfo_data.js +1 -1
  4. package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.demo.js +24 -1
  5. package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.js +13 -1
  6. package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.d.ts +62 -48
  7. package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.demo.js +97 -57
  8. package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.js +541 -666
  9. package/dist_ts_web/elements/00group-harness/dees-harness-tool-card/dees-harness-tool-card.js +19 -1
  10. package/dist_ts_web/elements/00group-harness/dees-terminal-view/dees-terminal-view.d.ts +45 -6
  11. package/dist_ts_web/elements/00group-harness/dees-terminal-view/dees-terminal-view.js +184 -27
  12. package/dist_ts_web/elements/00group-harness/interfaces.d.ts +59 -20
  13. package/dist_ts_web/services/DeesServiceLibLoader.d.ts +7 -0
  14. package/dist_ts_web/services/DeesServiceLibLoader.js +45 -22
  15. package/package.json +1 -2
  16. package/readme.md +37 -17
  17. package/ts_web/00_commitinfo_data.ts +1 -1
  18. package/ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.demo.ts +23 -0
  19. package/ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.ts +12 -0
  20. package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.demo.ts +107 -55
  21. package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.ts +622 -756
  22. package/ts_web/elements/00group-harness/dees-harness-tool-card/dees-harness-tool-card.ts +18 -0
  23. package/ts_web/elements/00group-harness/dees-terminal-view/dees-terminal-view.ts +196 -24
  24. package/ts_web/elements/00group-harness/interfaces.ts +63 -19
  25. package/ts_web/services/DeesServiceLibLoader.ts +150 -102
  26. package/.smartconfig.json +0 -86
@@ -164,6 +164,26 @@ export class DeesServiceLibLoader {
164
164
  return DeesServiceLibLoader.instance;
165
165
  }
166
166
 
167
+ /**
168
+ * Shares one in-flight load between concurrent callers — but only for as long
169
+ * as that load can still succeed. A rejected load clears its own cache entry,
170
+ * so the next call makes a fresh attempt instead of replaying a stale failure
171
+ * for the lifetime of the page. Every load below goes through this.
172
+ */
173
+ private shareLoad<T>(
174
+ loadArg: () => Promise<T>,
175
+ readArg: () => Promise<T> | null,
176
+ writeArg: (promiseArg: Promise<T> | null) => void,
177
+ ): Promise<T> {
178
+ const pending = loadArg();
179
+ writeArg(pending);
180
+ pending.catch(() => {
181
+ // Retract only this attempt; a newer one may already own the entry.
182
+ if (readArg() === pending) writeArg(null);
183
+ });
184
+ return pending;
185
+ }
186
+
167
187
  /**
168
188
  * Load xterm terminal emulator from CDN
169
189
  * @returns Promise resolving to xterm module with Terminal class
@@ -177,20 +197,24 @@ export class DeesServiceLibLoader {
177
197
  return this.xtermLoadingPromise;
178
198
  }
179
199
 
180
- this.xtermLoadingPromise = (async () => {
181
- const url = `${CDN_BASE}/xterm@${CDN_VERSIONS.xterm}/+esm`;
182
- const module = await import(/* @vite-ignore */ url);
183
-
184
- // Also load and inject xterm CSS
185
- await this.injectXtermStyles();
186
-
187
- this.xtermLib = {
188
- Terminal: module.Terminal,
189
- };
190
- return this.xtermLib;
191
- })();
192
-
193
- return this.xtermLoadingPromise;
200
+ return this.shareLoad(
201
+ async () => {
202
+ const url = `${CDN_BASE}/xterm@${CDN_VERSIONS.xterm}/+esm`;
203
+ const module = await import(/* @vite-ignore */ url);
204
+
205
+ // Also load and inject xterm CSS
206
+ await this.injectXtermStyles();
207
+
208
+ this.xtermLib = {
209
+ Terminal: module.Terminal,
210
+ };
211
+ return this.xtermLib;
212
+ },
213
+ () => this.xtermLoadingPromise,
214
+ (promiseArg) => {
215
+ this.xtermLoadingPromise = promiseArg;
216
+ },
217
+ );
194
218
  }
195
219
 
196
220
  /**
@@ -237,17 +261,21 @@ export class DeesServiceLibLoader {
237
261
  return this.xtermFitAddonLoadingPromise;
238
262
  }
239
263
 
240
- this.xtermFitAddonLoadingPromise = (async () => {
241
- const url = `${CDN_BASE}/xterm-addon-fit@${CDN_VERSIONS.xtermAddonFit}/+esm`;
242
- const module = await import(/* @vite-ignore */ url);
243
-
244
- this.xtermFitAddonLib = {
245
- FitAddon: module.FitAddon,
246
- };
247
- return this.xtermFitAddonLib;
248
- })();
249
-
250
- return this.xtermFitAddonLoadingPromise;
264
+ return this.shareLoad(
265
+ async () => {
266
+ const url = `${CDN_BASE}/xterm-addon-fit@${CDN_VERSIONS.xtermAddonFit}/+esm`;
267
+ const module = await import(/* @vite-ignore */ url);
268
+
269
+ this.xtermFitAddonLib = {
270
+ FitAddon: module.FitAddon,
271
+ };
272
+ return this.xtermFitAddonLib;
273
+ },
274
+ () => this.xtermFitAddonLoadingPromise,
275
+ (promiseArg) => {
276
+ this.xtermFitAddonLoadingPromise = promiseArg;
277
+ },
278
+ );
251
279
  }
252
280
 
253
281
  /**
@@ -263,17 +291,21 @@ export class DeesServiceLibLoader {
263
291
  return this.xtermSearchAddonLoadingPromise;
264
292
  }
265
293
 
266
- this.xtermSearchAddonLoadingPromise = (async () => {
267
- const url = `${CDN_BASE}/xterm-addon-search@${CDN_VERSIONS.xtermAddonSearch}/+esm`;
268
- const module = await import(/* @vite-ignore */ url);
269
-
270
- this.xtermSearchAddonLib = {
271
- SearchAddon: module.SearchAddon,
272
- };
273
- return this.xtermSearchAddonLib;
274
- })();
275
-
276
- return this.xtermSearchAddonLoadingPromise;
294
+ return this.shareLoad(
295
+ async () => {
296
+ const url = `${CDN_BASE}/xterm-addon-search@${CDN_VERSIONS.xtermAddonSearch}/+esm`;
297
+ const module = await import(/* @vite-ignore */ url);
298
+
299
+ this.xtermSearchAddonLib = {
300
+ SearchAddon: module.SearchAddon,
301
+ };
302
+ return this.xtermSearchAddonLib;
303
+ },
304
+ () => this.xtermSearchAddonLoadingPromise,
305
+ (promiseArg) => {
306
+ this.xtermSearchAddonLoadingPromise = promiseArg;
307
+ },
308
+ );
277
309
  }
278
310
 
279
311
  /**
@@ -319,15 +351,19 @@ export class DeesServiceLibLoader {
319
351
  return this.highlightJsLoadingPromise;
320
352
  }
321
353
 
322
- this.highlightJsLoadingPromise = (async () => {
323
- const url = `${CDN_BASE}/highlight.js@${CDN_VERSIONS.highlightJs}/+esm`;
324
- const module = await import(/* @vite-ignore */ url);
325
-
326
- this.highlightJsLib = module.default;
327
- return this.highlightJsLib!;
328
- })();
329
-
330
- return this.highlightJsLoadingPromise;
354
+ return this.shareLoad(
355
+ async () => {
356
+ const url = `${CDN_BASE}/highlight.js@${CDN_VERSIONS.highlightJs}/+esm`;
357
+ const module = await import(/* @vite-ignore */ url);
358
+
359
+ this.highlightJsLib = module.default;
360
+ return this.highlightJsLib!;
361
+ },
362
+ () => this.highlightJsLoadingPromise,
363
+ (promiseArg) => {
364
+ this.highlightJsLoadingPromise = promiseArg;
365
+ },
366
+ );
331
367
  }
332
368
 
333
369
  /**
@@ -343,22 +379,26 @@ export class DeesServiceLibLoader {
343
379
  return this.lightweightChartsLoadingPromise;
344
380
  }
345
381
 
346
- this.lightweightChartsLoadingPromise = (async () => {
347
- const url = `${CDN_BASE}/lightweight-charts@${CDN_VERSIONS.lightweightCharts}/+esm`;
348
- const module = await import(/* @vite-ignore */ url);
349
-
350
- this.lightweightChartsLib = {
351
- createChart: module.createChart,
352
- AreaSeries: module.AreaSeries,
353
- LineSeries: module.LineSeries,
354
- ColorType: module.ColorType,
355
- LineType: module.LineType,
356
- CrosshairMode: module.CrosshairMode,
357
- };
358
- return this.lightweightChartsLib;
359
- })();
360
-
361
- return this.lightweightChartsLoadingPromise;
382
+ return this.shareLoad(
383
+ async () => {
384
+ const url = `${CDN_BASE}/lightweight-charts@${CDN_VERSIONS.lightweightCharts}/+esm`;
385
+ const module = await import(/* @vite-ignore */ url);
386
+
387
+ this.lightweightChartsLib = {
388
+ createChart: module.createChart,
389
+ AreaSeries: module.AreaSeries,
390
+ LineSeries: module.LineSeries,
391
+ ColorType: module.ColorType,
392
+ LineType: module.LineType,
393
+ CrosshairMode: module.CrosshairMode,
394
+ };
395
+ return this.lightweightChartsLib;
396
+ },
397
+ () => this.lightweightChartsLoadingPromise,
398
+ (promiseArg) => {
399
+ this.lightweightChartsLoadingPromise = promiseArg;
400
+ },
401
+ );
362
402
  }
363
403
 
364
404
  /**
@@ -374,21 +414,25 @@ export class DeesServiceLibLoader {
374
414
  return this.echartsLoadingPromise;
375
415
  }
376
416
 
377
- this.echartsLoadingPromise = (async () => {
378
- // Use the pre-built ESM bundle which includes all chart types and components.
379
- // The +esm wrapper only exports the core without auto-registered chart types.
380
- const url = `${CDN_BASE}/echarts@${CDN_VERSIONS.echarts}/dist/echarts.esm.min.js`;
381
- const module = await import(/* @vite-ignore */ url);
382
-
383
- this.echartsLib = {
384
- init: module.init,
385
- dispose: module.dispose,
386
- getInstanceByDom: module.getInstanceByDom,
387
- };
388
- return this.echartsLib;
389
- })();
390
-
391
- return this.echartsLoadingPromise;
417
+ return this.shareLoad(
418
+ async () => {
419
+ // Use the pre-built ESM bundle which includes all chart types and components.
420
+ // The +esm wrapper only exports the core without auto-registered chart types.
421
+ const url = `${CDN_BASE}/echarts@${CDN_VERSIONS.echarts}/dist/echarts.esm.min.js`;
422
+ const module = await import(/* @vite-ignore */ url);
423
+
424
+ this.echartsLib = {
425
+ init: module.init,
426
+ dispose: module.dispose,
427
+ getInstanceByDom: module.getInstanceByDom,
428
+ };
429
+ return this.echartsLib;
430
+ },
431
+ () => this.echartsLoadingPromise,
432
+ (promiseArg) => {
433
+ this.echartsLoadingPromise = promiseArg;
434
+ },
435
+ );
392
436
  }
393
437
 
394
438
  /**
@@ -404,32 +448,36 @@ export class DeesServiceLibLoader {
404
448
  return this.tiptapLoadingPromise;
405
449
  }
406
450
 
407
- this.tiptapLoadingPromise = (async () => {
408
- // Import directly from npm packages — bundled by esbuild into a single
409
- // module graph. CDN loading caused duplicate ProseMirror instances because
410
- // jsdelivr resolves each package's dependencies independently.
411
- const [coreModule, starterKitModule, underlineModule, textAlignModule, linkModule, typographyModule] = await Promise.all([
412
- import('@tiptap/core'),
413
- import('@tiptap/starter-kit'),
414
- import('@tiptap/extension-underline'),
415
- import('@tiptap/extension-text-align'),
416
- import('@tiptap/extension-link'),
417
- import('@tiptap/extension-typography'),
418
- ]);
419
-
420
- this.tiptapLib = {
421
- Editor: coreModule.Editor,
422
- StarterKit: starterKitModule.default || starterKitModule.StarterKit,
423
- Underline: underlineModule.default || underlineModule.Underline,
424
- TextAlign: textAlignModule.default || textAlignModule.TextAlign,
425
- Link: linkModule.default || linkModule.Link,
426
- Typography: typographyModule.default || typographyModule.Typography,
427
- };
428
-
429
- return this.tiptapLib;
430
- })();
431
-
432
- return this.tiptapLoadingPromise;
451
+ return this.shareLoad(
452
+ async () => {
453
+ // Import directly from npm packages — bundled by esbuild into a single
454
+ // module graph. CDN loading caused duplicate ProseMirror instances because
455
+ // jsdelivr resolves each package's dependencies independently.
456
+ const [coreModule, starterKitModule, underlineModule, textAlignModule, linkModule, typographyModule] = await Promise.all([
457
+ import('@tiptap/core'),
458
+ import('@tiptap/starter-kit'),
459
+ import('@tiptap/extension-underline'),
460
+ import('@tiptap/extension-text-align'),
461
+ import('@tiptap/extension-link'),
462
+ import('@tiptap/extension-typography'),
463
+ ]);
464
+
465
+ this.tiptapLib = {
466
+ Editor: coreModule.Editor,
467
+ StarterKit: starterKitModule.default || starterKitModule.StarterKit,
468
+ Underline: underlineModule.default || underlineModule.Underline,
469
+ TextAlign: textAlignModule.default || textAlignModule.TextAlign,
470
+ Link: linkModule.default || linkModule.Link,
471
+ Typography: typographyModule.default || typographyModule.Typography,
472
+ };
473
+
474
+ return this.tiptapLib;
475
+ },
476
+ () => this.tiptapLoadingPromise,
477
+ (promiseArg) => {
478
+ this.tiptapLoadingPromise = promiseArg;
479
+ },
480
+ );
433
481
  }
434
482
 
435
483
  /**
package/.smartconfig.json DELETED
@@ -1,86 +0,0 @@
1
- {
2
- "@git.zone/cli": {
3
- "projectType": "wcc",
4
- "module": {
5
- "githost": "code.foss.global",
6
- "gitscope": "design.estate",
7
- "gitrepo": "dees-catalog",
8
- "description": "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.",
9
- "npmPackagename": "@design.estate/dees-catalog",
10
- "license": "MIT",
11
- "projectDomain": "design.estate",
12
- "keywords": [
13
- "Web Components",
14
- "User Interface",
15
- "UI Library",
16
- "Component Library",
17
- "JavaScript",
18
- "TypeScript",
19
- "Dynamic Components",
20
- "Modular Architecture",
21
- "Reusable Components",
22
- "Web Development",
23
- "Application UI",
24
- "Custom Elements",
25
- "Shadow DOM",
26
- "UI Elements",
27
- "Dashboard Interfaces",
28
- "Form Handling",
29
- "Data Display",
30
- "Visualization",
31
- "Charting",
32
- "Interactive Components",
33
- "Responsive Design",
34
- "Web Applications",
35
- "Modern Web",
36
- "Frontend Development"
37
- ]
38
- },
39
- "release": {
40
- "targets": {
41
- "git": {
42
- "enabled": true,
43
- "remote": "origin",
44
- "pushBranch": true,
45
- "pushTags": true
46
- },
47
- "npm": {
48
- "enabled": true,
49
- "registries": [
50
- "https://verdaccio.lossless.digital",
51
- "https://registry.npmjs.org"
52
- ],
53
- "accessLevel": "public",
54
- "alreadyPublished": "success"
55
- }
56
- }
57
- },
58
- "schemaVersion": 2
59
- },
60
- "@git.zone/tsdoc": {
61
- "legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
62
- },
63
- "@ship.zone/szci": {
64
- "npmGlobalTools": []
65
- },
66
- "@git.zone/tsbundle": {
67
- "bundles": [
68
- {
69
- "from": "./ts_web/index.ts",
70
- "to": "./dist_bundle/bundle.js",
71
- "outputMode": "bundle",
72
- "bundler": "esbuild",
73
- "banner": "/*!\n * Includes PDF.js 4.10.38, Copyright 2024 Mozilla Foundation.\n * PDF.js is licensed under the Apache License, Version 2.0.\n * This file was generated by bundling PDF.js with @design.estate/dees-catalog.\n * See third-party-notices.md for attribution, modification notice, and license terms.\n */",
74
- "includeFiles": [
75
- "./third-party-notices.md"
76
- ]
77
- }
78
- ]
79
- },
80
- "@git.zone/tswatch": {
81
- "preset": "element",
82
- "server": {
83
- "enabled": true
84
- }
85
- }
86
- }