@content-blocks/js 0.7.1 → 0.7.3
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/dist/cjs/content-accordion_11.cjs.entry.js +69 -1556
- package/dist/cjs/content-accordion_11.cjs.entry.js.map +1 -1
- package/dist/cjs/content-blocks.cjs.js +1 -1
- package/dist/cjs/content-carousel.cjs.entry.js +6 -5
- package/dist/cjs/content-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/content-navigation-block.cjs.entry.js +43 -26
- package/dist/cjs/content-navigation-block.cjs.entry.js.map +1 -1
- package/dist/cjs/content-split-block.cjs.entry.js +2 -2
- package/dist/cjs/content-tabs.cjs.entry.js +2 -2
- package/dist/cjs/focus-trap.esm-a1e3774c.js +1509 -0
- package/dist/cjs/focus-trap.esm-a1e3774c.js.map +1 -0
- package/dist/cjs/index-f38d389e.js +5224 -0
- package/dist/cjs/index-f38d389e.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{swiper-4fade542.js → swiper-e5a68ae2.js} +68 -469
- package/dist/cjs/swiper-e5a68ae2.js.map +1 -0
- package/dist/cjs/utils-c04e978e.js +457 -0
- package/dist/cjs/utils-c04e978e.js.map +1 -0
- package/dist/cjs/{utils-db61cd70.js → utils-f8ccab0a.js} +35 -29
- package/dist/cjs/utils-f8ccab0a.js.map +1 -0
- package/dist/cjs/{window-resize-service-ac5c2012.js → window-resize-service-bc8cf256.js} +2 -2
- package/dist/cjs/{window-resize-service-ac5c2012.js.map → window-resize-service-bc8cf256.js.map} +1 -1
- package/dist/collection/blocks/content-hero-block/content-hero-block.js +1 -1
- package/dist/collection/blocks/content-hero-block/content-hero-block.js.map +1 -1
- package/dist/collection/blocks/content-tout-block/content-tout-block.css +1 -1
- package/dist/collection/components/content-carousel/content-carousel.js +5 -4
- package/dist/collection/components/content-carousel/content-carousel.js.map +1 -1
- package/dist/collection/components/content-navigation-block/content-navigation-block.css +55 -14
- package/dist/collection/components/content-navigation-block/content-navigation-block.js +51 -24
- package/dist/collection/components/content-navigation-block/content-navigation-block.js.map +1 -1
- package/dist/collection/components/content-overlay/content-overlay.css +23 -10
- package/dist/collection/components/content-overlay/content-overlay.js +100 -39
- package/dist/collection/components/content-overlay/content-overlay.js.map +1 -1
- package/dist/collection/elements/content-button/content-button.js +3 -3
- package/dist/collection/elements/content-button/content-button.js.map +1 -1
- package/dist/collection/elements/content-image/content-image.js +4 -4
- package/dist/collection/elements/content-image/content-image.js.map +1 -1
- package/dist/collection/elements/content-video/content-video.css +1 -19
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.css +5 -4
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js +36 -0
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js.map +1 -1
- package/dist/collection/formatters/content-spacer/content-spacer.css +6 -4
- package/dist/collection/formatters/content-spacer/content-spacer.js +13 -5
- package/dist/collection/formatters/content-spacer/content-spacer.js.map +1 -1
- package/dist/collection/services/window-resize-service.js.map +1 -1
- package/dist/collection/stories/ContentNavigationBlock.stories.js +1 -1
- package/dist/collection/stories/ContentNavigationBlock.stories.js.map +1 -1
- package/dist/collection/stories/ContentTextBlock.stories.js +5 -5
- package/dist/collection/stories/ContentTextBlock.stories.js.map +1 -1
- package/dist/collection/stories/FullPageExample.stories.js +164 -214
- package/dist/collection/stories/FullPageExample.stories.js.map +1 -1
- package/dist/collection/utils/utils.js +31 -25
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/collection/utils/utils.spec.js +28 -3
- package/dist/collection/utils/utils.spec.js.map +1 -1
- package/dist/components/content-button.js +3 -3
- package/dist/components/content-button.js.map +1 -1
- package/dist/components/content-carousel.js +5 -4
- package/dist/components/content-carousel.js.map +1 -1
- package/dist/components/content-grid-formatter2.js +8 -1
- package/dist/components/content-grid-formatter2.js.map +1 -1
- package/dist/components/content-hero-block.js +1 -1
- package/dist/components/content-hero-block.js.map +1 -1
- package/dist/components/content-image.js +4 -4
- package/dist/components/content-image.js.map +1 -1
- package/dist/components/content-navigation-block.js +48 -25
- package/dist/components/content-navigation-block.js.map +1 -1
- package/dist/components/content-overlay.js +51 -1543
- package/dist/components/content-overlay.js.map +1 -1
- package/dist/components/content-spacer.js +3 -3
- package/dist/components/content-spacer.js.map +1 -1
- package/dist/components/content-tout-block.js +1 -1
- package/dist/components/content-tout-block.js.map +1 -1
- package/dist/components/content-video.js +1 -1
- package/dist/components/content-video.js.map +1 -1
- package/dist/components/focus-trap.esm.js +1507 -0
- package/dist/components/focus-trap.esm.js.map +1 -0
- package/dist/components/index2.js +5200 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/swiper.js +1 -402
- package/dist/components/swiper.js.map +1 -1
- package/dist/components/utils.js +34 -28
- package/dist/components/utils.js.map +1 -1
- package/dist/components/utils2.js +433 -0
- package/dist/components/utils2.js.map +1 -0
- package/dist/components/window-resize-service.js.map +1 -1
- package/dist/content-blocks/content-blocks.esm.js +1 -1
- package/dist/content-blocks/content-blocks.esm.js.map +1 -1
- package/dist/content-blocks/index.esm.js +1 -1
- package/dist/content-blocks/p-0131bfdf.entry.js +2 -0
- package/dist/content-blocks/p-0131bfdf.entry.js.map +1 -0
- package/dist/content-blocks/{p-4bfbd7ef.entry.js → p-1b448306.entry.js} +2 -2
- package/dist/content-blocks/p-39788531.entry.js +2 -0
- package/dist/content-blocks/p-39788531.entry.js.map +1 -0
- package/dist/content-blocks/{p-8cc22c1e.entry.js → p-3bd97960.entry.js} +2 -2
- package/dist/content-blocks/{p-cfb4593f.js → p-3fe594af.js} +2 -2
- package/dist/content-blocks/{p-cfb4593f.js.map → p-3fe594af.js.map} +1 -1
- package/dist/content-blocks/p-75ac85e9.js +2 -0
- package/dist/content-blocks/p-75ac85e9.js.map +1 -0
- package/dist/content-blocks/p-878dc806.js +10 -0
- package/dist/content-blocks/p-878dc806.js.map +1 -0
- package/dist/content-blocks/p-97c4ca9d.js +2 -0
- package/dist/content-blocks/p-97c4ca9d.js.map +1 -0
- package/dist/content-blocks/{p-271fb304.entry.js → p-cbc1dd73.entry.js} +2 -2
- package/dist/content-blocks/p-cbc1dd73.entry.js.map +1 -0
- package/dist/content-blocks/p-cc7397cf.js +2 -0
- package/dist/content-blocks/p-cc7397cf.js.map +1 -0
- package/dist/content-blocks/p-e2907508.js +2 -0
- package/dist/content-blocks/p-e2907508.js.map +1 -0
- package/dist/esm/content-accordion_11.entry.js +69 -1556
- package/dist/esm/content-accordion_11.entry.js.map +1 -1
- package/dist/esm/content-blocks.js +1 -1
- package/dist/esm/content-carousel.entry.js +6 -5
- package/dist/esm/content-carousel.entry.js.map +1 -1
- package/dist/esm/content-navigation-block.entry.js +43 -26
- package/dist/esm/content-navigation-block.entry.js.map +1 -1
- package/dist/esm/content-split-block.entry.js +2 -2
- package/dist/esm/content-tabs.entry.js +2 -2
- package/dist/esm/focus-trap.esm-49c9613c.js +1507 -0
- package/dist/esm/focus-trap.esm-49c9613c.js.map +1 -0
- package/dist/esm/index-d9f353de.js +5200 -0
- package/dist/esm/index-d9f353de.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{swiper-3e7be625.js → swiper-3394f7fd.js} +2 -403
- package/dist/esm/swiper-3394f7fd.js.map +1 -0
- package/dist/esm/utils-075121ec.js +433 -0
- package/dist/esm/utils-075121ec.js.map +1 -0
- package/dist/esm/{utils-4f78228e.js → utils-9a901aa9.js} +35 -29
- package/dist/esm/utils-9a901aa9.js.map +1 -0
- package/dist/esm/{window-resize-service-f40ec51c.js → window-resize-service-a6537000.js} +2 -2
- package/dist/esm/{window-resize-service-f40ec51c.js.map → window-resize-service-a6537000.js.map} +1 -1
- package/dist/types/components/content-carousel/content-carousel.d.ts +3 -3
- package/dist/types/components/content-navigation-block/content-navigation-block.d.ts +11 -0
- package/dist/types/components/content-overlay/content-overlay.d.ts +11 -0
- package/dist/types/components.d.ts +34 -2
- package/dist/types/formatters/content-grid-formatter/content-grid-formatter.d.ts +8 -1
- package/dist/types/formatters/content-spacer/content-spacer.d.ts +2 -1
- package/dist/types/stories/ContentNavigationBlock.stories.d.ts +1 -3
- package/dist/types/stories/ContentTextBlock.stories.d.ts +1 -7
- package/dist/types/utils/utils.d.ts +8 -3
- package/package.json +2 -2
- package/dist/cjs/swiper-4fade542.js.map +0 -1
- package/dist/cjs/utils-db61cd70.js.map +0 -1
- package/dist/content-blocks/p-10819bfa.js +0 -2
- package/dist/content-blocks/p-10819bfa.js.map +0 -1
- package/dist/content-blocks/p-24657e66.entry.js +0 -10
- package/dist/content-blocks/p-24657e66.entry.js.map +0 -1
- package/dist/content-blocks/p-271fb304.entry.js.map +0 -1
- package/dist/content-blocks/p-6a177aef.entry.js +0 -2
- package/dist/content-blocks/p-6a177aef.entry.js.map +0 -1
- package/dist/content-blocks/p-b04fe808.js +0 -2
- package/dist/content-blocks/p-b04fe808.js.map +0 -1
- package/dist/esm/swiper-3e7be625.js.map +0 -1
- package/dist/esm/utils-4f78228e.js.map +0 -1
- /package/dist/content-blocks/{p-4bfbd7ef.entry.js.map → p-1b448306.entry.js.map} +0 -0
- /package/dist/content-blocks/{p-8cc22c1e.entry.js.map → p-3bd97960.entry.js.map} +0 -0
|
@@ -3,6 +3,7 @@ import { ResponsiveString } from '../../typings';
|
|
|
3
3
|
/**
|
|
4
4
|
* @slot openButton - This slot will expand the navigation when clicked.
|
|
5
5
|
* @slot closeButton - This slot will close the navigation when clicked.
|
|
6
|
+
* @slot skipContent - This slot is a keyboard-focus link that lets a screen-reader or keyboard user skip the navigation block and scroll to the end.
|
|
6
7
|
* @slot content - Default slot
|
|
7
8
|
*/
|
|
8
9
|
export declare class ContentNavigationBlock {
|
|
@@ -11,6 +12,7 @@ export declare class ContentNavigationBlock {
|
|
|
11
12
|
* @responsive
|
|
12
13
|
* @options fixed
|
|
13
14
|
* @options absolute
|
|
15
|
+
* @options sticky
|
|
14
16
|
* @options static
|
|
15
17
|
* @options none
|
|
16
18
|
*/
|
|
@@ -24,8 +26,17 @@ export declare class ContentNavigationBlock {
|
|
|
24
26
|
hostElement: HTMLStencilElement;
|
|
25
27
|
ariaExpanded: string;
|
|
26
28
|
bodyToggle: boolean;
|
|
29
|
+
skipAccessibilityMessage: HTMLElement;
|
|
30
|
+
hasOpenButton: boolean;
|
|
31
|
+
hasCloseButton: boolean;
|
|
32
|
+
openButton: HTMLElement;
|
|
33
|
+
closeButton: HTMLElement;
|
|
34
|
+
contentSlot: HTMLElement;
|
|
35
|
+
focusTrap: any;
|
|
27
36
|
componentWillLoad(): void;
|
|
28
37
|
componentDidLoad(): void;
|
|
38
|
+
openMenu(): void;
|
|
39
|
+
closeMenu(): void;
|
|
29
40
|
render(): any;
|
|
30
41
|
}
|
|
31
42
|
//# sourceMappingURL=content-navigation-block.d.ts.map
|
|
@@ -52,6 +52,15 @@ export declare class ContentOverlay {
|
|
|
52
52
|
* @type String
|
|
53
53
|
*/
|
|
54
54
|
closeTitle: string;
|
|
55
|
+
/**
|
|
56
|
+
* Position of the overlay.
|
|
57
|
+
* @type Select
|
|
58
|
+
* @options absolute
|
|
59
|
+
* @options fixed
|
|
60
|
+
* @options static
|
|
61
|
+
* @options sticky
|
|
62
|
+
*/
|
|
63
|
+
position: ResponsiveString;
|
|
55
64
|
isActive: boolean;
|
|
56
65
|
activeClass: string;
|
|
57
66
|
classString: string;
|
|
@@ -64,7 +73,9 @@ export declare class ContentOverlay {
|
|
|
64
73
|
originalMarkup: string;
|
|
65
74
|
ariaDialog: any;
|
|
66
75
|
focusTrap: any;
|
|
76
|
+
onContentBlockToggle(event: CustomEvent): void;
|
|
67
77
|
onContentBlockActivated(event: CustomEvent): void;
|
|
78
|
+
onContentBlockDeactivated(event: CustomEvent): void;
|
|
68
79
|
openOverlay(): Promise<void>;
|
|
69
80
|
closeOverlay(): Promise<void>;
|
|
70
81
|
setComputedActiveClass(): void;
|
|
@@ -128,6 +128,11 @@ export namespace Components {
|
|
|
128
128
|
* @responsive
|
|
129
129
|
*/
|
|
130
130
|
"horizontal": FLEX_JUSTIFY_OPTIONS;
|
|
131
|
+
/**
|
|
132
|
+
* @type Number
|
|
133
|
+
* @responsive
|
|
134
|
+
*/
|
|
135
|
+
"rowGap": ResponsiveNumber;
|
|
131
136
|
/**
|
|
132
137
|
* Flex or grid
|
|
133
138
|
* @type Select
|
|
@@ -267,6 +272,7 @@ export namespace Components {
|
|
|
267
272
|
* @responsive
|
|
268
273
|
* @options fixed
|
|
269
274
|
* @options absolute
|
|
275
|
+
* @options sticky
|
|
270
276
|
* @options static
|
|
271
277
|
* @options none
|
|
272
278
|
*/
|
|
@@ -305,6 +311,15 @@ export namespace Components {
|
|
|
305
311
|
*/
|
|
306
312
|
"open": ResponsiveBoolean;
|
|
307
313
|
"openOverlay": () => Promise<void>;
|
|
314
|
+
/**
|
|
315
|
+
* Position of the overlay.
|
|
316
|
+
* @type Select
|
|
317
|
+
* @options absolute
|
|
318
|
+
* @options fixed
|
|
319
|
+
* @options static
|
|
320
|
+
* @options sticky
|
|
321
|
+
*/
|
|
322
|
+
"position": ResponsiveString;
|
|
308
323
|
/**
|
|
309
324
|
* @type String
|
|
310
325
|
* @responsive
|
|
@@ -391,9 +406,10 @@ export namespace Components {
|
|
|
391
406
|
* @options top
|
|
392
407
|
* @options center
|
|
393
408
|
* @options bottom
|
|
409
|
+
* @options default
|
|
394
410
|
* @responsive
|
|
395
411
|
*/
|
|
396
|
-
"vertical": ContentVerticalAlignments;
|
|
412
|
+
"vertical": ResponsiveString | ContentVerticalAlignments;
|
|
397
413
|
}
|
|
398
414
|
interface ContentSplitBlock {
|
|
399
415
|
/**
|
|
@@ -761,6 +777,11 @@ declare namespace LocalJSX {
|
|
|
761
777
|
* @responsive
|
|
762
778
|
*/
|
|
763
779
|
"horizontal"?: FLEX_JUSTIFY_OPTIONS;
|
|
780
|
+
/**
|
|
781
|
+
* @type Number
|
|
782
|
+
* @responsive
|
|
783
|
+
*/
|
|
784
|
+
"rowGap"?: ResponsiveNumber;
|
|
764
785
|
/**
|
|
765
786
|
* Flex or grid
|
|
766
787
|
* @type Select
|
|
@@ -900,6 +921,7 @@ declare namespace LocalJSX {
|
|
|
900
921
|
* @responsive
|
|
901
922
|
* @options fixed
|
|
902
923
|
* @options absolute
|
|
924
|
+
* @options sticky
|
|
903
925
|
* @options static
|
|
904
926
|
* @options none
|
|
905
927
|
*/
|
|
@@ -937,6 +959,15 @@ declare namespace LocalJSX {
|
|
|
937
959
|
* @responsive
|
|
938
960
|
*/
|
|
939
961
|
"open"?: ResponsiveBoolean;
|
|
962
|
+
/**
|
|
963
|
+
* Position of the overlay.
|
|
964
|
+
* @type Select
|
|
965
|
+
* @options absolute
|
|
966
|
+
* @options fixed
|
|
967
|
+
* @options static
|
|
968
|
+
* @options sticky
|
|
969
|
+
*/
|
|
970
|
+
"position"?: ResponsiveString;
|
|
940
971
|
/**
|
|
941
972
|
* @type String
|
|
942
973
|
* @responsive
|
|
@@ -1023,9 +1054,10 @@ declare namespace LocalJSX {
|
|
|
1023
1054
|
* @options top
|
|
1024
1055
|
* @options center
|
|
1025
1056
|
* @options bottom
|
|
1057
|
+
* @options default
|
|
1026
1058
|
* @responsive
|
|
1027
1059
|
*/
|
|
1028
|
-
"vertical"?: ContentVerticalAlignments;
|
|
1060
|
+
"vertical"?: ResponsiveString | ContentVerticalAlignments;
|
|
1029
1061
|
}
|
|
1030
1062
|
interface ContentSplitBlock {
|
|
1031
1063
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FLEX_JUSTIFY_OPTIONS, GRID_TYPES, ResponsiveBoolean, ResponsiveNumber, ResponsiveString } from '../../typings';
|
|
2
|
+
import { HTMLStencilElement } from '../../stencil-public-runtime';
|
|
2
3
|
/**
|
|
3
4
|
* @slot media - This slot can either be a video or image component.
|
|
4
5
|
* @slot content - This slot will usually serve a content text block.
|
|
@@ -61,11 +62,17 @@ export declare class ContentGridFormatter {
|
|
|
61
62
|
* @responsive
|
|
62
63
|
*/
|
|
63
64
|
columnGap: ResponsiveNumber;
|
|
65
|
+
/**
|
|
66
|
+
* @type Number
|
|
67
|
+
* @responsive
|
|
68
|
+
*/
|
|
69
|
+
rowGap: ResponsiveNumber;
|
|
70
|
+
hostElement: HTMLStencilElement;
|
|
64
71
|
activeClassString: string;
|
|
65
72
|
inlineStyle: {
|
|
66
73
|
[key: string]: string;
|
|
67
74
|
};
|
|
68
|
-
componentWillLoad(): Promise<[PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>]>;
|
|
75
|
+
componentWillLoad(): Promise<[PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>]>;
|
|
69
76
|
render(): any;
|
|
70
77
|
}
|
|
71
78
|
//# sourceMappingURL=content-grid-formatter.d.ts.map
|
|
@@ -48,9 +48,10 @@ export declare class ContentSpacingWrapper {
|
|
|
48
48
|
* @options top
|
|
49
49
|
* @options center
|
|
50
50
|
* @options bottom
|
|
51
|
+
* @options default
|
|
51
52
|
* @responsive
|
|
52
53
|
*/
|
|
53
|
-
vertical: ContentVerticalAlignments;
|
|
54
|
+
vertical: ResponsiveString | ContentVerticalAlignments;
|
|
54
55
|
/**
|
|
55
56
|
* Pipe separated numbers between 0 and 100. Units without values are assumed to be %.
|
|
56
57
|
* @type Number
|
|
@@ -2,13 +2,18 @@ import { ResponsiveString } from "../typings";
|
|
|
2
2
|
export declare const breakpoints: string[];
|
|
3
3
|
export declare const breakpointLabels: string[];
|
|
4
4
|
export declare const breakpointValues: number[];
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
declare global {
|
|
6
|
+
interface Window {
|
|
7
|
+
$contentBlocks?: any;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare function getBreakpointValues(): any;
|
|
8
11
|
export declare function generateResponsiveValues(responsiveValue: string): string[];
|
|
9
12
|
export declare function getCurrentBreakpointIndex(): number;
|
|
10
13
|
export declare function getCurrentValue(responsiveValue: string | boolean): string;
|
|
11
14
|
export declare function getValueAtIndex(index: number, responsiveValue: ResponsiveString): string;
|
|
12
15
|
export declare function getHydratedClassString(classString: string): string;
|
|
13
16
|
export declare function objectToCssString(object: object): string;
|
|
17
|
+
export declare function generateResponsiveClass(classPrefix: string, responsiveValue: string): string;
|
|
18
|
+
export declare function insertCssIntoHead(document: Document, fontCssUrl: string): void;
|
|
14
19
|
//# sourceMappingURL=utils.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@content-blocks/js",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "https://contentblocksjs.com/",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
|
-
"module": "dist/
|
|
6
|
+
"module": "dist/index.js",
|
|
7
7
|
"es2015": "dist/esm/index.mjs",
|
|
8
8
|
"es2017": "dist/esm/index.mjs",
|
|
9
9
|
"types": "dist/types/index.d.ts",
|