@orchidui/dashboard 1.17.0 → 1.19.0-3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orchidui/dashboard",
3
3
  "description": "Orchid Dashboard UI , Dashboard Ui Library Vue 3 tailwind css",
4
- "version": "1.17.0",
4
+ "version": "1.19.0-3",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "vite build"
@@ -33,6 +33,6 @@
33
33
  "rollup": "npm:@rollup/wasm-node"
34
34
  },
35
35
  "dependencies": {
36
- "@orchidui/core": "latest"
36
+ "@orchidui/core": "beta"
37
37
  }
38
38
  }
@@ -1,63 +0,0 @@
1
- import { defineComponent as o, ref as i, onMounted as r, openBlock as s, createElementBlock as c } from "vue";
2
- import { getHighlighter as u } from "shikiji";
3
- import m from "./Dashboard/CodeBlock/customTheme.js";
4
- const d = Object.freeze({ displayName: "JSON", name: "json", patterns: [{ include: "#value" }], repository: { array: { begin: "\\[", beginCaptures: { 0: { name: "punctuation.definition.array.begin.json" } }, end: "\\]", endCaptures: { 0: { name: "punctuation.definition.array.end.json" } }, name: "meta.structure.array.json", patterns: [{ include: "#value" }, { match: ",", name: "punctuation.separator.array.json" }, { match: "[^\\s\\]]", name: "invalid.illegal.expected-array-separator.json" }] }, comments: { patterns: [{ begin: "/\\*\\*(?!/)", captures: { 0: { name: "punctuation.definition.comment.json" } }, end: "\\*/", name: "comment.block.documentation.json" }, { begin: "/\\*", captures: { 0: { name: "punctuation.definition.comment.json" } }, end: "\\*/", name: "comment.block.json" }, { captures: { 1: { name: "punctuation.definition.comment.json" } }, match: "(//).*$\\n?", name: "comment.line.double-slash.js" }] }, constant: { match: "\\b(?:true|false|null)\\b", name: "constant.language.json" }, number: { match: `(?x) # turn on extended mode
5
- -? # an optional minus
6
- (?:
7
- 0 # a zero
8
- | # ...or...
9
- [1-9] # a 1-9 character
10
- \\d* # followed by zero or more digits
11
- )
12
- (?:
13
- (?:
14
- \\. # a period
15
- \\d+ # followed by one or more digits
16
- )?
17
- (?:
18
- [eE] # an e character
19
- [+-]? # followed by an option +/-
20
- \\d+ # followed by one or more digits
21
- )? # make exponent optional
22
- )? # make decimal portion optional`, name: "constant.numeric.json" }, object: { begin: "\\{", beginCaptures: { 0: { name: "punctuation.definition.dictionary.begin.json" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.dictionary.end.json" } }, name: "meta.structure.dictionary.json", patterns: [{ comment: "the JSON object key", include: "#objectkey" }, { include: "#comments" }, { begin: ":", beginCaptures: { 0: { name: "punctuation.separator.dictionary.key-value.json" } }, end: "(,)|(?=\\})", endCaptures: { 1: { name: "punctuation.separator.dictionary.pair.json" } }, name: "meta.structure.dictionary.value.json", patterns: [{ comment: "the JSON object value", include: "#value" }, { match: "[^\\s,]", name: "invalid.illegal.expected-dictionary-separator.json" }] }, { match: "[^\\s\\}]", name: "invalid.illegal.expected-dictionary-separator.json" }] }, objectkey: { begin: '"', beginCaptures: { 0: { name: "punctuation.support.type.property-name.begin.json" } }, end: '"', endCaptures: { 0: { name: "punctuation.support.type.property-name.end.json" } }, name: "string.json support.type.property-name.json", patterns: [{ include: "#stringcontent" }] }, string: { begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.json" } }, end: '"', endCaptures: { 0: { name: "punctuation.definition.string.end.json" } }, name: "string.quoted.double.json", patterns: [{ include: "#stringcontent" }] }, stringcontent: { patterns: [{ match: `(?x) # turn on extended mode
23
- \\\\ # a literal backslash
24
- (?: # ...followed by...
25
- ["\\\\/bfnrt] # one of these characters
26
- | # ...or...
27
- u # a u
28
- [0-9a-fA-F]{4}) # and four hex digits`, name: "constant.character.escape.json" }, { match: "\\\\.", name: "invalid.illegal.unrecognized-string-escape.json" }] }, value: { patterns: [{ include: "#constant" }, { include: "#number" }, { include: "#string" }, { include: "#array" }, { include: "#object" }, { include: "#comments" }] } }, scopeName: "source.json" });
29
- var p = [
30
- d
31
- ];
32
- const l = ["innerHTML"], h = /* @__PURE__ */ o({
33
- __name: "OcCodeBlock",
34
- props: {
35
- jsonObject: {
36
- type: String,
37
- required: !0
38
- },
39
- lang: {
40
- type: String,
41
- default: "json"
42
- }
43
- },
44
- setup(a) {
45
- const n = a, e = i();
46
- return r(async () => {
47
- const t = await u({
48
- themes: [m],
49
- langs: [p]
50
- });
51
- e.value = t.codeToHtml(n.jsonObject, {
52
- theme: "Custom Theme",
53
- lang: n.lang
54
- });
55
- }), (t, g) => (s(), c("div", {
56
- class: "p-5 rounded bg-oc-gray-900 code-block",
57
- innerHTML: e.value
58
- }, null, 8, l));
59
- }
60
- });
61
- export {
62
- h as default
63
- };