@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.
- package/dist_bundle/bundle.js +914 -780
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.demo.js +24 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.js +13 -1
- package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.d.ts +62 -48
- package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.demo.js +97 -57
- package/dist_ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.js +541 -666
- package/dist_ts_web/elements/00group-harness/dees-harness-tool-card/dees-harness-tool-card.js +19 -1
- package/dist_ts_web/elements/00group-harness/dees-terminal-view/dees-terminal-view.d.ts +45 -6
- package/dist_ts_web/elements/00group-harness/dees-terminal-view/dees-terminal-view.js +184 -27
- package/dist_ts_web/elements/00group-harness/interfaces.d.ts +59 -20
- package/dist_ts_web/services/DeesServiceLibLoader.d.ts +7 -0
- package/dist_ts_web/services/DeesServiceLibLoader.js +45 -22
- package/package.json +1 -2
- package/readme.md +37 -17
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-harness/dees-harness-chat/dees-harness-chat.demo.ts +23 -0
- package/ts_web/elements/00group-harness/dees-harness-message-list/dees-harness-message-list.ts +12 -0
- package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.demo.ts +107 -55
- package/ts_web/elements/00group-harness/dees-harness-session-list/dees-harness-session-list.ts +622 -756
- package/ts_web/elements/00group-harness/dees-harness-tool-card/dees-harness-tool-card.ts +18 -0
- package/ts_web/elements/00group-harness/dees-terminal-view/dees-terminal-view.ts +196 -24
- package/ts_web/elements/00group-harness/interfaces.ts +63 -19
- package/ts_web/services/DeesServiceLibLoader.ts +150 -102
- 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.
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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.
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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.
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
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.
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
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.
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
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.
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
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.
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
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
|
-
}
|