vue-intlayer 9.9.0 → 9.9.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.
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let e=require("vue");var t=250,n=(0,e.defineComponent)({__name:`ContentSelector`,props:{onClickOutside:{type:Function},pressDuration:{},isSelecting:{type:Boolean}},emits:[`click`,`press`,`hover`,`unhover`],setup(n,{emit:r}){let i=n,a=r,o=(0,e.ref)(null),s=(0,e.ref)(!1),c=(0,e.ref)(i.isSelecting??!1),l=(0,e.ref)(null),u=(0,e.computed)(()=>i.isSelecting??c.value),d=(0,e.computed)(()=>{let t=(0,e.useSlots)().default?.();return t?.length===1&&typeof t[0].children==`string`}),f=()=>{c.value=!0,a(`press`)},p=()=>{l.value=setTimeout(()=>{f()},i.pressDuration??t)},m=()=>{l.value&&=(clearTimeout(l.value),null)},h=()=>{m(),p()},g=()=>{s.value&&(s.value=!1,a(`unhover`)),m()},_=()=>{s.value&&(s.value=!1,a(`unhover`)),m()},v=e=>{o.value&&!o.value.contains(e.target)&&(c.value=!1,i.onClickOutside?.())},y=e=>{u.value&&(e.preventDefault(),e.stopPropagation())},b=()=>{c.value=!1};return(0,e.onMounted)(()=>{document.addEventListener(`mousedown`,v)}),(0,e.onBeforeUnmount)(()=>{document.removeEventListener(`mousedown`,v),m()}),(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{ref_key:`containerRef`,ref:o,role:`button`,tabindex:`0`,onClick:y,onMousedown:h,onMouseup:g,onMouseleave:_,onTouchstart:h,onTouchend:g,onTouchcancel:_,onBlur:b,onMouseenter:n[0]||=()=>{s.value=!0,a(`hover`)},style:(0,e.normalizeStyle)({display:d.value?`inline`:`inline-block`,cursor:`pointer`,userSelect:`none`,borderRadius:`0.375rem`,outlineWidth:`2px`,outlineOffset:`4px`,outlineStyle:`solid`,outlineColor:u.value||s.value?`inherit`:`transparent`,transition:`all 100ms 50ms ease-in-out`})},[(0,e.renderSlot)(t.$slots,`default`)],36))}});exports.default=n;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let e=require("vue");var t=250,n=(0,e.defineComponent)({__name:`ContentSelector`,props:{onClickOutside:{type:Function},pressDuration:{},isSelecting:{type:Boolean}},emits:[`click`,`press`,`hover`,`unhover`],setup(n,{emit:r}){let i=n,a=r,o=(0,e.ref)(null),s=(0,e.ref)(!1),c=(0,e.ref)(i.isSelecting??!1),l=(0,e.ref)(null),u=(0,e.computed)(()=>i.isSelecting??c.value),d=(0,e.computed)(()=>{let t=(0,e.useSlots)().default?.();return t?.length===1&&typeof t[0]?.children==`string`}),f=()=>{c.value=!0,a(`press`)},p=()=>{l.value=setTimeout(()=>{f()},i.pressDuration??t)},m=()=>{l.value&&=(clearTimeout(l.value),null)},h=()=>{m(),p()},g=()=>{s.value&&(s.value=!1,a(`unhover`)),m()},_=()=>{s.value&&(s.value=!1,a(`unhover`)),m()},v=e=>{o.value&&!o.value.contains(e.target)&&(c.value=!1,i.onClickOutside?.())},y=e=>{u.value&&(e.preventDefault(),e.stopPropagation())},b=()=>{c.value=!1};return(0,e.onMounted)(()=>{document.addEventListener(`mousedown`,v)}),(0,e.onBeforeUnmount)(()=>{document.removeEventListener(`mousedown`,v),m()}),(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{ref_key:`containerRef`,ref:o,role:`button`,tabindex:`0`,onClick:y,onMousedown:h,onMouseup:g,onMouseleave:_,onTouchstart:h,onTouchend:g,onTouchcancel:_,onBlur:b,onMouseenter:n[0]||=()=>{s.value=!0,a(`hover`)},style:(0,e.normalizeStyle)({display:d.value?`inline`:`inline-block`,cursor:`pointer`,userSelect:`none`,borderRadius:`0.375rem`,outlineWidth:`2px`,outlineOffset:`4px`,outlineStyle:`solid`,outlineColor:u.value||s.value?`inherit`:`transparent`,transition:`all 100ms 50ms ease-in-out`})},[(0,e.renderSlot)(t.$slots,`default`)],36))}});exports.default=n;
@@ -16,7 +16,7 @@ var u = 250, d = /* @__PURE__ */ n({
16
16
  setup(n, { emit: d }) {
17
17
  let f = n, p = d, m = s(null), h = s(!1), g = s(f.isSelecting ?? !1), _ = s(null), v = e(() => f.isSelecting ?? g.value), y = e(() => {
18
18
  let e = l().default?.();
19
- return e?.length === 1 && typeof e[0].children == "string";
19
+ return e?.length === 1 && typeof e[0]?.children == "string";
20
20
  }), b = () => {
21
21
  g.value = !0, p("press");
22
22
  }, x = () => {
@@ -1,5 +1,5 @@
1
1
  import { Locale } from '@intlayer/types/allLocales';
2
- import { CustomInspectorNode } from '@vue/devtools-api';
2
+ import { CustomInspectorNode } from '@vue/devtools-kit';
3
3
  export declare const LOCALES_GROUP_NODE_ID = "intlayer-locales";
4
4
  export declare const LOCALE_NODE_ID_PREFIX = "locale:";
5
5
  export declare const CURRENT_LOCALE_NODE_ID_SUFFIX = ":current";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intlayer",
3
- "version": "9.9.0",
3
+ "version": "9.9.1",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Vue applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -103,20 +103,21 @@
103
103
  "typecheck": "vue-tsc --noEmit --project tsconfig.types.json"
104
104
  },
105
105
  "dependencies": {
106
- "@intlayer/api": "9.9.0",
107
- "@intlayer/config": "9.9.0",
108
- "@intlayer/core": "9.9.0",
109
- "@intlayer/dictionaries-entry": "9.9.0",
110
- "@intlayer/editor": "9.9.0",
111
- "@intlayer/types": "9.9.0",
112
- "@vue/devtools-api": "^6.6.4"
106
+ "@intlayer/api": "9.9.1",
107
+ "@intlayer/config": "9.9.1",
108
+ "@intlayer/core": "9.9.1",
109
+ "@intlayer/dictionaries-entry": "9.9.1",
110
+ "@intlayer/editor": "9.9.1",
111
+ "@intlayer/types": "9.9.1",
112
+ "@vue/devtools-api": "^8.2.1",
113
+ "@vue/devtools-kit": "^8.2.1"
113
114
  },
114
115
  "devDependencies": {
115
116
  "@types/node": "^26",
116
117
  "@utils/ts-config": "1.0.4",
117
118
  "@utils/ts-config-types": "1.0.4",
118
119
  "@utils/tsdown-config": "1.0.4",
119
- "@vitejs/plugin-vue": "6.0.8",
120
+ "@vitejs/plugin-vue": "6.0.11",
120
121
  "ajv": "8.20.0",
121
122
  "fast-glob": "3.3.3",
122
123
  "rimraf": "6.1.4",
@@ -124,11 +125,11 @@
124
125
  "typescript": "6.0.3",
125
126
  "vite": "8.3.8",
126
127
  "vite-plugin-dts": "5.1.2",
127
- "vitest": "5.1.1",
128
- "vue-tsc": "3.3.9"
128
+ "vitest": "5.1.2",
129
+ "vue-tsc": "3.3.14"
129
130
  },
130
131
  "peerDependencies": {
131
- "intlayer": "9.9.0",
132
+ "intlayer": "9.9.1",
132
133
  "vue": ">=3.0.0"
133
134
  },
134
135
  "peerDependenciesMeta": {
@@ -137,7 +138,7 @@
137
138
  }
138
139
  },
139
140
  "optionalDependencies": {
140
- "@intlayer/analytics": "9.9.0"
141
+ "@intlayer/analytics": "9.9.1"
141
142
  },
142
143
  "engines": {
143
144
  "node": ">=14.18"