@cntrl-site/components 1.0.97-0 → 1.0.97-alpha.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.
@@ -1,11 +1,10 @@
1
1
  import { CommonComponentProps } from '../props';
2
- import { ContentLink } from '../utils/index';
3
2
  type ClickGallerieItem = {
4
3
  image: {
5
4
  url: string;
6
5
  name: string;
7
6
  };
8
- link?: ContentLink;
7
+ link: string;
9
8
  };
10
9
  type ImageSizeSettings = {
11
10
  sizeType: 'custom' | 'as is' | 'random';
@@ -22,7 +22,9 @@ export declare const HiveComponent: {
22
22
  path: string;
23
23
  placeholderEnabled: boolean;
24
24
  }[];
25
- parameters: never[];
25
+ parameters: {
26
+ path: string;
27
+ }[];
26
28
  };
27
29
  fontSettingsPaths: {
28
30
  content: never[];
@@ -1,4 +1,3 @@
1
- import { ContentLink } from '../utils/index';
2
1
  interface ImageRevealSliderProps {
3
2
  settings: ImageRevealSliderSettings;
4
3
  content: ImageRevealSliderItem[];
@@ -35,7 +34,7 @@ type ImageRevealSliderItem = {
35
34
  url: string;
36
35
  name: string;
37
36
  };
38
- link?: ContentLink;
37
+ link: string;
39
38
  };
40
39
  export declare function ImageRevealSlider({ settings, content, isEditor }: ImageRevealSliderProps): import("react/jsx-runtime").JSX.Element;
41
40
  export {};
@@ -34,10 +34,13 @@ export declare const LightboxJournalComponent: {
34
34
  path: string;
35
35
  placeholderEnabled: boolean;
36
36
  }[];
37
- parameters: {
37
+ parameters: ({
38
38
  path: string;
39
39
  placeholderEnabled: boolean;
40
- }[];
40
+ } | {
41
+ path: string;
42
+ placeholderEnabled?: undefined;
43
+ })[];
41
44
  };
42
45
  fontSettingsPaths: {
43
46
  content: never[];
@@ -34,10 +34,13 @@ export declare const LightboxStripComponent: {
34
34
  path: string;
35
35
  placeholderEnabled: boolean;
36
36
  }[];
37
- parameters: {
37
+ parameters: ({
38
38
  path: string;
39
39
  placeholderEnabled: boolean;
40
- }[];
40
+ } | {
41
+ path: string;
42
+ placeholderEnabled?: undefined;
43
+ })[];
41
44
  };
42
45
  fontSettingsPaths: {
43
46
  content: never[];
@@ -1,5 +1,4 @@
1
1
  import { CommonComponentProps } from '../props';
2
- import { ContentLink } from '../utils/index';
3
2
  import { TextStyles } from '../utils/textStylesToCss';
4
3
  import { LayoutItem, LayoutTab } from '../../types/SchemaV1';
5
4
  type ListFontSettings = {
@@ -130,7 +129,7 @@ type ListContentItem = {
130
129
  DColumnWidth?: string;
131
130
  EColumnWidth?: string;
132
131
  image?: ListMedia;
133
- link?: ContentLink;
132
+ link?: string;
134
133
  };
135
134
  type ListProps = {
136
135
  layoutId?: string;
@@ -1,5 +1,4 @@
1
1
  import { CommonComponentProps } from '../props';
2
- import { ContentLink } from '../utils/index';
3
2
  export declare const Marquee: ({ settings, content, isEditor, isPreviewMode, isEditMode }: MarqueeProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export type MarqueeItem = {
5
4
  image?: {
@@ -7,7 +6,7 @@ export type MarqueeItem = {
7
6
  name?: string;
8
7
  type?: 'image' | 'video';
9
8
  };
10
- link?: ContentLink;
9
+ link?: string;
11
10
  };
12
11
  export type MarqueeSettings = {
13
12
  speed: number;
@@ -1,5 +1,4 @@
1
1
  import { CommonComponentProps } from '../props';
2
- import { ContentLink } from '../utils/index';
3
2
  export declare const MarqueeText: ({ settings, content, isEditor, isPreviewMode }: MarqueeTextProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export type MarqueeTextItem = {
5
4
  text: string;
@@ -7,7 +6,7 @@ export type MarqueeTextItem = {
7
6
  url?: string;
8
7
  name?: string;
9
8
  };
10
- link?: ContentLink;
9
+ link?: string;
11
10
  };
12
11
  export type MarqueeTextSettings = {
13
12
  speed: number;
@@ -22,7 +22,9 @@ export declare const WaterfallComponent: {
22
22
  path: string;
23
23
  placeholderEnabled: boolean;
24
24
  }[];
25
- parameters: never[];
25
+ parameters: {
26
+ path: string;
27
+ }[];
26
28
  };
27
29
  fontSettingsPaths: {
28
30
  content: never[];
@@ -0,0 +1,2 @@
1
+ export declare function isInlineMaskUrl(url: string): boolean;
2
+ export declare function loadSvgMaskUrl(url: string): Promise<string>;
@@ -9,5 +9,3 @@ export type { CommonComponentProps } from '../props';
9
9
  export { readTestimonialTextMeasure } from './readTestimonialTextMeasure';
10
10
  export { getAvailableStatePanels, getUnavailableStates, isPanelAvailable, } from './panelAvailability';
11
11
  export type { PanelAvailabilityContext } from './panelAvailability';
12
- export { LinkWrapper } from './LinkWrapper';
13
- export type { ContentLink } from '../../types/SchemaV1';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { type Breakpoint, type Component, type ComponentDefaultSize, type ComponentDefaultNavigationPosition, type ComponentNavigationPosition, type ComponentSize, isSchemaV1 } from './types/Component';
2
- export type { ComponentSchemaV1, ComponentContentSchema, ComponentContentSettings, ComponentContentProperty, ContentKey, ContentLink, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, LayoutTab, SchemaSection, SchemaPanel, SchemaPanelAvailability, SchemaDisplay } from './types/SchemaV1';
2
+ export type { ComponentSchemaV1, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, LayoutTab, SchemaSection, SchemaPanel, SchemaPanelAvailability, SchemaDisplay } from './types/SchemaV1';
3
3
  export { components } from './Components/components';
4
4
  export { getAvailableStatePanels, getUnavailableStates, isPanelAvailable, } from './Components/utils/panelAvailability';
5
5
  export type { PanelAvailabilityContext } from './Components/utils/panelAvailability';