@orangelogic/design-system 3.54.0 → 3.56.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "3.54.0",
4
+ "version": "3.56.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -10,6 +10,9 @@ import { TemplateResult } from 'lit';
10
10
  import { CxBlockPicker } from './components/block-picker';
11
11
  import { CxConfigManager } from './components/config-manager';
12
12
  import { CxRTEBubbleMenu, CxRTETableGenerator } from './plugins';
13
+ type TranslatableTextRecordOptions = {
14
+ isAutoBackfilled?: boolean;
15
+ };
13
16
  /**
14
17
  * @summary The `cx-content-builder` component is used to create and manage content blocks in a CMS.
15
18
  *
@@ -304,8 +307,9 @@ export default class CxContentBuilder extends CortexElement {
304
307
  private ensureConfigUi;
305
308
  storeTemplate(id: string, data: Record<string, any>, update?: boolean): void;
306
309
  private hasDefaultLanguageTextRecord;
310
+ private canBackfillDefaultLanguageTextRecord;
307
311
  private hasDefaultLanguageAttributeRecord;
308
- storeTranslatableText(id: string, data: string): void;
312
+ storeTranslatableText(id: string, data: string, options?: TranslatableTextRecordOptions): void;
309
313
  storeTranslatableAttribute(id: string, data: Record<string, Record<string, string>>): void;
310
314
  private updateFrameSize;
311
315
  handleSupportedLanguagesChange(): void;
@@ -574,3 +578,4 @@ declare global {
574
578
  'cx-content-builder': CxContentBuilder;
575
579
  }
576
580
  }
581
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Extension } from '@tiptap/core';
2
+ /**
3
+ * Typing over a select-all (Ctrl+A) keeps the formatting of the first character, as TinyMCE and
4
+ * Google Docs do. An `AllSelection` starts on the document itself, outside any paragraph, so
5
+ * ProseMirror finds no marks to carry over and the typed text came out unformatted.
6
+ */
7
+ declare const SelectAllFormat: Extension<any, any>;
8
+ export default SelectAllFormat;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "3.54.0",
4
+ "version": "3.56.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {