@tailor-cms/ce-html-raw-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 +66 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +38 -0
- package/package.json +53 -0
package/README.md
ADDED
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
mocks: () => mocks,
|
|
25
|
+
name: () => name,
|
|
26
|
+
type: () => type,
|
|
27
|
+
version: () => version
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(index_exports);
|
|
30
|
+
var type = "HTML_RAW";
|
|
31
|
+
var name = "Raw HTML";
|
|
32
|
+
var initState = () => ({
|
|
33
|
+
content: ""
|
|
34
|
+
});
|
|
35
|
+
var version = "1.0";
|
|
36
|
+
var ui = {
|
|
37
|
+
// Display icon, https://pictogrammers.com/library/mdi/
|
|
38
|
+
icon: "mdi-code-tags",
|
|
39
|
+
// Does element support only full width or can be used within layouts
|
|
40
|
+
// (e.g. 50/50 layout)
|
|
41
|
+
forceFullWidth: true
|
|
42
|
+
};
|
|
43
|
+
var mocks = {
|
|
44
|
+
displayContexts: [
|
|
45
|
+
{ name: "Test preset 1", data: { state: "I have a value" } },
|
|
46
|
+
{ name: "Test preset 2", data: { state: "I have a different value" } }
|
|
47
|
+
]
|
|
48
|
+
};
|
|
49
|
+
var manifest = {
|
|
50
|
+
type,
|
|
51
|
+
version: "1.0",
|
|
52
|
+
name,
|
|
53
|
+
ssr: false,
|
|
54
|
+
initState,
|
|
55
|
+
ui,
|
|
56
|
+
mocks
|
|
57
|
+
};
|
|
58
|
+
var index_default = manifest;
|
|
59
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
60
|
+
0 && (module.exports = {
|
|
61
|
+
initState,
|
|
62
|
+
mocks,
|
|
63
|
+
name,
|
|
64
|
+
type,
|
|
65
|
+
version
|
|
66
|
+
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as common from '@tailor-cms/cek-common';
|
|
2
|
+
|
|
3
|
+
interface ElementData extends common.ElementConfig {
|
|
4
|
+
content: string;
|
|
5
|
+
}
|
|
6
|
+
type DataInitializer = common.DataInitializer<ElementData>;
|
|
7
|
+
type Element = common.Element<ElementData>;
|
|
8
|
+
type ElementManifest = common.ElementManifest<ElementData>;
|
|
9
|
+
|
|
10
|
+
declare const type = "HTML_RAW";
|
|
11
|
+
declare const name = "Raw HTML";
|
|
12
|
+
declare const initState: DataInitializer;
|
|
13
|
+
declare const version = "1.0";
|
|
14
|
+
declare const mocks: {
|
|
15
|
+
displayContexts: {
|
|
16
|
+
name: string;
|
|
17
|
+
data: {
|
|
18
|
+
state: string;
|
|
19
|
+
};
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
declare const manifest: ElementManifest;
|
|
23
|
+
|
|
24
|
+
export { type DataInitializer, type Element, type ElementData, type ElementManifest, manifest as default, initState, mocks, name, type, version };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as common from '@tailor-cms/cek-common';
|
|
2
|
+
|
|
3
|
+
interface ElementData extends common.ElementConfig {
|
|
4
|
+
content: string;
|
|
5
|
+
}
|
|
6
|
+
type DataInitializer = common.DataInitializer<ElementData>;
|
|
7
|
+
type Element = common.Element<ElementData>;
|
|
8
|
+
type ElementManifest = common.ElementManifest<ElementData>;
|
|
9
|
+
|
|
10
|
+
declare const type = "HTML_RAW";
|
|
11
|
+
declare const name = "Raw HTML";
|
|
12
|
+
declare const initState: DataInitializer;
|
|
13
|
+
declare const version = "1.0";
|
|
14
|
+
declare const mocks: {
|
|
15
|
+
displayContexts: {
|
|
16
|
+
name: string;
|
|
17
|
+
data: {
|
|
18
|
+
state: string;
|
|
19
|
+
};
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
declare const manifest: ElementManifest;
|
|
23
|
+
|
|
24
|
+
export { type DataInitializer, type Element, type ElementData, type ElementManifest, manifest as default, initState, mocks, name, type, version };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
var type = "HTML_RAW";
|
|
3
|
+
var name = "Raw HTML";
|
|
4
|
+
var initState = () => ({
|
|
5
|
+
content: ""
|
|
6
|
+
});
|
|
7
|
+
var version = "1.0";
|
|
8
|
+
var ui = {
|
|
9
|
+
// Display icon, https://pictogrammers.com/library/mdi/
|
|
10
|
+
icon: "mdi-code-tags",
|
|
11
|
+
// Does element support only full width or can be used within layouts
|
|
12
|
+
// (e.g. 50/50 layout)
|
|
13
|
+
forceFullWidth: true
|
|
14
|
+
};
|
|
15
|
+
var mocks = {
|
|
16
|
+
displayContexts: [
|
|
17
|
+
{ name: "Test preset 1", data: { state: "I have a value" } },
|
|
18
|
+
{ name: "Test preset 2", data: { state: "I have a different value" } }
|
|
19
|
+
]
|
|
20
|
+
};
|
|
21
|
+
var manifest = {
|
|
22
|
+
type,
|
|
23
|
+
version: "1.0",
|
|
24
|
+
name,
|
|
25
|
+
ssr: false,
|
|
26
|
+
initState,
|
|
27
|
+
ui,
|
|
28
|
+
mocks
|
|
29
|
+
};
|
|
30
|
+
var index_default = manifest;
|
|
31
|
+
export {
|
|
32
|
+
index_default as default,
|
|
33
|
+
initState,
|
|
34
|
+
mocks,
|
|
35
|
+
name,
|
|
36
|
+
type,
|
|
37
|
+
version
|
|
38
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tailor-cms/ce-html-raw-manifest",
|
|
3
|
+
"description": "Raw HTML editor component 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/cek-common": "^1.3.2",
|
|
20
|
+
"@tailor-cms/eslint-config": "1.1.2",
|
|
21
|
+
"tsup": "^8.5.0",
|
|
22
|
+
"typescript": "^5.8.3"
|
|
23
|
+
},
|
|
24
|
+
"tsup": {
|
|
25
|
+
"entry": [
|
|
26
|
+
"src/index.ts"
|
|
27
|
+
],
|
|
28
|
+
"target": [
|
|
29
|
+
"node14",
|
|
30
|
+
"es2022"
|
|
31
|
+
],
|
|
32
|
+
"format": [
|
|
33
|
+
"cjs",
|
|
34
|
+
"esm"
|
|
35
|
+
],
|
|
36
|
+
"bundle": true,
|
|
37
|
+
"minify": false,
|
|
38
|
+
"clean": false,
|
|
39
|
+
"dts": true
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"dev": "tsup --watch",
|
|
46
|
+
"build": "pnpm nuke:dist && tsup",
|
|
47
|
+
"lint": "eslint .",
|
|
48
|
+
"lint:fix": "pnpm lint --fix",
|
|
49
|
+
"nuke": "pnpm dlx del-cli dist node_modules",
|
|
50
|
+
"nuke:dist": "pnpm dlx del-cli dist",
|
|
51
|
+
"prepublish": "pnpm build"
|
|
52
|
+
}
|
|
53
|
+
}
|