@ditojs/ui 2.23.0 → 2.24.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditojs/ui",
3
- "version": "2.23.0",
3
+ "version": "2.24.1",
4
4
  "type": "module",
5
5
  "description": "Dito.js UI is a simple UI library, built with Vue.js for use in Dito.js Admin and elsewhere",
6
6
  "repository": "https://github.com/ditojs/dito/tree/master/packages/ui",
@@ -32,18 +32,18 @@
32
32
  "ie_mob >= 11"
33
33
  ],
34
34
  "dependencies": {
35
- "@ditojs/utils": "^2.23.0",
35
+ "@ditojs/utils": "^2.24.0",
36
36
  "@soda/get-current-script": "^1.0.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@ditojs/build": "^2.23.0",
39
+ "@ditojs/build": "^2.24.0",
40
40
  "@vitejs/plugin-vue": "^5.0.3",
41
41
  "@vue/compiler-sfc": "3.4.10",
42
42
  "pug": "^3.0.2",
43
43
  "sass": "1.70.0",
44
- "vite": "^5.1.0"
44
+ "vite": "^5.1.1"
45
45
  },
46
- "gitHead": "6aee1fd0e7569c8eb21f46138012c532b9ac8db7",
46
+ "gitHead": "47db476cbe26eb80eea031cb07133ec76b2d10b1",
47
47
  "scripts": {
48
48
  "build:icons": "yarn inline-assets src/icons/*.svg --template src/icons/template.js > src/styles/mixins/_icons.scss",
49
49
  "build:vue": "vite build",
@@ -1,4 +1,4 @@
1
- export * from './vue.js'
2
1
  export * from './date.js'
3
2
  export * from './event.js'
4
3
  export * from './selection.js'
4
+ export * from './vue.js'
package/src/utils/vue.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useSlots, Comment } from 'vue'
1
+ import { markRaw, useSlots, Comment } from 'vue'
2
2
  import { isString, asArray } from '@ditojs/utils'
3
3
 
4
4
  export function hasVNodeContent(vnode) {
@@ -9,3 +9,7 @@ export function hasSlotContent(slot, props = {}) {
9
9
  slot = isString(slot) ? useSlots()[slot] : slot
10
10
  return hasVNodeContent(slot?.(props))
11
11
  }
12
+
13
+ export function raw(value) {
14
+ return markRaw({ value })
15
+ }