@sc-360-v2/storefront-cms-library 0.0.3 → 0.0.5
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 +7 -35
- package/dist/builder.js +2 -0
- package/dist/builder.js.LICENSE.txt +1 -0
- package/dist/button.scss +139 -0
- package/dist/css.js +1 -1
- package/dist/faq.scss +136 -0
- package/dist/functions.js +1 -0
- package/dist/htmlElement.js +1 -1
- package/dist/icons.js +1 -0
- package/dist/index.js +1 -1
- package/dist/tab-panel.scss +93 -0
- package/dist/text-editor.scss +328 -0
- package/dist/types/builder/elements/button/index.d.ts +26 -0
- package/dist/types/builder/elements/code/index.d.ts +59 -0
- package/dist/types/builder/elements/common.d.ts +25 -0
- package/dist/types/builder/elements/extra.d.ts +70 -0
- package/dist/types/builder/elements/faq/index.d.ts +30 -0
- package/dist/types/builder/elements/gallery-slider/index.d.ts +30 -0
- package/dist/types/builder/elements/grid/index.d.ts +63 -0
- package/dist/types/builder/elements/image/index.d.ts +30 -0
- package/dist/types/builder/elements/section/index.d.ts +60 -0
- package/dist/types/builder/elements/social/index.d.ts +36 -0
- package/dist/types/builder/elements/tab/index.d.ts +30 -0
- package/dist/types/builder/elements/table/index.d.ts +30 -0
- package/dist/types/builder/elements/text-editor/index.d.ts +29 -0
- package/dist/types/builder/elements/video/index.d.ts +30 -0
- package/dist/types/builder/enums/cssVariables.d.ts +361 -0
- package/dist/types/builder/enums/index.d.ts +78 -0
- package/dist/types/builder/index.d.ts +18 -0
- package/dist/types/builder/interfaces/cms-tools.d.ts +4 -0
- package/dist/types/builder/interfaces/global.d.ts +75 -0
- package/dist/types/builder/tools/element-edit/button.d.ts +25 -0
- package/dist/types/builder/tools/element-edit/code.d.ts +15 -0
- package/dist/types/builder/tools/element-edit/common.d.ts +63 -0
- package/dist/types/builder/tools/element-edit/faq.d.ts +41 -0
- package/dist/types/builder/tools/element-edit/gallery-slider.d.ts +82 -0
- package/dist/types/builder/tools/element-edit/image.d.ts +26 -0
- package/dist/types/builder/tools/element-edit/index.d.ts +13 -0
- package/dist/types/builder/tools/element-edit/section.d.ts +15 -0
- package/dist/types/builder/tools/element-edit/slideShowLayouter.d.ts +21 -0
- package/dist/types/builder/tools/element-edit/social.d.ts +62 -0
- package/dist/types/builder/tools/element-edit/table.d.ts +200 -0
- package/dist/types/builder/tools/element-edit/tabs.d.ts +166 -0
- package/dist/types/builder/tools/element-edit/video.d.ts +73 -0
- package/dist/types/builder/utilities/global.d.ts +4 -0
- package/dist/types/css/cssVariables.d.ts +7 -0
- package/dist/types/export.d.ts +3 -0
- package/dist/types/global/attributes.d.ts +125 -0
- package/dist/types/global/index.d.ts +0 -0
- package/dist/types/global/style-properties.d.ts +49 -0
- package/dist/types/global/types.d.ts +36 -0
- package/dist/types/helper/helper-functions.d.ts +1 -0
- package/dist/types/html-elements/element-types.d.ts +131 -0
- package/dist/types/html-elements/elements.d.ts +89 -0
- package/dist/types/icons/cms-svg-icons.d.ts +5 -0
- package/dist/types/icons/icons.d.ts +2 -0
- package/dist/widget.scss +1 -0
- package/package.json +104 -70
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { AddressProps, AProps, ArticleProps, AsideProps, BProps, ButtonProps, CodeProps, DetailsProps, DialogProps, DivProps, FooterProps, FormProps, H1Props, H2Props, H3Props, H4Props, H5Props, H6Props, HeaderProps, InputProps, IProps, KbdProps, LabelProps, MainProps, NavProps, OptionProps, PProps, PreProps, SectionProps, SelectProps, SmallProps, SpanProps, StrongProps, SummaryProps, TableCellProps, TableHeaderCellProps, TableProps, TableRowProps, TextareaProps, UProps, ImgProps, VideoProps } from "./element-types";
|
|
3
|
+
export declare const H1: FC<H1Props>;
|
|
4
|
+
export declare const H2: FC<H2Props>;
|
|
5
|
+
export declare const H3: FC<H3Props>;
|
|
6
|
+
export declare const H4: FC<H4Props>;
|
|
7
|
+
export declare const H5: FC<H5Props>;
|
|
8
|
+
export declare const H6: FC<H6Props>;
|
|
9
|
+
export declare const P: FC<PProps>;
|
|
10
|
+
export declare const Span: FC<SpanProps>;
|
|
11
|
+
export declare const A: FC<AProps>;
|
|
12
|
+
export declare const Button: FC<ButtonProps>;
|
|
13
|
+
export declare const Input: FC<InputProps>;
|
|
14
|
+
export declare const Textarea: FC<TextareaProps>;
|
|
15
|
+
export declare const Select: FC<SelectProps>;
|
|
16
|
+
export declare const Option: FC<OptionProps>;
|
|
17
|
+
export declare const Table: FC<TableProps>;
|
|
18
|
+
export declare const TableRow: FC<TableRowProps>;
|
|
19
|
+
export declare const TableHeaderCell: FC<TableHeaderCellProps>;
|
|
20
|
+
export declare const TableCell: FC<TableCellProps>;
|
|
21
|
+
export declare const Form: FC<FormProps>;
|
|
22
|
+
export declare const Label: FC<LabelProps>;
|
|
23
|
+
export declare const Details: FC<DetailsProps>;
|
|
24
|
+
export declare const Summary: FC<SummaryProps>;
|
|
25
|
+
export declare const Dialog: FC<DialogProps>;
|
|
26
|
+
export declare const Main: FC<MainProps>;
|
|
27
|
+
export declare const Section: FC<SectionProps>;
|
|
28
|
+
export declare const Article: FC<ArticleProps>;
|
|
29
|
+
export declare const Aside: FC<AsideProps>;
|
|
30
|
+
export declare const Header: FC<HeaderProps>;
|
|
31
|
+
export declare const Footer: FC<FooterProps>;
|
|
32
|
+
export declare const Nav: FC<NavProps>;
|
|
33
|
+
export declare const Address: FC<AddressProps>;
|
|
34
|
+
export declare const Video: FC<VideoProps>;
|
|
35
|
+
export declare const Code: FC<CodeProps>;
|
|
36
|
+
export declare const Pre: FC<PreProps>;
|
|
37
|
+
export declare const Kbd: FC<KbdProps>;
|
|
38
|
+
export declare const Small: FC<SmallProps>;
|
|
39
|
+
export declare const Strong: FC<StrongProps>;
|
|
40
|
+
export declare const B: FC<BProps>;
|
|
41
|
+
export declare const I: FC<IProps>;
|
|
42
|
+
export declare const U: FC<UProps>;
|
|
43
|
+
export declare const Div: FC<DivProps>;
|
|
44
|
+
export declare const Img: FC<ImgProps>;
|
|
45
|
+
declare const HTMLElements: {
|
|
46
|
+
H1: React.FC<H1Props>;
|
|
47
|
+
H2: React.FC<H2Props>;
|
|
48
|
+
H3: React.FC<H3Props>;
|
|
49
|
+
H4: React.FC<H4Props>;
|
|
50
|
+
H5: React.FC<H5Props>;
|
|
51
|
+
H6: React.FC<H6Props>;
|
|
52
|
+
P: React.FC<PProps>;
|
|
53
|
+
Span: React.FC<SpanProps>;
|
|
54
|
+
A: React.FC<AProps>;
|
|
55
|
+
Button: React.FC<ButtonProps>;
|
|
56
|
+
Input: React.FC<InputProps>;
|
|
57
|
+
Textarea: React.FC<TextareaProps>;
|
|
58
|
+
Select: React.FC<SelectProps>;
|
|
59
|
+
Option: React.FC<OptionProps>;
|
|
60
|
+
Table: React.FC<TableProps>;
|
|
61
|
+
TableRow: React.FC<TableRowProps>;
|
|
62
|
+
TableHeaderCell: React.FC<TableHeaderCellProps>;
|
|
63
|
+
TableCell: React.FC<TableCellProps>;
|
|
64
|
+
Form: React.FC<FormProps>;
|
|
65
|
+
Label: React.FC<LabelProps>;
|
|
66
|
+
Details: React.FC<DetailsProps>;
|
|
67
|
+
Summary: React.FC<SummaryProps>;
|
|
68
|
+
Dialog: React.FC<DialogProps>;
|
|
69
|
+
Main: React.FC<MainProps>;
|
|
70
|
+
Section: React.FC<SectionProps>;
|
|
71
|
+
Article: React.FC<ArticleProps>;
|
|
72
|
+
Aside: React.FC<AsideProps>;
|
|
73
|
+
Header: React.FC<HeaderProps>;
|
|
74
|
+
Footer: React.FC<FooterProps>;
|
|
75
|
+
Nav: React.FC<NavProps>;
|
|
76
|
+
Address: React.FC<AddressProps>;
|
|
77
|
+
Code: React.FC<CodeProps>;
|
|
78
|
+
Pre: React.FC<PreProps>;
|
|
79
|
+
Kbd: React.FC<KbdProps>;
|
|
80
|
+
Small: React.FC<SmallProps>;
|
|
81
|
+
Strong: React.FC<StrongProps>;
|
|
82
|
+
B: React.FC<BProps>;
|
|
83
|
+
I: React.FC<IProps>;
|
|
84
|
+
U: React.FC<UProps>;
|
|
85
|
+
Div: React.FC<DivProps>;
|
|
86
|
+
Img: React.FC<ImgProps>;
|
|
87
|
+
Video: React.FC<VideoProps>;
|
|
88
|
+
};
|
|
89
|
+
export default HTMLElements;
|
package/dist/widget.scss
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
CHANGED
|
@@ -1,70 +1,104 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@sc-360-v2/storefront-cms-library",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"main": "/dist/index.js",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@sc-360-v2/storefront-cms-library",
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"main": "/dist/index.js",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./dist/index.js",
|
|
9
|
+
"types": "./dist/types/export.d.ts"
|
|
10
|
+
},
|
|
11
|
+
"./htmlElement": {
|
|
12
|
+
"import": "./dist/htmlElement.js",
|
|
13
|
+
"types": "./dist/types/html-elements/elements.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./css": {
|
|
16
|
+
"import": "./dist/css.js",
|
|
17
|
+
"types": "./dist/types/css/cssVariables.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./icons": {
|
|
20
|
+
"import": "./dist/icons.js",
|
|
21
|
+
"types": "./dist/types/icons/icons.d.ts"
|
|
22
|
+
},
|
|
23
|
+
"./builder": {
|
|
24
|
+
"import": "./dist/builder.js",
|
|
25
|
+
"types": "./dist/types/builder/index.d.ts"
|
|
26
|
+
},
|
|
27
|
+
"./functions": {
|
|
28
|
+
"import": "./dist/functions.js",
|
|
29
|
+
"types": "./dist/types/helper/helper-functions.d.ts"
|
|
30
|
+
},
|
|
31
|
+
"./textEditor.scss": {
|
|
32
|
+
"import": "./dist/text-editor.scss"
|
|
33
|
+
},
|
|
34
|
+
"./tabPanel.scss": {
|
|
35
|
+
"import": "./dist/tab-panel.scss"
|
|
36
|
+
},
|
|
37
|
+
"./widget.scss": {
|
|
38
|
+
"import": "./dist/widget.scss"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"prepare": "husky install",
|
|
43
|
+
"dev": "npm run prepare && next dev -p 8002",
|
|
44
|
+
"build": "webpack && tsc --project tsbuild.types.json ",
|
|
45
|
+
"start": "next start -p 8002",
|
|
46
|
+
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --max-warnings=0",
|
|
47
|
+
"lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
|
|
48
|
+
"prettier": "prettier --write 'src/**/*.{js,jsx,ts,tsx,json,css,scss,md}'",
|
|
49
|
+
"publish": "npm publish --access public"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@babel/runtime": "^7.25.6",
|
|
53
|
+
"date-fns": "^4.1.0",
|
|
54
|
+
"date-fns-tz": "^3.2.0",
|
|
55
|
+
"next": "^14.2.7",
|
|
56
|
+
"react": "^18",
|
|
57
|
+
"react-dom": "^18"
|
|
58
|
+
},
|
|
59
|
+
"commitlint": {
|
|
60
|
+
"extends": [
|
|
61
|
+
"@commitlint/config-conventional"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@babel/core": "^7.25.2",
|
|
66
|
+
"@babel/plugin-syntax-jsx": "^7.24.7",
|
|
67
|
+
"@babel/plugin-transform-runtime": "^7.25.4",
|
|
68
|
+
"@babel/preset-env": "^7.25.4",
|
|
69
|
+
"@babel/preset-react": "^7.24.7",
|
|
70
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
71
|
+
"@commitlint/cli": "^19.4.1",
|
|
72
|
+
"@commitlint/config-conventional": "^19.4.1",
|
|
73
|
+
"@types/node": "^20",
|
|
74
|
+
"@types/react": "^18",
|
|
75
|
+
"@types/react-dom": "^18",
|
|
76
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
77
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
78
|
+
"babel-loader": "^9.1.3",
|
|
79
|
+
"copy-webpack-plugin": "^12.0.2",
|
|
80
|
+
"css-loader": "^7.1.2",
|
|
81
|
+
"eslint": "^8",
|
|
82
|
+
"eslint-config-next": "14.2.6",
|
|
83
|
+
"eslint-config-prettier": "^9.1.0",
|
|
84
|
+
"eslint-plugin-import": "^2.29.1",
|
|
85
|
+
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
86
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
87
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
88
|
+
"eslint-webpack-plugin": "^4.2.0",
|
|
89
|
+
"husky": "^8.0.0",
|
|
90
|
+
"lint-staged": "^15.2.9",
|
|
91
|
+
"mini-css-extract-plugin": "^2.9.1",
|
|
92
|
+
"prettier": "^3.3.3",
|
|
93
|
+
"sass": "^1.77.8",
|
|
94
|
+
"sass-loader": "^16.0.1",
|
|
95
|
+
"ts-loader": "^9.5.1",
|
|
96
|
+
"typescript": "5.4.x",
|
|
97
|
+
"webpack": "^5.94.0",
|
|
98
|
+
"webpack-cli": "^5.1.4"
|
|
99
|
+
},
|
|
100
|
+
"license": "MIT",
|
|
101
|
+
"files": [
|
|
102
|
+
"./dist/"
|
|
103
|
+
]
|
|
104
|
+
}
|