@gxpl/sdk 0.0.1 → 0.0.2
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/cli.js +1 -1
- package/dist/index.d.ts +32 -22
- package/dist/index.js +5086 -52
- package/dist/index.mjs +5088 -54
- package/dist/{Components → sdk/Components}/ControlSlider/ControlSlider.d.ts +1 -2
- package/dist/{Components → sdk/Components}/ImageRevealSlider/ImageRevealSlider.d.ts +1 -2
- package/dist/sdk/FontFaceGenerator/FontFaceGenerator.test.d.ts +1 -0
- package/dist/{schemas → sdk/schemas}/article/Article.schema.d.ts +12 -12
- package/dist/{schemas → sdk/schemas}/article/RichTextItem.schema.d.ts +30 -30
- package/dist/{schemas → sdk/schemas}/article/Section.schema.d.ts +3 -3
- package/dist/sdk-nextjs/common/useCurrentLayout.d.ts +6 -0
- package/dist/sdk-nextjs/common/useExemplary.d.ts +1 -0
- package/dist/sdk-nextjs/common/useItemFXData.d.ts +8 -0
- package/dist/sdk-nextjs/common/useKeyframeValue.d.ts +8 -0
- package/dist/sdk-nextjs/common/useRegisterResize.d.ts +1 -0
- package/dist/sdk-nextjs/components/Article.d.ts +9 -0
- package/dist/sdk-nextjs/components/ArticleWrapper.d.ts +2 -0
- package/dist/sdk-nextjs/components/Head.d.ts +9 -0
- package/dist/sdk-nextjs/components/LayoutStyle.d.ts +9 -0
- package/dist/sdk-nextjs/components/Page.d.ts +15 -0
- package/dist/sdk-nextjs/components/ScrollPlaybackVideo.d.ts +14 -0
- package/dist/sdk-nextjs/components/Section/Section.d.ts +11 -0
- package/dist/sdk-nextjs/components/Section/SectionImage.d.ts +14 -0
- package/dist/sdk-nextjs/components/Section/SectionVideo.d.ts +17 -0
- package/dist/sdk-nextjs/components/Section/useSectionColor.d.ts +4 -0
- package/dist/sdk-nextjs/components/Section/useSectionHeightMap.d.ts +3 -0
- package/dist/sdk-nextjs/components/items/CodeEmbedItem/CodeEmbedItem.d.ts +5 -0
- package/dist/sdk-nextjs/components/items/CodeEmbedItem/useCodeEmbedItem.d.ts +7 -0
- package/dist/sdk-nextjs/components/items/ComponentItem/ComponentItem.d.ts +4 -0
- package/dist/sdk-nextjs/components/items/ComponentItem/useComponentItem.d.ts +5 -0
- package/dist/sdk-nextjs/components/items/CompoundItem/CompoundChild.d.ts +9 -0
- package/dist/sdk-nextjs/components/items/CompoundItem/CompoundItem.d.ts +4 -0
- package/dist/sdk-nextjs/components/items/CompoundItem/useCompoundItem.d.ts +4 -0
- package/dist/sdk-nextjs/components/items/CustomItem/CustomItem.d.ts +4 -0
- package/dist/sdk-nextjs/components/items/EmbedVideoItem/VimeoEmbed.d.ts +4 -0
- package/dist/sdk-nextjs/components/items/EmbedVideoItem/YoutubeEmbed.d.ts +4 -0
- package/dist/sdk-nextjs/components/items/EmbedVideoItem/useEmbedVideoItem.d.ts +6 -0
- package/dist/sdk-nextjs/components/items/FileItem/ImageItem.d.ts +4 -0
- package/dist/sdk-nextjs/components/items/FileItem/VideoItem.d.ts +4 -0
- package/dist/sdk-nextjs/components/items/FileItem/useFileItem.d.ts +8 -0
- package/dist/sdk-nextjs/components/items/GroupItem/GroupItem.d.ts +4 -0
- package/dist/sdk-nextjs/components/items/GroupItem/useGroupItem.d.ts +5 -0
- package/dist/sdk-nextjs/components/items/Item.d.ts +20 -0
- package/dist/sdk-nextjs/components/items/LinkWrapper.d.ts +8 -0
- package/dist/sdk-nextjs/components/items/RectangleItem/RectangleItem.d.ts +4 -0
- package/dist/sdk-nextjs/components/items/RectangleItem/useRectangleItem.d.ts +9 -0
- package/dist/sdk-nextjs/components/items/RichTextItem/RichTextItem.d.ts +4 -0
- package/dist/sdk-nextjs/components/items/RichTextItem/useRichTextItem.d.ts +3 -0
- package/dist/sdk-nextjs/components/items/RichTextWrapper.d.ts +7 -0
- package/dist/sdk-nextjs/components/items/itemsMap.d.ts +4 -0
- package/dist/sdk-nextjs/components/items/useDraggable.d.ts +17 -0
- package/dist/sdk-nextjs/components/items/useItemAngle.d.ts +2 -0
- package/dist/sdk-nextjs/components/items/useItemArea.d.ts +12 -0
- package/dist/sdk-nextjs/components/items/useItemPointerEvents.d.ts +4 -0
- package/dist/sdk-nextjs/components/items/useItemScale.d.ts +2 -0
- package/dist/sdk-nextjs/components/items/useItemTriggers.d.ts +6 -0
- package/dist/sdk-nextjs/components/items/useRichTextItemValues.d.ts +9 -0
- package/dist/sdk-nextjs/components/items/useSizing.d.ts +8 -0
- package/dist/sdk-nextjs/components/items/useStickyItemTop.d.ts +2 -0
- package/dist/sdk-nextjs/components/useLayoutContext.d.ts +1 -0
- package/dist/sdk-nextjs/interactions/CSSPropertyNameMap.d.ts +4 -0
- package/dist/sdk-nextjs/interactions/InteractionsRegistry.d.ts +39 -0
- package/dist/sdk-nextjs/interactions/ItemInteractionCtrl.d.ts +21 -0
- package/dist/sdk-nextjs/interactions/getTransition.d.ts +9 -0
- package/dist/sdk-nextjs/interactions/types.d.ts +34 -0
- package/dist/sdk-nextjs/interactions/useItemInteractionCtrl.d.ts +2 -0
- package/dist/sdk-nextjs/provider/ArticleRectContext.d.ts +2 -0
- package/dist/sdk-nextjs/provider/CntrlContext.d.ts +2 -0
- package/dist/sdk-nextjs/provider/CntrlProvider.d.ts +2 -0
- package/dist/sdk-nextjs/provider/CntrlSdkContext.d.ts +31 -0
- package/dist/sdk-nextjs/provider/CustomItemRegistry.d.ts +6 -0
- package/dist/sdk-nextjs/provider/CustomItemTypes.d.ts +2 -0
- package/dist/sdk-nextjs/provider/CustomSectionRegistry.d.ts +15 -0
- package/dist/sdk-nextjs/provider/InteractionsContext.d.ts +10 -0
- package/dist/sdk-nextjs/provider/Keyframes.d.ts +6 -0
- package/dist/sdk-nextjs/provider/KeyframesContext.d.ts +2 -0
- package/dist/sdk-nextjs/provider/LayoutContext.d.ts +1 -0
- package/dist/sdk-nextjs/provider/WebGLContextManagerContext.d.ts +2 -0
- package/dist/sdk-nextjs/provider/defaultContext.d.ts +2 -0
- package/dist/sdk-nextjs/provider/useCntrlContext.d.ts +2 -0
- package/dist/sdk-nextjs/utils/Animator/Animator.d.ts +43 -0
- package/dist/sdk-nextjs/utils/ArticleRectManager/ArticleRectObserver.d.ts +25 -0
- package/dist/sdk-nextjs/utils/ArticleRectManager/useArticleRectObserver.d.ts +2 -0
- package/dist/sdk-nextjs/utils/ArticleRectManager/useSectionRegistry.d.ts +1 -0
- package/dist/sdk-nextjs/utils/EventEmitter.d.ts +11 -0
- package/dist/sdk-nextjs/utils/RichTextConverter/RichTextConverter.d.ts +11 -0
- package/dist/sdk-nextjs/utils/ScaleAnchorMap.d.ts +11 -0
- package/dist/sdk-nextjs/utils/StickyManager/StickyManager.d.ts +10 -0
- package/dist/sdk-nextjs/utils/Youtube/YouTubeIframeApiLoader.d.ts +10 -0
- package/dist/sdk-nextjs/utils/Youtube/YoutubeIframeApi.d.ts +89 -0
- package/dist/sdk-nextjs/utils/Youtube/useYouTubeIframeApi.d.ts +2 -0
- package/dist/sdk-nextjs/utils/areFillsVisible/areFillsVisible.d.ts +23 -0
- package/dist/sdk-nextjs/utils/binSearchInsertAt.d.ts +5 -0
- package/dist/sdk-nextjs/utils/castObject.d.ts +5 -0
- package/dist/sdk-nextjs/utils/checkOverflowClipSupport.d.ts +1 -0
- package/dist/sdk-nextjs/utils/effects/useImageFx.d.ts +7 -0
- package/dist/sdk-nextjs/utils/effects/useVideoFx.d.ts +7 -0
- package/dist/sdk-nextjs/utils/getAnchoredItemTop.d.ts +2 -0
- package/dist/sdk-nextjs/utils/getCompoundBoundaryStyles.d.ts +12 -0
- package/dist/sdk-nextjs/utils/getFill.d.ts +2 -0
- package/dist/sdk-nextjs/utils/getFontFamilyValue.d.ts +1 -0
- package/dist/sdk-nextjs/utils/getInvertedRanges.d.ts +10 -0
- package/dist/sdk-nextjs/utils/getItemTopStyle.d.ts +2 -0
- package/dist/sdk-nextjs/utils/getStyleFromItemStateAndParams.d.ts +1 -0
- package/dist/sdk-nextjs/utils/getValidYoutubeUrl.d.ts +1 -0
- package/dist/sdk-nextjs/utils/isItemType.d.ts +3 -0
- package/dist/sdk-nextjs/utils/rangeMap.d.ts +1 -0
- package/dist/sdk-nextjs/utils/useElementRect.d.ts +1 -0
- package/dist/sdk.css +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +23 -5
- /package/dist/{Client → sdk/Client}/Client.d.ts +0 -0
- /package/dist/{Client → sdk/Client}/Client.js +0 -0
- /package/dist/{FontFaceGenerator/FontFaceGenerator.test.d.ts → sdk/Client/Client.test.d.ts} +0 -0
- /package/dist/{Client → sdk/Client}/__mock__/articleMock.d.ts +0 -0
- /package/dist/{Client → sdk/Client}/__mock__/keyframesMock.d.ts +0 -0
- /package/dist/{Client → sdk/Client}/__mock__/projectMock.d.ts +0 -0
- /package/dist/{Components → sdk/Components}/ControlSlider/ControlSliderComponent.d.ts +0 -0
- /package/dist/{Components → sdk/Components}/ImageRevealSlider/ControlImageRevealSliderComponent.d.ts +0 -0
- /package/dist/{Components → sdk/Components}/components.d.ts +0 -0
- /package/dist/{Components → sdk/Components}/helpers/RichTextRenderer/RichTextRenderer.d.ts +0 -0
- /package/dist/{Components → sdk/Components}/helpers/SvgImage/SvgImage.d.ts +0 -0
- /package/dist/{Components → sdk/Components}/utils/scalingValue.d.ts +0 -0
- /package/dist/{FontFaceGenerator → sdk/FontFaceGenerator}/FontFaceGenerator.d.ts +0 -0
- /package/dist/{ScrollPlaybackVideoManager → sdk/ScrollPlaybackVideoManager}/ScrollPlaybackVideoManager.d.ts +0 -0
- /package/dist/{VideoDecoder → sdk/VideoDecoder}/VideoDecoder.d.ts +0 -0
- /package/dist/{schemas → sdk/schemas}/article/Article.schema.js +0 -0
- /package/dist/{schemas → sdk/schemas}/article/FillLayer.schema.d.ts +0 -0
- /package/dist/{schemas → sdk/schemas}/article/FillLayer.schema.js +0 -0
- /package/dist/{schemas → sdk/schemas}/article/Interaction.schema.d.ts +0 -0
- /package/dist/{schemas → sdk/schemas}/article/Interaction.schema.js +0 -0
- /package/dist/{schemas → sdk/schemas}/article/Item.schema.d.ts +0 -0
- /package/dist/{schemas → sdk/schemas}/article/Item.schema.js +0 -0
- /package/dist/{schemas → sdk/schemas}/article/ItemArea.schema.d.ts +0 -0
- /package/dist/{schemas → sdk/schemas}/article/ItemArea.schema.js +0 -0
- /package/dist/{schemas → sdk/schemas}/article/ItemBase.schema.d.ts +0 -0
- /package/dist/{schemas → sdk/schemas}/article/ItemBase.schema.js +0 -0
- /package/dist/{schemas → sdk/schemas}/article/ItemState.schema.d.ts +0 -0
- /package/dist/{schemas → sdk/schemas}/article/ItemState.schema.js +0 -0
- /package/dist/{schemas → sdk/schemas}/article/RichTextItem.schema.js +0 -0
- /package/dist/{schemas → sdk/schemas}/article/Section.schema.js +0 -0
- /package/dist/{schemas → sdk/schemas}/keyframe/Keyframes.schema.d.ts +0 -0
- /package/dist/{schemas → sdk/schemas}/keyframe/Keyframes.schema.js +0 -0
- /package/dist/{schemas → sdk/schemas}/project/Layout.schema.d.ts +0 -0
- /package/dist/{schemas → sdk/schemas}/project/Layout.schema.js +0 -0
- /package/dist/{schemas → sdk/schemas}/project/Project.schema.d.ts +0 -0
- /package/dist/{schemas → sdk/schemas}/project/Project.schema.js +0 -0
- /package/dist/{schemas → sdk/schemas}/shared/FillLayer.schema.d.ts +0 -0
- /package/dist/{types → sdk/types}/article/Article.d.ts +0 -0
- /package/dist/{types → sdk/types}/article/Article.js +0 -0
- /package/dist/{types → sdk/types}/article/ArticleItemType.d.ts +0 -0
- /package/dist/{types → sdk/types}/article/ArticleItemType.js +0 -0
- /package/dist/{types → sdk/types}/article/CompoundSettings.d.ts +0 -0
- /package/dist/{types → sdk/types}/article/CompoundSettings.js +0 -0
- /package/dist/{types → sdk/types}/article/FX.d.ts +0 -0
- /package/dist/{types → sdk/types}/article/FX.js +0 -0
- /package/dist/{types → sdk/types}/article/Interaction.d.ts +0 -0
- /package/dist/{types → sdk/types}/article/Interaction.js +0 -0
- /package/dist/{types → sdk/types}/article/Item.d.ts +0 -0
- /package/dist/{types → sdk/types}/article/Item.js +0 -0
- /package/dist/{types → sdk/types}/article/ItemArea.d.ts +0 -0
- /package/dist/{types → sdk/types}/article/ItemArea.js +0 -0
- /package/dist/{types → sdk/types}/article/ItemState.d.ts +0 -0
- /package/dist/{types → sdk/types}/article/ItemState.js +0 -0
- /package/dist/{types → sdk/types}/article/RichText.d.ts +0 -0
- /package/dist/{types → sdk/types}/article/RichText.js +0 -0
- /package/dist/{types → sdk/types}/article/Section.d.ts +0 -0
- /package/dist/{types → sdk/types}/article/Section.js +0 -0
- /package/dist/{types → sdk/types}/component/Component.d.ts +0 -0
- /package/dist/{types → sdk/types}/keyframe/Keyframe.d.ts +0 -0
- /package/dist/{types → sdk/types}/keyframe/Keyframe.js +0 -0
- /package/dist/{types → sdk/types}/project/Fonts.d.ts +0 -0
- /package/dist/{types → sdk/types}/project/Fonts.js +0 -0
- /package/dist/{types → sdk/types}/project/Layout.d.ts +0 -0
- /package/dist/{types → sdk/types}/project/Layout.js +0 -0
- /package/dist/{types → sdk/types}/project/Meta.d.ts +0 -0
- /package/dist/{types → sdk/types}/project/Meta.js +0 -0
- /package/dist/{types → sdk/types}/project/Page.d.ts +0 -0
- /package/dist/{types → sdk/types}/project/Page.js +0 -0
- /package/dist/{types → sdk/types}/project/Project.d.ts +0 -0
- /package/dist/{types → sdk/types}/project/Project.js +0 -0
- /package/dist/{Client/Client.test.d.ts → sdk-nextjs/utils/areFillsVisible/areFillsVisible.test.d.ts} +0 -0
package/dist/cli.js
CHANGED
|
@@ -18,7 +18,7 @@ const path_1 = __importDefault(require("path"));
|
|
|
18
18
|
const ejs_1 = __importDefault(require("ejs"));
|
|
19
19
|
const dotenv_1 = require("dotenv");
|
|
20
20
|
const commander_1 = require("commander");
|
|
21
|
-
const Client_1 = require("./Client/Client");
|
|
21
|
+
const Client_1 = require("./sdk/Client/Client");
|
|
22
22
|
commander_1.program
|
|
23
23
|
.command('generate-layouts')
|
|
24
24
|
.option('-o, --output <outputFilePath>', 'Output file path', 'cntrl.scss')
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,33 @@
|
|
|
1
|
-
export { Client as CntrlClient } from './Client/Client';
|
|
2
|
-
export { FontFaceGenerator } from './FontFaceGenerator/FontFaceGenerator';
|
|
1
|
+
export { Client as CntrlClient } from './sdk/Client/Client';
|
|
2
|
+
export { FontFaceGenerator } from './sdk/FontFaceGenerator/FontFaceGenerator';
|
|
3
3
|
export { getLayoutStyles, getLayoutMediaQuery } from './utils';
|
|
4
|
-
export { ScrollPlaybackVideoManager } from './ScrollPlaybackVideoManager/ScrollPlaybackVideoManager';
|
|
5
|
-
export { SectionHeightMode } from './types/article/Section';
|
|
6
|
-
export { TextAlign, TextDecoration, TextTransform, VerticalAlign } from './types/article/RichText';
|
|
7
|
-
export { ArticleItemType } from './types/article/ArticleItemType';
|
|
8
|
-
export { AreaAnchor, AnchorSide, DimensionMode, PositionType } from './types/article/ItemArea';
|
|
9
|
-
export { KeyframeType } from './types/keyframe/Keyframe';
|
|
10
|
-
export type { Article } from './types/article/Article';
|
|
11
|
-
export type { Section, SectionHeight } from './types/article/Section';
|
|
12
|
-
export type { Item, ImageItem, ItemAny, CustomItem, ItemCommonParamsMap, ItemLayoutParamsMap, RectangleItem, StickyParams, VideoItem, RichTextItem, Link, VimeoEmbedItem, YoutubeEmbedItem, GroupItem, CodeEmbedItem, CompoundItem, ComponentItem, FillLayer } from './types/article/Item';
|
|
13
|
-
export type { RichTextBlock, RichTextEntity, RichTextStyle } from './types/article/RichText';
|
|
14
|
-
export type { ItemArea } from './types/article/ItemArea';
|
|
15
|
-
export type { ItemState, ItemStateParams, StateParams, ItemStatesMap } from './types/article/ItemState';
|
|
16
|
-
export type { Interaction, InteractionItemTrigger, InteractionScrollTrigger, InteractionState } from './types/article/Interaction';
|
|
17
|
-
export type { Layout } from './types/project/Layout';
|
|
18
|
-
export type { Project } from './types/project/Project';
|
|
19
|
-
export type { Meta } from './types/project/Meta';
|
|
20
|
-
export type { KeyframeValueMap, KeyframeAny } from './types/keyframe/Keyframe';
|
|
21
|
-
export type { CompoundSettings } from './types/article/CompoundSettings';
|
|
22
|
-
export type { Component } from './types/component/Component';
|
|
23
|
-
export { components } from './Components/components';
|
|
4
|
+
export { ScrollPlaybackVideoManager } from './sdk/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager';
|
|
5
|
+
export { SectionHeightMode } from './sdk/types/article/Section';
|
|
6
|
+
export { TextAlign, TextDecoration, TextTransform, VerticalAlign } from './sdk/types/article/RichText';
|
|
7
|
+
export { ArticleItemType } from './sdk/types/article/ArticleItemType';
|
|
8
|
+
export { AreaAnchor, AnchorSide, DimensionMode, PositionType } from './sdk/types/article/ItemArea';
|
|
9
|
+
export { KeyframeType } from './sdk/types/keyframe/Keyframe';
|
|
10
|
+
export type { Article } from './sdk/types/article/Article';
|
|
11
|
+
export type { Section, SectionHeight } from './sdk/types/article/Section';
|
|
12
|
+
export type { Item, ImageItem, ItemAny, CustomItem, ItemCommonParamsMap, ItemLayoutParamsMap, RectangleItem, StickyParams, VideoItem, RichTextItem, Link, VimeoEmbedItem, YoutubeEmbedItem, GroupItem, CodeEmbedItem, CompoundItem, ComponentItem, FillLayer } from './sdk/types/article/Item';
|
|
13
|
+
export type { RichTextBlock, RichTextEntity, RichTextStyle } from './sdk/types/article/RichText';
|
|
14
|
+
export type { ItemArea } from './sdk/types/article/ItemArea';
|
|
15
|
+
export type { ItemState, ItemStateParams, StateParams, ItemStatesMap } from './sdk/types/article/ItemState';
|
|
16
|
+
export type { Interaction, InteractionItemTrigger, InteractionScrollTrigger, InteractionState } from './sdk/types/article/Interaction';
|
|
17
|
+
export type { Layout } from './sdk/types/project/Layout';
|
|
18
|
+
export type { Project } from './sdk/types/project/Project';
|
|
19
|
+
export type { Meta } from './sdk/types/project/Meta';
|
|
20
|
+
export type { KeyframeValueMap, KeyframeAny } from './sdk/types/keyframe/Keyframe';
|
|
21
|
+
export type { CompoundSettings } from './sdk/types/article/CompoundSettings';
|
|
22
|
+
export type { Component } from './sdk/types/component/Component';
|
|
23
|
+
export { components } from './sdk/Components/components';
|
|
24
|
+
export { RichTextConverter } from './sdk-nextjs/utils/RichTextConverter/RichTextConverter';
|
|
25
|
+
export { Page } from './sdk-nextjs/components/Page';
|
|
26
|
+
export type { PageProps } from './sdk-nextjs/components/Page';
|
|
27
|
+
export { CNTRLHead as Head } from './sdk-nextjs/components/Head';
|
|
28
|
+
export { CntrlProvider } from './sdk-nextjs/provider/CntrlProvider';
|
|
29
|
+
export type { CustomItemComponent } from './sdk-nextjs/provider/CustomItemTypes';
|
|
30
|
+
export { useCntrlContext } from './sdk-nextjs/provider/useCntrlContext';
|
|
31
|
+
export declare const customItems: import('./sdk-nextjs/provider/CustomItemRegistry').CustomItemRegistry;
|
|
32
|
+
export declare const customSections: import('./sdk-nextjs/provider/CustomSectionRegistry').CustomSectionRegistry;
|
|
33
|
+
export declare const cntrlSdkContext: import('./sdk-nextjs/provider/CntrlSdkContext').CntrlSdkContext;
|