@design.estate/dees-catalog 3.52.2 → 3.52.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design.estate/dees-catalog",
3
- "version": "3.52.2",
3
+ "version": "3.52.3",
4
4
  "private": false,
5
5
  "description": "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.",
6
6
  "main": "dist_ts_web/index.js",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '3.52.2',
6
+ version: '3.52.3',
7
7
  description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
8
8
  }
@@ -114,11 +114,11 @@ export class DeesDataviewCodebox extends DeesElement {
114
114
  }
115
115
 
116
116
  .codegrid {
117
+ position: absolute;
118
+ inset: 0;
117
119
  display: grid;
118
120
  grid-template-columns: 50px auto;
119
121
  overflow: auto;
120
- flex: 1;
121
- min-height: 0;
122
122
  }
123
123
 
124
124
  .lineNumbers {
@@ -214,9 +214,8 @@ export class DeesInputCode extends DeesInputBase<string> {
214
214
  }
215
215
 
216
216
  .editor-wrapper {
217
- position: relative;
218
- flex: 1;
219
- min-height: 0;
217
+ position: absolute;
218
+ inset: 0;
220
219
  }
221
220
 
222
221
  dees-workspace-monaco {
@@ -239,6 +239,7 @@ export class DeesInputRichtext extends DeesInputBase<string> {
239
239
  this.editorElement = this.shadowRoot!.querySelector('.editor-content')!;
240
240
  this.linkInputElement = this.shadowRoot!.querySelector('.link-input input')!;
241
241
  this.initializeEditor();
242
+ this.requestUpdate();
242
243
  }
243
244
 
244
245
  private initializeEditor(): void {
@@ -90,10 +90,10 @@ export const richtextStyles = [
90
90
  }
91
91
 
92
92
  .editor-content {
93
- flex: 1;
93
+ position: absolute;
94
+ inset: 0;
94
95
  padding: 16px;
95
96
  overflow-y: auto;
96
- min-height: var(--min-height, 200px);
97
97
  }
98
98
 
99
99
  .editor-content .ProseMirror {
@@ -101,6 +101,8 @@ export const richtextStyles = [
101
101
  line-height: 1.6;
102
102
  color: ${cssManager.bdTheme('hsl(0 0% 3.9%)', 'hsl(0 0% 98%)')};
103
103
  min-height: 100%;
104
+ white-space: pre-wrap;
105
+ word-wrap: break-word;
104
106
  }
105
107
 
106
108
  .editor-content .ProseMirror p {
@@ -281,7 +283,7 @@ export const richtextStyles = [
281
283
  line-height: 1.4;
282
284
  }
283
285
 
284
- :host([disabled]) .editor-container {
286
+ :host([disabled]) dees-tile {
285
287
  opacity: 0.6;
286
288
  cursor: not-allowed;
287
289
  }
@@ -94,8 +94,8 @@ export class DeesWorkspaceTerminalPreview extends DeesElement {
94
94
  }
95
95
 
96
96
  .terminal-container {
97
- flex: 1;
98
- position: relative;
97
+ position: absolute;
98
+ inset: 0;
99
99
  padding: 8px;
100
100
  }
101
101
 
@@ -310,23 +310,16 @@ body > div[style*="top: -50000px"][style*="width: 50000px"] {
310
310
  }
311
311
 
312
312
  this.tiptapLoadingPromise = (async () => {
313
- const version = CDN_VERSIONS.tiptap;
314
-
315
- // Load all Tiptap modules in parallel
316
- const [
317
- coreModule,
318
- starterKitModule,
319
- underlineModule,
320
- textAlignModule,
321
- linkModule,
322
- typographyModule,
323
- ] = await Promise.all([
324
- import(/* @vite-ignore */ `${CDN_BASE}/@tiptap/core@${version}/+esm`),
325
- import(/* @vite-ignore */ `${CDN_BASE}/@tiptap/starter-kit@${version}/+esm`),
326
- import(/* @vite-ignore */ `${CDN_BASE}/@tiptap/extension-underline@${version}/+esm`),
327
- import(/* @vite-ignore */ `${CDN_BASE}/@tiptap/extension-text-align@${version}/+esm`),
328
- import(/* @vite-ignore */ `${CDN_BASE}/@tiptap/extension-link@${version}/+esm`),
329
- import(/* @vite-ignore */ `${CDN_BASE}/@tiptap/extension-typography@${version}/+esm`),
313
+ // Import directly from npm packages — bundled by esbuild into a single
314
+ // module graph. CDN loading caused duplicate ProseMirror instances because
315
+ // jsdelivr resolves each package's dependencies independently.
316
+ const [coreModule, starterKitModule, underlineModule, textAlignModule, linkModule, typographyModule] = await Promise.all([
317
+ import('@tiptap/core'),
318
+ import('@tiptap/starter-kit'),
319
+ import('@tiptap/extension-underline'),
320
+ import('@tiptap/extension-text-align'),
321
+ import('@tiptap/extension-link'),
322
+ import('@tiptap/extension-typography'),
330
323
  ]);
331
324
 
332
325
  this.tiptapLib = {