@griddo/core 1.75.132 → 1.75.134

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.
@@ -17,7 +17,7 @@ import "./styles.css";
17
17
  * quality={75}
18
18
  * />
19
19
  */
20
- declare const GriddoImage: React.ForwardRefExoticComponent<(Pick<GriddoImageJpgWebpAvif, "fixed" | "slot" | "style" | "title" | "children" | "color" | "lang" | "url" | "id" | "is" | "key" | "referrerPolicy" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "crop" | "responsive" | "decoding" | "format" | "height" | "loading" | "quality" | "width" | "useMap" | "alt" | "ratio" | "formats" | "position" | "transforms" | "crossOrigin" | "fetchpriority"> | Pick<GriddoImageGif, "fixed" | "slot" | "style" | "title" | "children" | "color" | "lang" | "url" | "id" | "is" | "key" | "referrerPolicy" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "crop" | "responsive" | "decoding" | "format" | "height" | "loading" | "quality" | "width" | "useMap" | "alt" | "ratio" | "formats" | "position" | "transforms" | "crossOrigin" | "fetchpriority"> | Pick<GriddoImageSvg, "fixed" | "slot" | "style" | "title" | "children" | "color" | "lang" | "url" | "id" | "is" | "key" | "referrerPolicy" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "crop" | "responsive" | "decoding" | "format" | "height" | "loading" | "quality" | "width" | "useMap" | "alt" | "ratio" | "formats" | "position" | "transforms" | "crossOrigin" | "fetchpriority">) & React.RefAttributes<HTMLPictureElement>>;
20
+ declare const GriddoImage: React.ForwardRefExoticComponent<(Pick<GriddoImageJpgWebpAvif, "fixed" | "slot" | "style" | "title" | "children" | "color" | "lang" | "id" | "key" | "referrerPolicy" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "url" | "crop" | "responsive" | "decoding" | "format" | "height" | "loading" | "quality" | "width" | "useMap" | "alt" | "ratio" | "formats" | "position" | "transforms" | "crossOrigin" | "fetchpriority"> | Pick<GriddoImageGif, "fixed" | "slot" | "style" | "title" | "children" | "color" | "lang" | "id" | "key" | "referrerPolicy" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "url" | "crop" | "responsive" | "decoding" | "format" | "height" | "loading" | "quality" | "width" | "useMap" | "alt" | "ratio" | "formats" | "position" | "transforms" | "crossOrigin" | "fetchpriority"> | Pick<GriddoImageSvg, "fixed" | "slot" | "style" | "title" | "children" | "color" | "lang" | "id" | "key" | "referrerPolicy" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "url" | "crop" | "responsive" | "decoding" | "format" | "height" | "loading" | "quality" | "width" | "useMap" | "alt" | "ratio" | "formats" | "position" | "transforms" | "crossOrigin" | "fetchpriority">) & React.RefAttributes<HTMLPictureElement>>;
21
21
  interface GriddoImageCommonProps extends Omit<React.ComponentPropsWithRef<"img">, "src" | "srcSet" | "sizes" | "width" | "height"> {
22
22
  crop?: ImageCropType;
23
23
  fetchpriority?: FetchPriority;
@@ -14,5 +14,5 @@ declare const createModuleCategoriesSchema: (schema: ModuleCategories) => Module
14
14
  declare const createModuleSchema: (schema: Module) => Module<unknown, unknown>;
15
15
  declare const createTemplateSchema: (schema: Template) => Template<unknown>;
16
16
  declare const createThemesSchema: (schema: Themes) => Themes;
17
- declare const createTranslationsSchema: (schema: Translations) => Partial<Record<"br" | "hr" | "li" | "th" | "tr" | "or" | "Cy_az_AZ" | "Cy_sr_SP" | "Cy_uz_UZ" | "Lt_az_AZ" | "Lt_sr_SP" | "Lt_uz_UZ" | "aa" | "ab" | "ae" | "af" | "af_ZA" | "ak" | "am" | "an" | "ar" | "ar_AE" | "ar_BH" | "ar_DZ" | "ar_EG" | "ar_IQ" | "ar_JO" | "ar_KW" | "ar_LB" | "ar_LY" | "ar_MA" | "ar_OM" | "ar_QA" | "ar_SA" | "ar_SY" | "ar_TN" | "ar_YE" | "as" | "av" | "ay" | "az" | "ba" | "be" | "be_BY" | "bg" | "bg_BG" | "bh" | "bi" | "bm" | "bn" | "bo" | "bs" | "ca" | "ca_ES" | "ce" | "ch" | "co" | "cr" | "cs" | "cs_CZ" | "cu" | "cv" | "cy" | "da" | "da_DK" | "de" | "de_AT" | "de_CH" | "de_DE" | "de_LI" | "de_LU" | "div_MV" | "dv" | "dz" | "ee" | "el" | "el_GR" | "en" | "en_AU" | "en_BZ" | "en_CA" | "en_CB" | "en_GB" | "en_IE" | "en_JM" | "en_NZ" | "en_PH" | "en_TT" | "en_US" | "en_ZA" | "en_ZW" | "eo" | "es" | "es_AR" | "es_BO" | "es_CL" | "es_CO" | "es_CR" | "es_DO" | "es_EC" | "es_ES" | "es_GT" | "es_HN" | "es_MX" | "es_NI" | "es_PA" | "es_PE" | "es_PR" | "es_PY" | "es_SV" | "es_UY" | "es_VE" | "et" | "et_EE" | "eu" | "eu_ES" | "fa" | "fa_IR" | "ff" | "fi" | "fi_FI" | "fj" | "fo" | "fo_FO" | "fr" | "fr_BE" | "fr_CA" | "fr_CH" | "fr_FR" | "fr_LU" | "fr_MC" | "fy" | "ga" | "gd" | "gl" | "gl_ES" | "gn" | "gu" | "gu_IN" | "gv" | "ha" | "he" | "he_IL" | "hi" | "hi_IN" | "ho" | "hr_HR" | "ht" | "hu" | "hu_HU" | "hy" | "hy_AM" | "hz" | "ia" | "id" | "id_ID" | "ie" | "ig" | "ii" | "ik" | "io" | "is" | "is_IS" | "it" | "it_CH" | "it_IT" | "iu" | "ja" | "ja_JP" | "jv" | "ka" | "ka_GE" | "kg" | "ki" | "kj" | "kk" | "kk_KZ" | "kl" | "km" | "kn" | "kn_IN" | "ko" | "ko_KR" | "kr" | "ks" | "ku" | "kv" | "kw" | "ky" | "ky_KZ" | "la" | "lb" | "lg" | "ln" | "lo" | "lt" | "lt_LT" | "lu" | "lv" | "lv_LV" | "mg" | "mh" | "mi" | "mk" | "mk_MK" | "ml" | "mn" | "mn_MN" | "mr" | "mr_IN" | "ms" | "ms_BN" | "ms_MY" | "mt" | "my" | "na" | "nb" | "nb_NO" | "nd" | "ne" | "ng" | "nl" | "nl_BE" | "nl_NL" | "nn" | "nn_NO" | "no" | "nr" | "nv" | "ny" | "oc" | "oj" | "om" | "os" | "pa" | "pa_IN" | "pi" | "pl" | "pl_PL" | "ps" | "pt" | "pt_BR" | "pt_PT" | "qu" | "rm" | "rn" | "ro" | "ro_RO" | "ru" | "ru_RU" | "rw" | "sa" | "sa_IN" | "sc" | "sd" | "se" | "sg" | "si" | "sk" | "sk_SK" | "sl" | "sl_SI" | "sm" | "sn" | "so" | "sq" | "sq_AL" | "sr" | "ss" | "st" | "su" | "sv" | "sv_FI" | "sv_SE" | "sw" | "sw_KE" | "ta" | "ta_IN" | "te" | "te_IN" | "tg" | "th_TH" | "ti" | "tk" | "tl" | "tn" | "to" | "tr_TR" | "ts" | "tt" | "tt_RU" | "tw" | "ty" | "ug" | "uk" | "uk_UA" | "ur" | "ur_PK" | "uz" | "ve" | "vi" | "vi_VN" | "vo" | "wa" | "wo" | "xh" | "yi" | "yo" | "za" | "zh" | "zh_CHS" | "zh_CHT" | "zh_CN" | "zh_HK" | "zh_MO" | "zh_SG" | "zh_TW" | "zu", Record<string, unknown>>>;
17
+ declare const createTranslationsSchema: (schema: Translations) => Partial<Record<"br" | "hr" | "li" | "th" | "tr" | "or" | "id" | "is" | "Cy_az_AZ" | "Cy_sr_SP" | "Cy_uz_UZ" | "Lt_az_AZ" | "Lt_sr_SP" | "Lt_uz_UZ" | "aa" | "ab" | "ae" | "af" | "af_ZA" | "ak" | "am" | "an" | "ar" | "ar_AE" | "ar_BH" | "ar_DZ" | "ar_EG" | "ar_IQ" | "ar_JO" | "ar_KW" | "ar_LB" | "ar_LY" | "ar_MA" | "ar_OM" | "ar_QA" | "ar_SA" | "ar_SY" | "ar_TN" | "ar_YE" | "as" | "av" | "ay" | "az" | "ba" | "be" | "be_BY" | "bg" | "bg_BG" | "bh" | "bi" | "bm" | "bn" | "bo" | "bs" | "ca" | "ca_ES" | "ce" | "ch" | "co" | "cr" | "cs" | "cs_CZ" | "cu" | "cv" | "cy" | "da" | "da_DK" | "de" | "de_AT" | "de_CH" | "de_DE" | "de_LI" | "de_LU" | "div_MV" | "dv" | "dz" | "ee" | "el" | "el_GR" | "en" | "en_AU" | "en_BZ" | "en_CA" | "en_CB" | "en_GB" | "en_IE" | "en_JM" | "en_NZ" | "en_PH" | "en_TT" | "en_US" | "en_ZA" | "en_ZW" | "eo" | "es" | "es_AR" | "es_BO" | "es_CL" | "es_CO" | "es_CR" | "es_DO" | "es_EC" | "es_ES" | "es_GT" | "es_HN" | "es_MX" | "es_NI" | "es_PA" | "es_PE" | "es_PR" | "es_PY" | "es_SV" | "es_UY" | "es_VE" | "et" | "et_EE" | "eu" | "eu_ES" | "fa" | "fa_IR" | "ff" | "fi" | "fi_FI" | "fj" | "fo" | "fo_FO" | "fr" | "fr_BE" | "fr_CA" | "fr_CH" | "fr_FR" | "fr_LU" | "fr_MC" | "fy" | "ga" | "gd" | "gl" | "gl_ES" | "gn" | "gu" | "gu_IN" | "gv" | "ha" | "he" | "he_IL" | "hi" | "hi_IN" | "ho" | "hr_HR" | "ht" | "hu" | "hu_HU" | "hy" | "hy_AM" | "hz" | "ia" | "id_ID" | "ie" | "ig" | "ii" | "ik" | "io" | "is_IS" | "it" | "it_CH" | "it_IT" | "iu" | "ja" | "ja_JP" | "jv" | "ka" | "ka_GE" | "kg" | "ki" | "kj" | "kk" | "kk_KZ" | "kl" | "km" | "kn" | "kn_IN" | "ko" | "ko_KR" | "kr" | "ks" | "ku" | "kv" | "kw" | "ky" | "ky_KZ" | "la" | "lb" | "lg" | "ln" | "lo" | "lt" | "lt_LT" | "lu" | "lv" | "lv_LV" | "mg" | "mh" | "mi" | "mk" | "mk_MK" | "ml" | "mn" | "mn_MN" | "mr" | "mr_IN" | "ms" | "ms_BN" | "ms_MY" | "mt" | "my" | "na" | "nb" | "nb_NO" | "nd" | "ne" | "ng" | "nl" | "nl_BE" | "nl_NL" | "nn" | "nn_NO" | "no" | "nr" | "nv" | "ny" | "oc" | "oj" | "om" | "os" | "pa" | "pa_IN" | "pi" | "pl" | "pl_PL" | "ps" | "pt" | "pt_BR" | "pt_PT" | "qu" | "rm" | "rn" | "ro" | "ro_RO" | "ru" | "ru_RU" | "rw" | "sa" | "sa_IN" | "sc" | "sd" | "se" | "sg" | "si" | "sk" | "sk_SK" | "sl" | "sl_SI" | "sm" | "sn" | "so" | "sq" | "sq_AL" | "sr" | "ss" | "st" | "su" | "sv" | "sv_FI" | "sv_SE" | "sw" | "sw_KE" | "ta" | "ta_IN" | "te" | "te_IN" | "tg" | "th_TH" | "ti" | "tk" | "tl" | "tn" | "to" | "tr_TR" | "ts" | "tt" | "tt_RU" | "tw" | "ty" | "ug" | "uk" | "uk_UA" | "ur" | "ur_PK" | "uz" | "ve" | "vi" | "vi_VN" | "vo" | "wa" | "wo" | "xh" | "yi" | "yo" | "za" | "zh" | "zh_CHS" | "zh_CHT" | "zh_CN" | "zh_HK" | "zh_MO" | "zh_SG" | "zh_TW" | "zu", Record<string, unknown>>>;
18
18
  export { createCategoryContentTypeSchema, createComponentSchema, createDamDefaultsSchema, createDataPackCategorySchema, createDataPackSchema, createFooterSchema, createHeaderSchema, createLanguagesSchema, createMenuSchema, createModuleCategoriesSchema, createModuleSchema, createPageContentTypeSchema, createSimpleContentTypeSchema, createTemplateSchema, createThemesSchema, createTranslationsSchema, };
@@ -1,3 +1,18 @@
1
+ export interface GetLinkProps {
2
+ href?: string;
3
+ linkToURL?: string;
4
+ }
5
+ export interface RecursiveSearchProps {
6
+ obj?: Record<string, string>;
7
+ searchKey?: string;
8
+ resultsBuffer?: Array<string>;
9
+ unique?: boolean;
10
+ }
11
+ export declare type PublicApiOperators = "or" | "and" | "OR" | "AND";
12
+ export interface ConcatParams {
13
+ baseUrl: string;
14
+ params: Record<string, any>;
15
+ }
1
16
  declare function getLinks(url?: GetLinkProps): {
2
17
  href: string | null | undefined;
3
18
  to: string | null | undefined;
@@ -33,36 +48,4 @@ declare function recursiveSearch({ obj, searchKey, resultsBuffer, unique, }?: Re
33
48
  * @returns {string} a string with the params concatenated
34
49
  */
35
50
  declare function concatParams({ baseUrl, params }: ConcatParams): string;
36
- /**
37
- * slicePageArray
38
- * Extrae un rango de elementos de un array indicando el número de elementos y
39
- * usando el concepto "página" como índice.
40
- * @param {object} props Un objeto con las props
41
- * @param {array} props.array Array de datos.
42
- * @param {number} props.page Índice desde el que extraer los elementos.
43
- * @param {number} props.itemsPerPage Número de elementos que extraerá del array.
44
- * @return {array} Array con los elementos extraidos
45
- * @example
46
- * Extrae la página 2 usando 3 elementos por página
47
- * slicePageArray({
48
- * data: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
49
- * page: 2,
50
- * itemsPerPage: 3
51
- * })
52
- * -> [3, 4, 5]
53
- */
54
- interface GetLinkProps {
55
- href?: string;
56
- linkToURL?: string;
57
- }
58
- interface RecursiveSearchProps {
59
- obj?: Record<string, string>;
60
- searchKey?: string;
61
- resultsBuffer?: Array<string>;
62
- unique?: boolean;
63
- }
64
- interface ConcatParams {
65
- baseUrl: string;
66
- params: Record<string, any>;
67
- }
68
51
  export { getLinks, parseAnchor, getToken, getSiteID, getLang, recursiveSearch, concatParams, };
@@ -5,6 +5,7 @@ import { useThemeFont } from "./themes/useThemeFont";
5
5
  import { useThemePrimitives } from "./themes/useThemePrimitives";
6
6
  import { useContentType } from "./useContentType";
7
7
  import { useDataFilters } from "./useDataFilters";
8
+ import { useFetch } from "./useFetch";
8
9
  import { useGriddoImage } from "./useGriddoImage";
9
10
  import { useI18n } from "./useI18n";
10
11
  import { useImage } from "./useImage";
@@ -12,6 +13,7 @@ import { useIsClient } from "./useIsClient";
12
13
  import { useIsFirstRender } from "./useIsFirstRender";
13
14
  import { useLink } from "./useLink";
14
15
  import { useList } from "./useList";
16
+ import { useListWithDefaultStaticPage } from "./useListWithDefaultStaticPage";
15
17
  import { useNavigation } from "./useNavigation";
16
18
  import { usePage } from "./usePage";
17
19
  import { useReferenceFieldData } from "./useReferenceFieldData";
@@ -20,4 +22,4 @@ import { useSession } from "./useSession";
20
22
  import { useSite } from "./useSite";
21
23
  import { useSitemap } from "./useSitemap";
22
24
  import { useSSR } from "./useSSR";
23
- export { useContentType, useDataFilters, useGlobalTheme, useGriddoImage, useI18n, useImage, useIsClient, useIsFirstRender, useLink, useList, useNavigation, usePage, useReferenceFieldData as useDistributorData, useReferenceFieldData, useScript, useSession, useSite, useSitemap, useSSR, useTheme, useThemeColors, useThemeFont, useThemePrimitives, };
25
+ export { useContentType, useDataFilters, useFetch, useGlobalTheme, useGriddoImage, useI18n, useImage, useIsClient, useIsFirstRender, useLink, useList, useNavigation, usePage, useReferenceFieldData as useDistributorData, useReferenceFieldData, useScript, useSession, useSite, useSitemap, useSSR, useTheme, useThemeColors, useThemeFont, useThemePrimitives, useListWithDefaultStaticPage, };
@@ -1,4 +1,5 @@
1
- import { SetQueryProps } from "../types/global";
1
+ import { FiltersDataApiQueryResponseProps, PickRename, SetQueryProps } from "../types/global";
2
+ import { UseFetchStateProps } from "./useFetch";
2
3
  /**
3
4
  * `useDataFilters()`
4
5
  *
@@ -9,28 +10,13 @@ import { SetQueryProps } from "../types/global";
9
10
  * setQuery(data) // `data` from a `ReferenceField`
10
11
  */
11
12
  declare function useDataFilters<ContentType>(): UseDataFiltersReturn<ContentType>;
12
- export declare type UseDataFiltersSetQueryProps<ContentType> = Pick<SetQueryProps<ContentType>, "data" | "apiUrl" | "lang" | "site" | "cached">;
13
- export declare type UseDataFiltersItem<Item> = Omit<Item, "contentTypeName"> & {
14
- id: number;
15
- };
16
13
  export interface UseDataFilterSetUrlAction {
17
14
  queryUrl: string;
18
15
  }
16
+ export declare type UseDataFiltersSetQueryProps<ContentType> = Pick<SetQueryProps<ContentType>, "data" | "apiUrl" | "lang" | "site" | "cached">;
17
+ export declare type UseDataFiltersState<ContentType> = PickRename<UseFetchStateProps<FiltersDataApiQueryResponseProps<ContentType>>, "data", "query">;
19
18
  export declare type UseDataFiltersReturn<ContentType> = [
20
19
  UseDataFiltersState<ContentType>,
21
- (setQuery: UseDataFiltersSetQueryProps<ContentType>) => void | null
20
+ (setQuery: UseDataFiltersSetQueryProps<ContentType>) => void
22
21
  ];
23
- export declare type UseDataFiltersState<Item> = {
24
- isError: boolean;
25
- isLoading: boolean;
26
- msg: {
27
- code: number;
28
- msg: string;
29
- };
30
- query?: {
31
- page: number;
32
- totalItems: number;
33
- items: Array<UseDataFiltersItem<Item>>;
34
- };
35
- };
36
22
  export { useDataFilters };
@@ -0,0 +1,20 @@
1
+ export declare type UseFetchStateProps<T> = {
2
+ isError: boolean;
3
+ isLoading: boolean;
4
+ msg: {
5
+ code: number;
6
+ msg: string;
7
+ };
8
+ data?: T;
9
+ isFirstFetch: boolean;
10
+ };
11
+ export declare function useFetch<ApiModelWithContentType>(url?: string): {
12
+ data: ApiModelWithContentType | undefined;
13
+ isLoading: boolean;
14
+ isError: boolean;
15
+ isFirstFetch: boolean;
16
+ msg: {
17
+ code: number;
18
+ msg: string;
19
+ };
20
+ };
@@ -1,9 +1,9 @@
1
1
  import { Locale } from "../types/core";
2
- declare type GetTranslation = (
2
+ declare type I18nTranslationFunction = (
3
3
  /** Key from the translation object that will be obtained */
4
4
  key: string,
5
5
  /** Fallback string in case `key` doesn't return nothing (undefined) */
6
- defaultString?: string) => string;
6
+ defaultString?: string) => string | Record<string, unknown>;
7
7
  /**
8
8
  * `useI18n()`
9
9
  *
@@ -17,8 +17,8 @@ defaultString?: string) => string;
17
17
  * const bar = getNestedTranslation("modules.backLabel")
18
18
  */
19
19
  declare function useI18n(props?: UseI18nProps): {
20
- getTranslation: GetTranslation;
21
- getNestedTranslation: GetTranslation;
20
+ getTranslation: I18nTranslationFunction;
21
+ getNestedTranslation: I18nTranslationFunction;
22
22
  };
23
23
  export interface UseI18nProps {
24
24
  /** Locale code from where get the translation. This locale override the current page language */
@@ -1,4 +1,5 @@
1
- import { SetQueryProps } from "../types/global";
1
+ import { SetQueryProps, ListApiQueryResponseProps, ContentTypeItemWithId, PickRename } from "../types/global";
2
+ import { UseFetchStateProps } from "./useFetch";
2
3
  /**
3
4
  * `useList()`
4
5
  *
@@ -9,29 +10,14 @@ import { SetQueryProps } from "../types/global";
9
10
  * setQuery(data) // `data` from a `ReferenceField`
10
11
  */
11
12
  declare function useList<ContentType>(): UseListReturn<ContentType>;
12
- export declare type UseListSetQueryProps<ContentType> = SetQueryProps<ContentType>;
13
- export declare type UseListItem<Item> = Omit<Item, "contentTypeName"> & {
14
- id: number;
15
- };
16
13
  export interface UseListSetUrlAction {
17
14
  queryUrl: string | undefined;
18
15
  extra: Record<string, unknown> | undefined;
19
16
  }
17
+ export declare type UseListSetQueryProps<ContentType> = SetQueryProps<ContentType>;
18
+ export declare type UseListState<Item> = PickRename<UseFetchStateProps<ListApiQueryResponseProps<ContentTypeItemWithId<Item>>>, "data", "query">;
20
19
  export declare type UseListReturn<ContentType> = [
21
20
  UseListState<ContentType>,
22
- (setQuery: UseListSetQueryProps<ContentType>) => void | null
21
+ (setQuery: UseListSetQueryProps<ContentType>) => void
23
22
  ];
24
- export declare type UseListState<Item> = {
25
- isError: boolean;
26
- isLoading: boolean;
27
- msg: {
28
- code: number;
29
- msg: string;
30
- };
31
- query?: {
32
- page: number;
33
- totalItems: number;
34
- items: Array<UseListItem<Item>>;
35
- };
36
- };
37
23
  export { useList };
@@ -0,0 +1,28 @@
1
+ import { QueriedData } from "../types/api-response-fields";
2
+ import { PartiallyRequired } from "../types/utilities";
3
+ import { UseListReturn, UseListSetQueryProps } from "./useList";
4
+ export interface useListWithDefaultStaticPageProps<T> extends Omit<PartiallyRequired<UseListSetQueryProps<T>, "items">, "data"> {
5
+ queriedData?: QueriedData<T>;
6
+ }
7
+ /**
8
+ * `useListWithDefaultStaticPage()`
9
+ *
10
+ * Hook to fetch a list of ContentTypes from the public API that returns the first page statically.
11
+ * This way the build process will write the data into the HTML.
12
+ *
13
+ * @warning
14
+ * Maybe you **don't want** to `use { mode: "list" }` in the schema options
15
+ *
16
+ * @example
17
+ * const [{ query, isError, isFirstFetch, isLoading, msg }, setQuery] =
18
+ * useListWithDefaultStaticPage<MEMBERContentTypeProps>({
19
+ * // This is de default query params for the first page
20
+ * queriedData,
21
+ * items: itemsPerPage,
22
+ * page: 1,
23
+ * fields: ["title", "id"],
24
+ * });
25
+ *
26
+ */
27
+ declare function useListWithDefaultStaticPage<T>(props: useListWithDefaultStaticPageProps<T>): UseListReturn<T>;
28
+ export { useListWithDefaultStaticPage };
package/dist/index.d.ts CHANGED
@@ -11,12 +11,12 @@ import { SiteProviderProps } from "./contexts/Site";
11
11
  import { getComponent } from "./functions";
12
12
  import { createCategoryContentTypeSchema, createComponentSchema, createDamDefaultsSchema, createDataPackCategorySchema, createDataPackSchema, createFooterSchema, createHeaderSchema, createLanguagesSchema, createMenuSchema, createModuleCategoriesSchema, createModuleSchema, createPageContentTypeSchema, createSimpleContentTypeSchema, createTemplateSchema, createThemesSchema, createTranslationsSchema } from "./functions/create-schemas";
13
13
  import { getLang, getSiteID, getToken } from "./functions/utils";
14
- import { useContentType, useDataFilters, useGlobalTheme, useGriddoImage, useI18n, useImage, useLink, useList, useNavigation, usePage, useReferenceFieldData, useSession, useSite, useSitemap, useTheme, useThemeColors, useThemeFont, useThemePrimitives, useIsClient, useIsFirstRender, useSSR, useScript } from "./hooks";
15
- import { UseDataFilterSetUrlAction, UseDataFiltersItem, UseDataFiltersReturn, UseDataFiltersSetQueryProps, UseDataFiltersState } from "./hooks/useDataFilters";
14
+ import { useContentType, useDataFilters, useGlobalTheme, useGriddoImage, useI18n, useImage, useLink, useList, useNavigation, usePage, useReferenceFieldData, useSession, useSite, useSitemap, useTheme, useThemeColors, useThemeFont, useThemePrimitives, useListWithDefaultStaticPage, useIsClient, useIsFirstRender, useSSR, useScript } from "./hooks";
15
+ import { UseDataFilterSetUrlAction, UseDataFiltersReturn, UseDataFiltersSetQueryProps, UseDataFiltersState } from "./hooks/useDataFilters";
16
16
  import { GenerateImageChunkProps, ImageChunk, ImageConfig, UseGriddoImageProps, UseGriddoImageReturn } from "./hooks/useGriddoImage";
17
17
  import { UseI18nProps } from "./hooks/useI18n";
18
18
  import { CloudinaryImageCrop, CloudinaryImageFormat, CloudinaryResponsiveImageProps, UseImageProps } from "./hooks/useImage";
19
- import { UseListItem, UseListReturn, UseListSetQueryProps, UseListSetUrlAction, UseListState } from "./hooks/useList";
19
+ import { UseListSetQueryProps, UseListSetUrlAction } from "./hooks/useList";
20
20
  import { Hideable } from "./types/global";
21
21
  import * as Fields from "./types/api-response-fields";
22
22
  import * as Core from "./types/core";
@@ -25,4 +25,4 @@ import * as SimpleContentTypeFields from "./types/schema-fields/simple-content-t
25
25
  import * as UIFields from "./types/schema-fields/ui-fields";
26
26
  import * as Schema from "./types/schemas";
27
27
  import * as Theme from "./types/theme";
28
- export { PageContext, PageProvider, SiteContext, SiteProvider, SessionContext, SessionProvider, SiteProviderProps, CloudinaryBackgroundImage, CloudinaryImage, Component, GriddoBackgroundImage, GriddoImage, GriddoLink, LdJson, Link, Page, Preview, UseDataFilterSetUrlAction, UseDataFiltersItem, UseDataFiltersReturn, UseDataFiltersSetQueryProps, UseDataFiltersState, CloudinaryImageCrop, CloudinaryImageFormat, CloudinaryResponsiveImageProps, GenerateImageChunkProps, ImageChunk, ImageConfig, UseListItem, UseListReturn, UseListSetQueryProps, UseListSetUrlAction, UseListState, UseGriddoImageProps, UseGriddoImageReturn, UseI18nProps, UseImageProps, useContentType, useDataFilters, useGlobalTheme, useGriddoImage, useI18n, useImage, useIsClient, useIsFirstRender, useLink, useList, useNavigation, usePage, useReferenceFieldData as useDistributorData, useReferenceFieldData, useScript, useSession, useSite, useSitemap, useSSR, useTheme, useThemeColors, useThemeFont, useThemePrimitives, getLang, getSiteID, getToken, getComponent, createCategoryContentTypeSchema, createComponentSchema, createDamDefaultsSchema, createDataPackCategorySchema, createDataPackSchema, createFooterSchema, createHeaderSchema, createLanguagesSchema, createMenuSchema, createModuleCategoriesSchema, createModuleSchema, createPageContentTypeSchema, createSimpleContentTypeSchema, createTemplateSchema, createThemesSchema, createTranslationsSchema, Core, Fields, Schema, Theme, UIFields, SimpleContentTypeFields, PageContentTypeFields, CloudinaryImageProps, ComponentProps, GriddoImageProps, GriddoLinkProps, HLocation, LinkGetProps, ModulePreviewProps, PageProps, PreviewProps, WindowLocation, Hideable, };
28
+ export { PageContext, PageProvider, SiteContext, SiteProvider, SessionContext, SessionProvider, SiteProviderProps, CloudinaryBackgroundImage, CloudinaryImage, Component, GriddoBackgroundImage, GriddoImage, GriddoLink, LdJson, Link, Page, Preview, UseDataFilterSetUrlAction, UseDataFiltersReturn, UseDataFiltersSetQueryProps, UseDataFiltersState, UseListSetQueryProps, CloudinaryImageCrop, CloudinaryImageFormat, CloudinaryResponsiveImageProps, GenerateImageChunkProps, ImageChunk, ImageConfig, UseListSetUrlAction, UseGriddoImageProps, UseGriddoImageReturn, UseI18nProps, UseImageProps, useContentType, useDataFilters, useGlobalTheme, useGriddoImage, useI18n, useImage, useIsClient, useIsFirstRender, useLink, useList, useNavigation, usePage, useReferenceFieldData as useDistributorData, useReferenceFieldData, useScript, useSession, useSite, useSitemap, useSSR, useTheme, useThemeColors, useThemeFont, useThemePrimitives, useListWithDefaultStaticPage, getLang, getSiteID, getToken, getComponent, createCategoryContentTypeSchema, createComponentSchema, createDamDefaultsSchema, createDataPackCategorySchema, createDataPackSchema, createFooterSchema, createHeaderSchema, createLanguagesSchema, createMenuSchema, createModuleCategoriesSchema, createModuleSchema, createPageContentTypeSchema, createSimpleContentTypeSchema, createTemplateSchema, createThemesSchema, createTranslationsSchema, Core, Fields, Schema, Theme, UIFields, SimpleContentTypeFields, PageContentTypeFields, CloudinaryImageProps, ComponentProps, GriddoImageProps, GriddoLinkProps, HLocation, LinkGetProps, ModulePreviewProps, PageProps, PreviewProps, WindowLocation, Hideable, };