@onereach/ui-components 6.2.0-beta.3281.0 → 6.2.0-beta.3286.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.
- package/dist/bundled/v2/components/OrCode/OrCode.js +2 -2
- package/dist/bundled/v2/components/OrCode/index.js +4 -5
- package/dist/bundled/v2/components/OrCode/lang.js +5 -5
- package/dist/bundled/v2/components/OrCode/libs.js +4 -5
- package/dist/bundled/v2/components/OrCode/theme.js +1 -1
- package/dist/bundled/v2/components/OrCodeV3/OrCode.js +24 -12
- package/dist/bundled/v2/components/OrCodeV3/index.js +2 -3
- package/dist/bundled/v2/components/OrCodeV3/libs.d.ts +1 -3
- package/dist/bundled/v2/components/OrCodeV3/libs.js +2 -3
- package/dist/bundled/v2/components/index.js +5 -6
- package/dist/bundled/v2/{index-86927ce2.js → index-5ce3ef85.js} +831 -10
- package/dist/bundled/{v3/index-b6bfd165.js → v2/index-5dd41049.js} +4 -4
- package/dist/bundled/{v3/index-ae9c3d66.js → v2/index-5ee42d1f.js} +2 -2
- package/dist/bundled/v2/{index-8bffe4d5.js → index-61aeae22.js} +1 -184
- package/dist/bundled/v2/{index-bd1ee981.js → index-648acd9e.js} +1 -1
- package/dist/bundled/{v3/index-83070a21.js → v2/index-64a3a364.js} +3 -3
- package/dist/bundled/v2/{index-14ee755d.js → index-c26082b9.js} +1 -1
- package/dist/bundled/v2/{index-118afe52.js → index-e72fe4a8.js} +2 -2
- package/dist/bundled/v2/{index-586d2cf4.js → index-f31843f4.js} +2 -2
- package/dist/bundled/v2/index.js +5 -6
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-8355d429.js → OrCode.vue_vue_type_script_lang-8c5b4f6e.js} +2 -2
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-29120928.js → OrCode.vue_vue_type_script_lang-b46a0f8a.js} +24 -12
- package/dist/bundled/v3/components/OrCode/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCode/index.js +5 -6
- package/dist/bundled/v3/components/OrCode/lang.js +5 -5
- package/dist/bundled/v3/components/OrCode/libs.js +4 -5
- package/dist/bundled/v3/components/OrCode/theme.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCodeV3/index.js +3 -4
- package/dist/bundled/v3/components/OrCodeV3/libs.d.ts +1 -3
- package/dist/bundled/v3/components/OrCodeV3/libs.js +2 -3
- package/dist/bundled/v3/components/index.js +7 -8
- package/dist/bundled/v3/{index-1ec4fb10.js → index-19d70079.js} +2 -2
- package/dist/bundled/{v2/index-181d90ab.js → v3/index-22f7d3aa.js} +3 -3
- package/dist/bundled/v3/{index-93c7d0e8.js → index-792c62f6.js} +2 -2
- package/dist/bundled/{v2/index-49b0c759.js → v3/index-84ea2fc8.js} +4 -4
- package/dist/bundled/v3/{index-e488383c.js → index-929b54f2.js} +1 -184
- package/dist/bundled/{v2/index-bbdfebea.js → v3/index-b71d76f4.js} +2 -2
- package/dist/bundled/v3/{index-68fb579e.js → index-bb6d92dd.js} +1 -1
- package/dist/bundled/v3/{index-7006d0a5.js → index-df2529d7.js} +1 -1
- package/dist/bundled/v3/{index-b6a28985.js → index-f92296d7.js} +831 -10
- package/dist/bundled/v3/index.js +7 -8
- package/dist/esm/v2/{OrCode-920482b7.js → OrCode-adb9790d.js} +16 -4
- package/dist/esm/v2/components/index.js +3 -3
- package/dist/esm/v2/components/or-code-v3/index.js +3 -4
- package/dist/esm/v2/components/or-code-v3/libs.d.ts +1 -3
- package/dist/esm/v2/index.js +3 -3
- package/dist/esm/v3/{OrCode-a9234c28.js → OrCode-5457417e.js} +16 -4
- package/dist/esm/v3/components/index.js +3 -3
- package/dist/esm/v3/components/or-code-v3/index.js +3 -4
- package/dist/esm/v3/components/or-code-v3/libs.d.ts +1 -3
- package/dist/esm/v3/index.js +3 -3
- package/package.json +1 -1
- package/src/components/or-code-v3/OrCode.vue +14 -4
- package/src/components/or-code-v3/libs.ts +1 -6
- package/dist/bundled/v2/index-c6b2aeae.js +0 -825
- package/dist/bundled/v3/index-e556efde.js +0 -825
package/dist/bundled/v3/index.js
CHANGED
|
@@ -16,9 +16,9 @@ export { s as OrCheckboxGroupV3 } from './OrCheckboxGroup.vue_vue_type_script_la
|
|
|
16
16
|
import './components/OrChips/OrChips.js';
|
|
17
17
|
export { s as OrChips } from './OrChips.vue_vue_type_script_lang-70be98b5.js';
|
|
18
18
|
import './components/OrCode/OrCode.js';
|
|
19
|
-
export { s as OrCode } from './OrCode.vue_vue_type_script_lang-
|
|
19
|
+
export { s as OrCode } from './OrCode.vue_vue_type_script_lang-8c5b4f6e.js';
|
|
20
20
|
import './components/OrCodeV3/OrCode.js';
|
|
21
|
-
export { s as OrCodeV3 } from './OrCode.vue_vue_type_script_lang-
|
|
21
|
+
export { s as OrCodeV3 } from './OrCode.vue_vue_type_script_lang-b46a0f8a.js';
|
|
22
22
|
import './components/OrColorPicker/OrColorPicker.js';
|
|
23
23
|
export { s as OrColorPicker } from './OrColorPicker.vue_vue_type_script_lang-7b6d1e64.js';
|
|
24
24
|
import './components/OrCombinedInputV3/OrCombinedInput.js';
|
|
@@ -147,13 +147,12 @@ export { s as OrCheckboxTreeV3 } from './OrCheckboxTree.vue_vue_type_script_lang
|
|
|
147
147
|
export { s as OrCheckboxV3 } from './OrCheckbox.vue_vue_type_script_lang-4fa909d8.js';
|
|
148
148
|
export { s as OrChip } from './OrChip.vue_vue_type_script_lang-8ccf3d2d.js';
|
|
149
149
|
export { OrCodeLanguages } from './components/OrCode/constants.js';
|
|
150
|
-
export { b as basicSetup } from './index-
|
|
151
|
-
export {
|
|
152
|
-
export {
|
|
153
|
-
export {
|
|
154
|
-
export { html } from './index-b6bfd165.js';
|
|
150
|
+
export { b as basicSetup, a as lintGutter, l as linter } from './index-f92296d7.js';
|
|
151
|
+
export { javascript } from './index-22f7d3aa.js';
|
|
152
|
+
export { json, jsonParseLinter } from './index-19d70079.js';
|
|
153
|
+
export { html } from './index-84ea2fc8.js';
|
|
155
154
|
export { CodeLanguage } from './components/OrCodeV3/props.js';
|
|
156
|
-
export {
|
|
155
|
+
export { E as EditorView } from './index-929b54f2.js';
|
|
157
156
|
export { s as OrCollapse } from './OrCollapse.vue_vue_type_script_lang-69503c45.js';
|
|
158
157
|
export { amber, black, blue, blueGrey, brown, cyan, deepOrange, deepPurple, green, indigo, lightBlue, lightGreen, lime, orange, pink, purple, red, teal, white, yellow } from './components/OrColorPicker/constants.js';
|
|
159
158
|
export { InputBoxSize as CombinedInputSize, InputBoxSize as DatePickerSize, InputBoxSize as DateTimePickerSize, InputBoxSize, InputBoxVariant, InputBoxSize as InputSize, InputBoxSize as SearchSize, InputBoxSize as SelectSize, InputBoxSize as TagInputSize, InputBoxSize as TextareaSize, InputBoxSize as TimePickerSize } from './components/OrInputBoxV3/props.js';
|
|
@@ -182,11 +182,7 @@ var script = defineComponent({
|
|
|
182
182
|
const state = EditorState.create({
|
|
183
183
|
doc: proxyModelValue.value,
|
|
184
184
|
extensions: [...defaultExtensions, addedExtensionCompartment.of([])]
|
|
185
|
-
// selection: selection.ranges.some((range) => range.to > modelValue.length)
|
|
186
|
-
// ? { anchor: modelValue.length }
|
|
187
|
-
// : selection,
|
|
188
185
|
});
|
|
189
|
-
|
|
190
186
|
const editorView = new EditorView({
|
|
191
187
|
state,
|
|
192
188
|
dispatch: transaction => {
|
|
@@ -196,6 +192,22 @@ var script = defineComponent({
|
|
|
196
192
|
}
|
|
197
193
|
}
|
|
198
194
|
});
|
|
195
|
+
watch(proxyModelValue, value => {
|
|
196
|
+
const modelValue = value !== null && value !== void 0 ? value : '';
|
|
197
|
+
const {
|
|
198
|
+
selection
|
|
199
|
+
} = editorView.state;
|
|
200
|
+
editorView.dispatch({
|
|
201
|
+
changes: {
|
|
202
|
+
from: 0,
|
|
203
|
+
to: editorView.state.doc.length,
|
|
204
|
+
insert: modelValue
|
|
205
|
+
},
|
|
206
|
+
selection: selection.ranges.some(range => range.to > modelValue.length) ? {
|
|
207
|
+
anchor: modelValue.length
|
|
208
|
+
} : selection
|
|
209
|
+
});
|
|
210
|
+
});
|
|
199
211
|
watch([() => props.extensions, () => props.language], async _ref => {
|
|
200
212
|
let [extensions, language] = _ref;
|
|
201
213
|
const languageExt = await getLanguageExtension(language);
|
|
@@ -22,9 +22,8 @@ export { lintGutter, linter } from '@codemirror/lint';
|
|
|
22
22
|
export { javascript } from '@codemirror/lang-javascript';
|
|
23
23
|
export { json, jsonParseLinter } from '@codemirror/lang-json';
|
|
24
24
|
export { html } from '@codemirror/lang-html';
|
|
25
|
-
export { C as CodeLanguage, _ as OrCodeV3 } from '../OrCode-
|
|
26
|
-
export
|
|
27
|
-
export * from '@codemirror/view';
|
|
25
|
+
export { C as CodeLanguage, _ as OrCodeV3 } from '../OrCode-adb9790d.js';
|
|
26
|
+
export { EditorView } from '@codemirror/view';
|
|
28
27
|
export { _ as OrCollapse } from '../OrCollapse-9d22b072.js';
|
|
29
28
|
export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-7a4f2fcb.js';
|
|
30
29
|
export { _ as OrCombinedInputV3 } from '../OrCombinedInput-08f20c4c.js';
|
|
@@ -143,6 +142,7 @@ import '../useProxyModelValue-940010d2.js';
|
|
|
143
142
|
import '../useIdAttribute-859439f0.js';
|
|
144
143
|
import '../isEmptyValue-fd56a6e4.js';
|
|
145
144
|
import '../OrChips.vue_rollup-plugin-vue_styles.0-fc390185.js';
|
|
145
|
+
import '@codemirror/state';
|
|
146
146
|
import '@codemirror/commands';
|
|
147
147
|
import '@codemirror/lang-css';
|
|
148
148
|
import '@codemirror/lang-markdown';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export { C as CodeLanguage, _ as OrCodeV3 } from '../../OrCode-
|
|
2
|
-
export { lintGutter, linter } from '@codemirror/lint';
|
|
1
|
+
export { C as CodeLanguage, _ as OrCodeV3 } from '../../OrCode-adb9790d.js';
|
|
3
2
|
export { json, jsonParseLinter } from '@codemirror/lang-json';
|
|
4
|
-
export
|
|
5
|
-
export * from '@codemirror/view';
|
|
3
|
+
export { EditorView } from '@codemirror/view';
|
|
6
4
|
import 'vue-demi';
|
|
7
5
|
import '../../useIdAttribute-859439f0.js';
|
|
8
6
|
import '@vueuse/core';
|
|
@@ -16,6 +14,7 @@ import '@onereach/styles/tailwind.config.json';
|
|
|
16
14
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
17
15
|
import 'codemirror';
|
|
18
16
|
import '@codemirror/commands';
|
|
17
|
+
import '@codemirror/state';
|
|
19
18
|
import '../../OrError-4ffc1c39.js';
|
|
20
19
|
import '../../normalize-component-6e8e3d80.js';
|
|
21
20
|
import '../../OrHint-aa221198.js';
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -22,9 +22,8 @@ export { lintGutter, linter } from '@codemirror/lint';
|
|
|
22
22
|
export { javascript } from '@codemirror/lang-javascript';
|
|
23
23
|
export { json, jsonParseLinter } from '@codemirror/lang-json';
|
|
24
24
|
export { html } from '@codemirror/lang-html';
|
|
25
|
-
export { C as CodeLanguage, _ as OrCodeV3 } from './OrCode-
|
|
26
|
-
export
|
|
27
|
-
export * from '@codemirror/view';
|
|
25
|
+
export { C as CodeLanguage, _ as OrCodeV3 } from './OrCode-adb9790d.js';
|
|
26
|
+
export { EditorView } from '@codemirror/view';
|
|
28
27
|
export { _ as OrCollapse } from './OrCollapse-9d22b072.js';
|
|
29
28
|
export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-7a4f2fcb.js';
|
|
30
29
|
export { _ as OrCombinedInputV3 } from './OrCombinedInput-08f20c4c.js';
|
|
@@ -150,6 +149,7 @@ import '@onereach/styles/tailwind/plugins/core';
|
|
|
150
149
|
import '@onereach/styles/tailwind.config.json';
|
|
151
150
|
import './OrButton.vue_rollup-plugin-vue_styles.0-6f0a9dd4.js';
|
|
152
151
|
import './OrChips.vue_rollup-plugin-vue_styles.0-fc390185.js';
|
|
152
|
+
import '@codemirror/state';
|
|
153
153
|
import '@codemirror/commands';
|
|
154
154
|
import '@codemirror/lang-css';
|
|
155
155
|
import '@codemirror/lang-markdown';
|
|
@@ -181,11 +181,7 @@ var script = defineComponent({
|
|
|
181
181
|
const state = EditorState.create({
|
|
182
182
|
doc: proxyModelValue.value,
|
|
183
183
|
extensions: [...defaultExtensions, addedExtensionCompartment.of([])]
|
|
184
|
-
// selection: selection.ranges.some((range) => range.to > modelValue.length)
|
|
185
|
-
// ? { anchor: modelValue.length }
|
|
186
|
-
// : selection,
|
|
187
184
|
});
|
|
188
|
-
|
|
189
185
|
const editorView = new EditorView({
|
|
190
186
|
state,
|
|
191
187
|
dispatch: transaction => {
|
|
@@ -195,6 +191,22 @@ var script = defineComponent({
|
|
|
195
191
|
}
|
|
196
192
|
}
|
|
197
193
|
});
|
|
194
|
+
watch(proxyModelValue, value => {
|
|
195
|
+
const modelValue = value !== null && value !== void 0 ? value : '';
|
|
196
|
+
const {
|
|
197
|
+
selection
|
|
198
|
+
} = editorView.state;
|
|
199
|
+
editorView.dispatch({
|
|
200
|
+
changes: {
|
|
201
|
+
from: 0,
|
|
202
|
+
to: editorView.state.doc.length,
|
|
203
|
+
insert: modelValue
|
|
204
|
+
},
|
|
205
|
+
selection: selection.ranges.some(range => range.to > modelValue.length) ? {
|
|
206
|
+
anchor: modelValue.length
|
|
207
|
+
} : selection
|
|
208
|
+
});
|
|
209
|
+
});
|
|
198
210
|
watch([() => props.extensions, () => props.language], async _ref => {
|
|
199
211
|
let [extensions, language] = _ref;
|
|
200
212
|
const languageExt = await getLanguageExtension(language);
|
|
@@ -21,9 +21,8 @@ export { lintGutter, linter } from '@codemirror/lint';
|
|
|
21
21
|
export { javascript } from '@codemirror/lang-javascript';
|
|
22
22
|
export { json, jsonParseLinter } from '@codemirror/lang-json';
|
|
23
23
|
export { html } from '@codemirror/lang-html';
|
|
24
|
-
export { C as CodeLanguage, s as OrCodeV3 } from '../OrCode-
|
|
25
|
-
export
|
|
26
|
-
export * from '@codemirror/view';
|
|
24
|
+
export { C as CodeLanguage, s as OrCodeV3 } from '../OrCode-5457417e.js';
|
|
25
|
+
export { EditorView } from '@codemirror/view';
|
|
27
26
|
export { s as OrCollapse } from '../OrCollapse-d7c0afae.js';
|
|
28
27
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-252f482b.js';
|
|
29
28
|
export { s as OrCombinedInputV3 } from '../OrCombinedInput-b8a868cb.js';
|
|
@@ -138,6 +137,7 @@ import '../useTheme-0ef25778.js';
|
|
|
138
137
|
import '../useProxyModelValue-940010d2.js';
|
|
139
138
|
import '../useIdAttribute-859439f0.js';
|
|
140
139
|
import '../isEmptyValue-fd56a6e4.js';
|
|
140
|
+
import '@codemirror/state';
|
|
141
141
|
import '@codemirror/commands';
|
|
142
142
|
import '@codemirror/lang-css';
|
|
143
143
|
import '@codemirror/lang-markdown';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export { C as CodeLanguage, s as OrCodeV3 } from '../../OrCode-
|
|
2
|
-
export { lintGutter, linter } from '@codemirror/lint';
|
|
1
|
+
export { C as CodeLanguage, s as OrCodeV3 } from '../../OrCode-5457417e.js';
|
|
3
2
|
export { json, jsonParseLinter } from '@codemirror/lang-json';
|
|
4
|
-
export
|
|
5
|
-
export * from '@codemirror/view';
|
|
3
|
+
export { EditorView } from '@codemirror/view';
|
|
6
4
|
import 'vue-demi';
|
|
7
5
|
import '../../useIdAttribute-859439f0.js';
|
|
8
6
|
import '@vueuse/core';
|
|
@@ -16,6 +14,7 @@ import '@onereach/styles/tailwind.config.json';
|
|
|
16
14
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
17
15
|
import 'codemirror';
|
|
18
16
|
import '@codemirror/commands';
|
|
17
|
+
import '@codemirror/state';
|
|
19
18
|
import '../../OrError-c01d0c29.js';
|
|
20
19
|
import 'vue';
|
|
21
20
|
import '../../OrHint-06ab89d7.js';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -21,9 +21,8 @@ export { lintGutter, linter } from '@codemirror/lint';
|
|
|
21
21
|
export { javascript } from '@codemirror/lang-javascript';
|
|
22
22
|
export { json, jsonParseLinter } from '@codemirror/lang-json';
|
|
23
23
|
export { html } from '@codemirror/lang-html';
|
|
24
|
-
export { C as CodeLanguage, s as OrCodeV3 } from './OrCode-
|
|
25
|
-
export
|
|
26
|
-
export * from '@codemirror/view';
|
|
24
|
+
export { C as CodeLanguage, s as OrCodeV3 } from './OrCode-5457417e.js';
|
|
25
|
+
export { EditorView } from '@codemirror/view';
|
|
27
26
|
export { s as OrCollapse } from './OrCollapse-d7c0afae.js';
|
|
28
27
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-252f482b.js';
|
|
29
28
|
export { s as OrCombinedInputV3 } from './OrCombinedInput-b8a868cb.js';
|
|
@@ -145,6 +144,7 @@ import './style-inject.es-4c6f2515.js';
|
|
|
145
144
|
import '@vueuse/core';
|
|
146
145
|
import '@onereach/styles/tailwind/plugins/core';
|
|
147
146
|
import '@onereach/styles/tailwind.config.json';
|
|
147
|
+
import '@codemirror/state';
|
|
148
148
|
import '@codemirror/commands';
|
|
149
149
|
import '@codemirror/lang-css';
|
|
150
150
|
import '@codemirror/lang-markdown';
|
package/package.json
CHANGED
|
@@ -299,10 +299,6 @@ export default defineComponent({
|
|
|
299
299
|
...defaultExtensions,
|
|
300
300
|
addedExtensionCompartment.of([]),
|
|
301
301
|
],
|
|
302
|
-
|
|
303
|
-
// selection: selection.ranges.some((range) => range.to > modelValue.length)
|
|
304
|
-
// ? { anchor: modelValue.length }
|
|
305
|
-
// : selection,
|
|
306
302
|
});
|
|
307
303
|
|
|
308
304
|
const editorView = new EditorView({
|
|
@@ -318,6 +314,20 @@ export default defineComponent({
|
|
|
318
314
|
},
|
|
319
315
|
});
|
|
320
316
|
|
|
317
|
+
watch(proxyModelValue, (value) => {
|
|
318
|
+
const modelValue = value ?? '';
|
|
319
|
+
const { selection } = editorView.state;
|
|
320
|
+
|
|
321
|
+
editorView!.dispatch({
|
|
322
|
+
changes: {
|
|
323
|
+
from: 0,
|
|
324
|
+
to: editorView!.state.doc.length,
|
|
325
|
+
insert: modelValue,
|
|
326
|
+
},
|
|
327
|
+
selection: selection.ranges.some((range) => range.to > modelValue.length) ? { anchor: modelValue.length } : selection,
|
|
328
|
+
});
|
|
329
|
+
});
|
|
330
|
+
|
|
321
331
|
watch([() => props.extensions, () => props.language], async ([extensions, language]) => {
|
|
322
332
|
const languageExt = await getLanguageExtension(language as CodeLanguage);
|
|
323
333
|
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
// used in the bundled expression-components
|
|
2
|
-
|
|
3
|
-
export { linter, lintGutter } from '@codemirror/lint';
|
|
4
1
|
export { json, jsonParseLinter } from '@codemirror/lang-json';
|
|
5
|
-
|
|
6
|
-
export * from '@codemirror/state';
|
|
7
|
-
export * from '@codemirror/view';
|
|
2
|
+
export { EditorView } from '@codemirror/view';
|