itmar-block-packages 3.0.4 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/README.md +142 -0
  2. package/build/cjs/AnimationBlock.js +38 -47
  3. package/build/cjs/AnimationBlock.js.map +1 -1
  4. package/build/cjs/BlockEditWrapper.js +2 -2
  5. package/build/cjs/BlockEditWrapper.js.map +1 -1
  6. package/build/cjs/BlockPlace.js +111 -190
  7. package/build/cjs/BlockPlace.js.map +1 -1
  8. package/build/cjs/DateElm.js +41 -48
  9. package/build/cjs/DateElm.js.map +1 -1
  10. package/build/cjs/DraggableBox.js +3 -8
  11. package/build/cjs/DraggableBox.js.map +1 -1
  12. package/build/cjs/GridControls.js +52 -67
  13. package/build/cjs/GridControls.js.map +1 -1
  14. package/build/cjs/IconSelectControl.js +33 -47
  15. package/build/cjs/IconSelectControl.js.map +1 -1
  16. package/build/cjs/MasonryControl.js.map +1 -1
  17. package/build/cjs/PseudoElm.js +2 -2
  18. package/build/cjs/PseudoElm.js.map +1 -1
  19. package/build/cjs/ShadowStyle.js +35 -63
  20. package/build/cjs/ShadowStyle.js.map +1 -1
  21. package/build/cjs/SwiperControl.js +2 -2
  22. package/build/cjs/SwiperControl.js.map +1 -1
  23. package/build/cjs/ToggleElement.js +3 -3
  24. package/build/cjs/ToggleElement.js.map +1 -1
  25. package/build/cjs/TypographyControls.js +27 -35
  26. package/build/cjs/TypographyControls.js.map +1 -1
  27. package/build/cjs/UpdateAllPostsBlockAttributes.js +14 -20
  28. package/build/cjs/UpdateAllPostsBlockAttributes.js.map +1 -1
  29. package/build/cjs/blockStore.js.map +1 -1
  30. package/build/cjs/customHooks.js +20 -3
  31. package/build/cjs/customHooks.js.map +1 -1
  32. package/build/cjs/formatCreate.js +16 -22
  33. package/build/cjs/formatCreate.js.map +1 -1
  34. package/build/cjs/index.js +3 -0
  35. package/build/cjs/index.js.map +1 -1
  36. package/build/cjs/mediaUpload.js +10 -20
  37. package/build/cjs/mediaUpload.js.map +1 -1
  38. package/build/cjs/styleComponentApply.js +41 -0
  39. package/build/cjs/styleComponentApply.js.map +1 -0
  40. package/build/cjs/types/AnimationBlock.d.ts +1 -1
  41. package/build/cjs/types/BlockEditWrapper.d.ts +1 -1
  42. package/build/cjs/types/BlockPlace.d.ts +3 -3
  43. package/build/cjs/types/DateElm.d.ts +1 -1
  44. package/build/cjs/types/DraggableBox.d.ts +1 -1
  45. package/build/cjs/types/GridControls.d.ts +1 -1
  46. package/build/cjs/types/IconSelectControl.d.ts +1 -1
  47. package/build/cjs/types/PseudoElm.d.ts +1 -1
  48. package/build/cjs/types/ShadowStyle.d.ts +1 -1
  49. package/build/cjs/types/ToggleElement.d.ts +1 -1
  50. package/build/cjs/types/TypographyControls.d.ts +1 -1
  51. package/build/cjs/types/UpdateAllPostsBlockAttributes.d.ts +1 -1
  52. package/build/cjs/types/blockStore.d.ts +8 -6
  53. package/build/cjs/types/customHooks.d.ts +14 -7
  54. package/build/cjs/types/formatCreate.d.ts +1 -1
  55. package/build/cjs/types/index.d.ts +3 -2
  56. package/build/cjs/types/mediaUpload.d.ts +2 -2
  57. package/build/cjs/types/styleComponentApply.d.ts +4 -0
  58. package/build/cjs/types/wordpressApi.d.ts +6 -6
  59. package/build/cjs/wordpressApi.js +112 -139
  60. package/build/cjs/wordpressApi.js.map +1 -1
  61. package/build/esm/AnimationBlock.js +38 -47
  62. package/build/esm/AnimationBlock.js.map +1 -1
  63. package/build/esm/BlockEditWrapper.js +3 -3
  64. package/build/esm/BlockEditWrapper.js.map +1 -1
  65. package/build/esm/BlockPlace.js +111 -190
  66. package/build/esm/BlockPlace.js.map +1 -1
  67. package/build/esm/DateElm.js +39 -46
  68. package/build/esm/DateElm.js.map +1 -1
  69. package/build/esm/DraggableBox.js +3 -8
  70. package/build/esm/DraggableBox.js.map +1 -1
  71. package/build/esm/GridControls.js +52 -67
  72. package/build/esm/GridControls.js.map +1 -1
  73. package/build/esm/IconSelectControl.js +34 -48
  74. package/build/esm/IconSelectControl.js.map +1 -1
  75. package/build/esm/MasonryControl.js.map +1 -1
  76. package/build/esm/PseudoElm.js +2 -2
  77. package/build/esm/PseudoElm.js.map +1 -1
  78. package/build/esm/ShadowStyle.js +35 -63
  79. package/build/esm/ShadowStyle.js.map +1 -1
  80. package/build/esm/SwiperControl.js +1 -1
  81. package/build/esm/ToggleElement.js +3 -3
  82. package/build/esm/ToggleElement.js.map +1 -1
  83. package/build/esm/TypographyControls.js +27 -35
  84. package/build/esm/TypographyControls.js.map +1 -1
  85. package/build/esm/UpdateAllPostsBlockAttributes.js +15 -21
  86. package/build/esm/UpdateAllPostsBlockAttributes.js.map +1 -1
  87. package/build/esm/blockStore.js.map +1 -1
  88. package/build/esm/customHooks.js +21 -5
  89. package/build/esm/customHooks.js.map +1 -1
  90. package/build/esm/formatCreate.js +16 -22
  91. package/build/esm/formatCreate.js.map +1 -1
  92. package/build/esm/index.js +2 -1
  93. package/build/esm/index.js.map +1 -1
  94. package/build/esm/mediaUpload.js +10 -20
  95. package/build/esm/mediaUpload.js.map +1 -1
  96. package/build/esm/styleComponentApply.js +39 -0
  97. package/build/esm/styleComponentApply.js.map +1 -0
  98. package/build/esm/types/AnimationBlock.d.ts +1 -1
  99. package/build/esm/types/BlockEditWrapper.d.ts +1 -1
  100. package/build/esm/types/BlockPlace.d.ts +3 -3
  101. package/build/esm/types/DateElm.d.ts +1 -1
  102. package/build/esm/types/DraggableBox.d.ts +1 -1
  103. package/build/esm/types/GridControls.d.ts +1 -1
  104. package/build/esm/types/IconSelectControl.d.ts +1 -1
  105. package/build/esm/types/PseudoElm.d.ts +1 -1
  106. package/build/esm/types/ShadowStyle.d.ts +1 -1
  107. package/build/esm/types/ToggleElement.d.ts +1 -1
  108. package/build/esm/types/TypographyControls.d.ts +1 -1
  109. package/build/esm/types/UpdateAllPostsBlockAttributes.d.ts +1 -1
  110. package/build/esm/types/blockStore.d.ts +8 -6
  111. package/build/esm/types/customHooks.d.ts +14 -7
  112. package/build/esm/types/formatCreate.d.ts +1 -1
  113. package/build/esm/types/index.d.ts +3 -2
  114. package/build/esm/types/mediaUpload.d.ts +2 -2
  115. package/build/esm/types/styleComponentApply.d.ts +4 -0
  116. package/build/esm/types/wordpressApi.d.ts +6 -6
  117. package/build/esm/wordpressApi.js +113 -140
  118. package/build/esm/wordpressApi.js.map +1 -1
  119. package/package.json +12 -5
  120. package/build/cjs/node_modules/nanoid/non-secure/index.js +0 -15
  121. package/build/cjs/node_modules/nanoid/non-secure/index.js.map +0 -1
  122. package/build/cjs/node_modules/swiper/shared/ssr-window.esm.js +0 -144
  123. package/build/cjs/node_modules/swiper/shared/ssr-window.esm.js.map +0 -1
  124. package/build/cjs/node_modules/swiper/shared/swiper-core.js +0 -3925
  125. package/build/cjs/node_modules/swiper/shared/swiper-core.js.map +0 -1
  126. package/build/cjs/node_modules/swiper/shared/utils.js +0 -294
  127. package/build/cjs/node_modules/swiper/shared/utils.js.map +0 -1
  128. package/build/esm/AnimationBlock.d.ts +0 -22
  129. package/build/esm/BlockEditWrapper.d.ts +0 -7
  130. package/build/esm/BlockPlace.d.ts +0 -49
  131. package/build/esm/BrockInserter.d.ts +0 -6
  132. package/build/esm/DateElm.d.ts +0 -69
  133. package/build/esm/DraggableBox.d.ts +0 -19
  134. package/build/esm/GridControls.d.ts +0 -27
  135. package/build/esm/IconSelectControl.d.ts +0 -17
  136. package/build/esm/JapaneseHolidays.d.ts +0 -6
  137. package/build/esm/MasonryControl.d.ts +0 -35
  138. package/build/esm/PseudoElm.d.ts +0 -11
  139. package/build/esm/ShadowStyle.d.ts +0 -33
  140. package/build/esm/SwiperControl.d.ts +0 -12
  141. package/build/esm/ToggleElement.d.ts +0 -13
  142. package/build/esm/TypographyControls.d.ts +0 -17
  143. package/build/esm/UpdateAllPostsBlockAttributes.d.ts +0 -10
  144. package/build/esm/ZipAddress.d.ts +0 -18
  145. package/build/esm/blockStore.d.ts +0 -15
  146. package/build/esm/cssPropertes.d.ts +0 -53
  147. package/build/esm/customHooks.d.ts +0 -11
  148. package/build/esm/formatCreate.d.ts +0 -18
  149. package/build/esm/hslToRgb.d.ts +0 -23
  150. package/build/esm/index.d.ts +0 -27
  151. package/build/esm/mediaUpload.d.ts +0 -29
  152. package/build/esm/node_modules/nanoid/non-secure/index.js +0 -13
  153. package/build/esm/node_modules/nanoid/non-secure/index.js.map +0 -1
  154. package/build/esm/node_modules/swiper/shared/ssr-window.esm.js +0 -141
  155. package/build/esm/node_modules/swiper/shared/ssr-window.esm.js.map +0 -1
  156. package/build/esm/node_modules/swiper/shared/swiper-core.js +0 -3922
  157. package/build/esm/node_modules/swiper/shared/swiper-core.js.map +0 -1
  158. package/build/esm/node_modules/swiper/shared/utils.js +0 -274
  159. package/build/esm/node_modules/swiper/shared/utils.js.map +0 -1
  160. package/build/esm/pickupStore.d.ts +0 -39
  161. package/build/esm/shopfiApi.d.ts +0 -18
  162. package/build/esm/validationCheck.d.ts +0 -5
  163. package/build/esm/wordpressApi.d.ts +0 -99
@@ -1,13 +0,0 @@
1
- import React, { ReactNode } from "react";
2
- interface ToggleElementProps {
3
- openFlg: boolean;
4
- onToggle?: (isOpen: boolean) => void;
5
- className?: string;
6
- style?: React.CSSProperties;
7
- children?: ReactNode;
8
- }
9
- /**
10
- * クリックで開閉状態を切り替えるラッパーコンポーネント
11
- */
12
- export default function ToggleElement({ openFlg, onToggle, className, style, children, }: ToggleElementProps): JSX.Element;
13
- export {};
@@ -1,17 +0,0 @@
1
- interface FontStyle {
2
- default_fontSize: string;
3
- mobile_fontSize: string;
4
- fontSize?: string;
5
- fontFamily: string;
6
- fontWeight: string;
7
- isItalic: boolean;
8
- }
9
- interface TypographyControlsProps {
10
- title: string;
11
- fontStyle: FontStyle;
12
- initialOpen?: boolean;
13
- isMobile: boolean;
14
- onChange: (newStyle: FontStyle) => void;
15
- }
16
- declare const TypographyControls: ({ title, fontStyle, initialOpen, isMobile, onChange, }: TypographyControlsProps) => JSX.Element;
17
- export default TypographyControls;
@@ -1,10 +0,0 @@
1
- interface UpdateAllPostsProps {
2
- postType: string;
3
- blockName: string;
4
- newAttributes: Record<string, any>;
5
- onProcessStart: () => void;
6
- onProcessEnd: () => void;
7
- onProcessCancel: () => void;
8
- }
9
- export default function UpdateAllPostsBlockAttributes({ postType, blockName, newAttributes, onProcessStart, onProcessEnd, onProcessCancel, }: UpdateAllPostsProps): JSX.Element;
10
- export {};
@@ -1,18 +0,0 @@
1
- /**
2
- * zipcloud API のレスポンス型定義
3
- */
4
- interface ZipCloudResult {
5
- address1: string;
6
- address2: string;
7
- address3: string;
8
- kana1: string;
9
- kana2: string;
10
- kana3: string;
11
- prefcode: string;
12
- zipcode: string;
13
- }
14
- /**
15
- * 郵便番号から住所を取得する
16
- */
17
- export declare const fetchZipToAddress: (zipNum: string) => Promise<ZipCloudResult | null>;
18
- export {};
@@ -1,15 +0,0 @@
1
- import { BlockInstance } from "@wordpress/blocks";
2
- export declare const useTargetBlocks: (clientId: string, blockName: string, attributeFilter?: null, includeNested?: boolean) => BlockInstance<{
3
- [k: string]: any;
4
- }> | BlockInstance<{
5
- [k: string]: any;
6
- }>[] | null;
7
- export declare const flattenBlocks: (blocks: BlockInstance[]) => BlockInstance[];
8
- interface SerializedBlock {
9
- blockName: string;
10
- attributes: Record<string, any>;
11
- innerBlocks: SerializedBlock[];
12
- }
13
- export declare const serializeBlockTree: (block: BlockInstance) => SerializedBlock;
14
- export declare const createBlockTree: (blockData: SerializedBlock) => BlockInstance;
15
- export {};
@@ -1,53 +0,0 @@
1
- import { CSSProperties } from "react";
2
- interface RadiusObject {
3
- value?: string;
4
- topLeft?: string;
5
- topRight?: string;
6
- bottomLeft?: string;
7
- bottomRight?: string;
8
- }
9
- export declare const radius_prm: (radius: RadiusObject | undefined) => string;
10
- interface SpaceObject {
11
- top?: string | number;
12
- right?: string | number;
13
- bottom?: string | number;
14
- left?: string | number;
15
- }
16
- export declare const space_prm: (space: SpaceObject | undefined) => string;
17
- interface PositionObject {
18
- vertBase: "top" | "bottom";
19
- horBase: "left" | "right";
20
- vertValue: string;
21
- horValue: string;
22
- isVertCenter?: boolean;
23
- isHorCenter?: boolean;
24
- }
25
- type PositionType = "absolute" | "fixed" | "sticky" | "relative" | string;
26
- export declare const position_prm: (pos: PositionObject | any, type: PositionType) => string | null;
27
- type WidthType = "wideSize" | "contentSize" | "free" | "full" | "fit" | string;
28
- type HeightType = "fit" | "full" | "free" | string;
29
- type AlignType = "center" | "right" | "left" | string;
30
- export declare const max_width_prm: (width: WidthType, free_val?: string) => string;
31
- export declare const width_prm: (width: WidthType, free_val?: string) => string;
32
- export declare const height_prm: (height: HeightType, free_val?: string) => string;
33
- export declare const align_prm: (align: AlignType, camelFLg?: boolean) => string | CSSProperties;
34
- export declare const convertToScss: (styleObject: Record<string, string | number>) => string;
35
- /**
36
- * ボーダー設定オブジェクトをCSSプロパティオブジェクトに変換する
37
- */
38
- export declare const borderProperty: (borderObj: any) => Record<string, string> | null;
39
- interface BoxSpacing {
40
- top?: string | number;
41
- right?: string | number;
42
- bottom?: string | number;
43
- left?: string | number;
44
- value?: string | number;
45
- topLeft?: string | number;
46
- topRight?: string | number;
47
- bottomLeft?: string | number;
48
- bottomRight?: string | number;
49
- }
50
- export declare const radiusProperty: (radiusObj: BoxSpacing | undefined) => CSSProperties;
51
- export declare const marginProperty: (marginObj: BoxSpacing | undefined) => CSSProperties;
52
- export declare const paddingProperty: (paddingObj: BoxSpacing | undefined) => CSSProperties;
53
- export {};
@@ -1,11 +0,0 @@
1
- import { RefObject } from "@wordpress/element";
2
- import { DependencyList, EffectCallback } from "react";
3
- export declare function useElementWidth(): (number | import("react").MutableRefObject<null>)[];
4
- export declare function useIsMobile(): boolean;
5
- export declare function useIsIframeMobile(): boolean;
6
- export declare function useElementBackgroundColor(blockRef: RefObject<HTMLElement>, style: React.CSSProperties): string;
7
- export declare function useElementStyleObject(blockRef: RefObject<HTMLElement>, style: React.CSSProperties): string;
8
- export declare function useDeepCompareEffect(callback: EffectCallback, dependencies: DependencyList): void;
9
- export declare function useFontawesomeIframe(): void;
10
- export declare function useBlockAttributeChanges(clientId: string, blockName: string, className: string, modFlg?: boolean, excludeAttributes?: Record<string, any>): any;
11
- export declare function useDuplicateBlockRemove(clientId: string, blockNames: string[]): void;
@@ -1,18 +0,0 @@
1
- interface FormatSettings {
2
- userFormat: string;
3
- freeStrFormat: string;
4
- decimal: number;
5
- }
6
- interface FormatSelectControlProps {
7
- titleType: "plaine" | "date" | "user" | string;
8
- userFormat: string;
9
- freeStrFormat: string;
10
- decimal: number;
11
- onFormatChange: (settings: FormatSettings) => void;
12
- }
13
- export declare const FormatSelectControl: ({ titleType, userFormat, freeStrFormat, decimal, onFormatChange, }: FormatSelectControlProps) => JSX.Element;
14
- /**
15
- * 値を指定されたフォーマットで整形して返す
16
- */
17
- export declare const displayFormated: (content: any, userFormat: string | undefined, freeStrFormat: string, decimal: number) => string;
18
- export {};
@@ -1,23 +0,0 @@
1
- interface HSL {
2
- hue: number;
3
- saturation: number;
4
- lightness: number;
5
- }
6
- interface RGB {
7
- red: number;
8
- green: number;
9
- blue: number;
10
- }
11
- /**
12
- * HSLを16進数カラーコード(#RRGGBB)に変換
13
- */
14
- export declare function hslToRgb16(hue: number | string, saturation: number | string, lightness: number | string): string | false;
15
- /**
16
- * 16進数カラーコードをHSLオブジェクトに変換
17
- */
18
- export declare function rgb16ToHsl(strRgb16: string): HSL | false;
19
- /**
20
- * 16進数カラーコードをRGBオブジェクトに変換
21
- */
22
- export declare function HexToRGB(strRgb16: string): RGB | false;
23
- export {};
@@ -1,27 +0,0 @@
1
- export { useIsIframeMobile, useElementBackgroundColor, useElementStyleObject, useElementWidth, useIsMobile, useDeepCompareEffect, useFontawesomeIframe, useBlockAttributeChanges, useDuplicateBlockRemove, } from "./customHooks";
2
- export { fetchPagesOptions, fetchArchiveOptions, restFetchData, restTaxonomies, restFieldes, termToDispObj, PageSelectControl, ArchiveSelectControl, PostSelectControl, TermChoiceControl, FieldChoiceControl, } from "./wordpressApi";
3
- export { space_prm, max_width_prm, width_prm, height_prm, align_prm, position_prm, radius_prm, convertToScss, borderProperty, radiusProperty, marginProperty, paddingProperty, } from "./cssPropertes";
4
- export { default as ShadowStyle, ShadowElm } from "./ShadowStyle";
5
- export { default as PseudoElm, Arrow } from "./PseudoElm";
6
- export { SingleImageSelect, MultiImageSelect, getMediaType, getImageAspectRatio, getVideoAspectRatio, } from "./mediaUpload";
7
- export { default as DraggableBox, useDraggingMove } from "./DraggableBox";
8
- export { default as AnimationBlock, anime_comp } from "./AnimationBlock";
9
- export { default as BlockPlace, BlockWidth, BlockHeight } from "./BlockPlace";
10
- export { default as GridControls } from "./GridControls";
11
- export { default as ToggleElement } from "./ToggleElement";
12
- export { default as TypographyControls } from "./TypographyControls";
13
- export { default as IconSelectControl } from "./IconSelectControl";
14
- export { default as BlockEditWrapper } from "./BlockEditWrapper";
15
- export { hslToRgb16, rgb16ToHsl, HexToRGB } from "./hslToRgb";
16
- export { generateDateArray, generateMonthCalendar, PeriodCtrl, getPeriodQuery, getTodayYearMonth, getTodayYear, getTodayMonth, getMonthRangeYmd, normalizeDateYYYYMMDD, toYmdFromMonthAndDay, generateGridAreas, } from "./DateElm";
17
- export { JapaneseHolidays } from "./JapaneseHolidays";
18
- export { flattenBlocks, useTargetBlocks, serializeBlockTree, createBlockTree, } from "./blockStore";
19
- export { isValidUrlWithUrlApi } from "./validationCheck";
20
- export { default as UpdateAllPostsBlockAttributes } from "./UpdateAllPostsBlockAttributes";
21
- export { fetchZipToAddress } from "./ZipAddress";
22
- export { FormatSelectControl, displayFormated } from "./formatCreate";
23
- export { checkCustomerLoginState, redirectCustomerAuthorize, sendRegistrationRequest, } from "./shopfiApi";
24
- export { useRebuildChangeField } from "./BrockInserter";
25
- export { default as MasonryControl } from "./MasonryControl";
26
- export { slideBlockSwiperInit } from "./SwiperControl";
27
- export { ensureCtx, registerPickup, getCtx, subscribe, setState, } from "./pickupStore";
@@ -1,29 +0,0 @@
1
- interface MediaObject {
2
- id: number;
3
- url: string;
4
- alt?: string;
5
- caption?: string;
6
- [key: string]: any;
7
- }
8
- interface SingleImageSelectProps {
9
- attributes: {
10
- mediaID?: number;
11
- media?: MediaObject;
12
- };
13
- onSelectChange: (media: MediaObject) => void;
14
- }
15
- export declare function SingleImageSelect({ attributes, onSelectChange, }: SingleImageSelectProps): JSX.Element;
16
- interface MultiImageSelectProps {
17
- attributes: {
18
- mediaID: number[];
19
- media: MediaObject[];
20
- };
21
- label: string;
22
- onSelectChange: (media: MediaObject[]) => void;
23
- onAllDelete: () => void;
24
- }
25
- export declare function MultiImageSelect({ attributes, label, onSelectChange, onAllDelete, }: MultiImageSelectProps): JSX.Element;
26
- export declare function getMediaType(url: string): "image" | "video" | undefined;
27
- export declare function getImageAspectRatio(url: string): Promise<unknown>;
28
- export declare function getVideoAspectRatio(url: string): Promise<unknown>;
29
- export {};
@@ -1,13 +0,0 @@
1
- let urlAlphabet =
2
- 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
3
- let nanoid = (size = 21) => {
4
- let id = '';
5
- let i = size | 0;
6
- while (i--) {
7
- id += urlAlphabet[(Math.random() * 64) | 0];
8
- }
9
- return id
10
- };
11
-
12
- export { nanoid };
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../node_modules/nanoid/non-secure/index.js"],"sourcesContent":["let urlAlphabet =\n 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'\nlet customAlphabet = (alphabet, defaultSize = 21) => {\n return (size = defaultSize) => {\n let id = ''\n let i = size | 0\n while (i--) {\n id += alphabet[(Math.random() * alphabet.length) | 0]\n }\n return id\n }\n}\nlet nanoid = (size = 21) => {\n let id = ''\n let i = size | 0\n while (i--) {\n id += urlAlphabet[(Math.random() * 64) | 0]\n }\n return id\n}\nexport { nanoid, customAlphabet }\n"],"names":[],"mappings":"AAAA,IAAI,WAAW;AACf,EAAE;AAWC,IAAC,MAAM,GAAG,CAAC,IAAI,GAAG,EAAE,KAAK;AAC5B,EAAE,IAAI,EAAE,GAAG;AACX,EAAE,IAAI,CAAC,GAAG,IAAI,GAAG;AACjB,EAAE,OAAO,CAAC,EAAE,EAAE;AACd,IAAI,EAAE,IAAI,WAAW,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC;AAC9C,EAAE;AACF,EAAE,OAAO;AACT;;;;","x_google_ignoreList":[0]}
@@ -1,141 +0,0 @@
1
- /**
2
- * SSR Window 5.0.1
3
- * Better handling for window object in SSR environment
4
- * https://github.com/nolimits4web/ssr-window
5
- *
6
- * Copyright 2025, Vladimir Kharlampidi
7
- *
8
- * Licensed under MIT
9
- *
10
- * Released on: June 27, 2025
11
- */
12
- /* eslint-disable no-param-reassign */
13
- function isObject(obj) {
14
- return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;
15
- }
16
- function extend(target = {}, src = {}) {
17
- const noExtend = ['__proto__', 'constructor', 'prototype'];
18
- Object.keys(src).filter(key => noExtend.indexOf(key) < 0).forEach(key => {
19
- if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {
20
- extend(target[key], src[key]);
21
- }
22
- });
23
- }
24
- const ssrDocument = {
25
- body: {},
26
- addEventListener() {},
27
- removeEventListener() {},
28
- activeElement: {
29
- blur() {},
30
- nodeName: ''
31
- },
32
- querySelector() {
33
- return null;
34
- },
35
- querySelectorAll() {
36
- return [];
37
- },
38
- getElementById() {
39
- return null;
40
- },
41
- createEvent() {
42
- return {
43
- initEvent() {}
44
- };
45
- },
46
- createElement() {
47
- return {
48
- children: [],
49
- childNodes: [],
50
- style: {},
51
- setAttribute() {},
52
- getElementsByTagName() {
53
- return [];
54
- }
55
- };
56
- },
57
- createElementNS() {
58
- return {};
59
- },
60
- importNode() {
61
- return null;
62
- },
63
- location: {
64
- hash: '',
65
- host: '',
66
- hostname: '',
67
- href: '',
68
- origin: '',
69
- pathname: '',
70
- protocol: '',
71
- search: ''
72
- }
73
- };
74
- function getDocument() {
75
- const doc = typeof document !== 'undefined' ? document : {};
76
- extend(doc, ssrDocument);
77
- return doc;
78
- }
79
- const ssrWindow = {
80
- document: ssrDocument,
81
- navigator: {
82
- userAgent: ''
83
- },
84
- location: {
85
- hash: '',
86
- host: '',
87
- hostname: '',
88
- href: '',
89
- origin: '',
90
- pathname: '',
91
- protocol: '',
92
- search: ''
93
- },
94
- history: {
95
- replaceState() {},
96
- pushState() {},
97
- go() {},
98
- back() {}
99
- },
100
- CustomEvent: function CustomEvent() {
101
- return this;
102
- },
103
- addEventListener() {},
104
- removeEventListener() {},
105
- getComputedStyle() {
106
- return {
107
- getPropertyValue() {
108
- return '';
109
- }
110
- };
111
- },
112
- Image() {},
113
- Date() {},
114
- screen: {},
115
- setTimeout() {},
116
- clearTimeout() {},
117
- matchMedia() {
118
- return {};
119
- },
120
- requestAnimationFrame(callback) {
121
- if (typeof setTimeout === 'undefined') {
122
- callback();
123
- return null;
124
- }
125
- return setTimeout(callback, 0);
126
- },
127
- cancelAnimationFrame(id) {
128
- if (typeof setTimeout === 'undefined') {
129
- return;
130
- }
131
- clearTimeout(id);
132
- }
133
- };
134
- function getWindow() {
135
- const win = typeof window !== 'undefined' ? window : {};
136
- extend(win, ssrWindow);
137
- return win;
138
- }
139
-
140
- export { getWindow as a, getDocument as g };
141
- //# sourceMappingURL=ssr-window.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ssr-window.esm.js","sources":["../../../../../node_modules/swiper/shared/ssr-window.esm.mjs"],"sourcesContent":["/**\n * SSR Window 5.0.1\n * Better handling for window object in SSR environment\n * https://github.com/nolimits4web/ssr-window\n *\n * Copyright 2025, Vladimir Kharlampidi\n *\n * Licensed under MIT\n *\n * Released on: June 27, 2025\n */\n/* eslint-disable no-param-reassign */\nfunction isObject(obj) {\n return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;\n}\nfunction extend(target = {}, src = {}) {\n const noExtend = ['__proto__', 'constructor', 'prototype'];\n Object.keys(src).filter(key => noExtend.indexOf(key) < 0).forEach(key => {\n if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {\n extend(target[key], src[key]);\n }\n });\n}\nconst ssrDocument = {\n body: {},\n addEventListener() {},\n removeEventListener() {},\n activeElement: {\n blur() {},\n nodeName: ''\n },\n querySelector() {\n return null;\n },\n querySelectorAll() {\n return [];\n },\n getElementById() {\n return null;\n },\n createEvent() {\n return {\n initEvent() {}\n };\n },\n createElement() {\n return {\n children: [],\n childNodes: [],\n style: {},\n setAttribute() {},\n getElementsByTagName() {\n return [];\n }\n };\n },\n createElementNS() {\n return {};\n },\n importNode() {\n return null;\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n }\n};\nfunction getDocument() {\n const doc = typeof document !== 'undefined' ? document : {};\n extend(doc, ssrDocument);\n return doc;\n}\nconst ssrWindow = {\n document: ssrDocument,\n navigator: {\n userAgent: ''\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n },\n history: {\n replaceState() {},\n pushState() {},\n go() {},\n back() {}\n },\n CustomEvent: function CustomEvent() {\n return this;\n },\n addEventListener() {},\n removeEventListener() {},\n getComputedStyle() {\n return {\n getPropertyValue() {\n return '';\n }\n };\n },\n Image() {},\n Date() {},\n screen: {},\n setTimeout() {},\n clearTimeout() {},\n matchMedia() {\n return {};\n },\n requestAnimationFrame(callback) {\n if (typeof setTimeout === 'undefined') {\n callback();\n return null;\n }\n return setTimeout(callback, 0);\n },\n cancelAnimationFrame(id) {\n if (typeof setTimeout === 'undefined') {\n return;\n }\n clearTimeout(id);\n }\n};\nfunction getWindow() {\n const win = typ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