@tailor-cms/ce-jodit-html-manifest 0.0.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/README.md +3 -0
- package/dist/index.cjs +55 -0
- package/dist/index.d.cts +55 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.js +28 -0
- package/package.json +49 -0
package/README.md
ADDED
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name2 in all)
|
|
7
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/index.ts
|
|
20
|
+
var index_exports = {};
|
|
21
|
+
__export(index_exports, {
|
|
22
|
+
default: () => index_default,
|
|
23
|
+
initState: () => initState,
|
|
24
|
+
name: () => name,
|
|
25
|
+
type: () => type,
|
|
26
|
+
version: () => version
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(index_exports);
|
|
29
|
+
var type = "JODIT_HTML";
|
|
30
|
+
var name = "Jodit HTML";
|
|
31
|
+
var initState = () => ({ content: "" });
|
|
32
|
+
var version = "1.0";
|
|
33
|
+
var ui = {
|
|
34
|
+
// Display icon, https://pictogrammers.com/library/mdi/
|
|
35
|
+
icon: "mdi-text-box-outline",
|
|
36
|
+
// Does element support only full width or can be used within layouts
|
|
37
|
+
// (e.g. 50/50 layout)
|
|
38
|
+
forceFullWidth: false
|
|
39
|
+
};
|
|
40
|
+
var manifest = {
|
|
41
|
+
type,
|
|
42
|
+
version,
|
|
43
|
+
name,
|
|
44
|
+
ssr: false,
|
|
45
|
+
initState,
|
|
46
|
+
ui
|
|
47
|
+
};
|
|
48
|
+
var index_default = manifest;
|
|
49
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
+
0 && (module.exports = {
|
|
51
|
+
initState,
|
|
52
|
+
name,
|
|
53
|
+
type,
|
|
54
|
+
version
|
|
55
|
+
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
interface ElementData {
|
|
2
|
+
content: string;
|
|
3
|
+
}
|
|
4
|
+
interface Element {
|
|
5
|
+
id: number;
|
|
6
|
+
uid: string;
|
|
7
|
+
activityId: number;
|
|
8
|
+
repositoryId: number;
|
|
9
|
+
contentId: string;
|
|
10
|
+
contentSignature: string;
|
|
11
|
+
type: string;
|
|
12
|
+
position: number;
|
|
13
|
+
data: ElementData;
|
|
14
|
+
meta: {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
};
|
|
17
|
+
refs: {
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
linked: boolean;
|
|
21
|
+
detached: boolean;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
deletedAt: string | null;
|
|
25
|
+
}
|
|
26
|
+
type DataInitializer = () => ElementData;
|
|
27
|
+
interface ElementManifest {
|
|
28
|
+
type: string;
|
|
29
|
+
version: string;
|
|
30
|
+
name: string;
|
|
31
|
+
ssr: boolean;
|
|
32
|
+
initState: DataInitializer;
|
|
33
|
+
Edit?: object;
|
|
34
|
+
TopToolbar?: object;
|
|
35
|
+
SideToolbar?: object;
|
|
36
|
+
Display?: object;
|
|
37
|
+
ui: {
|
|
38
|
+
icon: string;
|
|
39
|
+
forceFullWidth: boolean;
|
|
40
|
+
};
|
|
41
|
+
mocks?: {
|
|
42
|
+
displayContexts: Array<{
|
|
43
|
+
name: string;
|
|
44
|
+
data: any;
|
|
45
|
+
}>;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare const type = "JODIT_HTML";
|
|
50
|
+
declare const name = "Jodit HTML";
|
|
51
|
+
declare const initState: DataInitializer;
|
|
52
|
+
declare const version = "1.0";
|
|
53
|
+
declare const manifest: ElementManifest;
|
|
54
|
+
|
|
55
|
+
export { type DataInitializer, type Element, type ElementData, type ElementManifest, manifest as default, initState, name, type, version };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
interface ElementData {
|
|
2
|
+
content: string;
|
|
3
|
+
}
|
|
4
|
+
interface Element {
|
|
5
|
+
id: number;
|
|
6
|
+
uid: string;
|
|
7
|
+
activityId: number;
|
|
8
|
+
repositoryId: number;
|
|
9
|
+
contentId: string;
|
|
10
|
+
contentSignature: string;
|
|
11
|
+
type: string;
|
|
12
|
+
position: number;
|
|
13
|
+
data: ElementData;
|
|
14
|
+
meta: {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
};
|
|
17
|
+
refs: {
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
linked: boolean;
|
|
21
|
+
detached: boolean;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
deletedAt: string | null;
|
|
25
|
+
}
|
|
26
|
+
type DataInitializer = () => ElementData;
|
|
27
|
+
interface ElementManifest {
|
|
28
|
+
type: string;
|
|
29
|
+
version: string;
|
|
30
|
+
name: string;
|
|
31
|
+
ssr: boolean;
|
|
32
|
+
initState: DataInitializer;
|
|
33
|
+
Edit?: object;
|
|
34
|
+
TopToolbar?: object;
|
|
35
|
+
SideToolbar?: object;
|
|
36
|
+
Display?: object;
|
|
37
|
+
ui: {
|
|
38
|
+
icon: string;
|
|
39
|
+
forceFullWidth: boolean;
|
|
40
|
+
};
|
|
41
|
+
mocks?: {
|
|
42
|
+
displayContexts: Array<{
|
|
43
|
+
name: string;
|
|
44
|
+
data: any;
|
|
45
|
+
}>;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare const type = "JODIT_HTML";
|
|
50
|
+
declare const name = "Jodit HTML";
|
|
51
|
+
declare const initState: DataInitializer;
|
|
52
|
+
declare const version = "1.0";
|
|
53
|
+
declare const manifest: ElementManifest;
|
|
54
|
+
|
|
55
|
+
export { type DataInitializer, type Element, type ElementData, type ElementManifest, manifest as default, initState, name, type, version };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
var type = "JODIT_HTML";
|
|
3
|
+
var name = "Jodit HTML";
|
|
4
|
+
var initState = () => ({ content: "" });
|
|
5
|
+
var version = "1.0";
|
|
6
|
+
var ui = {
|
|
7
|
+
// Display icon, https://pictogrammers.com/library/mdi/
|
|
8
|
+
icon: "mdi-text-box-outline",
|
|
9
|
+
// Does element support only full width or can be used within layouts
|
|
10
|
+
// (e.g. 50/50 layout)
|
|
11
|
+
forceFullWidth: false
|
|
12
|
+
};
|
|
13
|
+
var manifest = {
|
|
14
|
+
type,
|
|
15
|
+
version,
|
|
16
|
+
name,
|
|
17
|
+
ssr: false,
|
|
18
|
+
initState,
|
|
19
|
+
ui
|
|
20
|
+
};
|
|
21
|
+
var index_default = manifest;
|
|
22
|
+
export {
|
|
23
|
+
index_default as default,
|
|
24
|
+
initState,
|
|
25
|
+
name,
|
|
26
|
+
type,
|
|
27
|
+
version
|
|
28
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tailor-cms/ce-jodit-html-manifest",
|
|
3
|
+
"description": "Tailor CMS Jodit HTML editor manifest",
|
|
4
|
+
"author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"version": "0.0.1",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"require": "./dist/index.cjs"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"main": "./dist/index.cjs",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@tailor-cms/eslint-config": "0.0.2",
|
|
20
|
+
"tsup": "^8.3.6",
|
|
21
|
+
"typescript": "^5.7.3"
|
|
22
|
+
},
|
|
23
|
+
"tsup": {
|
|
24
|
+
"entry": [
|
|
25
|
+
"src/index.ts"
|
|
26
|
+
],
|
|
27
|
+
"target": [
|
|
28
|
+
"node14",
|
|
29
|
+
"es2022"
|
|
30
|
+
],
|
|
31
|
+
"format": [
|
|
32
|
+
"cjs",
|
|
33
|
+
"esm"
|
|
34
|
+
],
|
|
35
|
+
"bundle": true,
|
|
36
|
+
"minify": false,
|
|
37
|
+
"clean": false,
|
|
38
|
+
"dts": true
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"dev": "tsup --watch",
|
|
45
|
+
"build": "tsup",
|
|
46
|
+
"lint": "eslint --ext .js,.ts .",
|
|
47
|
+
"lint:fix": "pnpm lint --fix"
|
|
48
|
+
}
|
|
49
|
+
}
|