New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@udecode/plate-indent

Package Overview
Dependencies
Maintainers
2
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@udecode/plate-indent - npm Package Compare versions

Comparing version 38.0.0 to 38.0.1

dist/BaseIndentPlugin-DziNJeAx.d.mts

10

dist/index.d.ts

@@ -1,8 +0,8 @@

import { I as IndentConfig } from './IndentPlugin-6_5XyTRZ.js';
export { a as IndentPlugin, T as TIndentElement } from './IndentPlugin-6_5XyTRZ.js';
import * as _udecode_plate_common from '@udecode/plate-common';
import { I as IndentConfig } from './BaseIndentPlugin-DziNJeAx.js';
export { B as BaseIndentPlugin, T as TIndentElement } from './BaseIndentPlugin-DziNJeAx.js';
import * as _udecode_plate_core from '@udecode/plate-core';
import { PluginConfig, ExtendEditor, TEditor, GetNodeEntriesOptions, UnhangRangeOptions, AnyObject, SlateEditor } from '@udecode/plate-common';
type TextIndentConfig = PluginConfig<'textIndent', IndentConfig['options']>;
declare const TextIndentPlugin: _udecode_plate_common.SlatePlugin<TextIndentConfig>;
declare const BaseTextIndentPlugin: _udecode_plate_core.SlatePlugin<TextIndentConfig>;

@@ -40,2 +40,2 @@ /**

export { IndentConfig, type SetIndentOptions, type TextIndentConfig, TextIndentPlugin, indent, outdent, setIndent, withIndent };
export { BaseTextIndentPlugin, IndentConfig, type SetIndentOptions, type TextIndentConfig, indent, outdent, setIndent, withIndent };

@@ -37,4 +37,4 @@ "use strict";

__export(src_exports, {
IndentPlugin: () => IndentPlugin,
TextIndentPlugin: () => TextIndentPlugin,
BaseIndentPlugin: () => BaseIndentPlugin,
BaseTextIndentPlugin: () => BaseTextIndentPlugin,
indent: () => indent,

@@ -47,3 +47,3 @@ outdent: () => outdent,

// src/lib/IndentPlugin.ts
// src/lib/BaseIndentPlugin.ts
var import_plate_common3 = require("@udecode/plate-common");

@@ -82,4 +82,5 @@

// src/lib/IndentPlugin.ts
var IndentPlugin = (0, import_plate_common3.createTSlatePlugin)({
// src/lib/BaseIndentPlugin.ts
var BaseIndentPlugin = (0, import_plate_common3.createTSlatePlugin)({
key: "indent",
extendEditor: withIndent,

@@ -95,5 +96,4 @@ inject: {

},
targetPlugins: [import_plate_common3.ParagraphPlugin.key]
targetPlugins: [import_plate_common3.BaseParagraphPlugin.key]
},
key: "indent",
options: {

@@ -105,5 +105,6 @@ offset: 24,

// src/lib/TextIndentPlugin.ts
// src/lib/BaseTextIndentPlugin.ts
var import_plate_common4 = require("@udecode/plate-common");
var TextIndentPlugin = (0, import_plate_common4.createTSlatePlugin)({
var BaseTextIndentPlugin = (0, import_plate_common4.createTSlatePlugin)({
key: "textIndent",
inject: {

@@ -118,5 +119,4 @@ nodeProps: {

},
targetPlugins: [import_plate_common4.ParagraphPlugin.key]
targetPlugins: [import_plate_common4.BaseParagraphPlugin.key]
},
key: "textIndent",
options: {

@@ -136,3 +136,3 @@ offset: 24,

}) => {
const { nodeKey } = editor.getInjectProps(IndentPlugin);
const { nodeKey } = editor.getInjectProps(BaseIndentPlugin);
const _nodes = (0, import_plate_common5.getNodeEntries)(editor, __spreadValues({

@@ -171,4 +171,4 @@ block: true,

0 && (module.exports = {
IndentPlugin,
TextIndentPlugin,
BaseIndentPlugin,
BaseTextIndentPlugin,
indent,

@@ -175,0 +175,0 @@ outdent,

import * as _udecode_plate_core_react from '@udecode/plate-core/react';
import * as _udecode_plate_core from '@udecode/plate-core';
import { KeyboardHandler } from '@udecode/plate-common/react';
import { I as IndentConfig } from '../IndentPlugin-6_5XyTRZ.js';
import { I as IndentConfig } from '../BaseIndentPlugin-DziNJeAx.js';
import '@udecode/plate-common';
declare const IndentPlugin: _udecode_plate_core_react.PlatePlugin<_udecode_plate_core.PluginConfig<"indent", {
indentMax?: number | undefined;
offset?: number | undefined;
unit?: string | undefined;
indentMax?: number;
offset?: number;
unit?: string;
}, {}, {}>>;
declare const TextIndentPlugin: _udecode_plate_core_react.PlatePlugin<_udecode_plate_core.PluginConfig<"textIndent", {
indentMax?: number;
offset?: number;
unit?: string;
}, {}, {}>>;
declare const onKeyDownIndent: KeyboardHandler<IndentConfig>;

@@ -29,2 +35,2 @@

export { IndentPlugin, onKeyDownIndent, useIndentButton, useOutdentButton };
export { IndentPlugin, TextIndentPlugin, onKeyDownIndent, useIndentButton, useOutdentButton };

@@ -37,3 +37,4 @@ "use strict";

__export(react_exports, {
IndentPlugin: () => IndentPlugin2,
IndentPlugin: () => IndentPlugin,
TextIndentPlugin: () => TextIndentPlugin,
onKeyDownIndent: () => onKeyDownIndent,

@@ -48,3 +49,3 @@ useIndentButton: () => useIndentButton,

// src/lib/IndentPlugin.ts
// src/lib/BaseIndentPlugin.ts
var import_plate_common3 = require("@udecode/plate-common");

@@ -83,4 +84,5 @@

// src/lib/IndentPlugin.ts
var IndentPlugin = (0, import_plate_common3.createTSlatePlugin)({
// src/lib/BaseIndentPlugin.ts
var BaseIndentPlugin = (0, import_plate_common3.createTSlatePlugin)({
key: "indent",
extendEditor: withIndent,

@@ -96,5 +98,4 @@ inject: {

},
targetPlugins: [import_plate_common3.ParagraphPlugin.key]
targetPlugins: [import_plate_common3.BaseParagraphPlugin.key]
},
key: "indent",
options: {

@@ -117,3 +118,3 @@ offset: 24,

}) => {
const { nodeKey } = editor.getInjectProps(IndentPlugin);
const { nodeKey } = editor.getInjectProps(BaseIndentPlugin);
const _nodes = (0, import_plate_common4.getNodeEntries)(editor, __spreadValues({

@@ -156,4 +157,3 @@ block: true,

}) => {
if (event.defaultPrevented)
return;
if (event.defaultPrevented) return;
if (import_react.Hotkeys.isTab(editor, event)) {

@@ -170,3 +170,3 @@ event.preventDefault();

// src/react/IndentPlugin.tsx
var IndentPlugin2 = (0, import_react2.toPlatePlugin)(IndentPlugin, {
var IndentPlugin = (0, import_react2.toPlatePlugin)(BaseIndentPlugin, {
handlers: {

@@ -177,6 +177,33 @@ onKeyDown: onKeyDownIndent

// src/react/TextIndentPlugin.tsx
var import_react3 = require("@udecode/plate-common/react");
// src/lib/BaseTextIndentPlugin.ts
var import_plate_common5 = require("@udecode/plate-common");
var BaseTextIndentPlugin = (0, import_plate_common5.createTSlatePlugin)({
key: "textIndent",
inject: {
nodeProps: {
nodeKey: "textIndent",
styleKey: "textIndent",
transformNodeValue({ getOptions, nodeValue }) {
const { offset, unit } = getOptions();
return nodeValue * offset + unit;
}
},
targetPlugins: [import_plate_common5.BaseParagraphPlugin.key]
},
options: {
offset: 24,
unit: "px"
}
});
// src/react/TextIndentPlugin.tsx
var TextIndentPlugin = (0, import_react3.toPlatePlugin)(BaseTextIndentPlugin);
// src/react/hooks/useIndentButton.ts
var import_react3 = require("@udecode/plate-common/react");
var import_react4 = require("@udecode/plate-common/react");
var useIndentButton = () => {
const editor = (0, import_react3.useEditorRef)();
const editor = (0, import_react4.useEditorRef)();
return {

@@ -195,5 +222,5 @@ props: {

// src/react/hooks/useOutdentButton.ts
var import_react4 = require("@udecode/plate-common/react");
var import_react5 = require("@udecode/plate-common/react");
var useOutdentButton = () => {
const editor = (0, import_react4.useEditorRef)();
const editor = (0, import_react5.useEditorRef)();
return {

@@ -213,2 +240,3 @@ props: {

IndentPlugin,
TextIndentPlugin,
onKeyDownIndent,

@@ -215,0 +243,0 @@ useIndentButton,

{
"name": "@udecode/plate-indent",
"version": "38.0.0",
"version": "38.0.1",
"description": "Indent plugin for Plate",

@@ -56,3 +56,3 @@ "keywords": [

"peerDependencies": {
"@udecode/plate-common": ">=38.0.0",
"@udecode/plate-common": ">=38.0.1",
"react": ">=16.8.0",

@@ -59,0 +59,0 @@ "react-dom": ">=16.8.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc