@etrepum/lexical-tailwind 0.0.26

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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # `@etrepum/lexical-tailwind`
2
+
3
+ **EXPERIMENTAL** Lexical Builder Tailwind
@@ -0,0 +1,2 @@
1
+ export declare const TailwindPlan: import('@etrepum/lexical-builder').LexicalPlan<import('@etrepum/lexical-builder').PlanConfigBase, "@etrepum/lexical-tailwind", unknown, unknown>;
2
+ //# sourceMappingURL=TailwindPlan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TailwindPlan.d.ts","sourceRoot":"","sources":["../src/TailwindPlan.ts"],"names":[],"mappings":"AAgHA,eAAO,MAAM,YAAY,kJAGvB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export declare const PACKAGE_VERSION: string;
9
+ export { TailwindPlan } from './TailwindPlan';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,eAAe,EAAE,MAAwC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,115 @@
1
+ import { definePlan as e } from "@etrepum/lexical-builder";
2
+ const t = {
3
+ blockCursor: "block pointer-events-none absolute after:block after:absolute after:-top-0.5 after:width-5 after:border-t after:border-solid after:border-black after:animate-lexical-cursor-blink"
4
+ // characterLimit: "PlaygroundEditorTheme__characterLimit",
5
+ // code: 'PlaygroundEditorTheme__code',
6
+ // codeHighlight: {
7
+ // atrule: 'PlaygroundEditorTheme__tokenAttr',
8
+ // attr: 'PlaygroundEditorTheme__tokenAttr',
9
+ // boolean: 'PlaygroundEditorTheme__tokenProperty',
10
+ // builtin: 'PlaygroundEditorTheme__tokenSelector',
11
+ // cdata: 'PlaygroundEditorTheme__tokenComment',
12
+ // char: 'PlaygroundEditorTheme__tokenSelector',
13
+ // class: 'PlaygroundEditorTheme__tokenFunction',
14
+ // 'class-name': 'PlaygroundEditorTheme__tokenFunction',
15
+ // comment: 'PlaygroundEditorTheme__tokenComment',
16
+ // constant: 'PlaygroundEditorTheme__tokenProperty',
17
+ // deleted: 'PlaygroundEditorTheme__tokenProperty',
18
+ // doctype: 'PlaygroundEditorTheme__tokenComment',
19
+ // entity: 'PlaygroundEditorTheme__tokenOperator',
20
+ // function: 'PlaygroundEditorTheme__tokenFunction',
21
+ // important: 'PlaygroundEditorTheme__tokenVariable',
22
+ // inserted: 'PlaygroundEditorTheme__tokenSelector',
23
+ // keyword: 'PlaygroundEditorTheme__tokenAttr',
24
+ // namespace: 'PlaygroundEditorTheme__tokenVariable',
25
+ // number: 'PlaygroundEditorTheme__tokenProperty',
26
+ // operator: 'PlaygroundEditorTheme__tokenOperator',
27
+ // prolog: 'PlaygroundEditorTheme__tokenComment',
28
+ // property: 'PlaygroundEditorTheme__tokenProperty',
29
+ // punctuation: 'PlaygroundEditorTheme__tokenPunctuation',
30
+ // regex: 'PlaygroundEditorTheme__tokenVariable',
31
+ // selector: 'PlaygroundEditorTheme__tokenSelector',
32
+ // string: 'PlaygroundEditorTheme__tokenSelector',
33
+ // symbol: 'PlaygroundEditorTheme__tokenProperty',
34
+ // tag: 'PlaygroundEditorTheme__tokenProperty',
35
+ // url: 'PlaygroundEditorTheme__tokenOperator',
36
+ // variable: 'PlaygroundEditorTheme__tokenVariable',
37
+ // },
38
+ // embedBlock: {
39
+ // base: 'PlaygroundEditorTheme__embedBlock',
40
+ // focus: 'PlaygroundEditorTheme__embedBlockFocus',
41
+ // },
42
+ // hashtag: 'PlaygroundEditorTheme__hashtag',
43
+ // heading: {
44
+ // h1: "text-[24px] text-neutral-950 font-normal m-0",
45
+ // h2: "text-[15px] text-gray-500 font-bold m-0 uppercase",
46
+ // h3: "text-[12px] m-0 uppercase",
47
+ // h4: undefined,
48
+ // h5: undefined,
49
+ // h6: undefined,
50
+ // },
51
+ // hr: 'PlaygroundEditorTheme__hr',
52
+ // image: 'editor-image',
53
+ // indent: 'PlaygroundEditorTheme__indent',
54
+ // inlineImage: 'inline-editor-image',
55
+ // layoutContainer: 'PlaygroundEditorTheme__layoutContainer',
56
+ // layoutItem: 'PlaygroundEditorTheme__layoutItem',
57
+ // link: 'PlaygroundEditorTheme__link',
58
+ // list: {
59
+ // checklist: 'PlaygroundEditorTheme__checklist',
60
+ // listitem: 'PlaygroundEditorTheme__listItem',
61
+ // listitemChecked: 'PlaygroundEditorTheme__listItemChecked',
62
+ // listitemUnchecked: 'PlaygroundEditorTheme__listItemUnchecked',
63
+ // nested: {
64
+ // listitem: 'PlaygroundEditorTheme__nestedListItem',
65
+ // },
66
+ // olDepth: [
67
+ // 'PlaygroundEditorTheme__ol1',
68
+ // 'PlaygroundEditorTheme__ol2',
69
+ // 'PlaygroundEditorTheme__ol3',
70
+ // 'PlaygroundEditorTheme__ol4',
71
+ // 'PlaygroundEditorTheme__ol5',
72
+ // ],
73
+ // ul: 'PlaygroundEditorTheme__ul',
74
+ // },
75
+ // ltr: "text-left",
76
+ // mark: 'PlaygroundEditorTheme__mark',
77
+ // markOverlap: 'PlaygroundEditorTheme__markOverlap',
78
+ // paragraph: "relative m-0",
79
+ // quote:
80
+ // "m-0 ml-5 mb-2.5 text-[15px] text-gray-500 border-slate-300 border-l-4 border-solid pl-4",
81
+ // rtl: "text-right",
82
+ // table: 'PlaygroundEditorTheme__table',
83
+ // tableAddColumns: 'PlaygroundEditorTheme__tableAddColumns',
84
+ // tableAddRows: 'PlaygroundEditorTheme__tableAddRows',
85
+ // tableCell: 'PlaygroundEditorTheme__tableCell',
86
+ // tableCellActionButton: 'PlaygroundEditorTheme__tableCellActionButton',
87
+ // tableCellActionButtonContainer:
88
+ // 'PlaygroundEditorTheme__tableCellActionButtonContainer',
89
+ // tableCellEditing: 'PlaygroundEditorTheme__tableCellEditing',
90
+ // tableCellHeader: 'PlaygroundEditorTheme__tableCellHeader',
91
+ // tableCellPrimarySelected: 'PlaygroundEditorTheme__tableCellPrimarySelected',
92
+ // tableCellResizer: 'PlaygroundEditorTheme__tableCellResizer',
93
+ // tableCellSelected: 'PlaygroundEditorTheme__tableCellSelected',
94
+ // tableCellSortedIndicator: 'PlaygroundEditorTheme__tableCellSortedIndicator',
95
+ // tableResizeRuler: 'PlaygroundEditorTheme__tableCellResizeRuler',
96
+ // tableSelected: 'PlaygroundEditorTheme__tableSelected',
97
+ // tableSelection: 'PlaygroundEditorTheme__tableSelection',
98
+ // text: {
99
+ // bold: "font-bold",
100
+ // code: "font-mono text-[94%] py-px px-1 background-color: bg-slate-100",
101
+ // italic: "italic",
102
+ // strikethrough: "line-through",
103
+ // subscript: "text-[0.8em] !align-sub",
104
+ // superscript: "text-[0.8em] align-super",
105
+ // underline: "underline",
106
+ // underlineStrikethrough: "[text-decoration:underline_line-through]",
107
+ // },
108
+ }, a = e({
109
+ name: "@etrepum/lexical-tailwind",
110
+ theme: t
111
+ }), o = "0.0.26";
112
+ export {
113
+ o as PACKAGE_VERSION,
114
+ a as TailwindPlan
115
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+ export default function invariant(cond?: boolean, message?: string, ...args: string[]): asserts cond;
9
+ //# sourceMappingURL=invariant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invariant.d.ts","sourceRoot":"","sources":["../../src/shared/invariant.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,IAAI,CAAC,EAAE,OAAO,EACd,OAAO,CAAC,EAAE,MAAM,EAChB,GAAG,IAAI,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,IAAI,CAQd"}
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@etrepum/lexical-tailwind",
3
+ "description": "[EXPERIMENTAL] Lexical Builder @etrepum/lexical-tailwind",
4
+ "type": "module",
5
+ "keywords": [
6
+ "lexical",
7
+ "lexical-builder",
8
+ "plug-in",
9
+ "plan"
10
+ ],
11
+ "scripts": {
12
+ "build": "tsc --noEmit && vite build",
13
+ "dev": "vite",
14
+ "lint": "eslint"
15
+ },
16
+ "version": "0.0.26",
17
+ "license": "MIT",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/etrepum/lexical-builder.git",
21
+ "directory": "packages/lexical-tailwind"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/etrepum/lexical-builder/issues"
25
+ },
26
+ "homepage": "https://github.com/etrepum/lexical-builder",
27
+ "dependencies": {
28
+ "@etrepum/lexical-builder": "*"
29
+ },
30
+ "peerDependencies": {
31
+ "lexical": ">=0.16.0-0",
32
+ "tailwindcss": ">=3.3.0"
33
+ },
34
+ "sideEffects": false,
35
+ "devDependencies": {
36
+ "@etrepum/lexical-tailwind-plugin": "*",
37
+ "@lexical/utils": "^0.16.0",
38
+ "@repo/eslint-config": "*",
39
+ "eslint": "^8.57.0",
40
+ "typescript": "^5.4.5",
41
+ "vite": "^5.2.11",
42
+ "vite-plugin-dts": "^3.9.1",
43
+ "vite-plugin-package-version": "^1.1.0"
44
+ },
45
+ "main": "dist/index.js",
46
+ "module": "dist/index.js",
47
+ "types": "dist/index.d.ts",
48
+ "files": [
49
+ "dist"
50
+ ]
51
+ }