@gxpl/sdk 0.0.7 → 0.0.8

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.
Files changed (283) hide show
  1. package/{dist → lib}/index.d.ts +3 -4
  2. package/lib/sdk/FontFaceGenerator/FontFaceGenerator.js +28 -0
  3. package/lib/sdk/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager.js +221 -0
  4. package/lib/sdk/VideoDecoder/VideoDecoder.js +184 -0
  5. package/{dist → lib}/sdk/schemas/article/Article.schema.d.ts +12 -12
  6. package/{dist → lib}/sdk/schemas/article/ItemBase.schema.d.ts +10 -10
  7. package/{dist → lib}/sdk/schemas/article/RichTextItem.schema.d.ts +30 -30
  8. package/{dist → lib}/sdk/schemas/article/Section.schema.d.ts +3 -3
  9. package/{dist → lib}/sdk/types/component/Component.d.ts +1 -1
  10. package/{dist → lib}/sdk/types/keyframe/Keyframe.d.ts +1 -1
  11. package/lib/sdk/types/project/Meta.js +2 -0
  12. package/lib/sdk/types/project/Page.js +2 -0
  13. package/lib/sdk/types/project/Project.js +2 -0
  14. package/lib/sdk-nextjs/common/useCurrentLayout.js +42 -0
  15. package/lib/sdk-nextjs/common/useExemplary.js +13 -0
  16. package/lib/sdk-nextjs/common/useItemFXData.js +36 -0
  17. package/lib/sdk-nextjs/common/useKeyframeValue.js +75 -0
  18. package/lib/sdk-nextjs/common/useRegisterResize.js +22 -0
  19. package/lib/sdk-nextjs/components/Article.js +41 -0
  20. package/lib/sdk-nextjs/components/ArticleWrapper.js +12 -0
  21. package/lib/sdk-nextjs/components/Head.js +32 -0
  22. package/lib/sdk-nextjs/components/Page.js +20 -0
  23. package/{dist → lib}/sdk-nextjs/components/ScrollPlaybackVideo.d.ts +1 -1
  24. package/lib/sdk-nextjs/components/ScrollPlaybackVideo.js +46 -0
  25. package/lib/sdk-nextjs/components/Section/Section.js +85 -0
  26. package/lib/sdk-nextjs/components/Section/SectionImage.js +24 -0
  27. package/lib/sdk-nextjs/components/Section/SectionVideo.js +91 -0
  28. package/lib/sdk-nextjs/components/Section/useSectionHeightMap.js +20 -0
  29. package/lib/sdk-nextjs/components/items/CodeEmbedItem/CodeEmbedItem.js +120 -0
  30. package/lib/sdk-nextjs/components/items/CodeEmbedItem/useCodeEmbedItem.js +24 -0
  31. package/lib/sdk-nextjs/components/items/ComponentItem/ComponentItem.js +51 -0
  32. package/lib/sdk-nextjs/components/items/ComponentItem/useComponentItem.js +25 -0
  33. package/lib/sdk-nextjs/components/items/CompoundItem/CompoundChild.js +102 -0
  34. package/lib/sdk-nextjs/components/items/CompoundItem/CompoundItem.js +53 -0
  35. package/lib/sdk-nextjs/components/items/CompoundItem/useCompoundItem.js +16 -0
  36. package/lib/sdk-nextjs/components/items/CustomItem/CustomItem.js +40 -0
  37. package/{dist → lib}/sdk-nextjs/components/items/EmbedVideoItem/VimeoEmbed.d.ts +2 -2
  38. package/lib/sdk-nextjs/components/items/EmbedVideoItem/VimeoEmbed.js +170 -0
  39. package/lib/sdk-nextjs/components/items/EmbedVideoItem/YoutubeEmbed.js +166 -0
  40. package/lib/sdk-nextjs/components/items/EmbedVideoItem/useEmbedVideoItem.js +29 -0
  41. package/lib/sdk-nextjs/components/items/FileItem/ImageItem.js +140 -0
  42. package/lib/sdk-nextjs/components/items/FileItem/VideoItem.js +227 -0
  43. package/{dist → lib}/sdk-nextjs/components/items/FileItem/useFileItem.d.ts +1 -1
  44. package/lib/sdk-nextjs/components/items/FileItem/useFileItem.js +48 -0
  45. package/lib/sdk-nextjs/components/items/GroupItem/GroupItem.js +55 -0
  46. package/lib/sdk-nextjs/components/items/GroupItem/useGroupItem.js +22 -0
  47. package/lib/sdk-nextjs/components/items/Item.js +175 -0
  48. package/{dist → lib}/sdk-nextjs/components/items/LinkWrapper.d.ts +1 -1
  49. package/lib/sdk-nextjs/components/items/LinkWrapper.js +27 -0
  50. package/lib/sdk-nextjs/components/items/RectangleItem/RectangleItem.js +130 -0
  51. package/lib/sdk-nextjs/components/items/RectangleItem/useRectangleItem.js +54 -0
  52. package/lib/sdk-nextjs/components/items/RichTextItem/RichTextItem.js +83 -0
  53. package/lib/sdk-nextjs/components/items/RichTextItem/useRichTextItem.js +12 -0
  54. package/lib/sdk-nextjs/components/items/RichTextWrapper.js +10 -0
  55. package/lib/sdk-nextjs/components/items/itemsMap.js +28 -0
  56. package/lib/sdk-nextjs/components/items/useDraggable.js +177 -0
  57. package/lib/sdk-nextjs/components/items/useItemAngle.js +10 -0
  58. package/lib/sdk-nextjs/components/items/useItemArea.js +21 -0
  59. package/lib/sdk-nextjs/components/items/useItemPointerEvents.js +23 -0
  60. package/lib/sdk-nextjs/components/items/useItemScale.js +12 -0
  61. package/lib/sdk-nextjs/components/items/useItemTriggers.js +16 -0
  62. package/lib/sdk-nextjs/components/items/useRichTextItemValues.js +38 -0
  63. package/lib/sdk-nextjs/components/items/useSizing.js +22 -0
  64. package/lib/sdk-nextjs/components/items/useStickyItemTop.js +17 -0
  65. package/lib/sdk-nextjs/components/useLayoutContext.js +9 -0
  66. package/{dist → lib}/sdk-nextjs/interactions/CSSPropertyNameMap.d.ts +2 -2
  67. package/lib/sdk-nextjs/interactions/CSSPropertyNameMap.js +38 -0
  68. package/lib/sdk-nextjs/interactions/InteractionsRegistry.js +355 -0
  69. package/lib/sdk-nextjs/interactions/ItemInteractionCtrl.js +72 -0
  70. package/lib/sdk-nextjs/interactions/getTransition.js +20 -0
  71. package/{dist → lib}/sdk-nextjs/interactions/types.d.ts +3 -3
  72. package/lib/sdk-nextjs/interactions/useItemInteractionCtrl.js +16 -0
  73. package/{dist → lib}/sdk-nextjs/provider/ArticleRectContext.d.ts +1 -1
  74. package/lib/sdk-nextjs/provider/ArticleRectContext.js +5 -0
  75. package/{dist → lib}/sdk-nextjs/provider/CntrlContext.d.ts +1 -1
  76. package/lib/sdk-nextjs/provider/CntrlContext.js +6 -0
  77. package/lib/sdk-nextjs/provider/CntrlProvider.js +10 -0
  78. package/lib/sdk-nextjs/provider/CntrlSdkContext.js +76 -0
  79. package/lib/sdk-nextjs/provider/CustomItemRegistry.js +16 -0
  80. package/{dist → lib}/sdk-nextjs/provider/CustomSectionRegistry.d.ts +1 -1
  81. package/lib/sdk-nextjs/provider/CustomSectionRegistry.js +21 -0
  82. package/{dist → lib}/sdk-nextjs/provider/InteractionsContext.d.ts +1 -1
  83. package/lib/sdk-nextjs/provider/InteractionsContext.js +52 -0
  84. package/{dist → lib}/sdk-nextjs/provider/Keyframes.d.ts +1 -1
  85. package/lib/sdk-nextjs/provider/Keyframes.js +12 -0
  86. package/lib/sdk-nextjs/provider/KeyframesContext.d.ts +2 -0
  87. package/lib/sdk-nextjs/provider/KeyframesContext.js +6 -0
  88. package/lib/sdk-nextjs/provider/LayoutContext.d.ts +1 -0
  89. package/lib/sdk-nextjs/provider/LayoutContext.js +5 -0
  90. package/{dist → lib}/sdk-nextjs/provider/WebGLContextManagerContext.d.ts +1 -1
  91. package/lib/sdk-nextjs/provider/WebGLContextManagerContext.js +6 -0
  92. package/lib/sdk-nextjs/provider/defaultContext.js +9 -0
  93. package/lib/sdk-nextjs/provider/useCntrlContext.js +9 -0
  94. package/lib/sdk-nextjs/utils/Animator/Animator.js +443 -0
  95. package/lib/sdk-nextjs/utils/ArticleRectManager/ArticleRectObserver.js +88 -0
  96. package/lib/sdk-nextjs/utils/ArticleRectManager/useArticleRectObserver.js +18 -0
  97. package/lib/sdk-nextjs/utils/ArticleRectManager/useSectionRegistry.js +14 -0
  98. package/lib/sdk-nextjs/utils/EventEmitter.js +37 -0
  99. package/lib/sdk-nextjs/utils/RichTextConverter/RichTextConverter.js +288 -0
  100. package/lib/sdk-nextjs/utils/ScaleAnchorMap.js +15 -0
  101. package/lib/sdk-nextjs/utils/Youtube/YouTubeIframeApiLoader.js +64 -0
  102. package/lib/sdk-nextjs/utils/Youtube/YoutubeIframeApi.js +12 -0
  103. package/lib/sdk-nextjs/utils/Youtube/useYouTubeIframeApi.js +13 -0
  104. package/lib/sdk-nextjs/utils/areFillsVisible/areFillsVisible.js +22 -0
  105. package/lib/sdk-nextjs/utils/binSearchInsertAt.js +35 -0
  106. package/lib/sdk-nextjs/utils/checkOverflowClipSupport.js +18 -0
  107. package/lib/sdk-nextjs/utils/effects/useImageFx.js +114 -0
  108. package/lib/sdk-nextjs/utils/effects/useVideoFx.js +117 -0
  109. package/lib/sdk-nextjs/utils/getAnchoredItemTop.js +14 -0
  110. package/lib/sdk-nextjs/utils/getCompoundBoundaryStyles.js +60 -0
  111. package/lib/sdk-nextjs/utils/getFill.js +42 -0
  112. package/lib/sdk-nextjs/utils/getFontFamilyValue.js +6 -0
  113. package/lib/sdk-nextjs/utils/getItemTopStyle.js +17 -0
  114. package/lib/sdk-nextjs/utils/getStyleFromItemStateAndParams.js +8 -0
  115. package/lib/sdk-nextjs/utils/getValidYoutubeUrl.js +33 -0
  116. package/lib/sdk-nextjs/utils/isItemType.js +6 -0
  117. package/lib/sdk-nextjs/utils/rangeMap.js +11 -0
  118. package/lib/sdk-nextjs/utils/useElementRect.js +24 -0
  119. package/lib/utils.js +30 -0
  120. package/package.json +3 -3
  121. package/dist/cli.js +0 -64
  122. package/dist/index.js +0 -7765
  123. package/dist/index.mjs +0 -7748
  124. package/dist/sdk/Client/Client.test.d.ts +0 -1
  125. package/dist/sdk/Client/__mock__/articleMock.d.ts +0 -2
  126. package/dist/sdk/Client/__mock__/keyframesMock.d.ts +0 -2
  127. package/dist/sdk/Client/__mock__/projectMock.d.ts +0 -2
  128. package/dist/sdk/Components/ControlSlider/ControlSlider.d.ts +0 -90
  129. package/dist/sdk/Components/ControlSlider/ControlSliderComponent.d.ts +0 -519
  130. package/dist/sdk/Components/ImageRevealSlider/ControlImageRevealSliderComponent.d.ts +0 -209
  131. package/dist/sdk/Components/ImageRevealSlider/ImageRevealSlider.d.ts +0 -38
  132. package/dist/sdk/Components/components.d.ts +0 -2
  133. package/dist/sdk/Components/helpers/RichTextRenderer/RichTextRenderer.d.ts +0 -6
  134. package/dist/sdk/Components/helpers/SvgImage/SvgImage.d.ts +0 -9
  135. package/dist/sdk/Components/utils/scalingValue.d.ts +0 -1
  136. package/dist/sdk/FontFaceGenerator/FontFaceGenerator.test.d.ts +0 -1
  137. package/dist/sdk/schemas/shared/FillLayer.schema.d.ts +0 -186
  138. package/dist/sdk-nextjs/components/LayoutStyle.d.ts +0 -9
  139. package/dist/sdk-nextjs/components/Section/useSectionColor.d.ts +0 -4
  140. package/dist/sdk-nextjs/provider/KeyframesContext.d.ts +0 -2
  141. package/dist/sdk-nextjs/provider/LayoutContext.d.ts +0 -1
  142. package/dist/sdk-nextjs/utils/StickyManager/StickyManager.d.ts +0 -10
  143. package/dist/sdk-nextjs/utils/areFillsVisible/areFillsVisible.test.d.ts +0 -1
  144. package/dist/sdk-nextjs/utils/castObject.d.ts +0 -5
  145. package/dist/sdk-nextjs/utils/getInvertedRanges.d.ts +0 -10
  146. package/dist/sdk.css +0 -1
  147. /package/{dist → lib}/cli.d.ts +0 -0
  148. /package/{dist → lib}/sdk/Client/Client.d.ts +0 -0
  149. /package/{dist → lib}/sdk/Client/Client.js +0 -0
  150. /package/{dist → lib}/sdk/FontFaceGenerator/FontFaceGenerator.d.ts +0 -0
  151. /package/{dist → lib}/sdk/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager.d.ts +0 -0
  152. /package/{dist → lib}/sdk/VideoDecoder/VideoDecoder.d.ts +0 -0
  153. /package/{dist → lib}/sdk/schemas/article/Article.schema.js +0 -0
  154. /package/{dist → lib}/sdk/schemas/article/FillLayer.schema.d.ts +0 -0
  155. /package/{dist → lib}/sdk/schemas/article/FillLayer.schema.js +0 -0
  156. /package/{dist → lib}/sdk/schemas/article/Interaction.schema.d.ts +0 -0
  157. /package/{dist → lib}/sdk/schemas/article/Interaction.schema.js +0 -0
  158. /package/{dist → lib}/sdk/schemas/article/Item.schema.d.ts +0 -0
  159. /package/{dist → lib}/sdk/schemas/article/Item.schema.js +0 -0
  160. /package/{dist → lib}/sdk/schemas/article/ItemArea.schema.d.ts +0 -0
  161. /package/{dist → lib}/sdk/schemas/article/ItemArea.schema.js +0 -0
  162. /package/{dist → lib}/sdk/schemas/article/ItemBase.schema.js +0 -0
  163. /package/{dist → lib}/sdk/schemas/article/ItemState.schema.d.ts +0 -0
  164. /package/{dist → lib}/sdk/schemas/article/ItemState.schema.js +0 -0
  165. /package/{dist → lib}/sdk/schemas/article/RichTextItem.schema.js +0 -0
  166. /package/{dist → lib}/sdk/schemas/article/Section.schema.js +0 -0
  167. /package/{dist → lib}/sdk/schemas/keyframe/Keyframes.schema.d.ts +0 -0
  168. /package/{dist → lib}/sdk/schemas/keyframe/Keyframes.schema.js +0 -0
  169. /package/{dist → lib}/sdk/schemas/project/Layout.schema.d.ts +0 -0
  170. /package/{dist → lib}/sdk/schemas/project/Layout.schema.js +0 -0
  171. /package/{dist → lib}/sdk/schemas/project/Project.schema.d.ts +0 -0
  172. /package/{dist → lib}/sdk/schemas/project/Project.schema.js +0 -0
  173. /package/{dist → lib}/sdk/types/article/Article.d.ts +0 -0
  174. /package/{dist/sdk/types/article/FX.js → lib/sdk/types/article/Article.js} +0 -0
  175. /package/{dist → lib}/sdk/types/article/ArticleItemType.d.ts +0 -0
  176. /package/{dist → lib}/sdk/types/article/ArticleItemType.js +0 -0
  177. /package/{dist → lib}/sdk/types/article/CompoundSettings.d.ts +0 -0
  178. /package/{dist/sdk/types/article/Interaction.js → lib/sdk/types/article/CompoundSettings.js} +0 -0
  179. /package/{dist → lib}/sdk/types/article/FX.d.ts +0 -0
  180. /package/{dist/sdk/types/project/Layout.js → lib/sdk/types/article/FX.js} +0 -0
  181. /package/{dist → lib}/sdk/types/article/Interaction.d.ts +0 -0
  182. /package/{dist/sdk/types/project/Meta.js → lib/sdk/types/article/Interaction.js} +0 -0
  183. /package/{dist → lib}/sdk/types/article/Item.d.ts +0 -0
  184. /package/{dist → lib}/sdk/types/article/Item.js +0 -0
  185. /package/{dist → lib}/sdk/types/article/ItemArea.d.ts +0 -0
  186. /package/{dist → lib}/sdk/types/article/ItemArea.js +0 -0
  187. /package/{dist → lib}/sdk/types/article/ItemState.d.ts +0 -0
  188. /package/{dist → lib}/sdk/types/article/ItemState.js +0 -0
  189. /package/{dist → lib}/sdk/types/article/RichText.d.ts +0 -0
  190. /package/{dist → lib}/sdk/types/article/RichText.js +0 -0
  191. /package/{dist → lib}/sdk/types/article/Section.d.ts +0 -0
  192. /package/{dist → lib}/sdk/types/article/Section.js +0 -0
  193. /package/{dist/sdk/types/project/Page.js → lib/sdk/types/component/Component.js} +0 -0
  194. /package/{dist → lib}/sdk/types/keyframe/Keyframe.js +0 -0
  195. /package/{dist → lib}/sdk/types/project/Fonts.d.ts +0 -0
  196. /package/{dist → lib}/sdk/types/project/Fonts.js +0 -0
  197. /package/{dist → lib}/sdk/types/project/Layout.d.ts +0 -0
  198. /package/{dist/sdk/types/project/Project.js → lib/sdk/types/project/Layout.js} +0 -0
  199. /package/{dist → lib}/sdk/types/project/Meta.d.ts +0 -0
  200. /package/{dist → lib}/sdk/types/project/Page.d.ts +0 -0
  201. /package/{dist → lib}/sdk/types/project/Project.d.ts +0 -0
  202. /package/{dist → lib}/sdk-nextjs/common/useCurrentLayout.d.ts +0 -0
  203. /package/{dist → lib}/sdk-nextjs/common/useExemplary.d.ts +0 -0
  204. /package/{dist → lib}/sdk-nextjs/common/useItemFXData.d.ts +0 -0
  205. /package/{dist → lib}/sdk-nextjs/common/useKeyframeValue.d.ts +0 -0
  206. /package/{dist → lib}/sdk-nextjs/common/useRegisterResize.d.ts +0 -0
  207. /package/{dist → lib}/sdk-nextjs/components/Article.d.ts +0 -0
  208. /package/{dist → lib}/sdk-nextjs/components/ArticleWrapper.d.ts +0 -0
  209. /package/{dist → lib}/sdk-nextjs/components/Head.d.ts +0 -0
  210. /package/{dist → lib}/sdk-nextjs/components/Page.d.ts +0 -0
  211. /package/{dist → lib}/sdk-nextjs/components/Section/Section.d.ts +0 -0
  212. /package/{dist → lib}/sdk-nextjs/components/Section/SectionImage.d.ts +0 -0
  213. /package/{dist → lib}/sdk-nextjs/components/Section/SectionVideo.d.ts +0 -0
  214. /package/{dist → lib}/sdk-nextjs/components/Section/useSectionHeightMap.d.ts +0 -0
  215. /package/{dist → lib}/sdk-nextjs/components/items/CodeEmbedItem/CodeEmbedItem.d.ts +0 -0
  216. /package/{dist → lib}/sdk-nextjs/components/items/CodeEmbedItem/useCodeEmbedItem.d.ts +0 -0
  217. /package/{dist → lib}/sdk-nextjs/components/items/ComponentItem/ComponentItem.d.ts +0 -0
  218. /package/{dist → lib}/sdk-nextjs/components/items/ComponentItem/useComponentItem.d.ts +0 -0
  219. /package/{dist → lib}/sdk-nextjs/components/items/CompoundItem/CompoundChild.d.ts +0 -0
  220. /package/{dist → lib}/sdk-nextjs/components/items/CompoundItem/CompoundItem.d.ts +0 -0
  221. /package/{dist → lib}/sdk-nextjs/components/items/CompoundItem/useCompoundItem.d.ts +0 -0
  222. /package/{dist → lib}/sdk-nextjs/components/items/CustomItem/CustomItem.d.ts +0 -0
  223. /package/{dist → lib}/sdk-nextjs/components/items/EmbedVideoItem/YoutubeEmbed.d.ts +0 -0
  224. /package/{dist → lib}/sdk-nextjs/components/items/EmbedVideoItem/useEmbedVideoItem.d.ts +0 -0
  225. /package/{dist → lib}/sdk-nextjs/components/items/FileItem/ImageItem.d.ts +0 -0
  226. /package/{dist → lib}/sdk-nextjs/components/items/FileItem/VideoItem.d.ts +0 -0
  227. /package/{dist → lib}/sdk-nextjs/components/items/GroupItem/GroupItem.d.ts +0 -0
  228. /package/{dist → lib}/sdk-nextjs/components/items/GroupItem/useGroupItem.d.ts +0 -0
  229. /package/{dist → lib}/sdk-nextjs/components/items/Item.d.ts +0 -0
  230. /package/{dist → lib}/sdk-nextjs/components/items/RectangleItem/RectangleItem.d.ts +0 -0
  231. /package/{dist → lib}/sdk-nextjs/components/items/RectangleItem/useRectangleItem.d.ts +0 -0
  232. /package/{dist → lib}/sdk-nextjs/components/items/RichTextItem/RichTextItem.d.ts +0 -0
  233. /package/{dist → lib}/sdk-nextjs/components/items/RichTextItem/useRichTextItem.d.ts +0 -0
  234. /package/{dist → lib}/sdk-nextjs/components/items/RichTextWrapper.d.ts +0 -0
  235. /package/{dist → lib}/sdk-nextjs/components/items/itemsMap.d.ts +0 -0
  236. /package/{dist → lib}/sdk-nextjs/components/items/useDraggable.d.ts +0 -0
  237. /package/{dist → lib}/sdk-nextjs/components/items/useItemAngle.d.ts +0 -0
  238. /package/{dist → lib}/sdk-nextjs/components/items/useItemArea.d.ts +0 -0
  239. /package/{dist → lib}/sdk-nextjs/components/items/useItemPointerEvents.d.ts +0 -0
  240. /package/{dist → lib}/sdk-nextjs/components/items/useItemScale.d.ts +0 -0
  241. /package/{dist → lib}/sdk-nextjs/components/items/useItemTriggers.d.ts +0 -0
  242. /package/{dist → lib}/sdk-nextjs/components/items/useRichTextItemValues.d.ts +0 -0
  243. /package/{dist → lib}/sdk-nextjs/components/items/useSizing.d.ts +0 -0
  244. /package/{dist → lib}/sdk-nextjs/components/items/useStickyItemTop.d.ts +0 -0
  245. /package/{dist → lib}/sdk-nextjs/components/useLayoutContext.d.ts +0 -0
  246. /package/{dist → lib}/sdk-nextjs/interactions/InteractionsRegistry.d.ts +0 -0
  247. /package/{dist → lib}/sdk-nextjs/interactions/ItemInteractionCtrl.d.ts +0 -0
  248. /package/{dist → lib}/sdk-nextjs/interactions/getTransition.d.ts +0 -0
  249. /package/{dist/sdk/types/article/Article.js → lib/sdk-nextjs/interactions/types.js} +0 -0
  250. /package/{dist → lib}/sdk-nextjs/interactions/useItemInteractionCtrl.d.ts +0 -0
  251. /package/{dist → lib}/sdk-nextjs/provider/CntrlProvider.d.ts +0 -0
  252. /package/{dist → lib}/sdk-nextjs/provider/CntrlSdkContext.d.ts +0 -0
  253. /package/{dist → lib}/sdk-nextjs/provider/CustomItemRegistry.d.ts +0 -0
  254. /package/{dist → lib}/sdk-nextjs/provider/CustomItemTypes.d.ts +0 -0
  255. /package/{dist/sdk/types/article/CompoundSettings.js → lib/sdk-nextjs/provider/CustomItemTypes.js} +0 -0
  256. /package/{dist → lib}/sdk-nextjs/provider/defaultContext.d.ts +0 -0
  257. /package/{dist → lib}/sdk-nextjs/provider/useCntrlContext.d.ts +0 -0
  258. /package/{dist → lib}/sdk-nextjs/utils/Animator/Animator.d.ts +0 -0
  259. /package/{dist → lib}/sdk-nextjs/utils/ArticleRectManager/ArticleRectObserver.d.ts +0 -0
  260. /package/{dist → lib}/sdk-nextjs/utils/ArticleRectManager/useArticleRectObserver.d.ts +0 -0
  261. /package/{dist → lib}/sdk-nextjs/utils/ArticleRectManager/useSectionRegistry.d.ts +0 -0
  262. /package/{dist → lib}/sdk-nextjs/utils/EventEmitter.d.ts +0 -0
  263. /package/{dist → lib}/sdk-nextjs/utils/RichTextConverter/RichTextConverter.d.ts +0 -0
  264. /package/{dist → lib}/sdk-nextjs/utils/ScaleAnchorMap.d.ts +0 -0
  265. /package/{dist → lib}/sdk-nextjs/utils/Youtube/YouTubeIframeApiLoader.d.ts +0 -0
  266. /package/{dist → lib}/sdk-nextjs/utils/Youtube/YoutubeIframeApi.d.ts +0 -0
  267. /package/{dist → lib}/sdk-nextjs/utils/Youtube/useYouTubeIframeApi.d.ts +0 -0
  268. /package/{dist → lib}/sdk-nextjs/utils/areFillsVisible/areFillsVisible.d.ts +0 -0
  269. /package/{dist → lib}/sdk-nextjs/utils/binSearchInsertAt.d.ts +0 -0
  270. /package/{dist → lib}/sdk-nextjs/utils/checkOverflowClipSupport.d.ts +0 -0
  271. /package/{dist → lib}/sdk-nextjs/utils/effects/useImageFx.d.ts +0 -0
  272. /package/{dist → lib}/sdk-nextjs/utils/effects/useVideoFx.d.ts +0 -0
  273. /package/{dist → lib}/sdk-nextjs/utils/getAnchoredItemTop.d.ts +0 -0
  274. /package/{dist → lib}/sdk-nextjs/utils/getCompoundBoundaryStyles.d.ts +0 -0
  275. /package/{dist → lib}/sdk-nextjs/utils/getFill.d.ts +0 -0
  276. /package/{dist → lib}/sdk-nextjs/utils/getFontFamilyValue.d.ts +0 -0
  277. /package/{dist → lib}/sdk-nextjs/utils/getItemTopStyle.d.ts +0 -0
  278. /package/{dist → lib}/sdk-nextjs/utils/getStyleFromItemStateAndParams.d.ts +0 -0
  279. /package/{dist → lib}/sdk-nextjs/utils/getValidYoutubeUrl.d.ts +0 -0
  280. /package/{dist → lib}/sdk-nextjs/utils/isItemType.d.ts +0 -0
  281. /package/{dist → lib}/sdk-nextjs/utils/rangeMap.d.ts +0 -0
  282. /package/{dist → lib}/sdk-nextjs/utils/useElementRect.d.ts +0 -0
  283. /package/{dist → lib}/utils.d.ts +0 -0
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { Article } from '../../types/article/Article';
2
- export declare const articleMock: Article;
@@ -1,2 +0,0 @@
1
- import { KeyframeAny } from '../../types/keyframe/Keyframe';
2
- export declare const keyframesMock: KeyframeAny[];
@@ -1,2 +0,0 @@
1
- import { Project } from '../../types/project/Project';
2
- export declare const projectMock: Project;
@@ -1,90 +0,0 @@
1
- interface SliderProps {
2
- settings: SliderSettings;
3
- content: SliderItem[];
4
- styles: SliderStyles;
5
- isEditor?: boolean;
6
- }
7
- export declare function ControlSlider({ settings, content, styles: sliderStyles, isEditor }: SliderProps): JSX.Element;
8
- type SliderItem = {
9
- image: {
10
- url: string;
11
- name?: string;
12
- objectFit?: 'cover' | 'contain';
13
- };
14
- imageCaption: any[];
15
- };
16
- type Offset = {
17
- x: number;
18
- y: number;
19
- };
20
- type SliderControls = {
21
- arrowsImgUrl: string | null;
22
- isActive: boolean;
23
- color: string;
24
- hover: string;
25
- offset: Offset;
26
- scale: number;
27
- };
28
- type SliderPagination = {
29
- position: 'outside-1' | 'outside-2' | 'inside-1' | 'inside-2';
30
- isActive: boolean;
31
- scale: number;
32
- offset: Offset;
33
- colors: string[];
34
- hover: string;
35
- };
36
- type Alignment = 'top-left' | 'top-center' | 'top-right' | 'middle-left' | 'middle-center' | 'middle-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
37
- type SliderCaption = {
38
- alignment: Alignment;
39
- isActive: boolean;
40
- color: string;
41
- offset: Offset;
42
- hover: string;
43
- };
44
- type Triggers = {
45
- triggersList: {
46
- click: boolean;
47
- drag: boolean;
48
- };
49
- autoPlay: string | null;
50
- };
51
- type SliderSettings = {
52
- controls: SliderControls;
53
- pagination: SliderPagination;
54
- direction: 'horiz' | 'vert';
55
- transition: {
56
- type: 'slide' | 'fade in';
57
- duration: string;
58
- backgroundColor: string | null;
59
- };
60
- caption: SliderCaption;
61
- triggers: Triggers;
62
- };
63
- type CaptionStyles = {
64
- fontSettings: {
65
- fontFamily: string;
66
- fontWeight: number;
67
- fontStyle: string;
68
- };
69
- widthSettings: {
70
- width: number;
71
- sizing: 'auto' | 'manual';
72
- };
73
- letterSpacing: number;
74
- textAlign: 'left' | 'center' | 'right';
75
- wordSpacing: number;
76
- fontSizeLineHeight: {
77
- fontSize: number;
78
- lineHeight: number;
79
- };
80
- textAppearance: {
81
- textTransform: 'none' | 'uppercase' | 'lowercase';
82
- textDecoration: 'none' | 'underline';
83
- fontVariant: 'normal' | 'small-caps';
84
- };
85
- color: string;
86
- };
87
- type SliderStyles = {
88
- caption: CaptionStyles;
89
- };
90
- export {};
@@ -1,519 +0,0 @@
1
- import { ControlSlider } from './ControlSlider';
2
- export declare const ControlSliderComponent: {
3
- element: typeof ControlSlider;
4
- id: string;
5
- name: string;
6
- preview: {
7
- type: "video";
8
- url: string;
9
- };
10
- defaultSize: {
11
- width: number;
12
- height: number;
13
- };
14
- schema: {
15
- type: string;
16
- properties: {
17
- settings: {
18
- layoutBased: boolean;
19
- type: string;
20
- properties: {
21
- triggers: {
22
- name: string;
23
- icon: string;
24
- tooltip: string;
25
- type: string;
26
- properties: {
27
- triggersList: {
28
- type: string;
29
- display: {
30
- type: string;
31
- };
32
- properties: {
33
- click: {
34
- type: string;
35
- };
36
- drag: {
37
- type: string;
38
- };
39
- };
40
- };
41
- autoPlay: {
42
- type: string[];
43
- label: string;
44
- display: {
45
- type: string;
46
- };
47
- enum: (string | null)[];
48
- };
49
- };
50
- };
51
- direction: {
52
- name: string;
53
- icon: string;
54
- tooltip: string;
55
- type: string;
56
- display: {
57
- type: string;
58
- };
59
- enum: string[];
60
- };
61
- transition: {
62
- name: string;
63
- icon: string;
64
- tooltip: string;
65
- type: string;
66
- properties: {
67
- type: {
68
- type: string;
69
- display: {
70
- type: string;
71
- };
72
- enum: string[];
73
- };
74
- backgroundColor: {
75
- type: string[];
76
- name: string;
77
- display: {
78
- visible: boolean;
79
- type: string;
80
- format: string;
81
- };
82
- };
83
- duration: {
84
- type: string;
85
- label: string;
86
- display: {
87
- type: string;
88
- };
89
- enum: string[];
90
- };
91
- };
92
- };
93
- controls: {
94
- name: string;
95
- icon: string;
96
- tooltip: string;
97
- type: string;
98
- properties: {
99
- isActive: {
100
- type: string;
101
- display: {
102
- type: string;
103
- };
104
- };
105
- arrowsImgUrl: {
106
- type: string[];
107
- display: {
108
- type: string;
109
- };
110
- };
111
- offset: {
112
- type: string;
113
- display: {
114
- type: string;
115
- };
116
- properties: {
117
- x: {
118
- type: string;
119
- };
120
- y: {
121
- type: string;
122
- };
123
- };
124
- };
125
- scale: {
126
- type: string;
127
- name: string;
128
- min: number;
129
- max: number;
130
- display: {
131
- type: string;
132
- };
133
- };
134
- color: {
135
- name: string;
136
- type: string;
137
- display: {
138
- type: string;
139
- format: string;
140
- };
141
- };
142
- hover: {
143
- name: string;
144
- type: string;
145
- display: {
146
- type: string;
147
- format: string;
148
- };
149
- };
150
- };
151
- };
152
- pagination: {
153
- name: string;
154
- icon: string;
155
- tooltip: string;
156
- type: string;
157
- properties: {
158
- isActive: {
159
- type: string;
160
- display: {
161
- type: string;
162
- };
163
- };
164
- position: {
165
- name: string;
166
- display: {
167
- type: string;
168
- direction: string;
169
- };
170
- type: string;
171
- enum: string[];
172
- };
173
- offset: {
174
- type: string;
175
- display: {
176
- type: string;
177
- };
178
- properties: {
179
- x: {
180
- type: string;
181
- };
182
- y: {
183
- type: string;
184
- };
185
- };
186
- };
187
- scale: {
188
- type: string;
189
- name: string;
190
- min: number;
191
- max: number;
192
- display: {
193
- type: string;
194
- };
195
- };
196
- colors: {
197
- display: {
198
- type: string;
199
- format: string;
200
- };
201
- name: string;
202
- type: string;
203
- items: {
204
- type: string;
205
- };
206
- };
207
- hover: {
208
- name: string;
209
- type: string;
210
- display: {
211
- type: string;
212
- format: string;
213
- };
214
- };
215
- };
216
- };
217
- caption: {
218
- name: string;
219
- icon: string;
220
- tooltip: string;
221
- type: string;
222
- properties: {
223
- isActive: {
224
- type: string;
225
- display: {
226
- type: string;
227
- };
228
- };
229
- alignment: {
230
- name: string;
231
- type: string;
232
- display: {
233
- type: string;
234
- };
235
- enum: string[];
236
- };
237
- offset: {
238
- type: string;
239
- display: {
240
- type: string;
241
- };
242
- properties: {
243
- x: {
244
- type: string;
245
- };
246
- y: {
247
- type: string;
248
- };
249
- };
250
- };
251
- hover: {
252
- name: string;
253
- type: string;
254
- display: {
255
- type: string;
256
- format: string;
257
- };
258
- };
259
- };
260
- };
261
- };
262
- default: {
263
- triggers: {
264
- triggersList: {
265
- click: boolean;
266
- drag: boolean;
267
- };
268
- autoPlay: null;
269
- };
270
- controls: {
271
- isActive: boolean;
272
- arrowsImgUrl: null;
273
- offset: {
274
- x: number;
275
- y: number;
276
- };
277
- scale: number;
278
- color: string;
279
- hover: string;
280
- };
281
- transition: {
282
- type: string;
283
- duration: string;
284
- backgroundColor: null;
285
- };
286
- pagination: {
287
- isActive: boolean;
288
- scale: number;
289
- position: string;
290
- offset: {
291
- x: number;
292
- y: number;
293
- };
294
- colors: string[];
295
- hover: string;
296
- };
297
- direction: string;
298
- caption: {
299
- offset: {
300
- x: number;
301
- y: number;
302
- };
303
- isActive: boolean;
304
- alignment: string;
305
- hover: string;
306
- };
307
- };
308
- displayRules: ({
309
- if: {
310
- name: string;
311
- value: string;
312
- };
313
- then: {
314
- name: string;
315
- value: string;
316
- };
317
- } | {
318
- if: {
319
- name: string;
320
- value: string;
321
- };
322
- then: {
323
- name: string;
324
- value: boolean;
325
- };
326
- })[];
327
- };
328
- content: {
329
- layoutBased: boolean;
330
- type: string;
331
- items: {
332
- type: string;
333
- properties: {
334
- image: {
335
- type: string;
336
- display: {
337
- type: string;
338
- };
339
- properties: {
340
- url: {
341
- type: string;
342
- };
343
- name: {
344
- type: string;
345
- };
346
- objectFit: {
347
- type: string;
348
- enum: string[];
349
- };
350
- };
351
- required: string[];
352
- };
353
- imageCaption: {
354
- display: {
355
- type: string;
356
- placeholder: string;
357
- };
358
- };
359
- link: {
360
- type: string;
361
- display: {
362
- type: string;
363
- placeholder: string;
364
- };
365
- properties: {
366
- text: {
367
- type: string;
368
- };
369
- };
370
- };
371
- };
372
- required: string[];
373
- };
374
- default: {
375
- image: {
376
- objectFit: string;
377
- url: string;
378
- name: string;
379
- };
380
- imageCaption: {
381
- type: string;
382
- children: {
383
- text: string;
384
- }[];
385
- }[];
386
- }[];
387
- };
388
- styles: {
389
- layoutBased: boolean;
390
- type: string;
391
- properties: {
392
- caption: {
393
- dataName: string;
394
- type: string;
395
- properties: {
396
- fontSettings: {
397
- type: string;
398
- display: {
399
- type: string;
400
- };
401
- properties: {
402
- fontFamily: {
403
- type: string;
404
- };
405
- fontWeight: {
406
- type: string;
407
- };
408
- fontStyle: {
409
- type: string;
410
- };
411
- };
412
- };
413
- widthSettings: {
414
- display: {
415
- type: string;
416
- };
417
- type: string;
418
- properties: {
419
- width: {
420
- type: string;
421
- };
422
- sizing: {
423
- type: string;
424
- enum: string[];
425
- };
426
- };
427
- };
428
- fontSizeLineHeight: {
429
- type: string;
430
- display: {
431
- type: string;
432
- };
433
- properties: {
434
- fontSize: {
435
- type: string;
436
- };
437
- lineHeight: {
438
- type: string;
439
- };
440
- };
441
- };
442
- letterSpacing: {
443
- display: {
444
- type: string;
445
- };
446
- type: string;
447
- };
448
- wordSpacing: {
449
- display: {
450
- type: string;
451
- };
452
- type: string;
453
- };
454
- textAlign: {
455
- display: {
456
- type: string;
457
- };
458
- type: string;
459
- enum: string[];
460
- };
461
- textAppearance: {
462
- display: {
463
- type: string;
464
- };
465
- properties: {
466
- textTransform: {
467
- type: string;
468
- enum: string[];
469
- };
470
- textDecoration: {
471
- type: string;
472
- enum: string[];
473
- };
474
- fontVariant: {
475
- type: string;
476
- enum: string[];
477
- };
478
- };
479
- };
480
- color: {
481
- display: {
482
- type: string;
483
- };
484
- type: string;
485
- };
486
- };
487
- };
488
- };
489
- default: {
490
- caption: {
491
- widthSettings: {
492
- width: number;
493
- sizing: string;
494
- };
495
- fontSettings: {
496
- fontFamily: string;
497
- fontWeight: number;
498
- fontStyle: string;
499
- };
500
- fontSizeLineHeight: {
501
- fontSize: number;
502
- lineHeight: number;
503
- };
504
- letterSpacing: number;
505
- wordSpacing: number;
506
- textAlign: string;
507
- textAppearance: {
508
- textTransform: string;
509
- textDecoration: string;
510
- fontVariant: string;
511
- };
512
- color: string;
513
- };
514
- };
515
- };
516
- };
517
- required: string[];
518
- };
519
- };