@frontify/guideline-blocks-settings 0.20.0 → 0.22.0

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.
@@ -1,4 +1,5 @@
1
1
  import { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';
2
+ import { AssetInputSize } from '@frontify/fondue';
2
3
  import { BaseBlock } from './base';
3
4
  export declare enum AssetInputSource {
4
5
  Library = "Library",
@@ -20,4 +21,5 @@ export declare type AssetInputBlock = {
20
21
  projectTypes?: AssetChooserProjectType[];
21
22
  objectTypes?: AssetChooserObjectType[];
22
23
  mode?: AssetInputMode;
24
+ size?: AssetInputSize;
23
25
  } & BaseBlock<AssetInputValue | AssetInputValue['value']>;
@@ -1 +1 @@
1
- {"version":3,"file":"assetInput.es.js","sources":["../../types/blocks/assetInput.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';\nimport { BaseBlock } from './base';\n\nexport enum AssetInputSource {\n Library = 'Library',\n Upload = 'Upload',\n}\n\nexport enum AssetInputMode {\n BrowseAndUpload = 'BrowseAndUpload',\n UploadOnly = 'UploadOnly',\n BrowseOnly = 'BrowseOnly',\n}\n\nexport type AssetInputValue = {\n source: AssetInputSource;\n value: number;\n};\n\nexport type AssetInputBlock = {\n type: 'assetInput';\n multiSelection?: boolean;\n extensions?: (FileExtension | string)[];\n projectTypes?: AssetChooserProjectType[];\n objectTypes?: AssetChooserObjectType[];\n mode?: AssetInputMode;\n} & BaseBlock<AssetInputValue | AssetInputValue['value']>;\n"],"names":["AssetInputSource","AssetInputMode"],"mappings":"AAKY,IAAAA,sBAAAA,OACRA,EAAA,UAAU,WACVA,EAAA,SAAS,UAFDA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACRA,EAAA,kBAAkB,mBAClBA,EAAA,aAAa,cACbA,EAAA,aAAa,cAHLA,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"assetInput.es.js","sources":["../../types/blocks/assetInput.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';\nimport { AssetInputSize } from '@frontify/fondue';\nimport { BaseBlock } from './base';\n\nexport enum AssetInputSource {\n Library = 'Library',\n Upload = 'Upload',\n}\n\nexport enum AssetInputMode {\n BrowseAndUpload = 'BrowseAndUpload',\n UploadOnly = 'UploadOnly',\n BrowseOnly = 'BrowseOnly',\n}\n\nexport type AssetInputValue = {\n source: AssetInputSource;\n value: number;\n};\n\nexport type AssetInputBlock = {\n type: 'assetInput';\n multiSelection?: boolean;\n extensions?: (FileExtension | string)[];\n projectTypes?: AssetChooserProjectType[];\n objectTypes?: AssetChooserObjectType[];\n mode?: AssetInputMode;\n size?: AssetInputSize;\n} & BaseBlock<AssetInputValue | AssetInputValue['value']>;\n"],"names":["AssetInputSource","AssetInputMode"],"mappings":"AAMY,IAAAA,sBAAAA,OACRA,EAAA,UAAU,WACVA,EAAA,SAAS,UAFDA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACRA,EAAA,kBAAkB,mBAClBA,EAAA,aAAa,cACbA,EAAA,aAAa,cAHLA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -1,5 +1,5 @@
1
1
  import { Bundle } from '../bundle';
2
- export declare type ValueOrPromisedValue<FieldType> = FieldType | ((bundle: Bundle) => Promise<FieldType>);
2
+ export declare type ValueOrPromisedValue<FieldType> = FieldType | ((bundle: Bundle) => FieldType) | ((bundle: Bundle) => Promise<FieldType>);
3
3
  export declare type BaseBlock<T = undefined> = {
4
4
  id: string;
5
5
  label?: ValueOrPromisedValue<string>;
@@ -1,4 +1,7 @@
1
1
  export declare type Checkbox = {
2
2
  id: string;
3
3
  label?: string;
4
+ tooltip?: {
5
+ content: string;
6
+ };
4
7
  };
@@ -1,4 +1,5 @@
1
1
  import { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';
2
+ import { AssetInputSize } from '@frontify/fondue';
2
3
  import { BaseBlock } from './base';
3
4
  export declare enum LegacyAssetInputSource {
4
5
  Library = "Library",
@@ -20,4 +21,5 @@ export declare type LegacyAssetInputBlock = {
20
21
  projectTypes?: AssetChooserProjectType[];
21
22
  objectTypes?: AssetChooserObjectType[];
22
23
  mode?: LegacyAssetInputMode;
24
+ size?: AssetInputSize;
23
25
  } & BaseBlock<LegacyAssetInputValue | LegacyAssetInputValue['value']>;
@@ -1 +1 @@
1
- {"version":3,"file":"legacyAssetInput.es.js","sources":["../../types/blocks/legacyAssetInput.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';\nimport { BaseBlock } from './base';\n\nexport enum LegacyAssetInputSource {\n Library = 'Library',\n Upload = 'Upload',\n}\n\nexport enum LegacyAssetInputMode {\n BrowseAndUpload = 'BrowseAndUpload',\n UploadOnly = 'UploadOnly',\n BrowseOnly = 'BrowseOnly',\n}\n\nexport type LegacyAssetInputValue = {\n source: LegacyAssetInputSource;\n value: number;\n};\n\nexport type LegacyAssetInputBlock = {\n type: 'legacyAssetInput';\n multiSelection?: boolean;\n extensions?: (FileExtension | string)[];\n projectTypes?: AssetChooserProjectType[];\n objectTypes?: AssetChooserObjectType[];\n mode?: LegacyAssetInputMode;\n} & BaseBlock<LegacyAssetInputValue | LegacyAssetInputValue['value']>;\n"],"names":["LegacyAssetInputSource","LegacyAssetInputMode"],"mappings":"AAKY,IAAAA,sBAAAA,OACRA,EAAA,UAAU,WACVA,EAAA,SAAS,UAFDA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACRA,EAAA,kBAAkB,mBAClBA,EAAA,aAAa,cACbA,EAAA,aAAa,cAHLA,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"legacyAssetInput.es.js","sources":["../../types/blocks/legacyAssetInput.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';\nimport { AssetInputSize } from '@frontify/fondue';\nimport { BaseBlock } from './base';\n\nexport enum LegacyAssetInputSource {\n Library = 'Library',\n Upload = 'Upload',\n}\n\nexport enum LegacyAssetInputMode {\n BrowseAndUpload = 'BrowseAndUpload',\n UploadOnly = 'UploadOnly',\n BrowseOnly = 'BrowseOnly',\n}\n\nexport type LegacyAssetInputValue = {\n source: LegacyAssetInputSource;\n value: number;\n};\n\nexport type LegacyAssetInputBlock = {\n type: 'legacyAssetInput';\n multiSelection?: boolean;\n extensions?: (FileExtension | string)[];\n projectTypes?: AssetChooserProjectType[];\n objectTypes?: AssetChooserObjectType[];\n mode?: LegacyAssetInputMode;\n size?: AssetInputSize;\n} & BaseBlock<LegacyAssetInputValue | LegacyAssetInputValue['value']>;\n"],"names":["LegacyAssetInputSource","LegacyAssetInputMode"],"mappings":"AAMY,IAAAA,sBAAAA,OACRA,EAAA,UAAU,WACVA,EAAA,SAAS,UAFDA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACRA,EAAA,kBAAkB,mBAClBA,EAAA,aAAa,cACbA,EAAA,aAAa,cAHLA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -3,7 +3,6 @@ import { BaseBlock } from './base';
3
3
  export declare type LinkChooserBlock = {
4
4
  type: 'linkChooser';
5
5
  placeholder?: string;
6
- label?: string;
7
6
  openInNewTab?: boolean;
8
7
  disabled?: boolean;
9
8
  clearable?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../types/blocks/assetInput.ts","../types/blocks/legacyAssetInput.ts","../types/blocks/notification.ts","../types/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';\nimport { BaseBlock } from './base';\n\nexport enum AssetInputSource {\n Library = 'Library',\n Upload = 'Upload',\n}\n\nexport enum AssetInputMode {\n BrowseAndUpload = 'BrowseAndUpload',\n UploadOnly = 'UploadOnly',\n BrowseOnly = 'BrowseOnly',\n}\n\nexport type AssetInputValue = {\n source: AssetInputSource;\n value: number;\n};\n\nexport type AssetInputBlock = {\n type: 'assetInput';\n multiSelection?: boolean;\n extensions?: (FileExtension | string)[];\n projectTypes?: AssetChooserProjectType[];\n objectTypes?: AssetChooserObjectType[];\n mode?: AssetInputMode;\n} & BaseBlock<AssetInputValue | AssetInputValue['value']>;\n","/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';\nimport { BaseBlock } from './base';\n\nexport enum LegacyAssetInputSource {\n Library = 'Library',\n Upload = 'Upload',\n}\n\nexport enum LegacyAssetInputMode {\n BrowseAndUpload = 'BrowseAndUpload',\n UploadOnly = 'UploadOnly',\n BrowseOnly = 'BrowseOnly',\n}\n\nexport type LegacyAssetInputValue = {\n source: LegacyAssetInputSource;\n value: number;\n};\n\nexport type LegacyAssetInputBlock = {\n type: 'legacyAssetInput';\n multiSelection?: boolean;\n extensions?: (FileExtension | string)[];\n projectTypes?: AssetChooserProjectType[];\n objectTypes?: AssetChooserObjectType[];\n mode?: LegacyAssetInputMode;\n} & BaseBlock<LegacyAssetInputValue | LegacyAssetInputValue['value']>;\n","/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { BaseBlock } from './base';\n\nexport enum NotificationStyleType {\n Warning = 'Warning',\n Negative = 'Negative',\n Positive = 'Positive',\n Info = 'Info',\n}\n\nexport type Link = {\n label?: string;\n href: string;\n target?: '_self' | '_blank';\n};\n\nexport enum NotificationBlockDividerPosition {\n Top = 'Top',\n Bottom = 'Bottom',\n Both = 'Both',\n None = 'None',\n}\n\nexport type NotificationBlock = {\n type: 'notification';\n title?: string;\n text?: string;\n link?: Link;\n styles: {\n type: NotificationStyleType;\n icon?: boolean;\n divider?: NotificationBlockDividerPosition;\n };\n} & BaseBlock;\n","/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { SettingBlock } from './blocks';\n\nexport * from './blocks';\nexport type { BaseBlock } from './blocks/base';\nexport type { Bundle, SettingValue } from './bundle';\nexport type { Rule } from './validation';\n\nexport enum Sections {\n Main = 'main',\n Basics = 'basics',\n Layout = 'layout',\n Style = 'style',\n Security = 'security',\n Targets = 'targets',\n}\n\nexport type BlockSettings = {\n [Sections.Main]?: SettingBlock[];\n [Sections.Basics]?: SettingBlock[];\n [Sections.Layout]?: SettingBlock[];\n [Sections.Style]?: SettingBlock[];\n [Sections.Security]?: SettingBlock[];\n};\n"],"names":["AssetInputSource","AssetInputMode","LegacyAssetInputSource","LegacyAssetInputMode","NotificationStyleType","NotificationBlockDividerPosition","Sections"],"mappings":"4GAKY,IAAAA,GAAAA,IACRA,EAAA,QAAU,UACVA,EAAA,OAAS,SAFDA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACRA,EAAA,gBAAkB,kBAClBA,EAAA,WAAa,aACbA,EAAA,WAAa,aAHLA,IAAAA,GAAA,CAAA,CAAA,ECLAC,GAAAA,IACRA,EAAA,QAAU,UACVA,EAAA,OAAS,SAFDA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACRA,EAAA,gBAAkB,kBAClBA,EAAA,WAAa,aACbA,EAAA,WAAa,aAHLA,IAAAA,GAAA,CAAA,CAAA,ECNAC,GAAAA,IACRA,EAAA,QAAU,UACVA,EAAA,SAAW,WACXA,EAAA,SAAW,WACXA,EAAA,KAAO,OAJCA,IAAAA,GAAA,CAAA,CAAA,EAaAC,GAAAA,IACRA,EAAA,IAAM,MACNA,EAAA,OAAS,SACTA,EAAA,KAAO,OACPA,EAAA,KAAO,OAJCA,IAAAA,GAAA,CAAA,CAAA,ECRAC,GAAAA,IACRA,EAAA,KAAO,OACPA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,MAAQ,QACRA,EAAA,SAAW,WACXA,EAAA,QAAU,UANFA,IAAAA,GAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../types/blocks/assetInput.ts","../types/blocks/legacyAssetInput.ts","../types/blocks/notification.ts","../types/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';\nimport { AssetInputSize } from '@frontify/fondue';\nimport { BaseBlock } from './base';\n\nexport enum AssetInputSource {\n Library = 'Library',\n Upload = 'Upload',\n}\n\nexport enum AssetInputMode {\n BrowseAndUpload = 'BrowseAndUpload',\n UploadOnly = 'UploadOnly',\n BrowseOnly = 'BrowseOnly',\n}\n\nexport type AssetInputValue = {\n source: AssetInputSource;\n value: number;\n};\n\nexport type AssetInputBlock = {\n type: 'assetInput';\n multiSelection?: boolean;\n extensions?: (FileExtension | string)[];\n projectTypes?: AssetChooserProjectType[];\n objectTypes?: AssetChooserObjectType[];\n mode?: AssetInputMode;\n size?: AssetInputSize;\n} & BaseBlock<AssetInputValue | AssetInputValue['value']>;\n","/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';\nimport { AssetInputSize } from '@frontify/fondue';\nimport { BaseBlock } from './base';\n\nexport enum LegacyAssetInputSource {\n Library = 'Library',\n Upload = 'Upload',\n}\n\nexport enum LegacyAssetInputMode {\n BrowseAndUpload = 'BrowseAndUpload',\n UploadOnly = 'UploadOnly',\n BrowseOnly = 'BrowseOnly',\n}\n\nexport type LegacyAssetInputValue = {\n source: LegacyAssetInputSource;\n value: number;\n};\n\nexport type LegacyAssetInputBlock = {\n type: 'legacyAssetInput';\n multiSelection?: boolean;\n extensions?: (FileExtension | string)[];\n projectTypes?: AssetChooserProjectType[];\n objectTypes?: AssetChooserObjectType[];\n mode?: LegacyAssetInputMode;\n size?: AssetInputSize;\n} & BaseBlock<LegacyAssetInputValue | LegacyAssetInputValue['value']>;\n","/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { BaseBlock } from './base';\n\nexport enum NotificationStyleType {\n Warning = 'Warning',\n Negative = 'Negative',\n Positive = 'Positive',\n Info = 'Info',\n}\n\nexport type Link = {\n label?: string;\n href: string;\n target?: '_self' | '_blank';\n};\n\nexport enum NotificationBlockDividerPosition {\n Top = 'Top',\n Bottom = 'Bottom',\n Both = 'Both',\n None = 'None',\n}\n\nexport type NotificationBlock = {\n type: 'notification';\n title?: string;\n text?: string;\n link?: Link;\n styles: {\n type: NotificationStyleType;\n icon?: boolean;\n divider?: NotificationBlockDividerPosition;\n };\n} & BaseBlock;\n","/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { SettingBlock } from './blocks';\n\nexport * from './blocks';\nexport type { BaseBlock } from './blocks/base';\nexport type { Bundle, SettingValue } from './bundle';\nexport type { Rule } from './validation';\n\nexport enum Sections {\n Main = 'main',\n Basics = 'basics',\n Layout = 'layout',\n Style = 'style',\n Security = 'security',\n Targets = 'targets',\n}\n\nexport type BlockSettings = {\n [Sections.Main]?: SettingBlock[];\n [Sections.Basics]?: SettingBlock[];\n [Sections.Layout]?: SettingBlock[];\n [Sections.Style]?: SettingBlock[];\n [Sections.Security]?: SettingBlock[];\n};\n"],"names":["AssetInputSource","AssetInputMode","LegacyAssetInputSource","LegacyAssetInputMode","NotificationStyleType","NotificationBlockDividerPosition","Sections"],"mappings":"4GAMY,IAAAA,GAAAA,IACRA,EAAA,QAAU,UACVA,EAAA,OAAS,SAFDA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACRA,EAAA,gBAAkB,kBAClBA,EAAA,WAAa,aACbA,EAAA,WAAa,aAHLA,IAAAA,GAAA,CAAA,CAAA,ECLAC,GAAAA,IACRA,EAAA,QAAU,UACVA,EAAA,OAAS,SAFDA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACRA,EAAA,gBAAkB,kBAClBA,EAAA,WAAa,aACbA,EAAA,WAAa,aAHLA,IAAAA,GAAA,CAAA,CAAA,ECPAC,GAAAA,IACRA,EAAA,QAAU,UACVA,EAAA,SAAW,WACXA,EAAA,SAAW,WACXA,EAAA,KAAO,OAJCA,IAAAA,GAAA,CAAA,CAAA,EAaAC,GAAAA,IACRA,EAAA,IAAM,MACNA,EAAA,OAAS,SACTA,EAAA,KAAO,OACPA,EAAA,KAAO,OAJCA,IAAAA,GAAA,CAAA,CAAA,ECRAC,GAAAA,IACRA,EAAA,KAAO,OACPA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,MAAQ,QACRA,EAAA,SAAW,WACXA,EAAA,QAAU,UANFA,IAAAA,GAAA,CAAA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":["../types/blocks/assetInput.ts","../types/blocks/legacyAssetInput.ts","../types/blocks/notification.ts","../types/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';\nimport { BaseBlock } from './base';\n\nexport enum AssetInputSource {\n Library = 'Library',\n Upload = 'Upload',\n}\n\nexport enum AssetInputMode {\n BrowseAndUpload = 'BrowseAndUpload',\n UploadOnly = 'UploadOnly',\n BrowseOnly = 'BrowseOnly',\n}\n\nexport type AssetInputValue = {\n source: AssetInputSource;\n value: number;\n};\n\nexport type AssetInputBlock = {\n type: 'assetInput';\n multiSelection?: boolean;\n extensions?: (FileExtension | string)[];\n projectTypes?: AssetChooserProjectType[];\n objectTypes?: AssetChooserObjectType[];\n mode?: AssetInputMode;\n} & BaseBlock<AssetInputValue | AssetInputValue['value']>;\n","/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';\nimport { BaseBlock } from './base';\n\nexport enum LegacyAssetInputSource {\n Library = 'Library',\n Upload = 'Upload',\n}\n\nexport enum LegacyAssetInputMode {\n BrowseAndUpload = 'BrowseAndUpload',\n UploadOnly = 'UploadOnly',\n BrowseOnly = 'BrowseOnly',\n}\n\nexport type LegacyAssetInputValue = {\n source: LegacyAssetInputSource;\n value: number;\n};\n\nexport type LegacyAssetInputBlock = {\n type: 'legacyAssetInput';\n multiSelection?: boolean;\n extensions?: (FileExtension | string)[];\n projectTypes?: AssetChooserProjectType[];\n objectTypes?: AssetChooserObjectType[];\n mode?: LegacyAssetInputMode;\n} & BaseBlock<LegacyAssetInputValue | LegacyAssetInputValue['value']>;\n","/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { BaseBlock } from './base';\n\nexport enum NotificationStyleType {\n Warning = 'Warning',\n Negative = 'Negative',\n Positive = 'Positive',\n Info = 'Info',\n}\n\nexport type Link = {\n label?: string;\n href: string;\n target?: '_self' | '_blank';\n};\n\nexport enum NotificationBlockDividerPosition {\n Top = 'Top',\n Bottom = 'Bottom',\n Both = 'Both',\n None = 'None',\n}\n\nexport type NotificationBlock = {\n type: 'notification';\n title?: string;\n text?: string;\n link?: Link;\n styles: {\n type: NotificationStyleType;\n icon?: boolean;\n divider?: NotificationBlockDividerPosition;\n };\n} & BaseBlock;\n","/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { SettingBlock } from './blocks';\n\nexport * from './blocks';\nexport type { BaseBlock } from './blocks/base';\nexport type { Bundle, SettingValue } from './bundle';\nexport type { Rule } from './validation';\n\nexport enum Sections {\n Main = 'main',\n Basics = 'basics',\n Layout = 'layout',\n Style = 'style',\n Security = 'security',\n Targets = 'targets',\n}\n\nexport type BlockSettings = {\n [Sections.Main]?: SettingBlock[];\n [Sections.Basics]?: SettingBlock[];\n [Sections.Layout]?: SettingBlock[];\n [Sections.Style]?: SettingBlock[];\n [Sections.Security]?: SettingBlock[];\n};\n"],"names":["AssetInputSource","AssetInputMode","LegacyAssetInputSource","LegacyAssetInputMode","NotificationStyleType","NotificationBlockDividerPosition","Sections"],"mappings":"+OAKY,IAAAA,GAAAA,IACRA,EAAA,QAAU,UACVA,EAAA,OAAS,SAFDA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACRA,EAAA,gBAAkB,kBAClBA,EAAA,WAAa,aACbA,EAAA,WAAa,aAHLA,IAAAA,GAAA,CAAA,CAAA,ECLAC,GAAAA,IACRA,EAAA,QAAU,UACVA,EAAA,OAAS,SAFDA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACRA,EAAA,gBAAkB,kBAClBA,EAAA,WAAa,aACbA,EAAA,WAAa,aAHLA,IAAAA,GAAA,CAAA,CAAA,ECNAC,GAAAA,IACRA,EAAA,QAAU,UACVA,EAAA,SAAW,WACXA,EAAA,SAAW,WACXA,EAAA,KAAO,OAJCA,IAAAA,GAAA,CAAA,CAAA,EAaAC,GAAAA,IACRA,EAAA,IAAM,MACNA,EAAA,OAAS,SACTA,EAAA,KAAO,OACPA,EAAA,KAAO,OAJCA,IAAAA,GAAA,CAAA,CAAA,ECRAC,GAAAA,IACRA,EAAA,KAAO,OACPA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,MAAQ,QACRA,EAAA,SAAW,WACXA,EAAA,QAAU,UANFA,IAAAA,GAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"index.umd.js","sources":["../types/blocks/assetInput.ts","../types/blocks/legacyAssetInput.ts","../types/blocks/notification.ts","../types/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';\nimport { AssetInputSize } from '@frontify/fondue';\nimport { BaseBlock } from './base';\n\nexport enum AssetInputSource {\n Library = 'Library',\n Upload = 'Upload',\n}\n\nexport enum AssetInputMode {\n BrowseAndUpload = 'BrowseAndUpload',\n UploadOnly = 'UploadOnly',\n BrowseOnly = 'BrowseOnly',\n}\n\nexport type AssetInputValue = {\n source: AssetInputSource;\n value: number;\n};\n\nexport type AssetInputBlock = {\n type: 'assetInput';\n multiSelection?: boolean;\n extensions?: (FileExtension | string)[];\n projectTypes?: AssetChooserProjectType[];\n objectTypes?: AssetChooserObjectType[];\n mode?: AssetInputMode;\n size?: AssetInputSize;\n} & BaseBlock<AssetInputValue | AssetInputValue['value']>;\n","/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';\nimport { AssetInputSize } from '@frontify/fondue';\nimport { BaseBlock } from './base';\n\nexport enum LegacyAssetInputSource {\n Library = 'Library',\n Upload = 'Upload',\n}\n\nexport enum LegacyAssetInputMode {\n BrowseAndUpload = 'BrowseAndUpload',\n UploadOnly = 'UploadOnly',\n BrowseOnly = 'BrowseOnly',\n}\n\nexport type LegacyAssetInputValue = {\n source: LegacyAssetInputSource;\n value: number;\n};\n\nexport type LegacyAssetInputBlock = {\n type: 'legacyAssetInput';\n multiSelection?: boolean;\n extensions?: (FileExtension | string)[];\n projectTypes?: AssetChooserProjectType[];\n objectTypes?: AssetChooserObjectType[];\n mode?: LegacyAssetInputMode;\n size?: AssetInputSize;\n} & BaseBlock<LegacyAssetInputValue | LegacyAssetInputValue['value']>;\n","/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { BaseBlock } from './base';\n\nexport enum NotificationStyleType {\n Warning = 'Warning',\n Negative = 'Negative',\n Positive = 'Positive',\n Info = 'Info',\n}\n\nexport type Link = {\n label?: string;\n href: string;\n target?: '_self' | '_blank';\n};\n\nexport enum NotificationBlockDividerPosition {\n Top = 'Top',\n Bottom = 'Bottom',\n Both = 'Both',\n None = 'None',\n}\n\nexport type NotificationBlock = {\n type: 'notification';\n title?: string;\n text?: string;\n link?: Link;\n styles: {\n type: NotificationStyleType;\n icon?: boolean;\n divider?: NotificationBlockDividerPosition;\n };\n} & BaseBlock;\n","/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { SettingBlock } from './blocks';\n\nexport * from './blocks';\nexport type { BaseBlock } from './blocks/base';\nexport type { Bundle, SettingValue } from './bundle';\nexport type { Rule } from './validation';\n\nexport enum Sections {\n Main = 'main',\n Basics = 'basics',\n Layout = 'layout',\n Style = 'style',\n Security = 'security',\n Targets = 'targets',\n}\n\nexport type BlockSettings = {\n [Sections.Main]?: SettingBlock[];\n [Sections.Basics]?: SettingBlock[];\n [Sections.Layout]?: SettingBlock[];\n [Sections.Style]?: SettingBlock[];\n [Sections.Security]?: SettingBlock[];\n};\n"],"names":["AssetInputSource","AssetInputMode","LegacyAssetInputSource","LegacyAssetInputMode","NotificationStyleType","NotificationBlockDividerPosition","Sections"],"mappings":"+OAMY,IAAAA,GAAAA,IACRA,EAAA,QAAU,UACVA,EAAA,OAAS,SAFDA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACRA,EAAA,gBAAkB,kBAClBA,EAAA,WAAa,aACbA,EAAA,WAAa,aAHLA,IAAAA,GAAA,CAAA,CAAA,ECLAC,GAAAA,IACRA,EAAA,QAAU,UACVA,EAAA,OAAS,SAFDA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACRA,EAAA,gBAAkB,kBAClBA,EAAA,WAAa,aACbA,EAAA,WAAa,aAHLA,IAAAA,GAAA,CAAA,CAAA,ECPAC,GAAAA,IACRA,EAAA,QAAU,UACVA,EAAA,SAAW,WACXA,EAAA,SAAW,WACXA,EAAA,KAAO,OAJCA,IAAAA,GAAA,CAAA,CAAA,EAaAC,GAAAA,IACRA,EAAA,IAAM,MACNA,EAAA,OAAS,SACTA,EAAA,KAAO,OACPA,EAAA,KAAO,OAJCA,IAAAA,GAAA,CAAA,CAAA,ECRAC,GAAAA,IACRA,EAAA,KAAO,OACPA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,MAAQ,QACRA,EAAA,SAAW,WACXA,EAAA,QAAU,UANFA,IAAAA,GAAA,CAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontify/guideline-blocks-settings",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "description": "Provides the types for the block settings",
5
5
  "sideEffects": false,
6
6
  "main": "dist/index.umd.js",
@@ -14,17 +14,17 @@
14
14
  "author": "Frontify Developers <developers@frontify.com>",
15
15
  "devDependencies": {
16
16
  "@frontify/eslint-config-typescript": "0.15.2",
17
- "eslint": "8.21.0",
17
+ "eslint": "8.24.0",
18
18
  "prettier": "2.7.1",
19
19
  "react": "17.0.2",
20
20
  "react-dom": "17.0.2",
21
- "typescript": "4.7.4",
22
- "vite": "3.0.4",
23
- "vite-plugin-dts": "1.4.1"
21
+ "typescript": "4.8.3",
22
+ "vite": "3.1.3",
23
+ "vite-plugin-dts": "1.5.0"
24
24
  },
25
25
  "dependencies": {
26
- "@frontify/app-bridge": "*",
27
- "@frontify/fondue": "*"
26
+ "@frontify/app-bridge": "latest",
27
+ "@frontify/fondue": "latest"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "vite build",
@@ -1,6 +1,7 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
3
  import { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';
4
+ import { AssetInputSize } from '@frontify/fondue';
4
5
  import { BaseBlock } from './base';
5
6
 
6
7
  export enum AssetInputSource {
@@ -26,4 +27,5 @@ export type AssetInputBlock = {
26
27
  projectTypes?: AssetChooserProjectType[];
27
28
  objectTypes?: AssetChooserObjectType[];
28
29
  mode?: AssetInputMode;
30
+ size?: AssetInputSize;
29
31
  } & BaseBlock<AssetInputValue | AssetInputValue['value']>;
@@ -2,7 +2,10 @@
2
2
 
3
3
  import { Bundle } from '../bundle';
4
4
 
5
- export type ValueOrPromisedValue<FieldType> = FieldType | ((bundle: Bundle) => Promise<FieldType>);
5
+ export type ValueOrPromisedValue<FieldType> =
6
+ | FieldType
7
+ | ((bundle: Bundle) => FieldType)
8
+ | ((bundle: Bundle) => Promise<FieldType>);
6
9
 
7
10
  export type BaseBlock<T = undefined> = {
8
11
  id: string;
@@ -3,4 +3,7 @@
3
3
  export type Checkbox = {
4
4
  id: string;
5
5
  label?: string;
6
+ tooltip?: {
7
+ content: string;
8
+ };
6
9
  };
@@ -1,6 +1,7 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
3
  import { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';
4
+ import { AssetInputSize } from '@frontify/fondue';
4
5
  import { BaseBlock } from './base';
5
6
 
6
7
  export enum LegacyAssetInputSource {
@@ -26,4 +27,5 @@ export type LegacyAssetInputBlock = {
26
27
  projectTypes?: AssetChooserProjectType[];
27
28
  objectTypes?: AssetChooserObjectType[];
28
29
  mode?: LegacyAssetInputMode;
30
+ size?: AssetInputSize;
29
31
  } & BaseBlock<LegacyAssetInputValue | LegacyAssetInputValue['value']>;
@@ -6,7 +6,6 @@ import { BaseBlock } from './base';
6
6
  export type LinkChooserBlock = {
7
7
  type: 'linkChooser';
8
8
  placeholder?: string;
9
- label?: string;
10
9
  openInNewTab?: boolean;
11
10
  disabled?: boolean;
12
11
  clearable?: boolean;