@tiptap/extension-list 3.20.3 → 3.20.4

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 (49) hide show
  1. package/dist/bullet-list/index.cjs +112 -0
  2. package/dist/bullet-list/index.cjs.map +1 -0
  3. package/dist/bullet-list/index.d.cts +51 -0
  4. package/dist/bullet-list/index.d.ts +51 -0
  5. package/dist/bullet-list/index.js +84 -0
  6. package/dist/bullet-list/index.js.map +1 -0
  7. package/dist/index.cjs +1130 -0
  8. package/dist/index.cjs.map +1 -0
  9. package/dist/index.d.cts +300 -0
  10. package/dist/index.d.ts +300 -0
  11. package/dist/index.js +1105 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/item/index.cjs +125 -0
  14. package/dist/item/index.cjs.map +1 -0
  15. package/dist/item/index.d.cts +29 -0
  16. package/dist/item/index.d.ts +29 -0
  17. package/dist/item/index.js +98 -0
  18. package/dist/item/index.js.map +1 -0
  19. package/dist/keymap/index.cjs +308 -0
  20. package/dist/keymap/index.cjs.map +1 -0
  21. package/dist/keymap/index.d.cts +63 -0
  22. package/dist/keymap/index.d.ts +63 -0
  23. package/dist/keymap/index.js +286 -0
  24. package/dist/keymap/index.js.map +1 -0
  25. package/dist/kit/index.cjs +1108 -0
  26. package/dist/kit/index.cjs.map +1 -0
  27. package/dist/kit/index.d.cts +212 -0
  28. package/dist/kit/index.d.ts +212 -0
  29. package/dist/kit/index.js +1095 -0
  30. package/dist/kit/index.js.map +1 -0
  31. package/dist/ordered-list/index.cjs +302 -0
  32. package/dist/ordered-list/index.cjs.map +1 -0
  33. package/dist/ordered-list/index.d.cts +52 -0
  34. package/dist/ordered-list/index.d.ts +52 -0
  35. package/dist/ordered-list/index.js +274 -0
  36. package/dist/ordered-list/index.js.map +1 -0
  37. package/dist/task-item/index.cjs +231 -0
  38. package/dist/task-item/index.cjs.map +1 -0
  39. package/dist/task-item/index.d.cts +53 -0
  40. package/dist/task-item/index.d.ts +53 -0
  41. package/dist/task-item/index.js +209 -0
  42. package/dist/task-item/index.js.map +1 -0
  43. package/dist/task-list/index.cjs +160 -0
  44. package/dist/task-list/index.cjs.map +1 -0
  45. package/dist/task-list/index.d.cts +34 -0
  46. package/dist/task-list/index.d.ts +34 -0
  47. package/dist/task-list/index.js +133 -0
  48. package/dist/task-list/index.js.map +1 -0
  49. package/package.json +5 -5
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/bullet-list/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ BulletList: () => BulletList,
24
+ bulletListInputRegex: () => bulletListInputRegex
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+
28
+ // src/bullet-list/bullet-list.ts
29
+ var import_core = require("@tiptap/core");
30
+ var ListItemName = "listItem";
31
+ var TextStyleName = "textStyle";
32
+ var bulletListInputRegex = /^\s*([-+*])\s$/;
33
+ var BulletList = import_core.Node.create({
34
+ name: "bulletList",
35
+ addOptions() {
36
+ return {
37
+ itemTypeName: "listItem",
38
+ HTMLAttributes: {},
39
+ keepMarks: false,
40
+ keepAttributes: false
41
+ };
42
+ },
43
+ group: "block list",
44
+ content() {
45
+ return `${this.options.itemTypeName}+`;
46
+ },
47
+ parseHTML() {
48
+ return [{ tag: "ul" }];
49
+ },
50
+ renderHTML({ HTMLAttributes }) {
51
+ return ["ul", (0, import_core.mergeAttributes)(this.options.HTMLAttributes, HTMLAttributes), 0];
52
+ },
53
+ markdownTokenName: "list",
54
+ parseMarkdown: (token, helpers) => {
55
+ if (token.type !== "list" || token.ordered) {
56
+ return [];
57
+ }
58
+ return {
59
+ type: "bulletList",
60
+ content: token.items ? helpers.parseChildren(token.items) : []
61
+ };
62
+ },
63
+ renderMarkdown: (node, h) => {
64
+ if (!node.content) {
65
+ return "";
66
+ }
67
+ return h.renderChildren(node.content, "\n");
68
+ },
69
+ markdownOptions: {
70
+ indentsContent: true
71
+ },
72
+ addCommands() {
73
+ return {
74
+ toggleBulletList: () => ({ commands, chain }) => {
75
+ if (this.options.keepAttributes) {
76
+ return chain().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(ListItemName, this.editor.getAttributes(TextStyleName)).run();
77
+ }
78
+ return commands.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks);
79
+ }
80
+ };
81
+ },
82
+ addKeyboardShortcuts() {
83
+ return {
84
+ "Mod-Shift-8": () => this.editor.commands.toggleBulletList()
85
+ };
86
+ },
87
+ addInputRules() {
88
+ let inputRule = (0, import_core.wrappingInputRule)({
89
+ find: bulletListInputRegex,
90
+ type: this.type
91
+ });
92
+ if (this.options.keepMarks || this.options.keepAttributes) {
93
+ inputRule = (0, import_core.wrappingInputRule)({
94
+ find: bulletListInputRegex,
95
+ type: this.type,
96
+ keepMarks: this.options.keepMarks,
97
+ keepAttributes: this.options.keepAttributes,
98
+ getAttributes: () => {
99
+ return this.editor.getAttributes(TextStyleName);
100
+ },
101
+ editor: this.editor
102
+ });
103
+ }
104
+ return [inputRule];
105
+ }
106
+ });
107
+ // Annotate the CommonJS export names for ESM import in node:
108
+ 0 && (module.exports = {
109
+ BulletList,
110
+ bulletListInputRegex
111
+ });
112
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bullet-list/index.ts","../../src/bullet-list/bullet-list.ts"],"sourcesContent":["export * from './bullet-list.js'\n","import { mergeAttributes, Node, wrappingInputRule } from '@tiptap/core'\n\nconst ListItemName = 'listItem'\nconst TextStyleName = 'textStyle'\n\nexport interface BulletListOptions {\n /**\n * The node name for the list items\n * @default 'listItem'\n * @example 'paragraph'\n */\n itemTypeName: string\n\n /**\n * HTML attributes to add to the bullet list element\n * @default {}\n * @example { class: 'foo' }\n */\n HTMLAttributes: Record<string, any>\n\n /**\n * Keep the marks when splitting the list\n * @default false\n * @example true\n */\n keepMarks: boolean\n\n /**\n * Keep the attributes when splitting the list\n * @default false\n * @example true\n */\n keepAttributes: boolean\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n bulletList: {\n /**\n * Toggle a bullet list\n */\n toggleBulletList: () => ReturnType\n }\n }\n}\n\n/**\n * Matches a bullet list to a dash or asterisk.\n */\nexport const bulletListInputRegex = /^\\s*([-+*])\\s$/\n\n/**\n * This extension allows you to create bullet lists.\n * This requires the ListItem extension\n * @see https://tiptap.dev/api/nodes/bullet-list\n * @see https://tiptap.dev/api/nodes/list-item.\n */\nexport const BulletList = Node.create<BulletListOptions>({\n name: 'bulletList',\n\n addOptions() {\n return {\n itemTypeName: 'listItem',\n HTMLAttributes: {},\n keepMarks: false,\n keepAttributes: false,\n }\n },\n\n group: 'block list',\n\n content() {\n return `${this.options.itemTypeName}+`\n },\n\n parseHTML() {\n return [{ tag: 'ul' }]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['ul', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n markdownTokenName: 'list',\n\n parseMarkdown: (token, helpers) => {\n if (token.type !== 'list' || (token as any).ordered) {\n return []\n }\n\n return {\n type: 'bulletList',\n content: token.items ? helpers.parseChildren(token.items) : [],\n }\n },\n\n renderMarkdown: (node, h) => {\n if (!node.content) {\n return ''\n }\n\n return h.renderChildren(node.content, '\\n')\n },\n\n markdownOptions: {\n indentsContent: true,\n },\n\n addCommands() {\n return {\n toggleBulletList:\n () =>\n ({ commands, chain }) => {\n if (this.options.keepAttributes) {\n return chain()\n .toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)\n .updateAttributes(ListItemName, this.editor.getAttributes(TextStyleName))\n .run()\n }\n return commands.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)\n },\n }\n },\n\n addKeyboardShortcuts() {\n return {\n 'Mod-Shift-8': () => this.editor.commands.toggleBulletList(),\n }\n },\n\n addInputRules() {\n let inputRule = wrappingInputRule({\n find: bulletListInputRegex,\n type: this.type,\n })\n\n if (this.options.keepMarks || this.options.keepAttributes) {\n inputRule = wrappingInputRule({\n find: bulletListInputRegex,\n type: this.type,\n keepMarks: this.options.keepMarks,\n keepAttributes: this.options.keepAttributes,\n getAttributes: () => {\n return this.editor.getAttributes(TextStyleName)\n },\n editor: this.editor,\n })\n }\n return [inputRule]\n },\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kBAAyD;AAEzD,IAAM,eAAe;AACrB,IAAM,gBAAgB;AA8Cf,IAAM,uBAAuB;AAQ7B,IAAM,aAAa,iBAAK,OAA0B;AAAA,EACvD,MAAM;AAAA,EAEN,aAAa;AACX,WAAO;AAAA,MACL,cAAc;AAAA,MACd,gBAAgB,CAAC;AAAA,MACjB,WAAW;AAAA,MACX,gBAAgB;AAAA,IAClB;AAAA,EACF;AAAA,EAEA,OAAO;AAAA,EAEP,UAAU;AACR,WAAO,GAAG,KAAK,QAAQ,YAAY;AAAA,EACrC;AAAA,EAEA,YAAY;AACV,WAAO,CAAC,EAAE,KAAK,KAAK,CAAC;AAAA,EACvB;AAAA,EAEA,WAAW,EAAE,eAAe,GAAG;AAC7B,WAAO,CAAC,UAAM,6BAAgB,KAAK,QAAQ,gBAAgB,cAAc,GAAG,CAAC;AAAA,EAC/E;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AAe,MAAM;AACnB,iBAAO,KAAK,OAAO,cAAc,aAAa;AAAA,QAChD;AAAA,QACA,QAAQ,KAAK;AAAA,MACf,CAAC;AAAA,IACH;AACA,WAAO,CAAC,SAAS;AAAA,EACnB;AACF,CAAC;","names":[]}
@@ -0,0 +1,51 @@
1
+ import { Node } from '@tiptap/core';
2
+
3
+ interface BulletListOptions {
4
+ /**
5
+ * The node name for the list items
6
+ * @default 'listItem'
7
+ * @example 'paragraph'
8
+ */
9
+ itemTypeName: string;
10
+ /**
11
+ * HTML attributes to add to the bullet list element
12
+ * @default {}
13
+ * @example { class: 'foo' }
14
+ */
15
+ HTMLAttributes: Record<string, any>;
16
+ /**
17
+ * Keep the marks when splitting the list
18
+ * @default false
19
+ * @example true
20
+ */
21
+ keepMarks: boolean;
22
+ /**
23
+ * Keep the attributes when splitting the list
24
+ * @default false
25
+ * @example true
26
+ */
27
+ keepAttributes: boolean;
28
+ }
29
+ declare module '@tiptap/core' {
30
+ interface Commands<ReturnType> {
31
+ bulletList: {
32
+ /**
33
+ * Toggle a bullet list
34
+ */
35
+ toggleBulletList: () => ReturnType;
36
+ };
37
+ }
38
+ }
39
+ /**
40
+ * Matches a bullet list to a dash or asterisk.
41
+ */
42
+ declare const bulletListInputRegex: RegExp;
43
+ /**
44
+ * This extension allows you to create bullet lists.
45
+ * This requires the ListItem extension
46
+ * @see https://tiptap.dev/api/nodes/bullet-list
47
+ * @see https://tiptap.dev/api/nodes/list-item.
48
+ */
49
+ declare const BulletList: Node<BulletListOptions, any>;
50
+
51
+ export { BulletList, type BulletListOptions, bulletListInputRegex };
@@ -0,0 +1,51 @@
1
+ import { Node } from '@tiptap/core';
2
+
3
+ interface BulletListOptions {
4
+ /**
5
+ * The node name for the list items
6
+ * @default 'listItem'
7
+ * @example 'paragraph'
8
+ */
9
+ itemTypeName: string;
10
+ /**
11
+ * HTML attributes to add to the bullet list element
12
+ * @default {}
13
+ * @example { class: 'foo' }
14
+ */
15
+ HTMLAttributes: Record<string, any>;
16
+ /**
17
+ * Keep the marks when splitting the list
18
+ * @default false
19
+ * @example true
20
+ */
21
+ keepMarks: boolean;
22
+ /**
23
+ * Keep the attributes when splitting the list
24
+ * @default false
25
+ * @example true
26
+ */
27
+ keepAttributes: boolean;
28
+ }
29
+ declare module '@tiptap/core' {
30
+ interface Commands<ReturnType> {
31
+ bulletList: {
32
+ /**
33
+ * Toggle a bullet list
34
+ */
35
+ toggleBulletList: () => ReturnType;
36
+ };
37
+ }
38
+ }
39
+ /**
40
+ * Matches a bullet list to a dash or asterisk.
41
+ */
42
+ declare const bulletListInputRegex: RegExp;
43
+ /**
44
+ * This extension allows you to create bullet lists.
45
+ * This requires the ListItem extension
46
+ * @see https://tiptap.dev/api/nodes/bullet-list
47
+ * @see https://tiptap.dev/api/nodes/list-item.
48
+ */
49
+ declare const BulletList: Node<BulletListOptions, any>;
50
+
51
+ export { BulletList, type BulletListOptions, bulletListInputRegex };
@@ -0,0 +1,84 @@
1
+ // src/bullet-list/bullet-list.ts
2
+ import { mergeAttributes, Node, wrappingInputRule } from "@tiptap/core";
3
+ var ListItemName = "listItem";
4
+ var TextStyleName = "textStyle";
5
+ var bulletListInputRegex = /^\s*([-+*])\s$/;
6
+ var BulletList = Node.create({
7
+ name: "bulletList",
8
+ addOptions() {
9
+ return {
10
+ itemTypeName: "listItem",
11
+ HTMLAttributes: {},
12
+ keepMarks: false,
13
+ keepAttributes: false
14
+ };
15
+ },
16
+ group: "block list",
17
+ content() {
18
+ return `${this.options.itemTypeName}+`;
19
+ },
20
+ parseHTML() {
21
+ return [{ tag: "ul" }];
22
+ },
23
+ renderHTML({ HTMLAttributes }) {
24
+ return ["ul", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
25
+ },
26
+ markdownTokenName: "list",
27
+ parseMarkdown: (token, helpers) => {
28
+ if (token.type !== "list" || token.ordered) {
29
+ return [];
30
+ }
31
+ return {
32
+ type: "bulletList",
33
+ content: token.items ? helpers.parseChildren(token.items) : []
34
+ };
35
+ },
36
+ renderMarkdown: (node, h) => {
37
+ if (!node.content) {
38
+ return "";
39
+ }
40
+ return h.renderChildren(node.content, "\n");
41
+ },
42
+ markdownOptions: {
43
+ indentsContent: true
44
+ },
45
+ addCommands() {
46
+ return {
47
+ toggleBulletList: () => ({ commands, chain }) => {
48
+ if (this.options.keepAttributes) {
49
+ return chain().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(ListItemName, this.editor.getAttributes(TextStyleName)).run();
50
+ }
51
+ return commands.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks);
52
+ }
53
+ };
54
+ },
55
+ addKeyboardShortcuts() {
56
+ return {
57
+ "Mod-Shift-8": () => this.editor.commands.toggleBulletList()
58
+ };
59
+ },
60
+ addInputRules() {
61
+ let inputRule = wrappingInputRule({
62
+ find: bulletListInputRegex,
63
+ type: this.type
64
+ });
65
+ if (this.options.keepMarks || this.options.keepAttributes) {
66
+ inputRule = wrappingInputRule({
67
+ find: bulletListInputRegex,
68
+ type: this.type,
69
+ keepMarks: this.options.keepMarks,
70
+ keepAttributes: this.options.keepAttributes,
71
+ getAttributes: () => {
72
+ return this.editor.getAttributes(TextStyleName);
73
+ },
74
+ editor: this.editor
75
+ });
76
+ }
77
+ return [inputRule];
78
+ }
79
+ });
80
+ export {
81
+ BulletList,
82
+ bulletListInputRegex
83
+ };
84
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bullet-list/bullet-list.ts"],"sourcesContent":["import { mergeAttributes, Node, wrappingInputRule } from '@tiptap/core'\n\nconst ListItemName = 'listItem'\nconst TextStyleName = 'textStyle'\n\nexport interface BulletListOptions {\n /**\n * The node name for the list items\n * @default 'listItem'\n * @example 'paragraph'\n */\n itemTypeName: string\n\n /**\n * HTML attributes to add to the bullet list element\n * @default {}\n * @example { class: 'foo' }\n */\n HTMLAttributes: Record<string, any>\n\n /**\n * Keep the marks when splitting the list\n * @default false\n * @example true\n */\n keepMarks: boolean\n\n /**\n * Keep the attributes when splitting the list\n * @default false\n * @example true\n */\n keepAttributes: boolean\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n bulletList: {\n /**\n * Toggle a bullet list\n */\n toggleBulletList: () => ReturnType\n }\n }\n}\n\n/**\n * Matches a bullet list to a dash or asterisk.\n */\nexport const bulletListInputRegex = /^\\s*([-+*])\\s$/\n\n/**\n * This extension allows you to create bullet lists.\n * This requires the ListItem extension\n * @see https://tiptap.dev/api/nodes/bullet-list\n * @see https://tiptap.dev/api/nodes/list-item.\n */\nexport const BulletList = Node.create<BulletListOptions>({\n name: 'bulletList',\n\n addOptions() {\n return {\n itemTypeName: 'listItem',\n HTMLAttributes: {},\n keepMarks: false,\n keepAttributes: false,\n }\n },\n\n group: 'block list',\n\n content() {\n return `${this.options.itemTypeName}+`\n },\n\n parseHTML() {\n return [{ tag: 'ul' }]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['ul', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n markdownTokenName: 'list',\n\n parseMarkdown: (token, helpers) => {\n if (token.type !== 'list' || (token as any).ordered) {\n return []\n }\n\n return {\n type: 'bulletList',\n content: token.items ? helpers.parseChildren(token.items) : [],\n }\n },\n\n renderMarkdown: (node, h) => {\n if (!node.content) {\n return ''\n }\n\n return h.renderChildren(node.content, '\\n')\n },\n\n markdownOptions: {\n indentsContent: true,\n },\n\n addCommands() {\n return {\n toggleBulletList:\n () =>\n ({ commands, chain }) => {\n if (this.options.keepAttributes) {\n return chain()\n .toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)\n .updateAttributes(ListItemName, this.editor.getAttributes(TextStyleName))\n .run()\n }\n return commands.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)\n },\n }\n },\n\n addKeyboardShortcuts() {\n return {\n 'Mod-Shift-8': () => this.editor.commands.toggleBulletList(),\n }\n },\n\n addInputRules() {\n let inputRule = wrappingInputRule({\n find: bulletListInputRegex,\n type: this.type,\n })\n\n if (this.options.keepMarks || this.options.keepAttributes) {\n inputRule = wrappingInputRule({\n find: bulletListInputRegex,\n type: this.type,\n keepMarks: this.options.keepMarks,\n keepAttributes: this.options.keepAttributes,\n getAttributes: () => {\n return this.editor.getAttributes(TextStyleName)\n },\n editor: this.editor,\n })\n }\n return [inputRule]\n },\n})\n"],"mappings":";AAAA,SAAS,iBAAiB,MAAM,yBAAyB;AAEzD,IAAM,eAAe;AACrB,IAAM,gBAAgB;AA8Cf,IAAM,uBAAuB;AAQ7B,IAAM,aAAa,KAAK,OAA0B;AAAA,EACvD,MAAM;AAAA,EAEN,aAAa;AACX,WAAO;AAAA,MACL,cAAc;AAAA,MACd,gBAAgB,CAAC;AAAA,MACjB,WAAW;AAAA,MACX,gBAAgB;AAAA,IAClB;AAAA,EACF;AAAA,EAEA,OAAO;AAAA,EAEP,UAAU;AACR,WAAO,GAAG,KAAK,QAAQ,YAAY;AAAA,EACrC;AAAA,EAEA,YAAY;AACV,WAAO,CAAC,EAAE,KAAK,KAAK,CAAC;AAAA,EACvB;AAAA,EAEA,WAAW,EAAE,eAAe,GAAG;AAC7B,WAAO,CAAC,MAAM,gBAAgB,KAAK,QAAQ,gBAAgB,cAAc,GAAG,CAAC;AAAA,EAC/E;AAAA,EAEA,mBAAmB;AAAA,EAEnB,eAAe,CAAC,OAAO,YAAY;AACjC,QAAI,MAAM,SAAS,UAAW,MAAc,SAAS;AACnD,aAAO,CAAC;AAAA,IACV;AAEA,WAAO;AAAA,MACL,MAAM;AAAA,MACN,SAAS,MAAM,QAAQ,QAAQ,cAAc,MAAM,KAAK,IAAI,CAAC;AAAA,IAC/D;AAAA,EACF;AAAA,EAEA,gBAAgB,CAAC,MAAM,MAAM;AAC3B,QAAI,CAAC,KAAK,SAAS;AACjB,aAAO;AAAA,IACT;AAEA,WAAO,EAAE,eAAe,KAAK,SAAS,IAAI;AAAA,EAC5C;AAAA,EAEA,iBAAiB;AAAA,IACf,gBAAgB;AAAA,E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