🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

slate-vue3

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slate-vue3 - npm Package Compare versions

Comparing version

to
0.4.2

@@ -1,4 +0,4 @@

import { a6, a7, a8, d, e, f, a, h, aj, c, i, j, k, ap, ak, l, m, o, p, q, g, b, r, t, u, v, w, x, aq, y, a9, z, A, B, C, D, E, F, G, H, I, J, aa, K, ab, al, ac, L, M, N, O, n, P, S, Q, R, V, T, U, W, X, _, Y, Z, $, ad, am, ae, a0, an, ao, a5, s, af, a1, a2, a3, ag, ah, a4, ai } from "./create-editor-UR4aFGAf.js";
import { E as E2, a as a10, N as N2, O as O2, P as P2, b as b2, R as R2, S as S2, T as T2, c as c2, i as i2 } from "./batch-dirty-paths-1Ahs6kkr.js";
import { L as L2, S as S3 } from "./location-MosjNIh-.js";
import { a6, a7, a8, d, e, f, a, h, aj, c, i, j, k, ap, ak, l, m, o, p, q, g, b, r, t, u, v, w, x, aq, y, a9, z, A, B, C, D, E, F, G, H, I, J, aa, K, ab, al, ac, L, M, N, O, n, P, S, Q, R, V, T, U, W, X, _, Y, Z, $, ad, am, ae, a0, an, ao, a5, s, af, a1, a2, a3, ag, ah, a4, ai } from "./create-editor-BECAnoU4.js";
import { E as E2, a as a10, N as N2, O as O2, P as P2, b as b2, R as R2, S as S2, T as T2, c as c2, i as i2, d as d2 } from "./batch-dirty-paths-DGoKWQz8.js";
import { L as L2, S as S3 } from "./location-H02Ot2Mm.js";
export {

@@ -56,2 +56,3 @@ E2 as Editor,

F as isNormalizing,
d2 as isObject,
G as isStart,

@@ -58,0 +59,0 @@ H as last,

@@ -1,4 +0,4 @@

import { D as DOMEditor, E as EDITOR_TO_KEY_TO_ELEMENT, a as EDITOR_TO_USER_MARKS, b as EDITOR_TO_USER_SELECTION, N as NODE_TO_KEY, i as isDOMText, g as getPlainText, c as getSlateFragmentAttribute, d as EDITOR_TO_ON_CHANGE } from "./hotkeys-BSLjSKb9.js";
import { C, F, G, J, H, B, I, u, L, v, w, M, x, O, z, y, A, K, P, Q, R, S, e, f, h, j, k, l, m, o, p, q, r, s, t, n } from "./hotkeys-BSLjSKb9.js";
import { E as Editor, R as Range, a as Element, c as Transforms, P as Path, N as Node } from "./batch-dirty-paths-1Ahs6kkr.js";
import { D as DOMEditor, E as EDITOR_TO_KEY_TO_ELEMENT, a as EDITOR_TO_USER_MARKS, b as EDITOR_TO_USER_SELECTION, N as NODE_TO_KEY, i as isDOMText, g as getPlainText, c as getSlateFragmentAttribute, d as EDITOR_TO_ON_CHANGE } from "./hotkeys-DdYAaAmE.js";
import { C, F, G, J, H, B, I, u, L, v, w, M, x, O, z, y, A, K, P, Q, R, S, e, f, h, j, k, l, m, o, p, q, r, s, t, n } from "./hotkeys-DdYAaAmE.js";
import { E as Editor, R as Range, a as Element, c as Transforms, P as Path, N as Node } from "./batch-dirty-paths-DGoKWQz8.js";
import "vue";

@@ -5,0 +5,0 @@ const doRectsIntersect = (rect, compareRect) => {

@@ -1,2 +0,2 @@

import { d as isPlainObject, O as Operation, t as toRawWeakMap, E as Editor, c as Transforms, P as Path } from "./batch-dirty-paths-1Ahs6kkr.js";
import { d as isObject, O as Operation, t as toRawWeakMap, E as Editor, c as Transforms, P as Path } from "./batch-dirty-paths-DGoKWQz8.js";
import "vue";

@@ -8,3 +8,3 @@ const History = {

isHistory(value) {
return isPlainObject(value) && Array.isArray(value.redos) && Array.isArray(value.undos) && (value.redos.length === 0 || Operation.isOperationList(value.redos[0].operations)) && (value.undos.length === 0 || Operation.isOperationList(value.undos[0].operations));
return isObject(value) && Array.isArray(value.redos) && Array.isArray(value.undos) && (value.redos.length === 0 || Operation.isOperationList(value.redos[0].operations)) && (value.undos.length === 0 || Operation.isOperationList(value.undos[0].operations));
}

@@ -11,0 +11,0 @@ };

var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
import { t as toRawWeakMap, R as Range, N as Node, T as Text, a as Element, d as isPlainObject } from "./batch-dirty-paths-1Ahs6kkr.js";
import { c as createEditor$1 } from "./create-editor-UR4aFGAf.js";
import { t as toRawWeakMap, R as Range, N as Node, T as Text, a as Element, d as isObject } from "./batch-dirty-paths-DGoKWQz8.js";
import { c as createEditor$1 } from "./create-editor-BECAnoU4.js";
import "vue";

@@ -220,3 +220,3 @@ const ANCHOR = new toRawWeakMap();

}
if (!isPlainObject(attributes)) {
if (!isObject(attributes)) {
children = [attributes].concat(children);

@@ -223,0 +223,0 @@ attributes = {};

@@ -1,5 +0,5 @@

import { S as SLATE_USE_SELECTED, a as SLATE_STATE_SELECTION } from "./use-focused-BlttbYui.js";
import { g, D, c, e, f, d, E, b, u, j, h, i } from "./use-focused-BlttbYui.js";
import { S as SLATE_USE_SELECTED, a as SLATE_STATE_SELECTION } from "./use-focused-De6S1bT0.js";
import { g, D, c, e, f, d, E, b, u, j, h, i } from "./use-focused-De6S1bT0.js";
import { inject } from "vue";
import { t } from "./batch-dirty-paths-1Ahs6kkr.js";
import { t } from "./batch-dirty-paths-DGoKWQz8.js";
const useSelected = () => {

@@ -6,0 +6,0 @@ const selected = inject(SLATE_USE_SELECTED);

@@ -1,2 +0,1 @@

export declare function isPlainObject(o: any): boolean;
export declare class toRawWeakMap<K extends WeakKey, V> extends WeakMap {

@@ -3,0 +2,0 @@ constructor();

import { BaseRange, BaseText } from '../slate/index.ts';
declare module 'slate' {
declare module '../slate/index.ts' {
interface CustomTypes {

@@ -4,0 +4,0 @@ Text: BaseText & {

@@ -22,1 +22,2 @@ export * from './core';

export * from './types';
export * from './utils/is-object';

@@ -148,2 +148,5 @@ import { Ancestor, Descendant, Element, ExtendedType, Location, Node, NodeEntry, Operation, Path, PathRef, Point, PointRef, Range, RangeRef, Span, Text, Transforms } from '..';

}
export interface EditorIsEditorOptions {
deep?: boolean;
}
export interface EditorLeafOptions {

@@ -330,3 +333,3 @@ depth?: number;

*/
isEditor: (value: any) => value is Editor;
isEditor: (value: any, options?: EditorIsEditorOptions) => value is Editor;
/**

@@ -333,0 +336,0 @@ * Check if a value is a read-only `Element` object.

@@ -11,2 +11,5 @@ import { Ancestor, Descendant, ExtendedType, Path } from '..';

export type Element = ExtendedType<'Element', BaseElement>;
export interface ElementIsElementOptions {
deep?: boolean;
}
export interface ElementInterface {

@@ -16,11 +19,11 @@ /**

*/
isAncestor: (value: any) => value is Ancestor;
isAncestor: (value: any, options?: ElementIsElementOptions) => value is Ancestor;
/**
* Check if a value implements the `Element` interface.
*/
isElement: (value: any) => value is Element;
isElement: (value: any, options?: ElementIsElementOptions) => value is Element;
/**
* Check if a value is an array of `Element` objects.
*/
isElementList: (value: any) => value is Element[];
isElementList: (value: any, options?: ElementIsElementOptions) => value is Element[];
/**

@@ -27,0 +30,0 @@ * Check if a set of props is a partial of Element.

@@ -27,2 +27,5 @@ import { Editor, Path, Range, Text } from '..';

}
export interface NodeIsNodeOptions {
deep?: boolean;
}
export interface NodeLevelsOptions {

@@ -109,7 +112,7 @@ reverse?: boolean;

*/
isNode: (value: any) => value is Node;
isNode: (value: any, options?: NodeIsNodeOptions) => value is Node;
/**
* Check if a value is a list of `Node` objects.
*/
isNodeList: (value: any) => value is Node[];
isNodeList: (value: any, options?: NodeIsNodeOptions) => value is Node[];
/**

@@ -116,0 +119,0 @@ * Get the last node entry in a root node from a path.

export * from './deep-equal';
export * from './get-default-insert-location';
export * from './is-object';
export * from './match-path';

@@ -4,0 +5,0 @@ export * from './string';

@@ -1,7 +0,7 @@

import { d as isPlainObject, T as Text, N as Node, P as Path, E as Editor, t as toRawWeakMap, c as Transforms, R as Range } from "./batch-dirty-paths-1Ahs6kkr.js";
import { d as isObject, T as Text, N as Node, P as Path, E as Editor, t as toRawWeakMap, c as Transforms, R as Range } from "./batch-dirty-paths-DGoKWQz8.js";
import { toRaw, ref, onMounted, onUnmounted, watch, onUpdated, computed } from "vue";
import { XmlText, YTextEvent, createRelativePositionFromTypeIndex, createAbsolutePositionFromRelativePosition, createRelativePositionFromJSON, decodeRelativePosition, encodeRelativePosition, UndoManager, compareRelativePositions } from "yjs";
import { L as Location } from "./location-MosjNIh-.js";
import { j as useEditor, h as useFocused } from "./use-focused-BlttbYui.js";
import { D as DOMEditor } from "./hotkeys-BSLjSKb9.js";
import { L as Location } from "./location-H02Ot2Mm.js";
import { j as useEditor, h as useFocused } from "./use-focused-De6S1bT0.js";
import { D as DOMEditor } from "./hotkeys-DdYAaAmE.js";
function deepEquals(node, another) {

@@ -11,3 +11,3 @@ for (const key in node) {

const b = another[key];
if (isPlainObject(a) && isPlainObject(b)) {
if (isObject(a) && isObject(b)) {
if (!deepEquals(a, b)) {

@@ -14,0 +14,0 @@ return false;

{
"name": "slate-vue3",
"version": "0.4.1",
"version": "0.4.2",
"type": "module",

@@ -70,6 +70,6 @@ "main": "dist/index.js",

"devDependencies": {
"@faker-js/faker": "^9.6.0",
"@liveblocks/client": "^2.21.0",
"@liveblocks/yjs": "^2.21.0",
"@playwright/test": "^1.50.1",
"@faker-js/faker": "^9.7.0",
"@liveblocks/client": "^2.24.1",
"@liveblocks/yjs": "^2.24.0",
"@playwright/test": "^1.52.0",
"@testing-library/vue": "^8.1.0",

@@ -79,9 +79,9 @@ "@types/is-hotkey": "^0.1.10",

"@types/lodash-es": "^4.17.12",
"@types/node": "^22.13.1",
"@types/node": "^22.15.3",
"@types/prismjs": "^1.26.5",
"@vitejs/plugin-vue": "^5.2.1",
"@vitejs/plugin-vue": "^5.2.3",
"babel-plugin-transform-regex": "^6.0.1",
"image-extensions": "^1.1.0",
"is-url": "^1.2.4",
"jsdom": "^26.0.0",
"jsdom": "^26.1.0",
"prismjs": "^1.30.0",

@@ -91,10 +91,10 @@ "remark-gfm": "^4.0.1",

"remark-slate-transformer": "^0.9.0",
"typescript": "~5.8.2",
"typescript": "~5.8.3",
"unified": "^11.0.5",
"vite": "^6.3.2",
"vite-plugin-babel": "^1.3.0",
"vite-plugin-dts": "^4.5.0",
"vitest": "^3.0.5",
"vue-router": "^4.5.0",
"yjs": "^13.6.24"
"vite": "^6.3.4",
"vite-plugin-babel": "^1.3.1",
"vite-plugin-dts": "^4.5.3",
"vitest": "^3.1.2",
"vue-router": "^4.5.1",
"yjs": "^13.6.26"
},

@@ -101,0 +101,0 @@ "publishConfig": {