gdpr audit implemented, email log, vollmachten, pdf delete cancel data privacy and vollmachten, removed message no id card in engergy car, and other contracts that are not telecom contracts, added insert counter for engery

This commit is contained in:
2026-03-21 11:59:53 +01:00
parent 09e87c951b
commit c3edb8ad2e
1491 changed files with 265550 additions and 1292 deletions
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019-2022, Remirror Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,2 @@
export type { TrailingNodePluginOptions } from './trailing-node-plugin';
export { trailingNode } from './trailing-node-plugin';
@@ -0,0 +1,33 @@
import { Plugin } from 'prosemirror-state';
export interface TrailingNodePluginOptions {
/**
* The node to create at the end of the document.
*
* **Note**: the nodeName will always be added to the `ignoredNodes` lists to
* prevent an infinite loop.
*
* @defaultValue 'paragraph'
*/
nodeName?: string;
/**
* The nodes for which this rule should not apply.
*/
ignoredNodes?: string[];
}
/**
* This creates the plugin for trailing node.
*
* ```ts
* import { schema } from 'prosemirror-schema-basic';
* import { trailingNode } from 'prosemirror-trailing-node';
*
* // Include the plugin in the created editor state.
* const state = EditorState.create({
* schema,
* plugins: [trailingNode({ ignoredNodes: [], nodeName: 'paragraph' })],
* });
* ```
*
* @param options - the options that can be provided to this plugin.
*/
export declare function trailingNode(options?: TrailingNodePluginOptions): Plugin<boolean>;
File diff suppressed because one or more lines are too long
@@ -0,0 +1,41 @@
import { Plugin as Plugin_2 } from 'prosemirror-state';
/**
* This creates the plugin for trailing node.
*
* ```ts
* import { schema } from 'prosemirror-schema-basic';
* import { trailingNode } from 'prosemirror-trailing-node';
*
* // Include the plugin in the created editor state.
* const state = EditorState.create({
* schema,
* plugins: [trailingNode({ ignoredNodes: [], nodeName: 'paragraph' })],
* });
* ```
*
* @param options - the options that can be provided to this plugin.
*/
declare function trailingNode(options?: TrailingNodePluginOptions): Plugin_2<boolean>;
export { trailingNode }
export { trailingNode as trailingNode_alias_1 }
declare interface TrailingNodePluginOptions {
/**
* The node to create at the end of the document.
*
* **Note**: the nodeName will always be added to the `ignoredNodes` lists to
* prevent an infinite loop.
*
* @defaultValue 'paragraph'
*/
nodeName?: string;
/**
* The nodes for which this rule should not apply.
*/
ignoredNodes?: string[];
}
export { TrailingNodePluginOptions }
export { TrailingNodePluginOptions as TrailingNodePluginOptions_alias_1 }
export { }
@@ -0,0 +1,41 @@
import { Plugin as Plugin_2 } from 'prosemirror-state';
/**
* This creates the plugin for trailing node.
*
* ```ts
* import { schema } from 'prosemirror-schema-basic';
* import { trailingNode } from 'prosemirror-trailing-node';
*
* // Include the plugin in the created editor state.
* const state = EditorState.create({
* schema,
* plugins: [trailingNode({ ignoredNodes: [], nodeName: 'paragraph' })],
* });
* ```
*
* @param options - the options that can be provided to this plugin.
*/
declare function trailingNode(options?: TrailingNodePluginOptions): Plugin_2<boolean>;
export { trailingNode }
export { trailingNode as trailingNode_alias_1 }
declare interface TrailingNodePluginOptions {
/**
* The node to create at the end of the document.
*
* **Note**: the nodeName will always be added to the `ignoredNodes` lists to
* prevent an infinite loop.
*
* @defaultValue 'paragraph'
*/
nodeName?: string;
/**
* The nodes for which this rule should not apply.
*/
ignoredNodes?: string[];
}
export { TrailingNodePluginOptions }
export { TrailingNodePluginOptions as TrailingNodePluginOptions_alias_1 }
export { }
@@ -0,0 +1,70 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
trailingNode: () => trailingNode
});
module.exports = __toCommonJS(src_exports);
// src/trailing-node-plugin.ts
var import_prosemirror_state = require("prosemirror-state");
var trailingNodePluginKey = new import_prosemirror_state.PluginKey("trailingNode");
function trailingNode(options) {
const { ignoredNodes = [], nodeName = "paragraph" } = options != null ? options : {};
const ignoredNodeNames = /* @__PURE__ */ new Set([...ignoredNodes, nodeName]);
let type;
let types;
return new import_prosemirror_state.Plugin({
key: trailingNodePluginKey,
appendTransaction(_, __, state) {
const { doc, tr } = state;
const shouldInsertNodeAtEnd = trailingNodePluginKey.getState(state);
const endPosition = doc.content.size;
if (!shouldInsertNodeAtEnd) {
return;
}
return tr.insert(endPosition, type.create());
},
state: {
init: (_, { doc, schema }) => {
var _a;
const nodeType = schema.nodes[nodeName];
if (!nodeType) {
throw new Error("Invalid node being used for trailing node extension: '".concat(nodeName, "'"));
}
type = nodeType;
types = Object.values(schema.nodes).map((node) => node).filter((node) => !ignoredNodeNames.has(node.name));
return types.includes((_a = doc.lastChild) == null ? void 0 : _a.type);
},
apply: (tr, value) => {
var _a;
if (!tr.docChanged) {
return value;
}
return types.includes((_a = tr.doc.lastChild) == null ? void 0 : _a.type);
}
}
});
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
trailingNode
});
@@ -0,0 +1,2 @@
export { TrailingNodePluginOptions } from './_tsup-dts-rollup';
export { trailingNode } from './_tsup-dts-rollup';
@@ -0,0 +1,2 @@
export { TrailingNodePluginOptions } from './_tsup-dts-rollup';
export { trailingNode } from './_tsup-dts-rollup';
@@ -0,0 +1,43 @@
// src/trailing-node-plugin.ts
import { Plugin, PluginKey } from "prosemirror-state";
var trailingNodePluginKey = new PluginKey("trailingNode");
function trailingNode(options) {
const { ignoredNodes = [], nodeName = "paragraph" } = options != null ? options : {};
const ignoredNodeNames = /* @__PURE__ */ new Set([...ignoredNodes, nodeName]);
let type;
let types;
return new Plugin({
key: trailingNodePluginKey,
appendTransaction(_, __, state) {
const { doc, tr } = state;
const shouldInsertNodeAtEnd = trailingNodePluginKey.getState(state);
const endPosition = doc.content.size;
if (!shouldInsertNodeAtEnd) {
return;
}
return tr.insert(endPosition, type.create());
},
state: {
init: (_, { doc, schema }) => {
var _a;
const nodeType = schema.nodes[nodeName];
if (!nodeType) {
throw new Error("Invalid node being used for trailing node extension: '".concat(nodeName, "'"));
}
type = nodeType;
types = Object.values(schema.nodes).map((node) => node).filter((node) => !ignoredNodeNames.has(node.name));
return types.includes((_a = doc.lastChild) == null ? void 0 : _a.type);
},
apply: (tr, value) => {
var _a;
if (!tr.docChanged) {
return value;
}
return types.includes((_a = tr.doc.lastChild) == null ? void 0 : _a.type);
}
}
});
}
export {
trailingNode
};
+57
View File
@@ -0,0 +1,57 @@
{
"name": "prosemirror-trailing-node",
"version": "3.0.0",
"description": "A trailing node plugin for the prosemirror editor.",
"homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/prosemirror-trailing-node",
"repository": {
"type": "git",
"url": "https://github.com/remirror/remirror.git",
"directory": "packages/prosemirror-trailing-node"
},
"license": "MIT",
"contributors": [
"Ifiok Jr. <ifiokotung@gmail.com>"
],
"sideEffects": false,
"type": "module",
"exports": {
".": {
"types": "./dist/prosemirror-trailing-node.d.ts",
"import": "./dist/prosemirror-trailing-node.js",
"require": "./dist/prosemirror-trailing-node.cjs"
},
"./package.json": "./package.json"
},
"main": "./dist/prosemirror-trailing-node.cjs",
"module": "./dist/prosemirror-trailing-node.js",
"types": "./dist/prosemirror-trailing-node.d.ts",
"files": [
"dist",
"dist-types"
],
"dependencies": {
"@remirror/core-constants": "3.0.0",
"escape-string-regexp": "^4.0.0"
},
"devDependencies": {
"@remirror/cli": "1.1.0",
"prosemirror-model": "^1.22.1",
"prosemirror-state": "^1.4.3",
"prosemirror-view": "^1.33.8"
},
"peerDependencies": {
"prosemirror-model": "^1.22.1",
"prosemirror-state": "^1.4.2",
"prosemirror-view": "^1.33.8"
},
"peerDependenciesMeta": {},
"publishConfig": {
"access": "public"
},
"@remirror": {
"sizeLimit": "10 KB"
},
"scripts": {
"build": "remirror-cli build"
}
}
+55
View File
@@ -0,0 +1,55 @@
# prosemirror-trailing-node
> "A trailing node plugin for the prosemirror editor.
[![Version][version]][npm] [![Weekly Downloads][downloads-badge]][npm] [![Bundled size][size-badge]][size] [![Typed Codebase][typescript]](#) [![MIT License][license]](#)
[version]: https://flat.badgen.net/npm/v/prosemirror-trailing-node
[npm]: https://npmjs.com/package/prosemirror-trailing-node
[license]: https://flat.badgen.net/badge/license/MIT/purple
[size]: https://bundlephobia.com/result?p=prosemirror-trailing-node
[size-badge]: https://flat.badgen.net/bundlephobia/minzip/prosemirror-trailing-node
[typescript]: https://flat.badgen.net/badge/icon/TypeScript?icon=typescript&label
[downloads-badge]: https://badgen.net/npm/dw/prosemirror-trailing-node/red?icon=npm
<br />
## The problem
You want your editor to always have allow exiting the current non-empty node.
## This solution
`prosemirror-trailing-node` allows you to set a default node that will be appended to the end of the document.
<br />
## Installation
```bash
# yarn
yarn add prosemirror-trailing-node prosemirror-view prosemirror-state prosemirror-keymap
# pnpm
pnpm add prosemirror-trailing-node prosemirror-view prosemirror-state prosemirror-keymap
# npm
npm install prosemirror-trailing-node prosemirror-view prosemirror-state prosemirror-keymap
```
The installation requires the installation of the peer dependencies `prosemirror-view`, `prosemirror-state` and `prosemirror-model` to avoid version clashes.
<br />
## Getting Started
```ts
import { schema } from 'prosemirror-schema-basic';
import { trailingNode } from 'prosemirror-trailing-node';
// Include the plugin in the created editor state.
const state = EditorState.create({
schema,
plugins: [trailingNode({ ignoredNodes: [], nodeName: 'paragraph' })],
});
```