@gem-sdk/core 1.53.0-dev.150 → 1.53.0-dev.154

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 (2) hide show
  1. package/dist/types/index.d.ts +167 -166
  2. package/package.json +2 -2
@@ -8380,8 +8380,175 @@ type BgPosition = {
8380
8380
  };
8381
8381
  type BgAttachment = 'scroll' | 'fixed' | 'local';
8382
8382
 
8383
+ type NameDevices = 'desktop' | 'tablet' | 'mobile';
8384
+ type TypographyV2Family = string | {
8385
+ value: string;
8386
+ type: TypographyV2FontFamilyType;
8387
+ };
8388
+ type TypographyV2FontFamilyType = 'google' | 'custom' | 'theme' | 'bunny';
8389
+
8390
+ /**
8391
+ * @deprecated Please use `TypographySettingV2`
8392
+ */
8393
+ type TypographySetting = {
8394
+ type?: TypographyType;
8395
+ custom?: ObjectDevices<TypographyProps>;
8396
+ };
8397
+ type TypographySettingV2 = {
8398
+ type?: TypographyType;
8399
+ custom?: TypographyV2Props;
8400
+ attrs?: TypographyV2Attrs;
8401
+ };
8402
+ type SizeSetting = {
8403
+ type?: SizeType;
8404
+ custom?: ObjectDevices<SizeProps>;
8405
+ };
8406
+ type SizeProps = {
8407
+ horizontal?: string;
8408
+ vertical?: string;
8409
+ };
8410
+ type SizeType = 'medium' | 'large' | 'small' | 'none';
8411
+ type TypographyProps = {
8412
+ fontSize?: string;
8413
+ fontWeight?: string | number;
8414
+ fontStyle?: string;
8415
+ fontFamily?: TypographyV2Family;
8416
+ lineHeight?: string;
8417
+ letterSpacing?: string;
8418
+ fallbackFontFamily?: string;
8419
+ textShadow?: ShadowProps;
8420
+ hasShadowText?: boolean;
8421
+ isCustom?: boolean;
8422
+ };
8423
+ type TypographyV2Props = Omit<TypographyProps, 'fontSize' | 'lineHeight'> & {
8424
+ fontSize?: ObjectDevices<string>;
8425
+ lineHeight?: ObjectDevices<string>;
8426
+ };
8427
+ type TypographyV2Attrs = {
8428
+ bold?: boolean;
8429
+ italic?: boolean;
8430
+ underline?: boolean;
8431
+ color?: ColorValueType;
8432
+ transform?: string;
8433
+ };
8434
+ type CornerRadius = {
8435
+ btlr?: string;
8436
+ btrr?: string;
8437
+ bblr?: string;
8438
+ bbrr?: string;
8439
+ radiusType?: CornerRadiusType;
8440
+ };
8441
+ type CornerRadiusType = 'none' | 'large' | 'medium' | 'small' | 'circle' | 'custom' | 'rounded';
8442
+ type ColorType$1 = NestedKeys<BrandColorObject> | NestedKeys<BackgroundColorObject> | NestedKeys<TextColorObject> | NestedKeys<LineColorObject> | NestedKeys<FuncColorObject>;
8443
+ type FontName = 'body' | 'heading' | 'code';
8444
+ type ColorKey = 'transparent' | 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray';
8445
+ type HexColorType = `#${string}`;
8446
+ type RGBAColorType = `rgba(${number}, ${number}, ${number}, ${number})`;
8447
+ type RGBColorType = `rgb(${number}, ${number}, ${number})`;
8448
+ type HSLColorType = `hsl(${number}, ${number}%, ${number}%)`;
8449
+ type HSLAColorType = `hsla(${number}, ${number}%, ${number}%, ${number})`;
8450
+ type ColorValueType = ColorType$1 | HexColorType | RGBAColorType | RGBColorType | HSLColorType | HSLAColorType | ColorKey;
8451
+ type BrandColorObject = {
8452
+ brand: string;
8453
+ highlight: string;
8454
+ };
8455
+ type BackgroundColorObject = {
8456
+ 'bg-1': string;
8457
+ 'bg-2': string;
8458
+ 'bg-3': string;
8459
+ };
8460
+ type TextColorObject = {
8461
+ 'text-1': string;
8462
+ 'text-2': string;
8463
+ 'text-3': string;
8464
+ };
8465
+ type LineColorObject = {
8466
+ 'line-1': string;
8467
+ 'line-2': string;
8468
+ 'line-3': string;
8469
+ };
8470
+ type FuncColorObject = {
8471
+ info: string;
8472
+ warning: string;
8473
+ success: string;
8474
+ error: string;
8475
+ };
8476
+ type TypographyType = 'heading-1' | 'heading-2' | 'heading-3' | 'subheading-1' | 'subheading-2' | 'subheading-3' | 'paragraph-1' | 'paragraph-2' | 'paragraph-3';
8477
+ type ObjectDeviceGlobalType<T> = {
8478
+ desktop: T;
8479
+ tablet?: T;
8480
+ mobile?: T;
8481
+ };
8482
+ type SpacingType = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
8483
+ type RoundedSize = 'small' | 'medium' | 'large' | 'circle' | 'none' | 'custom' | 'rounded';
8484
+ type ContainerProp = 'width' | 'padding';
8485
+ type GlobalStyleResponsiveConfig = {
8486
+ color?: Partial<Record<ColorType$1, string>>;
8487
+ font?: Partial<Record<FontName, any>>;
8488
+ typography?: Partial<Record<TypographyType, ObjectDeviceGlobalType<TypographyProps>>>;
8489
+ spacing?: Partial<Record<SpacingType, ObjectDeviceGlobalType<string>>>;
8490
+ container?: Partial<Record<ContainerProp, ObjectDeviceGlobalType<string>>>;
8491
+ radius?: Partial<Record<RoundedSize, string>>;
8492
+ theme?: {
8493
+ font?: Partial<Record<FontName, any>>;
8494
+ };
8495
+ };
8496
+ type GlobalStyleConfig = {
8497
+ color?: Partial<Record<ColorType$1, string>>;
8498
+ font?: Partial<Record<FontName, any>>;
8499
+ typography?: Partial<Record<TypographyType, TypographyProps>>;
8500
+ spacing?: Partial<Record<SpacingType, string>>;
8501
+ container?: Partial<Record<ContainerProp, string>>;
8502
+ radius?: Partial<Record<RoundedSize, string>>;
8503
+ theme?: {
8504
+ font?: Partial<Record<FontName, any>>;
8505
+ };
8506
+ };
8507
+ type ShadowStyleApplied = 'text-shadow' | 'box-shadow';
8508
+ type ShadowType = 'shadow-1' | 'shadow-2' | 'shadow-3';
8509
+ type ShadowStyle = {
8510
+ value?: ShadowProps;
8511
+ state?: StateType;
8512
+ styleAppliedFor?: ShadowStyleApplied;
8513
+ isEnableShadow?: boolean;
8514
+ };
8515
+ type ShadowProps = {
8516
+ type?: ShadowType | 'custom' | 'none';
8517
+ angle?: string | number;
8518
+ distance?: string;
8519
+ blur?: string;
8520
+ spread?: string;
8521
+ color?: ColorValueType;
8522
+ };
8523
+ type Border = {
8524
+ borderType?: BorderTypeName;
8525
+ border?: BorderStyle$1;
8526
+ color?: ColorValueType;
8527
+ width?: string;
8528
+ isCustom?: boolean;
8529
+ position?: BorderPosition;
8530
+ borderWidth?: string;
8531
+ };
8532
+ type BorderTypeName = 'none' | 'style-1' | 'style-2' | 'style-3';
8533
+ type BorderStyle$1 = 'none' | 'solid' | 'dotted' | 'dashed';
8534
+ type BorderPosition = 'top' | 'left' | 'right' | 'bottom' | 'all';
8535
+ type SwatchesOptionType = 'radio_buttons' | 'dropdown' | 'color' | 'image' | 'rectangle_list' | 'image_shopify' | string;
8536
+ declare const OptionNormalStyle: string[];
8537
+ declare const OptionSpecialStyle: string[];
8538
+ type SwatchesOptionValue = {
8539
+ label?: string;
8540
+ colors?: string[];
8541
+ imageUrl?: string;
8542
+ };
8543
+ type GlobalSwatchesData = {
8544
+ optionTitle: string;
8545
+ optionType: SwatchesOptionType;
8546
+ optionValues: SwatchesOptionValue[];
8547
+ };
8548
+
8383
8549
  type ShadowV2ControlType<T> = SharedControlType<T> & {
8384
8550
  type: 'shadow-v2';
8551
+ value?: ShadowProps;
8385
8552
  };
8386
8553
 
8387
8554
  type ControlProp<T> = ProductBundleChildControlType<T> | SelectProductBundleControlType<T> | AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputUnitControlType<T> | InputUnitSpacingControlType<T> | InputUnitWidthControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | OpenLinkControlType<T> | SelectControlType<T> | TextareaControlType<T> | ToggleControlType<T> | ImageControlType<T> | ChildrensControlType | GridControlType<T> | FlexControlType<T> | TextEditorControlType<T> | ProductControlType<T> | TypographyControlType<T> | TypographyV2ControlType<T> | MenuControlType<T> | BehaviorStateControlType<T> | PickLinkControlType<T> | BoxShadowControlType<T> | TextShadowControlType<T> | BorderControlType<T> | BorderRadiusControlType<T> | RadiusPresetControlType<T> | SizeControlType<T> | ChildItemType<T> | PickMultiProductControlType<T> | CollectionControlType<T> | BackgroundControlType<T> | VisibilityControlType<T> | SelectVariantControlType | CountdownEvergreenType | Timezone<T> | CustomContentControlType<T> | DateTimePickerControlType | CountdownDailyType | KlaviyoCodes | YotpoLoyaltyCodes | InputWidthControlType<T> | LayoutSegmentControlType<T> | InputSpacing<T> | UniqueIdControlType<T> | PositionSquareControlType<T> | CustomCodeEditor | LayoutControlType<T> | LayoutBannerControlType<T> | SwatchesLinkControlType<T> | VariantSwatchesPresetControlType<T> | VariantSwatchesOnlyDefaultVariantControlType<T> | ProductListControlType<T> | ArticleListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting$1<T> | ChildIconType<T> | DropdownInput<T> | Dropdown<T> | AliPickSectionControlType<T> | ParallaxScrollingType<T> | BackgroundColorPickerType<T> | PlayPauseControlType<T> | LayoutCustomSegmentControlType<T> | SneakPeakRange<T> | SneakPeakTypeControlType<T> | SneakPeakControlType<T> | ProductInputCurrencyUnitControlType<T> | TypographyPostPurchaseControlType<T> | ProductOffersControlType<T> | DiscountAndShippingFee<T> | PostPurchaseTextareaControlType<T> | NotesControlType<T> | ButtonLayoutType<T> | ShapeSelectorControlType<T> | DisplayTriggerControlType<T> | CustomPositionControlType<T> | DealControlType<T> | ProductHandleType<T> | ColorPickerV2ControlType<T> | BorderV2ControlType<T> | CornerV2ControlType<T> | PaddingV2ControlType<T> | BackgroundImageType<T> | BackgroundMediaControlType<T> | BackgroundVideoType<T> | BackgroundVideoType<T> | ShadowV2ControlType<T>;
@@ -30944,172 +31111,6 @@ declare namespace appAPI {
30944
31111
  };
30945
31112
  }
30946
31113
 
30947
- type NameDevices = 'desktop' | 'tablet' | 'mobile';
30948
- type TypographyV2Family = string | {
30949
- value: string;
30950
- type: TypographyV2FontFamilyType;
30951
- };
30952
- type TypographyV2FontFamilyType = 'google' | 'custom' | 'theme' | 'bunny';
30953
-
30954
- /**
30955
- * @deprecated Please use `TypographySettingV2`
30956
- */
30957
- type TypographySetting = {
30958
- type?: TypographyType;
30959
- custom?: ObjectDevices<TypographyProps>;
30960
- };
30961
- type TypographySettingV2 = {
30962
- type?: TypographyType;
30963
- custom?: TypographyV2Props;
30964
- attrs?: TypographyV2Attrs;
30965
- };
30966
- type SizeSetting = {
30967
- type?: SizeType;
30968
- custom?: ObjectDevices<SizeProps>;
30969
- };
30970
- type SizeProps = {
30971
- horizontal?: string;
30972
- vertical?: string;
30973
- };
30974
- type SizeType = 'medium' | 'large' | 'small' | 'none';
30975
- type TypographyProps = {
30976
- fontSize?: string;
30977
- fontWeight?: string | number;
30978
- fontStyle?: string;
30979
- fontFamily?: TypographyV2Family;
30980
- lineHeight?: string;
30981
- letterSpacing?: string;
30982
- fallbackFontFamily?: string;
30983
- textShadow?: ShadowProps;
30984
- hasShadowText?: boolean;
30985
- isCustom?: boolean;
30986
- };
30987
- type TypographyV2Props = Omit<TypographyProps, 'fontSize' | 'lineHeight'> & {
30988
- fontSize?: ObjectDevices<string>;
30989
- lineHeight?: ObjectDevices<string>;
30990
- };
30991
- type TypographyV2Attrs = {
30992
- bold?: boolean;
30993
- italic?: boolean;
30994
- underline?: boolean;
30995
- color?: ColorValueType;
30996
- transform?: string;
30997
- };
30998
- type CornerRadius = {
30999
- btlr?: string;
31000
- btrr?: string;
31001
- bblr?: string;
31002
- bbrr?: string;
31003
- radiusType?: CornerRadiusType;
31004
- };
31005
- type CornerRadiusType = 'none' | 'large' | 'medium' | 'small' | 'circle' | 'custom' | 'rounded';
31006
- type ColorType$1 = NestedKeys<BrandColorObject> | NestedKeys<BackgroundColorObject> | NestedKeys<TextColorObject> | NestedKeys<LineColorObject> | NestedKeys<FuncColorObject>;
31007
- type FontName = 'body' | 'heading' | 'code';
31008
- type ColorKey = 'transparent' | 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray';
31009
- type HexColorType = `#${string}`;
31010
- type RGBAColorType = `rgba(${number}, ${number}, ${number}, ${number})`;
31011
- type RGBColorType = `rgb(${number}, ${number}, ${number})`;
31012
- type HSLColorType = `hsl(${number}, ${number}%, ${number}%)`;
31013
- type HSLAColorType = `hsla(${number}, ${number}%, ${number}%, ${number})`;
31014
- type ColorValueType = ColorType$1 | HexColorType | RGBAColorType | RGBColorType | HSLColorType | HSLAColorType | ColorKey;
31015
- type BrandColorObject = {
31016
- brand: string;
31017
- highlight: string;
31018
- };
31019
- type BackgroundColorObject = {
31020
- 'bg-1': string;
31021
- 'bg-2': string;
31022
- 'bg-3': string;
31023
- };
31024
- type TextColorObject = {
31025
- 'text-1': string;
31026
- 'text-2': string;
31027
- 'text-3': string;
31028
- };
31029
- type LineColorObject = {
31030
- 'line-1': string;
31031
- 'line-2': string;
31032
- 'line-3': string;
31033
- };
31034
- type FuncColorObject = {
31035
- info: string;
31036
- warning: string;
31037
- success: string;
31038
- error: string;
31039
- };
31040
- type TypographyType = 'heading-1' | 'heading-2' | 'heading-3' | 'subheading-1' | 'subheading-2' | 'subheading-3' | 'paragraph-1' | 'paragraph-2' | 'paragraph-3';
31041
- type ObjectDeviceGlobalType<T> = {
31042
- desktop: T;
31043
- tablet?: T;
31044
- mobile?: T;
31045
- };
31046
- type SpacingType = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
31047
- type RoundedSize = 'small' | 'medium' | 'large' | 'circle' | 'none' | 'custom' | 'rounded';
31048
- type ContainerProp = 'width' | 'padding';
31049
- type GlobalStyleResponsiveConfig = {
31050
- color?: Partial<Record<ColorType$1, string>>;
31051
- font?: Partial<Record<FontName, any>>;
31052
- typography?: Partial<Record<TypographyType, ObjectDeviceGlobalType<TypographyProps>>>;
31053
- spacing?: Partial<Record<SpacingType, ObjectDeviceGlobalType<string>>>;
31054
- container?: Partial<Record<ContainerProp, ObjectDeviceGlobalType<string>>>;
31055
- radius?: Partial<Record<RoundedSize, string>>;
31056
- theme?: {
31057
- font?: Partial<Record<FontName, any>>;
31058
- };
31059
- };
31060
- type GlobalStyleConfig = {
31061
- color?: Partial<Record<ColorType$1, string>>;
31062
- font?: Partial<Record<FontName, any>>;
31063
- typography?: Partial<Record<TypographyType, TypographyProps>>;
31064
- spacing?: Partial<Record<SpacingType, string>>;
31065
- container?: Partial<Record<ContainerProp, string>>;
31066
- radius?: Partial<Record<RoundedSize, string>>;
31067
- theme?: {
31068
- font?: Partial<Record<FontName, any>>;
31069
- };
31070
- };
31071
- type ShadowStyleApplied = 'text-shadow' | 'box-shadow';
31072
- type ShadowType = 'shadow-1' | 'shadow-2' | 'shadow-3';
31073
- type ShadowStyle = {
31074
- value?: ShadowProps;
31075
- state?: StateType;
31076
- styleAppliedFor?: ShadowStyleApplied;
31077
- isEnableShadow?: boolean;
31078
- };
31079
- type ShadowProps = {
31080
- type?: ShadowType | 'custom' | 'none';
31081
- angle?: string | number;
31082
- distance?: string;
31083
- blur?: string;
31084
- spread?: string;
31085
- color?: ColorValueType;
31086
- };
31087
- type Border = {
31088
- borderType?: BorderTypeName;
31089
- border?: BorderStyle$1;
31090
- color?: ColorValueType;
31091
- width?: string;
31092
- isCustom?: boolean;
31093
- position?: BorderPosition;
31094
- borderWidth?: string;
31095
- };
31096
- type BorderTypeName = 'none' | 'style-1' | 'style-2' | 'style-3';
31097
- type BorderStyle$1 = 'none' | 'solid' | 'dotted' | 'dashed';
31098
- type BorderPosition = 'top' | 'left' | 'right' | 'bottom' | 'all';
31099
- type SwatchesOptionType = 'radio_buttons' | 'dropdown' | 'color' | 'image' | 'rectangle_list' | 'image_shopify' | string;
31100
- declare const OptionNormalStyle: string[];
31101
- declare const OptionSpecialStyle: string[];
31102
- type SwatchesOptionValue = {
31103
- label?: string;
31104
- colors?: string[];
31105
- imageUrl?: string;
31106
- };
31107
- type GlobalSwatchesData = {
31108
- optionTitle: string;
31109
- optionType: SwatchesOptionType;
31110
- optionValues: SwatchesOptionValue[];
31111
- };
31112
-
31113
31114
  type ProductInputAnalytic = {
31114
31115
  id: string;
31115
31116
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.53.0-dev.150",
3
+ "version": "1.53.0-dev.154",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@gem-sdk/adapter-shopify": "1.53.0-dev.105",
31
- "@gem-sdk/styles": "1.53.0-dev.139",
31
+ "@gem-sdk/styles": "1.53.0-dev.151",
32
32
  "@types/classnames": "^2.3.1"
33
33
  },
34
34
  "dependencies": {