@onereach/ui-components 4.10.1-beta.2921.0 → 4.10.1
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 +3792 -4
- package/dist/bundled/v2/components/OrCode/index.js +2 -4
- package/dist/bundled/v2/components/OrCode/lang.js +3 -24
- package/dist/bundled/v2/components/OrCode/theme.js +1 -1
- package/dist/bundled/v2/components/OrModalV3/OrModal.js +2 -2
- package/dist/bundled/v2/components/index.d.ts +0 -1
- package/dist/bundled/v2/components/index.js +3 -8
- package/dist/bundled/v2/{index-6a13fa4e.js → index-cf2c3c27.js} +1 -1
- package/dist/bundled/v2/index.js +4 -9
- package/dist/bundled/v2/{index-eba9b646.js → lang-0fb8f78b.js} +22 -2
- package/dist/bundled/{v2/index-576b3dec.js → v3/OrCode.vue_vue_type_script_lang-46846a36.js} +235 -3
- package/dist/bundled/v3/components/OrCode/OrCode.js +5 -7
- package/dist/bundled/v3/components/OrCode/index.js +3 -5
- package/dist/bundled/v3/components/OrCode/lang.js +3 -24
- package/dist/bundled/v3/components/OrCode/theme.js +1 -1
- package/dist/bundled/v3/components/index.d.ts +0 -1
- package/dist/bundled/v3/components/index.js +4 -10
- package/dist/bundled/v3/{index-6a13fa4e.js → index-cf2c3c27.js} +1 -1
- package/dist/bundled/v3/index.js +10 -16
- package/dist/bundled/v3/{index-eba9b646.js → lang-0fb8f78b.js} +22 -2
- package/dist/esm/v2/components/index.d.ts +0 -1
- package/dist/esm/v2/components/index.js +1 -2
- package/dist/esm/v2/index.js +0 -1
- package/dist/esm/v3/components/index.d.ts +0 -1
- package/dist/esm/v3/components/index.js +1 -2
- package/dist/esm/v3/index.js +0 -1
- package/package.json +4 -3
- package/src/components/index.ts +0 -1
- package/dist/bundled/v2/components/OrCodeV3/OrCode.js +0 -333
- package/dist/bundled/v2/components/OrCodeV3/OrCode.vue.d.ts +0 -169
- package/dist/bundled/v2/components/OrCodeV3/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrCodeV3/index.js +0 -49
- package/dist/bundled/v2/components/OrCodeV3/props.d.ts +0 -8
- package/dist/bundled/v2/components/OrCodeV3/props.js +0 -11
- package/dist/bundled/v2/components/OrCodeV3/styles.d.ts +0 -2
- package/dist/bundled/v2/components/OrCodeV3/styles.js +0 -10
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-1812e6e4.js +0 -237
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-84a512fb.js +0 -200
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +0 -142
- package/dist/bundled/v3/components/OrCodeV3/OrCode.vue.d.ts +0 -119
- package/dist/bundled/v3/components/OrCodeV3/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrCodeV3/index.js +0 -60
- package/dist/bundled/v3/components/OrCodeV3/props.d.ts +0 -8
- package/dist/bundled/v3/components/OrCodeV3/props.js +0 -11
- package/dist/bundled/v3/components/OrCodeV3/styles.d.ts +0 -2
- package/dist/bundled/v3/components/OrCodeV3/styles.js +0 -10
- package/dist/bundled/v3/index-576b3dec.js +0 -3794
- package/dist/esm/v2/OrCode-ad718022.js +0 -327
- package/dist/esm/v2/components/or-code-v3/OrCode.vue.d.ts +0 -169
- package/dist/esm/v2/components/or-code-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-code-v3/index.js +0 -35
- package/dist/esm/v2/components/or-code-v3/props.d.ts +0 -8
- package/dist/esm/v2/components/or-code-v3/styles.d.ts +0 -2
- package/dist/esm/v3/OrCode-8ccd5dc7.js +0 -301
- package/dist/esm/v3/components/or-code-v3/OrCode.vue.d.ts +0 -119
- package/dist/esm/v3/components/or-code-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-code-v3/index.js +0 -33
- package/dist/esm/v3/components/or-code-v3/props.d.ts +0 -8
- package/dist/esm/v3/components/or-code-v3/styles.d.ts +0 -2
- package/src/components/or-code-v3/OrCode.vue +0 -338
- package/src/components/or-code-v3/index.ts +0 -2
- package/src/components/or-code-v3/props.ts +0 -8
- package/src/components/or-code-v3/styles.ts +0 -12
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export { default as OrCode } from './OrCode.js';
|
|
2
2
|
export { OrCodeLanguages } from './constants.js';
|
|
3
|
-
import '../../index-
|
|
4
|
-
import '../../
|
|
5
|
-
import '../../index-eba9b646.js';
|
|
3
|
+
import '../../index-cf2c3c27.js';
|
|
4
|
+
import '../../lang-0fb8f78b.js';
|
|
6
5
|
import '../../index-c92e2839.js';
|
|
7
6
|
import '../../index-ec92055d.js';
|
|
8
7
|
import 'vue-demi';
|
|
@@ -10,7 +9,6 @@ import '../OrTeleport/OrTeleport.js';
|
|
|
10
9
|
import 'vue';
|
|
11
10
|
import '../OrTeleport/constants.js';
|
|
12
11
|
import '../../normalize-component-6e8e3d80.js';
|
|
13
|
-
import './lang.js';
|
|
14
12
|
import './theme.js';
|
|
15
13
|
import '../OrIconButtonV2/OrIconButton.js';
|
|
16
14
|
import '../OrTooltip/OrTooltip.js';
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import '../../index-
|
|
4
|
-
|
|
5
|
-
const JS = javascript({
|
|
6
|
-
typescript: false
|
|
7
|
-
});
|
|
8
|
-
const TS = javascript({
|
|
9
|
-
typescript: true
|
|
10
|
-
});
|
|
11
|
-
const CSS = css();
|
|
12
|
-
const HTML = html();
|
|
13
|
-
const JSON = json();
|
|
14
|
-
const MD = markdown();
|
|
15
|
-
var languages = {
|
|
16
|
-
[OrCodeLanguages.JS]: JS,
|
|
17
|
-
[OrCodeLanguages.TS]: TS,
|
|
18
|
-
[OrCodeLanguages.CSS]: CSS,
|
|
19
|
-
[OrCodeLanguages.HTML]: HTML,
|
|
20
|
-
[OrCodeLanguages.JSON]: JSON,
|
|
21
|
-
[OrCodeLanguages.MD]: MD
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { CSS, HTML, JS, JSON, MD, TS, languages as default };
|
|
1
|
+
export { C as CSS, H as HTML, J as JS, e as JSON, M as MD, T as TS, l as default } from '../../lang-0fb8f78b.js';
|
|
2
|
+
import './constants.js';
|
|
3
|
+
import '../../index-cf2c3c27.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EditorView,
|
|
1
|
+
import { E as EditorView, ar as HighlightStyle, aa as tags, L as syntaxHighlighting } from '../../index-cf2c3c27.js';
|
|
2
2
|
|
|
3
3
|
// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
|
|
4
4
|
const chalky = 'var(--c-warning-darken-20)',
|
|
@@ -21,12 +21,12 @@ import '../OrPopoverV3/styles.js';
|
|
|
21
21
|
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
22
22
|
import '../OrBottomSheetV3/props.js';
|
|
23
23
|
import '../OrBottomSheetV3/styles.js';
|
|
24
|
-
import '../OrOverlayV3/styles.js';
|
|
25
24
|
import '../OrTeleportV3/OrTeleport.js';
|
|
26
25
|
import 'vue';
|
|
26
|
+
import '../../hooks/useResponsive/useResponsive.js';
|
|
27
27
|
import '../../hooks/useElevation.js';
|
|
28
28
|
import '../../utils/isVisible.js';
|
|
29
|
-
import '
|
|
29
|
+
import '../OrOverlayV3/styles.js';
|
|
30
30
|
|
|
31
31
|
const ModalContent = [
|
|
32
32
|
// Layout
|
|
@@ -15,7 +15,6 @@ export * from './or-checkbox-tree-v3';
|
|
|
15
15
|
export * from './or-checkbox-v3';
|
|
16
16
|
export * from './or-chips';
|
|
17
17
|
export * from './or-code';
|
|
18
|
-
export * from './or-code-v3';
|
|
19
18
|
export * from './or-collapse';
|
|
20
19
|
export * from './or-color-picker';
|
|
21
20
|
export * from './or-combined-input-v3';
|
|
@@ -27,8 +27,6 @@ export { default as OrChip } from './OrChip/OrChip.js';
|
|
|
27
27
|
export { default as OrChips } from './OrChips/OrChips.js';
|
|
28
28
|
export { default as OrCode } from './OrCode/OrCode.js';
|
|
29
29
|
export { OrCodeLanguages } from './OrCode/constants.js';
|
|
30
|
-
export { default as OrCodeV3 } from './OrCodeV3/OrCode.js';
|
|
31
|
-
export { CodeLanguage } from './OrCodeV3/props.js';
|
|
32
30
|
export { default as OrCollapse } from './OrCollapse/OrCollapse.js';
|
|
33
31
|
export { default as OrColorPicker } from './OrColorPicker/OrColorPicker.js';
|
|
34
32
|
export { amber, black, blue, blueGrey, brown, cyan, deepOrange, deepPurple, green, indigo, lightBlue, lightGreen, lime, orange, pink, purple, red, teal, white, yellow } from './OrColorPicker/constants.js';
|
|
@@ -218,13 +216,9 @@ import '../utils/isEmptyValue.js';
|
|
|
218
216
|
import './OrCheckboxV3/styles.js';
|
|
219
217
|
import './OrFormGroupV3/styles.js';
|
|
220
218
|
import './OrChips/constants.js';
|
|
221
|
-
import '../index-
|
|
222
|
-
import '../
|
|
223
|
-
import '../index-eba9b646.js';
|
|
224
|
-
import './OrCode/lang.js';
|
|
219
|
+
import '../index-cf2c3c27.js';
|
|
220
|
+
import '../lang-0fb8f78b.js';
|
|
225
221
|
import './OrCode/theme.js';
|
|
226
|
-
import './OrCodeV3/styles.js';
|
|
227
|
-
import './OrModalV3/styles.js';
|
|
228
222
|
import './OrColorPicker/utils/defultPalette.js';
|
|
229
223
|
import './OrCombinedInputV3/styles.js';
|
|
230
224
|
import '../index-15e8c1f3.js';
|
|
@@ -255,6 +249,7 @@ import '../isArrayLike-acf249e3.js';
|
|
|
255
249
|
import '../_baseAssignValue-0c6c3bcc.js';
|
|
256
250
|
import '../isEqual-881b7bb5.js';
|
|
257
251
|
import '../v4-cf8987a3.js';
|
|
252
|
+
import './OrModalV3/styles.js';
|
|
258
253
|
import './OrNotificationV3/styles.js';
|
|
259
254
|
import './OrPaginationV3/styles.js';
|
|
260
255
|
import '../hooks/useToggle.js';
|
|
@@ -18388,4 +18388,4 @@ function createTokenType(extra, tagStr) {
|
|
|
18388
18388
|
return type.id;
|
|
18389
18389
|
}
|
|
18390
18390
|
|
|
18391
|
-
export {
|
|
18391
|
+
export { getTooltip as $, Annotation as A, highlightSpecialChars as B, ChangeSet as C, Direction as D, EditorView as E, Facet as F, foldGutter as G, drawSelection as H, IndentContext as I, dropCursor as J, indentOnInput as K, syntaxHighlighting as L, defaultHighlightStyle as M, NodeProp as N, bracketMatching as O, Prec as P, rectangularSelection as Q, RangeSetBuilder as R, StateField as S, Transaction as T, crosshairCursor as U, ViewPlugin as V, WidgetType as W, highlightActiveLine as X, keymap as Y, foldKeymap as Z, showTooltip as _, EditorSelection as a, MapMode as a0, RangeValue as a1, RangeSet as a2, Parser as a3, NodeSet as a4, NodeType as a5, DefaultBufferLength as a6, Tree as a7, IterMode as a8, styleTags as a9, tags as aa, parseMixed as ab, LanguageSupport as ac, LRLanguage as ad, indentNodeProp as ae, continuedIndent as af, foldNodeProp as ag, foldInside as ah, flatIndent as ai, delimitedIndent as aj, NodeWeakMap as ak, Tag as al, Language as am, defineLanguageFacet as an, languageDataProp as ao, LanguageDescription as ap, ParseContext as aq, HighlightStyle as ar, ChangeDesc as b, combineConfig as c, Text as d, indentUnit as e, countColumn as f, getIndentation as g, getIndentUnit as h, indentString as i, StateEffect as j, findClusterBreak as k, Decoration as l, matchBrackets as m, codePointAt as n, codePointSize as o, getPanel as p, CharCategory as q, fromCodePoint as r, syntaxTree as s, showPanel as t, EditorState as u, runScopeHandlers as v, hoverTooltip as w, logException as x, lineNumbers as y, highlightActiveLineGutter as z };
|
package/dist/bundled/v2/index.js
CHANGED
|
@@ -14,7 +14,6 @@ export { default as OrCheckboxGroupV3 } from './components/OrCheckboxGroupV3/OrC
|
|
|
14
14
|
export { default as OrChip } from './components/OrChip/OrChip.js';
|
|
15
15
|
export { default as OrChips } from './components/OrChips/OrChips.js';
|
|
16
16
|
export { default as OrCode } from './components/OrCode/OrCode.js';
|
|
17
|
-
export { default as OrCodeV3 } from './components/OrCodeV3/OrCode.js';
|
|
18
17
|
export { default as OrColorPicker } from './components/OrColorPicker/OrColorPicker.js';
|
|
19
18
|
export { default as OrCombinedInputV3 } from './components/OrCombinedInputV3/OrCombinedInput.js';
|
|
20
19
|
export { default as OrConfirm } from './components/OrConfirm/OrConfirm.js';
|
|
@@ -30,6 +29,7 @@ export { default as OrInlineTextEdit } from './components/OrInlineTextEdit/OrInl
|
|
|
30
29
|
export { default as OrInlineTextareaV3 } from './components/OrInlineTextareaV3/OrInlineTextarea.js';
|
|
31
30
|
export { default as OrLinkV3 } from './components/OrLinkV3/OrLink.js';
|
|
32
31
|
export { default as OrListOfInputs } from './components/OrListOfInputs/OrListOfInputs.js';
|
|
32
|
+
export { default as OrModalV3 } from './components/OrModalV3/OrModal.js';
|
|
33
33
|
export { default as OrNotification } from './components/OrNotification/OrNotification.js';
|
|
34
34
|
export { default as OrNotificationV3 } from './components/OrNotificationV3/OrNotification.js';
|
|
35
35
|
export { default as OrNumberInput } from './components/OrNumberInput/OrNumberInput.js';
|
|
@@ -87,7 +87,6 @@ export { DefaultCardCollectionViews, defaultViewModes, gridView, listView } from
|
|
|
87
87
|
export { default as OrCheckboxTreeV3 } from './components/OrCheckboxTreeV3/OrCheckboxTree.js';
|
|
88
88
|
export { default as OrCheckboxV3 } from './components/OrCheckboxV3/OrCheckbox.js';
|
|
89
89
|
export { OrCodeLanguages } from './components/OrCode/constants.js';
|
|
90
|
-
export { CodeLanguage } from './components/OrCodeV3/props.js';
|
|
91
90
|
export { default as OrCollapse } from './components/OrCollapse/OrCollapse.js';
|
|
92
91
|
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';
|
|
93
92
|
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';
|
|
@@ -134,7 +133,6 @@ export { default as OrMenuV3 } from './components/OrMenuV3/OrMenu.js';
|
|
|
134
133
|
export { PopoverPlacement as MenuPlacement, PopoverPlacement, PopoverVariant, PopoverPlacement as TooltipPlacement } from './components/OrPopoverV3/props.js';
|
|
135
134
|
export { default as OrModal } from './components/OrModal/OrModal.js';
|
|
136
135
|
export { OrModalSizes } from './components/OrModal/constants.js';
|
|
137
|
-
export { default as OrModalV3 } from './components/OrModalV3/OrModal.js';
|
|
138
136
|
export { ModalSize } from './components/OrModalV3/props.js';
|
|
139
137
|
export { OR_NOTIFICATION_SIZE, OR_NOTIFICATION_TYPE } from './components/OrNotification/constants.js';
|
|
140
138
|
export { NotificationVariant } from './components/OrNotificationV3/props.js';
|
|
@@ -193,12 +191,9 @@ import './components/OrCarousel/constants.js';
|
|
|
193
191
|
import './index-c92e2839.js';
|
|
194
192
|
import './index-ec92055d.js';
|
|
195
193
|
import './components/OrChips/constants.js';
|
|
196
|
-
import './index-
|
|
197
|
-
import './
|
|
198
|
-
import './index-eba9b646.js';
|
|
199
|
-
import './components/OrCode/lang.js';
|
|
194
|
+
import './index-cf2c3c27.js';
|
|
195
|
+
import './lang-0fb8f78b.js';
|
|
200
196
|
import './components/OrCode/theme.js';
|
|
201
|
-
import './components/OrCodeV3/styles.js';
|
|
202
197
|
import './components/OrColorPicker/utils/defultPalette.js';
|
|
203
198
|
import './components/OrCombinedInputV3/styles.js';
|
|
204
199
|
import './index-15e8c1f3.js';
|
|
@@ -227,6 +222,7 @@ import './components/OrFabV3/styles.js';
|
|
|
227
222
|
import './components/OrInlineInputV3/styles.js';
|
|
228
223
|
import './components/OrInlineTextareaV3/styles.js';
|
|
229
224
|
import './components/OrLinkV3/styles.js';
|
|
225
|
+
import './components/OrModalV3/styles.js';
|
|
230
226
|
import './components/OrNotificationV3/styles.js';
|
|
231
227
|
import './components/OrPaginationV3/styles.js';
|
|
232
228
|
import './round-136c7e43.js';
|
|
@@ -274,7 +270,6 @@ import './components/OrLabelV3/styles.js';
|
|
|
274
270
|
import './components/OrLoaderV3/styles.js';
|
|
275
271
|
import './components/OrMenuItemV3/styles.js';
|
|
276
272
|
import './components/OrMenuV3/styles.js';
|
|
277
|
-
import './components/OrModalV3/styles.js';
|
|
278
273
|
import './components/OrOverlayV3/styles.js';
|
|
279
274
|
import './components/OrPopoverV3/styles.js';
|
|
280
275
|
import './components/OrRadioV3/styles.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { s as syntaxTree, E as EditorView,
|
|
1
|
+
import { s as syntaxTree, E as EditorView, o as codePointSize, n as codePointAt, a as EditorSelection, q as CharCategory, P as Prec, Y as keymap, F as Facet, c as combineConfig, S as StateField, _ as showTooltip, $ as getTooltip, V as ViewPlugin, x as logException, j as StateEffect, a0 as MapMode, a1 as RangeValue, a2 as RangeSet, r as fromCodePoint, A as Annotation, d as Text, e as indentUnit, l as Decoration, D as Direction, W as WidgetType, a3 as Parser, a4 as NodeSet, a5 as NodeType, a6 as DefaultBufferLength, N as NodeProp, a7 as Tree, a8 as IterMode, a9 as styleTags, aa as tags$1, ab as parseMixed, ac as LanguageSupport, ad as LRLanguage, ae as indentNodeProp, af as continuedIndent, ag as foldNodeProp, ah as foldInside, ai as flatIndent, aj as delimitedIndent, ak as NodeWeakMap, al as Tag, am as Language, an as defineLanguageFacet, ao as languageDataProp, ap as LanguageDescription, aq as ParseContext } from './index-cf2c3c27.js';
|
|
2
|
+
import { OrCodeLanguages } from './components/OrCode/constants.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
An instance of this is passed to completion source functions.
|
|
@@ -7867,4 +7868,23 @@ function markdown() {
|
|
|
7867
7868
|
return new LanguageSupport(mkLang(parser.configure(extensions)), support);
|
|
7868
7869
|
}
|
|
7869
7870
|
|
|
7870
|
-
|
|
7871
|
+
const JS = javascript({
|
|
7872
|
+
typescript: false
|
|
7873
|
+
});
|
|
7874
|
+
const TS = javascript({
|
|
7875
|
+
typescript: true
|
|
7876
|
+
});
|
|
7877
|
+
const CSS = css();
|
|
7878
|
+
const HTML = html();
|
|
7879
|
+
const JSON$1 = json();
|
|
7880
|
+
const MD = markdown();
|
|
7881
|
+
var languages = {
|
|
7882
|
+
[OrCodeLanguages.JS]: JS,
|
|
7883
|
+
[OrCodeLanguages.TS]: TS,
|
|
7884
|
+
[OrCodeLanguages.CSS]: CSS,
|
|
7885
|
+
[OrCodeLanguages.HTML]: HTML,
|
|
7886
|
+
[OrCodeLanguages.JSON]: JSON$1,
|
|
7887
|
+
[OrCodeLanguages.MD]: MD
|
|
7888
|
+
};
|
|
7889
|
+
|
|
7890
|
+
export { CSS as C, HTML as H, JS as J, MD as M, TS as T, autocompletion as a, closeBracketsKeymap as b, closeBrackets as c, completionKeymap as d, JSON$1 as e, languages as l };
|
package/dist/bundled/{v2/index-576b3dec.js → v3/OrCode.vue_vue_type_script_lang-46846a36.js}
RENAMED
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
import { E as EditorView, F as Facet, c as combineConfig, S as StateField,
|
|
2
|
-
import {
|
|
1
|
+
import { E as EditorView, F as Facet, c as combineConfig, S as StateField, a as EditorSelection, T as Transaction, C as ChangeSet, b as ChangeDesc, I as IndentContext, g as getIndentation, i as indentString, d as Text, e as indentUnit, f as countColumn, h as getIndentUnit, A as Annotation, j as StateEffect, m as matchBrackets, s as syntaxTree, N as NodeProp, D as Direction, k as findClusterBreak, V as ViewPlugin, l as Decoration, n as codePointAt, o as codePointSize, p as getPanel, q as CharCategory, P as Prec, r as fromCodePoint, t as showPanel, R as RangeSetBuilder, u as EditorState, v as runScopeHandlers, w as hoverTooltip, W as WidgetType, x as logException, y as lineNumbers, z as highlightActiveLineGutter, B as highlightSpecialChars, G as foldGutter, H as drawSelection, J as dropCursor, K as indentOnInput, L as syntaxHighlighting, M as defaultHighlightStyle, O as bracketMatching, Q as rectangularSelection, U as crosshairCursor, X as highlightActiveLine, Y as keymap, Z as foldKeymap } from './index-cf2c3c27.js';
|
|
2
|
+
import { c as closeBrackets, a as autocompletion, b as closeBracketsKeymap, d as completionKeymap, l as languages } from './lang-0fb8f78b.js';
|
|
3
|
+
import { a as useElementHover } from './index-09d1cb24.js';
|
|
4
|
+
import { defineComponent, ref } from 'vue-demi';
|
|
5
|
+
import script$3 from './components/OrTeleport/OrTeleport.js';
|
|
6
|
+
import { OrCodeLanguages } from './components/OrCode/constants.js';
|
|
7
|
+
import theme from './components/OrCode/theme.js';
|
|
8
|
+
import './components/OrIconButtonV2/OrIconButton.js';
|
|
9
|
+
import './components/OrModal/OrModal.js';
|
|
10
|
+
import { s as script$2 } from './OrModal.vue_vue_type_script_lang-153819d3.js';
|
|
11
|
+
import './components/OrError/OrError.js';
|
|
12
|
+
import './components/OrHint/OrHint.js';
|
|
13
|
+
import './components/OrLabel/OrLabel.js';
|
|
14
|
+
import { s as script$1 } from './OrIconButton.vue_vue_type_script_lang-e078ed4c.js';
|
|
15
|
+
import { s as script$4 } from './OrError.vue_vue_type_script_lang-450321b8.js';
|
|
16
|
+
import { s as script$5 } from './OrHint.vue_vue_type_script_lang-5eb3ee22.js';
|
|
17
|
+
import { s as script$6 } from './OrLabel.vue_vue_type_script_lang-6243e348.js';
|
|
3
18
|
|
|
4
19
|
/**
|
|
5
20
|
Comment or uncomment the current selection. Will use line comments
|
|
@@ -3791,4 +3806,221 @@ const basicSetup = /*@__PURE__*/(() => [lineNumbers(), highlightActiveLineGutter
|
|
|
3791
3806
|
fallback: true
|
|
3792
3807
|
}), bracketMatching(), closeBrackets(), autocompletion(), rectangularSelection(), crosshairCursor(), highlightActiveLine(), highlightSelectionMatches(), keymap.of([...closeBracketsKeymap, ...defaultKeymap, ...searchKeymap, ...historyKeymap, ...foldKeymap, ...completionKeymap, ...lintKeymap])])();
|
|
3793
3808
|
|
|
3794
|
-
|
|
3809
|
+
//partially based on https://github.com/logue/vue-codemirror6/blob/master/src/components/CodeMirror.vue
|
|
3810
|
+
var script = defineComponent({
|
|
3811
|
+
name: 'OrCode',
|
|
3812
|
+
components: {
|
|
3813
|
+
OrIconButton: script$1,
|
|
3814
|
+
OrModal: script$2,
|
|
3815
|
+
OrTeleport: script$3,
|
|
3816
|
+
OrError: script$4,
|
|
3817
|
+
OrHint: script$5,
|
|
3818
|
+
OrLabel: script$6
|
|
3819
|
+
},
|
|
3820
|
+
model: {
|
|
3821
|
+
prop: 'modelValue',
|
|
3822
|
+
event: 'update:modelValue'
|
|
3823
|
+
},
|
|
3824
|
+
props: {
|
|
3825
|
+
label: {
|
|
3826
|
+
type: String,
|
|
3827
|
+
default: '',
|
|
3828
|
+
required: false
|
|
3829
|
+
},
|
|
3830
|
+
modelValue: {
|
|
3831
|
+
type: String,
|
|
3832
|
+
default: '',
|
|
3833
|
+
required: false
|
|
3834
|
+
},
|
|
3835
|
+
language: {
|
|
3836
|
+
type: [Object, String],
|
|
3837
|
+
required: false,
|
|
3838
|
+
default: OrCodeLanguages.JS
|
|
3839
|
+
},
|
|
3840
|
+
isReadonly: {
|
|
3841
|
+
type: Boolean,
|
|
3842
|
+
required: false,
|
|
3843
|
+
default: false
|
|
3844
|
+
},
|
|
3845
|
+
extensions: {
|
|
3846
|
+
type: Array,
|
|
3847
|
+
required: false,
|
|
3848
|
+
default: () => [basicSetup]
|
|
3849
|
+
},
|
|
3850
|
+
phrases: {
|
|
3851
|
+
type: Object,
|
|
3852
|
+
required: false,
|
|
3853
|
+
default: null
|
|
3854
|
+
},
|
|
3855
|
+
isShowingFullscreen: {
|
|
3856
|
+
type: Boolean,
|
|
3857
|
+
default: true,
|
|
3858
|
+
required: false
|
|
3859
|
+
},
|
|
3860
|
+
isInvalid: {
|
|
3861
|
+
type: Boolean,
|
|
3862
|
+
default: false,
|
|
3863
|
+
required: false
|
|
3864
|
+
},
|
|
3865
|
+
error: {
|
|
3866
|
+
type: String,
|
|
3867
|
+
default: '',
|
|
3868
|
+
required: false
|
|
3869
|
+
},
|
|
3870
|
+
hint: {
|
|
3871
|
+
type: String,
|
|
3872
|
+
default: '',
|
|
3873
|
+
required: false
|
|
3874
|
+
},
|
|
3875
|
+
allowPaste: {
|
|
3876
|
+
type: Boolean,
|
|
3877
|
+
default: true
|
|
3878
|
+
},
|
|
3879
|
+
allowDrop: {
|
|
3880
|
+
type: Boolean,
|
|
3881
|
+
default: true
|
|
3882
|
+
},
|
|
3883
|
+
lineWrapping: {
|
|
3884
|
+
type: Boolean,
|
|
3885
|
+
default: false
|
|
3886
|
+
}
|
|
3887
|
+
},
|
|
3888
|
+
emits: ['update:modelValue', 'focus', 'blur'],
|
|
3889
|
+
setup(props, _ref) {
|
|
3890
|
+
let {
|
|
3891
|
+
emit
|
|
3892
|
+
} = _ref;
|
|
3893
|
+
// editor config
|
|
3894
|
+
const root = ref();
|
|
3895
|
+
const target = ref();
|
|
3896
|
+
const fullscreenTarget = ref();
|
|
3897
|
+
const isHovered = useElementHover(root);
|
|
3898
|
+
const editor = new EditorView({
|
|
3899
|
+
state: EditorState.create({
|
|
3900
|
+
doc: props.modelValue
|
|
3901
|
+
}),
|
|
3902
|
+
dispatch: tr => {
|
|
3903
|
+
editor.update([tr]);
|
|
3904
|
+
if (tr.changes.empty) return;
|
|
3905
|
+
emit('update:modelValue', editor.state.doc.toString());
|
|
3906
|
+
}
|
|
3907
|
+
});
|
|
3908
|
+
return {
|
|
3909
|
+
root,
|
|
3910
|
+
target,
|
|
3911
|
+
fullscreenTarget,
|
|
3912
|
+
editor,
|
|
3913
|
+
isHovered
|
|
3914
|
+
};
|
|
3915
|
+
},
|
|
3916
|
+
data() {
|
|
3917
|
+
return {
|
|
3918
|
+
isFullscreen: false
|
|
3919
|
+
};
|
|
3920
|
+
},
|
|
3921
|
+
computed: {
|
|
3922
|
+
localLanguage() {
|
|
3923
|
+
if (Object.values(OrCodeLanguages).includes(this.language)) {
|
|
3924
|
+
return languages[this.language];
|
|
3925
|
+
} else {
|
|
3926
|
+
return this.language;
|
|
3927
|
+
}
|
|
3928
|
+
},
|
|
3929
|
+
localExtensions() {
|
|
3930
|
+
const {
|
|
3931
|
+
allowDrop,
|
|
3932
|
+
allowPaste,
|
|
3933
|
+
lineWrapping,
|
|
3934
|
+
extensions
|
|
3935
|
+
} = this;
|
|
3936
|
+
let ext = [theme, EditorView.baseTheme({}),
|
|
3937
|
+
// locale settings
|
|
3938
|
+
this.phrases ? EditorState.phrases.of(this.phrases) : undefined,
|
|
3939
|
+
// Parser language setting
|
|
3940
|
+
this.localLanguage,
|
|
3941
|
+
// Editable option
|
|
3942
|
+
EditorView.editable.of(!this.isReadonly),
|
|
3943
|
+
// Focus and blur listener
|
|
3944
|
+
EditorView.updateListener.of(viewUpdate => {
|
|
3945
|
+
if (viewUpdate.focusChanged) {
|
|
3946
|
+
viewUpdate.view.hasFocus ? this.$emit('focus') : this.$emit('blur', viewUpdate.state.doc.toString());
|
|
3947
|
+
}
|
|
3948
|
+
}), EditorView.domEventHandlers({
|
|
3949
|
+
drop(event) {
|
|
3950
|
+
if (!allowDrop) {
|
|
3951
|
+
event.preventDefault();
|
|
3952
|
+
return true;
|
|
3953
|
+
}
|
|
3954
|
+
},
|
|
3955
|
+
paste(event) {
|
|
3956
|
+
if (!allowPaste) {
|
|
3957
|
+
event.preventDefault();
|
|
3958
|
+
return true;
|
|
3959
|
+
}
|
|
3960
|
+
}
|
|
3961
|
+
}),
|
|
3962
|
+
// line wrapping
|
|
3963
|
+
lineWrapping ? EditorView.lineWrapping : undefined, keymap.of([indentWithTab])];
|
|
3964
|
+
if (Array.isArray(extensions)) {
|
|
3965
|
+
ext = [...ext, ...extensions];
|
|
3966
|
+
}
|
|
3967
|
+
ext = ext.filter(Boolean);
|
|
3968
|
+
return ext;
|
|
3969
|
+
},
|
|
3970
|
+
isShowingError() {
|
|
3971
|
+
return !!this.error && this.isInvalid;
|
|
3972
|
+
},
|
|
3973
|
+
isShowingHint() {
|
|
3974
|
+
return !!this.hint && !this.isShowingError;
|
|
3975
|
+
},
|
|
3976
|
+
isShowingHeader() {
|
|
3977
|
+
var _a;
|
|
3978
|
+
return this.isShowingFullscreen || this.$slots.label || this.$slots.actions || ((_a = this.$scopedSlots) === null || _a === void 0 ? void 0 : _a.actions);
|
|
3979
|
+
}
|
|
3980
|
+
},
|
|
3981
|
+
watch: {
|
|
3982
|
+
modelValue(value) {
|
|
3983
|
+
if (this.editor.composing) return;
|
|
3984
|
+
if (this.editor.state.doc.toString() === value) return;
|
|
3985
|
+
const previous = this.editor.state.selection;
|
|
3986
|
+
this.editor.setState(EditorState.create({
|
|
3987
|
+
doc: value,
|
|
3988
|
+
extensions: this.localExtensions,
|
|
3989
|
+
selection: previous.ranges.some(range => range.to > value.length) ? {
|
|
3990
|
+
anchor: value.length
|
|
3991
|
+
} : previous
|
|
3992
|
+
}));
|
|
3993
|
+
},
|
|
3994
|
+
isFullscreen(value) {
|
|
3995
|
+
if (value) {
|
|
3996
|
+
this.fullscreenTarget.append(this.editor.dom);
|
|
3997
|
+
} else {
|
|
3998
|
+
this.target.append(this.editor.dom);
|
|
3999
|
+
}
|
|
4000
|
+
},
|
|
4001
|
+
localExtensions() {
|
|
4002
|
+
this.updateEditorState();
|
|
4003
|
+
}
|
|
4004
|
+
},
|
|
4005
|
+
mounted() {
|
|
4006
|
+
this.updateEditorState();
|
|
4007
|
+
this.target.append(this.editor.dom);
|
|
4008
|
+
},
|
|
4009
|
+
beforeUnmount() {
|
|
4010
|
+
var _a;
|
|
4011
|
+
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
4012
|
+
},
|
|
4013
|
+
methods: {
|
|
4014
|
+
updateEditorState() {
|
|
4015
|
+
this.editor.setState(EditorState.create({
|
|
4016
|
+
doc: this.modelValue,
|
|
4017
|
+
extensions: this.localExtensions
|
|
4018
|
+
}));
|
|
4019
|
+
},
|
|
4020
|
+
toggleFullscreen(value) {
|
|
4021
|
+
this.isFullscreen = value === undefined ? !this.isFullscreen : value;
|
|
4022
|
+
}
|
|
4023
|
+
}
|
|
4024
|
+
});
|
|
4025
|
+
|
|
4026
|
+
export { script as s };
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { s as script } from '../../OrCode.vue_vue_type_script_lang-
|
|
2
|
-
export { s as default } from '../../OrCode.vue_vue_type_script_lang-
|
|
1
|
+
import { s as script } from '../../OrCode.vue_vue_type_script_lang-46846a36.js';
|
|
2
|
+
export { s as default } from '../../OrCode.vue_vue_type_script_lang-46846a36.js';
|
|
3
3
|
import { resolveComponent, openBlock, createElementBlock, createVNode, withCtx, renderSlot, createElementVNode, normalizeClass, createBlock, createCommentVNode, withDirectives, vShow } from 'vue';
|
|
4
4
|
import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
|
|
5
|
-
import '../../index-
|
|
6
|
-
import '../../
|
|
7
|
-
import '
|
|
5
|
+
import '../../index-cf2c3c27.js';
|
|
6
|
+
import '../../lang-0fb8f78b.js';
|
|
7
|
+
import './constants.js';
|
|
8
8
|
import '../../index-09d1cb24.js';
|
|
9
9
|
import '../../index-f4d8e24c.js';
|
|
10
10
|
import 'vue-demi';
|
|
11
11
|
import '../OrTeleport/OrTeleport.js';
|
|
12
12
|
import '../OrTeleport/constants.js';
|
|
13
|
-
import './constants.js';
|
|
14
|
-
import './lang.js';
|
|
15
13
|
import './theme.js';
|
|
16
14
|
import '../OrIconButtonV2/OrIconButton.js';
|
|
17
15
|
import '../../OrIconButton.vue_vue_type_script_lang-e078ed4c.js';
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
export { OrCodeLanguages } from './constants.js';
|
|
2
|
-
export { s as OrCode } from '../../OrCode.vue_vue_type_script_lang-
|
|
3
|
-
import '../../index-
|
|
4
|
-
import '../../
|
|
5
|
-
import '../../index-eba9b646.js';
|
|
2
|
+
export { s as OrCode } from '../../OrCode.vue_vue_type_script_lang-46846a36.js';
|
|
3
|
+
import '../../index-cf2c3c27.js';
|
|
4
|
+
import '../../lang-0fb8f78b.js';
|
|
6
5
|
import '../../index-09d1cb24.js';
|
|
7
6
|
import '../../index-f4d8e24c.js';
|
|
8
7
|
import 'vue-demi';
|
|
9
8
|
import '../OrTeleport/OrTeleport.js';
|
|
10
9
|
import '../OrTeleport/constants.js';
|
|
11
10
|
import 'vue';
|
|
12
|
-
import './lang.js';
|
|
13
11
|
import './theme.js';
|
|
14
12
|
import '../OrIconButtonV2/OrIconButton.js';
|
|
15
13
|
import '../../OrIconButton.vue_vue_type_script_lang-e078ed4c.js';
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import '../../index-
|
|
4
|
-
|
|
5
|
-
const JS = javascript({
|
|
6
|
-
typescript: false
|
|
7
|
-
});
|
|
8
|
-
const TS = javascript({
|
|
9
|
-
typescript: true
|
|
10
|
-
});
|
|
11
|
-
const CSS = css();
|
|
12
|
-
const HTML = html();
|
|
13
|
-
const JSON = json();
|
|
14
|
-
const MD = markdown();
|
|
15
|
-
var languages = {
|
|
16
|
-
[OrCodeLanguages.JS]: JS,
|
|
17
|
-
[OrCodeLanguages.TS]: TS,
|
|
18
|
-
[OrCodeLanguages.CSS]: CSS,
|
|
19
|
-
[OrCodeLanguages.HTML]: HTML,
|
|
20
|
-
[OrCodeLanguages.JSON]: JSON,
|
|
21
|
-
[OrCodeLanguages.MD]: MD
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { CSS, HTML, JS, JSON, MD, TS, languages as default };
|
|
1
|
+
export { C as CSS, H as HTML, J as JS, e as JSON, M as MD, T as TS, l as default } from '../../lang-0fb8f78b.js';
|
|
2
|
+
import './constants.js';
|
|
3
|
+
import '../../index-cf2c3c27.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EditorView,
|
|
1
|
+
import { E as EditorView, ar as HighlightStyle, aa as tags, L as syntaxHighlighting } from '../../index-cf2c3c27.js';
|
|
2
2
|
|
|
3
3
|
// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
|
|
4
4
|
const chalky = 'var(--c-warning-darken-20)',
|
|
@@ -15,7 +15,6 @@ export * from './or-checkbox-tree-v3';
|
|
|
15
15
|
export * from './or-checkbox-v3';
|
|
16
16
|
export * from './or-chips';
|
|
17
17
|
export * from './or-code';
|
|
18
|
-
export * from './or-code-v3';
|
|
19
18
|
export * from './or-collapse';
|
|
20
19
|
export * from './or-color-picker';
|
|
21
20
|
export * from './or-combined-input-v3';
|
|
@@ -25,10 +25,8 @@ export { s as OrCheckboxTreeV3 } from '../OrCheckboxTree.vue_vue_type_script_lan
|
|
|
25
25
|
export { s as OrCheckboxV3 } from '../OrCheckbox.vue_vue_type_script_lang-616a0cce.js';
|
|
26
26
|
export { s as OrChip } from '../OrChip.vue_vue_type_script_lang-d0c62419.js';
|
|
27
27
|
export { s as OrChips } from '../OrChips.vue_vue_type_script_lang-d7a38038.js';
|
|
28
|
-
export { s as OrCode } from '../OrCode.vue_vue_type_script_lang-
|
|
28
|
+
export { s as OrCode } from '../OrCode.vue_vue_type_script_lang-46846a36.js';
|
|
29
29
|
export { OrCodeLanguages } from './OrCode/constants.js';
|
|
30
|
-
export { s as OrCodeV3 } from '../OrCode.vue_vue_type_script_lang-84a512fb.js';
|
|
31
|
-
export { CodeLanguage } from './OrCodeV3/props.js';
|
|
32
30
|
export { s as OrCollapse } from '../OrCollapse.vue_vue_type_script_lang-e2dcce92.js';
|
|
33
31
|
export { s as OrColorPicker } from '../OrColorPicker.vue_vue_type_script_lang-2e1845d8.js';
|
|
34
32
|
export { amber, black, blue, blueGrey, brown, cyan, deepOrange, deepPurple, green, indigo, lightBlue, lightGreen, lime, orange, pink, purple, red, teal, white, yellow } from './OrColorPicker/constants.js';
|
|
@@ -251,16 +249,11 @@ import './OrFormGroupV3/OrFormGroup.js';
|
|
|
251
249
|
import './OrFormGroupV3/styles.js';
|
|
252
250
|
import './OrChip/OrChip.js';
|
|
253
251
|
import './OrChips/constants.js';
|
|
254
|
-
import '../index-
|
|
255
|
-
import '../
|
|
256
|
-
import '../index-eba9b646.js';
|
|
257
|
-
import './OrCode/lang.js';
|
|
252
|
+
import '../index-cf2c3c27.js';
|
|
253
|
+
import '../lang-0fb8f78b.js';
|
|
258
254
|
import './OrCode/theme.js';
|
|
259
255
|
import './OrModal/OrModal.js';
|
|
260
256
|
import './OrOverlay/OrOverlay.js';
|
|
261
|
-
import './OrCodeV3/styles.js';
|
|
262
|
-
import './OrModalV3/OrModal.js';
|
|
263
|
-
import './OrModalV3/styles.js';
|
|
264
257
|
import './OrColorPicker/utils/defultPalette.js';
|
|
265
258
|
import './OrCombinedInputV3/styles.js';
|
|
266
259
|
import '../index-500b3ace.js';
|
|
@@ -294,6 +287,7 @@ import '../_baseAssignValue-0c6c3bcc.js';
|
|
|
294
287
|
import '../isEqual-881b7bb5.js';
|
|
295
288
|
import '../v4-cf8987a3.js';
|
|
296
289
|
import './OrList/OrList.js';
|
|
290
|
+
import './OrModalV3/styles.js';
|
|
297
291
|
import './OrNotificationV3/styles.js';
|
|
298
292
|
import './OrPaginationV3/styles.js';
|
|
299
293
|
import '../hooks/useToggle.js';
|
|
@@ -18388,4 +18388,4 @@ function createTokenType(extra, tagStr) {
|
|
|
18388
18388
|
return type.id;
|
|
18389
18389
|
}
|
|
18390
18390
|
|
|
18391
|
-
export {
|
|
18391
|
+
export { getTooltip as $, Annotation as A, highlightSpecialChars as B, ChangeSet as C, Direction as D, EditorView as E, Facet as F, foldGutter as G, drawSelection as H, IndentContext as I, dropCursor as J, indentOnInput as K, syntaxHighlighting as L, defaultHighlightStyle as M, NodeProp as N, bracketMatching as O, Prec as P, rectangularSelection as Q, RangeSetBuilder as R, StateField as S, Transaction as T, crosshairCursor as U, ViewPlugin as V, WidgetType as W, highlightActiveLine as X, keymap as Y, foldKeymap as Z, showTooltip as _, EditorSelection as a, MapMode as a0, RangeValue as a1, RangeSet as a2, Parser as a3, NodeSet as a4, NodeType as a5, DefaultBufferLength as a6, Tree as a7, IterMode as a8, styleTags as a9, tags as aa, parseMixed as ab, LanguageSupport as ac, LRLanguage as ad, indentNodeProp as ae, continuedIndent as af, foldNodeProp as ag, foldInside as ah, flatIndent as ai, delimitedIndent as aj, NodeWeakMap as ak, Tag as al, Language as am, defineLanguageFacet as an, languageDataProp as ao, LanguageDescription as ap, ParseContext as aq, HighlightStyle as ar, ChangeDesc as b, combineConfig as c, Text as d, indentUnit as e, countColumn as f, getIndentation as g, getIndentUnit as h, indentString as i, StateEffect as j, findClusterBreak as k, Decoration as l, matchBrackets as m, codePointAt as n, codePointSize as o, getPanel as p, CharCategory as q, fromCodePoint as r, syntaxTree as s, showPanel as t, EditorState as u, runScopeHandlers as v, hoverTooltip as w, logException as x, lineNumbers as y, highlightActiveLineGutter as z };
|