@cntrl-site/components 1.0.12-alpha.13 → 1.0.12-alpha.15

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/package.json CHANGED
@@ -1,85 +1,85 @@
1
- {
2
- "name": "@cntrl-site/components",
3
- "version": "1.0.12-alpha.13",
4
- "description": "Custom components for control editor and public websites.",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "types": "dist/index.d.ts",
8
- "style": "dist/components.css",
9
- "sideEffects": [
10
- "**/*.css"
11
- ],
12
- "exports": {
13
- ".": {
14
- "types": "./dist/index.d.ts",
15
- "import": "./dist/index.mjs",
16
- "require": "./dist/index.js"
17
- },
18
- "./utils": {
19
- "types": "./dist/Components/utils/index.d.ts",
20
- "import": "./dist/utils.mjs",
21
- "require": "./dist/utils.js"
22
- },
23
- "./style/components.css": {
24
- "default": "./dist/components.css"
25
- }
26
- },
27
- "typesVersions": {
28
- "*": {
29
- "utils": [
30
- "./dist/Components/utils/index.d.ts"
31
- ]
32
- }
33
- },
34
- "scripts": {
35
- "test": "jest",
36
- "dev": "vite development",
37
- "prebuild": "rimraf ./dist",
38
- "build": "vite build",
39
- "build:watch": "vite build --watch",
40
- "prepublishOnly": "cross-env NODE_ENV=production npm run build"
41
- },
42
- "files": [
43
- "dist",
44
- "resources"
45
- ],
46
- "repository": {
47
- "type": "git",
48
- "url": "git+https://github.com/cntrl-site/components.git"
49
- },
50
- "author": "arsen@momdesign.nyc",
51
- "license": "MIT",
52
- "bugs": {
53
- "url": "https://github.com/cntrl-site/components/issues"
54
- },
55
- "homepage": "https://github.com/cntrl-site/components#readme",
56
- "directories": {
57
- "lib": "dist"
58
- },
59
- "dependencies": {
60
- "classnames": "^2.5.1"
61
- },
62
- "peerDependencies": {
63
- "react": "^18.0.0",
64
- "react-dom": "^18.0.0"
65
- },
66
- "devDependencies": {
67
- "@antfu/eslint-config": "^3.16.0",
68
- "@splidejs/react-splide": "^0.7.12",
69
- "ts-node": "^10.9.1",
70
- "@tsconfig/node16": "^1.0.3",
71
- "@tsconfig/recommended": "^1.0.1",
72
- "@types/node": "^18.11.7",
73
- "@types/react": "^18.2.0",
74
- "@types/react-dom": "^18.2.0",
75
- "@vitejs/plugin-react": "^4.3.4",
76
- "cross-env": "^10.1.0",
77
- "react": "^18.2.0",
78
- "react-dom": "^18.2.0",
79
- "rimraf": "^6.0.1",
80
- "sass": "^1.86.3",
81
- "typescript": "^5.2.2",
82
- "vite": "^6.2.5",
83
- "vite-plugin-dts": "^4.5.3"
84
- }
85
- }
1
+ {
2
+ "name": "@cntrl-site/components",
3
+ "version": "1.0.12-alpha.15",
4
+ "description": "Custom components for control editor and public websites.",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "style": "dist/components.css",
9
+ "sideEffects": [
10
+ "**/*.css"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.mjs",
16
+ "require": "./dist/index.js"
17
+ },
18
+ "./utils": {
19
+ "types": "./dist/Components/utils/index.d.ts",
20
+ "import": "./dist/utils.mjs",
21
+ "require": "./dist/utils.js"
22
+ },
23
+ "./style/components.css": {
24
+ "default": "./dist/components.css"
25
+ }
26
+ },
27
+ "typesVersions": {
28
+ "*": {
29
+ "utils": [
30
+ "./dist/Components/utils/index.d.ts"
31
+ ]
32
+ }
33
+ },
34
+ "scripts": {
35
+ "test": "jest",
36
+ "dev": "vite development",
37
+ "prebuild": "rimraf ./dist",
38
+ "build": "vite build",
39
+ "build:watch": "vite build --watch",
40
+ "prepublishOnly": "cross-env NODE_ENV=production npm run build"
41
+ },
42
+ "files": [
43
+ "dist",
44
+ "resources"
45
+ ],
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/cntrl-site/components.git"
49
+ },
50
+ "author": "arsen@momdesign.nyc",
51
+ "license": "MIT",
52
+ "bugs": {
53
+ "url": "https://github.com/cntrl-site/components/issues"
54
+ },
55
+ "homepage": "https://github.com/cntrl-site/components#readme",
56
+ "directories": {
57
+ "lib": "dist"
58
+ },
59
+ "dependencies": {
60
+ "classnames": "^2.5.1"
61
+ },
62
+ "peerDependencies": {
63
+ "react": "^18.0.0",
64
+ "react-dom": "^18.0.0"
65
+ },
66
+ "devDependencies": {
67
+ "@antfu/eslint-config": "^3.16.0",
68
+ "@splidejs/react-splide": "^0.7.12",
69
+ "ts-node": "^10.9.1",
70
+ "@tsconfig/node16": "^1.0.3",
71
+ "@tsconfig/recommended": "^1.0.1",
72
+ "@types/node": "^18.11.7",
73
+ "@types/react": "^18.2.0",
74
+ "@types/react-dom": "^18.2.0",
75
+ "@vitejs/plugin-react": "^4.3.4",
76
+ "cross-env": "^10.1.0",
77
+ "react": "^18.2.0",
78
+ "react-dom": "^18.2.0",
79
+ "rimraf": "^6.0.1",
80
+ "sass": "^1.86.3",
81
+ "typescript": "^5.2.2",
82
+ "vite": "^6.2.5",
83
+ "vite-plugin-dts": "^4.5.3"
84
+ }
85
+ }
@@ -1,75 +0,0 @@
1
- import { CommonComponentProps } from '../props';
2
- import { TextStyles } from '../utils/textStylesToCss';
3
- export type LightboxJournalImage = {
4
- url: string;
5
- name?: string;
6
- objectFit?: 'cover' | 'contain';
7
- };
8
- export type LightboxJournalItem = {
9
- title1: string;
10
- title2: string;
11
- title3: string;
12
- images: LightboxJournalImage[];
13
- };
14
- type LightboxJournalProps = {
15
- settings: LightboxJournalSettings;
16
- content?: LightboxJournalItem[];
17
- isEditor?: boolean;
18
- isEditMode?: boolean;
19
- isPreviewMode?: boolean;
20
- portalId?: string;
21
- } & CommonComponentProps;
22
- export declare const LightboxJournal: ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId }: LightboxJournalProps) => import("react/jsx-runtime").JSX.Element;
23
- export type LightboxJournalSettings = {
24
- cover: string | null;
25
- coverFit: 'cover' | 'fit';
26
- maxWidth: number;
27
- maxHeight: number;
28
- backgroundColor: string;
29
- objectFit: 'cover' | 'fit';
30
- imageGap?: number;
31
- textMaxWidth: number;
32
- textTransition: 'none' | 'fade';
33
- titlesGap?: number;
34
- textCountGap?: number;
35
- countCloseGap?: number;
36
- fontFamily?: string;
37
- title1Color: string;
38
- title2Color: string;
39
- title3Color: string;
40
- title1FontSettings?: {
41
- fontWeight: number;
42
- fontStyle: string;
43
- };
44
- title1FontSize: number;
45
- title1LineHeight?: number;
46
- title1LetterSpacing?: number;
47
- title1WordSpacing?: number;
48
- title1TextAppearance?: TextStyles['textAppearance'];
49
- title2FontSettings?: {
50
- fontWeight: number;
51
- fontStyle: string;
52
- };
53
- title2FontSize: number;
54
- title2LineHeight?: number;
55
- title2LetterSpacing?: number;
56
- title2WordSpacing?: number;
57
- title2TextAppearance?: TextStyles['textAppearance'];
58
- title3FontSettings?: {
59
- fontWeight: number;
60
- fontStyle: string;
61
- };
62
- title3FontSize: number;
63
- title3LineHeight?: number;
64
- title3LetterSpacing?: number;
65
- title3WordSpacing?: number;
66
- title3TextAppearance?: TextStyles['textAppearance'];
67
- contentMarginTop: number;
68
- contentMarginLeft: number;
69
- contentMarginRight: number;
70
- closeIcon: string | null;
71
- closeIconMaxWidth: number;
72
- closeIconColor: string;
73
- closeIconHoverColor: string;
74
- };
75
- export {};
@@ -1,42 +0,0 @@
1
- import { ComponentSchemaV1 } from '../../types/SchemaV1';
2
- export declare const LightboxJournalComponent: {
3
- element: ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId }: {
4
- settings: import('./LightboxJournal').LightboxJournalSettings;
5
- content?: import('./LightboxJournal').LightboxJournalItem[];
6
- isEditor?: boolean;
7
- isEditMode?: boolean;
8
- isPreviewMode?: boolean;
9
- portalId?: string;
10
- } & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
11
- id: string;
12
- name: string;
13
- category: string;
14
- version: number;
15
- defaultSize: {
16
- d: {
17
- width: number;
18
- height: number;
19
- };
20
- m: {
21
- width: number;
22
- height: number;
23
- };
24
- };
25
- preview: {
26
- type: "image";
27
- url: string;
28
- };
29
- schema: ComponentSchemaV1;
30
- sourceCode: string;
31
- assetsPaths: {
32
- content: {
33
- path: string;
34
- placeholderEnabled: boolean;
35
- }[];
36
- parameters: never[];
37
- };
38
- fontSettingsPaths: {
39
- content: never[];
40
- parameters: never[];
41
- };
42
- };
@@ -1,44 +0,0 @@
1
- import { CommonComponentProps } from '../props';
2
- type LightboxStripProps = {
3
- settings: LightboxStripSettings;
4
- content?: LightboxStripItem[];
5
- isEditor?: boolean;
6
- isEditMode?: boolean;
7
- isPreviewMode?: boolean;
8
- portalId?: string;
9
- } & CommonComponentProps;
10
- export declare const LightboxStrip: ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId }: LightboxStripProps) => import("react/jsx-runtime").JSX.Element;
11
- export type LightboxStripItem = {
12
- image: {
13
- url: string;
14
- name?: string;
15
- objectFit?: 'cover' | 'contain';
16
- };
17
- text?: any[];
18
- };
19
- export type LightboxStripSettings = {
20
- cover: string | null;
21
- coverFit: 'cover' | 'fit';
22
- backgroundColor: string;
23
- thumbnailVisibility: 'on' | 'off';
24
- thumbnailObjectFit: 'cover' | 'contain';
25
- thumbnailTrigger: 'click' | 'hover';
26
- thumbnailActive: 'invert' | 'grayscale' | 'scale-up' | 'opacity';
27
- thumbnailGap: number;
28
- imageGap?: number;
29
- textMaxWidth: number;
30
- textColor: string;
31
- textFontSize: number;
32
- textFontWeight: number;
33
- textFontFamily: string;
34
- textLineHeight: number;
35
- textLetterSpacing: number;
36
- contentMarginTop: number;
37
- contentMarginLeft: number;
38
- contentMarginRight: number;
39
- closeIcon: string | null;
40
- closeIconMaxWidth: number;
41
- closeIconColor: string;
42
- closeIconHoverColor: string;
43
- };
44
- export {};
@@ -1,42 +0,0 @@
1
- import { ComponentSchemaV1 } from '../../types/SchemaV1';
2
- export declare const LightboxStripComponent: {
3
- element: ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId }: {
4
- settings: import('./LightboxStrip').LightboxStripSettings;
5
- content?: import('./LightboxStrip').LightboxStripItem[];
6
- isEditor?: boolean;
7
- isEditMode?: boolean;
8
- isPreviewMode?: boolean;
9
- portalId?: string;
10
- } & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
11
- id: string;
12
- name: string;
13
- category: string;
14
- version: number;
15
- defaultSize: {
16
- d: {
17
- width: number;
18
- height: number;
19
- };
20
- m: {
21
- width: number;
22
- height: number;
23
- };
24
- };
25
- preview: {
26
- type: "image";
27
- url: string;
28
- };
29
- schema: ComponentSchemaV1;
30
- sourceCode: string;
31
- assetsPaths: {
32
- content: {
33
- path: string;
34
- placeholderEnabled: boolean;
35
- }[];
36
- parameters: never[];
37
- };
38
- fontSettingsPaths: {
39
- content: never[];
40
- parameters: never[];
41
- };
42
- };