@lax-wp/design-system 0.9.0 → 0.9.2
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/components/button/Button.d.ts +2 -1
- package/dist/components/buttons/option-button/OptionButton.d.ts +2 -0
- package/dist/components/data-display/code-editor-beta/CodeEditorBeta.d.ts +10 -14
- package/dist/components/data-display/comparison/Comparison.d.ts +2 -2
- package/dist/components/data-display/comparison/ComparisonContext.d.ts +1 -1
- package/dist/components/data-display/comparison/components/SortableItem.d.ts +1 -1
- package/dist/components/data-display/comparison/constants.d.ts +1 -1
- package/dist/components/data-display/comparison/utils.d.ts +1 -1
- package/dist/components/data-display/label-value/LabelValue.d.ts +2 -0
- package/dist/components/data-display/popper/Popper.d.ts +3 -0
- package/dist/components/forms/creatable-select/CreatableSelect.d.ts +1 -1
- package/dist/components/forms/form/Form.d.ts +2 -0
- package/dist/components/forms/md-input/MarkdownPreview.d.ts +45 -0
- package/dist/components/forms/md-input/RichMarkdownInput.d.ts +79 -0
- package/dist/components/forms/md-input/index.d.ts +6 -0
- package/dist/components/forms/select-field/SelectField.d.ts +1 -0
- package/dist/design-system.css +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +52483 -21990
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +84 -170
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +18 -0
- package/package.json +14 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -33,6 +33,18 @@ export interface CodeBlockInfo {
|
|
|
33
33
|
cursorLine: number;
|
|
34
34
|
/** 1-based column where the cursor was when clicked */
|
|
35
35
|
cursorColumn: number;
|
|
36
|
+
/**
|
|
37
|
+
* The outermost (top-level) enclosing block, excluding the root document.
|
|
38
|
+
* For `{ a: { b: { c: {} } } }`, clicking inside `c` returns `c` as the
|
|
39
|
+
* main block and `a` as the `parentBlock`.
|
|
40
|
+
* `undefined` if the innermost block is already a top-level block.
|
|
41
|
+
*/
|
|
42
|
+
parentBlock?: {
|
|
43
|
+
startLine: number;
|
|
44
|
+
endLine: number;
|
|
45
|
+
text: string;
|
|
46
|
+
kind?: string;
|
|
47
|
+
};
|
|
36
48
|
}
|
|
37
49
|
export interface CodeEditorProps {
|
|
38
50
|
value: string;
|
|
@@ -62,6 +74,12 @@ export interface CodeEditorProps {
|
|
|
62
74
|
* Change the value to trigger navigation; set to `undefined` to clear.
|
|
63
75
|
*/
|
|
64
76
|
focusBlock?: string;
|
|
77
|
+
/**
|
|
78
|
+
* When `true`, `focusBlock` only matches top-level keys (depth 1 in JSON).
|
|
79
|
+
* This avoids jumping to nested occurrences of the same key name.
|
|
80
|
+
* Defaults to `false` (matches the first occurrence anywhere).
|
|
81
|
+
*/
|
|
82
|
+
focusBlockTopLevelOnly?: boolean;
|
|
65
83
|
}
|
|
66
84
|
export interface ThemeContextType {
|
|
67
85
|
theme: 'light' | 'dark';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lax-wp/design-system",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -81,12 +81,14 @@
|
|
|
81
81
|
"react-popper-tooltip": "^4.0.0",
|
|
82
82
|
"react-router-dom": "^6.0.0",
|
|
83
83
|
"react-select": "^5.0.0",
|
|
84
|
+
"react-syntax-highlighter": "^15.0.0",
|
|
84
85
|
"react-toastify": "^9.0.0",
|
|
85
86
|
"react-window": "^1.8.0",
|
|
86
87
|
"react-zoom-pan-pinch": "^3.0.0",
|
|
88
|
+
"rehype-raw": "^7.0.0",
|
|
87
89
|
"remark-gfm": "^4.0.0",
|
|
88
90
|
"styled-components": "^6.0.0",
|
|
89
|
-
"swiper": "^
|
|
91
|
+
"swiper": "^12.1.2"
|
|
90
92
|
},
|
|
91
93
|
"peerDependenciesMeta": {
|
|
92
94
|
"@codeium/react-code-editor": {
|
|
@@ -101,6 +103,12 @@
|
|
|
101
103
|
"react-markdown": {
|
|
102
104
|
"optional": true
|
|
103
105
|
},
|
|
106
|
+
"react-syntax-highlighter": {
|
|
107
|
+
"optional": true
|
|
108
|
+
},
|
|
109
|
+
"rehype-raw": {
|
|
110
|
+
"optional": true
|
|
111
|
+
},
|
|
104
112
|
"remark-gfm": {
|
|
105
113
|
"optional": true
|
|
106
114
|
},
|
|
@@ -126,6 +134,7 @@
|
|
|
126
134
|
"@types/lodash": "^4.17.0",
|
|
127
135
|
"@types/react": "^18.2.0",
|
|
128
136
|
"@types/react-dom": "^18.2.0",
|
|
137
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
|
129
138
|
"@types/react-window": "^1.8.8",
|
|
130
139
|
"@vitejs/plugin-react": "^4.6.0",
|
|
131
140
|
"@vitest/browser": "^3.2.4",
|
|
@@ -165,13 +174,15 @@
|
|
|
165
174
|
"react-popper-tooltip": "^4.4.2",
|
|
166
175
|
"react-router-dom": "^6.30.3",
|
|
167
176
|
"react-select": "^5.7.3",
|
|
177
|
+
"react-syntax-highlighter": "^15.5.0",
|
|
168
178
|
"react-toastify": "^9.1.3",
|
|
169
179
|
"react-window": "1.8.11",
|
|
170
180
|
"react-zoom-pan-pinch": "^3.1.0",
|
|
181
|
+
"rehype-raw": "^7.0.0",
|
|
171
182
|
"remark-gfm": "^4.0.1",
|
|
172
183
|
"storybook": "^9.0.18",
|
|
173
184
|
"styled-components": "^6.1.9",
|
|
174
|
-
"swiper": "^
|
|
185
|
+
"swiper": "^12.1.2",
|
|
175
186
|
"tailwindcss": "^3.4.13",
|
|
176
187
|
"typescript": "^5.6.3",
|
|
177
188
|
"typescript-eslint": "^8.35.1",
|