@frontify/guideline-blocks-settings 0.14.0 → 0.16.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.
package/README.md CHANGED
@@ -6,7 +6,7 @@ Provides the block settings types for the guideline-blocks.
6
6
 
7
7
  ```ts
8
8
  import { Bundle, BlockSettings } from '@frontify/guideline-blocks-settings';
9
- import { IconEnum } from '@frontify/arcade';
9
+ import { IconEnum } from '@frontify/fondue';
10
10
 
11
11
  const Settings: BlockSettings = {
12
12
  main: [
@@ -0,0 +1,6 @@
1
+ var a = /* @__PURE__ */ ((r) => (r.Library = "Library", r.Upload = "Upload", r))(a || {}), l = /* @__PURE__ */ ((r) => (r.BrowseAndUpload = "BrowseAndUpload", r.UploadOnly = "UploadOnly", r.BrowseOnly = "BrowseOnly", r))(l || {});
2
+ export {
3
+ l as AssetInputMode,
4
+ a as AssetInputSource
5
+ };
6
+ //# sourceMappingURL=assetInput.es.js.map
@@ -0,0 +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,4 +1,4 @@
1
- import { IconEnum } from '@frontify/arcade';
1
+ import { IconEnum } from '@frontify/fondue';
2
2
  import { BaseBlock } from './base';
3
3
  export declare type Choice = {
4
4
  label?: string | number;
@@ -1,4 +1,4 @@
1
- import { Color } from '@frontify/arcade';
1
+ import { Color } from '@frontify/fondue';
2
2
  import { BaseBlock } from './base';
3
3
  export declare type ColorInputBlock = {
4
4
  type: 'colorInput';
@@ -1,4 +1,4 @@
1
- import { DropdownSize } from '@frontify/arcade';
1
+ import { DropdownSize } from '@frontify/fondue';
2
2
  import { ChoicesType } from './choices';
3
3
  export declare type DropdownBlock = {
4
4
  type: 'dropdown';
@@ -1,4 +1,4 @@
1
- import { TextInputType } from '@frontify/arcade';
1
+ import { TextInputType } from '@frontify/fondue';
2
2
  import { Rule } from '../validation';
3
3
  import { BaseBlock } from './base';
4
4
  export declare type InputBlock = {
@@ -0,0 +1,6 @@
1
+ var l = /* @__PURE__ */ ((r) => (r.Library = "Library", r.Upload = "Upload", r))(l || {}), o = /* @__PURE__ */ ((r) => (r.BrowseAndUpload = "BrowseAndUpload", r.UploadOnly = "UploadOnly", r.BrowseOnly = "BrowseOnly", r))(o || {});
2
+ export {
3
+ o as LegacyAssetInputMode,
4
+ l as LegacyAssetInputSource
5
+ };
6
+ //# sourceMappingURL=legacyAssetInput.es.js.map
@@ -0,0 +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,4 +1,4 @@
1
- import { SearchResult, Validation } from '@frontify/arcade';
1
+ import { SearchResult, Validation } from '@frontify/fondue';
2
2
  import { BaseBlock } from './base';
3
3
  export declare type LinkChooserBlock = {
4
4
  type: 'linkChooser';
@@ -1,4 +1,4 @@
1
- import { MultiInputLayout } from '@frontify/arcade';
1
+ import { MultiInputLayout } from '@frontify/fondue';
2
2
  import { BaseBlock } from './base';
3
3
  import { ColorInputBlock } from './colorInput';
4
4
  import { DropdownBlock } from './dropdown';
@@ -0,0 +1,6 @@
1
+ var g = /* @__PURE__ */ ((r) => (r.Warning = "Warning", r.Negative = "Negative", r.Positive = "Positive", r.Info = "Info", r))(g || {}), v = /* @__PURE__ */ ((r) => (r.Top = "Top", r.Bottom = "Bottom", r.Both = "Both", r.None = "None", r))(v || {});
2
+ export {
3
+ v as NotificationBlockDividerPosition,
4
+ g as NotificationStyleType
5
+ };
6
+ //# sourceMappingURL=notification.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.es.js","sources":["../../types/blocks/notification.ts"],"sourcesContent":["/* (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"],"names":["NotificationStyleType","NotificationBlockDividerPosition"],"mappings":"AAIY,IAAAA,sBAAAA,OACRA,EAAA,UAAU,WACVA,EAAA,WAAW,YACXA,EAAA,WAAW,YACXA,EAAA,OAAO,QAJCA,IAAAA,KAAA,CAAA,CAAA,GAaAC,sBAAAA,OACRA,EAAA,MAAM,OACNA,EAAA,SAAS,UACTA,EAAA,OAAO,QACPA,EAAA,OAAO,QAJCA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -1,3 +1,4 @@
1
+ import { SwitchSize } from '@frontify/fondue';
1
2
  import { BaseBlock } from './base';
2
3
  import { SettingBlock } from './index';
3
4
  export declare type SwitchBlock = {
@@ -5,4 +6,5 @@ export declare type SwitchBlock = {
5
6
  switchLabel?: string;
6
7
  on?: SettingBlock[];
7
8
  off?: SettingBlock[];
9
+ size?: SwitchSize;
8
10
  } & BaseBlock<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 Content = 'content',\n Layout = 'layout',\n Style = 'style',\n Security = 'security',\n Targets = 'targets',\n}\n\nexport type BlockSettings = {\n [Sections.Main]?: SettingBlock[];\n [Sections.Content]?: SettingBlock[];\n [Sections.Layout]?: SettingBlock[];\n [Sections.Style]?: SettingBlock[];\n [Sections.Security]?: SettingBlock[];\n};\n"],"names":[],"mappings":"4GAKY,GAAA,IAAA,GACE,GAAA,QAAA,UACD,EAAA,OAAA,SAFD,IAAA,GAAA,CAAA,CAAA,EAKA,GAAA,GACU,GAAA,gBAAA,kBACL,EAAA,WAAA,aACA,EAAA,WAAA,aAHL,IAAA,GAAA,CAAA,CAAA,ECLA,GAAA,GACE,GAAA,QAAA,UACD,EAAA,OAAA,SAFD,IAAA,GAAA,CAAA,CAAA,EAKA,GAAA,GACU,GAAA,gBAAA,kBACL,EAAA,WAAA,aACA,EAAA,WAAA,aAHL,IAAA,GAAA,CAAA,CAAA,ECNA,GAAA,GACE,GAAA,QAAA,UACC,EAAA,SAAA,WACA,EAAA,SAAA,WACJ,EAAA,KAAA,OAJC,IAAA,GAAA,CAAA,CAAA,EAaA,GAAA,GACF,GAAA,IAAA,MACG,EAAA,OAAA,SACF,EAAA,KAAA,OACA,EAAA,KAAA,OAJC,IAAA,GAAA,CAAA,CAAA,ECRA,GAAA,GACD,GAAA,KAAA,OACG,EAAA,QAAA,UACD,EAAA,OAAA,SACD,EAAA,MAAA,QACG,EAAA,SAAA,WACD,EAAA,QAAA,UANF,IAAA,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 { 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 Content = 'content',\n Layout = 'layout',\n Style = 'style',\n Security = 'security',\n Targets = 'targets',\n}\n\nexport type BlockSettings = {\n [Sections.Main]?: SettingBlock[];\n [Sections.Content]?: 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,QAAU,UACVA,EAAA,OAAS,SACTA,EAAA,MAAQ,QACRA,EAAA,SAAW,WACXA,EAAA,QAAU,UANFA,IAAAA,GAAA,CAAA,CAAA"}
package/dist/index.es.js CHANGED
@@ -1,47 +1,14 @@
1
- var AssetInputSource = /* @__PURE__ */ ((AssetInputSource2) => {
2
- AssetInputSource2["Library"] = "Library";
3
- AssetInputSource2["Upload"] = "Upload";
4
- return AssetInputSource2;
5
- })(AssetInputSource || {});
6
- var AssetInputMode = /* @__PURE__ */ ((AssetInputMode2) => {
7
- AssetInputMode2["BrowseAndUpload"] = "BrowseAndUpload";
8
- AssetInputMode2["UploadOnly"] = "UploadOnly";
9
- AssetInputMode2["BrowseOnly"] = "BrowseOnly";
10
- return AssetInputMode2;
11
- })(AssetInputMode || {});
12
- var LegacyAssetInputSource = /* @__PURE__ */ ((LegacyAssetInputSource2) => {
13
- LegacyAssetInputSource2["Library"] = "Library";
14
- LegacyAssetInputSource2["Upload"] = "Upload";
15
- return LegacyAssetInputSource2;
16
- })(LegacyAssetInputSource || {});
17
- var LegacyAssetInputMode = /* @__PURE__ */ ((LegacyAssetInputMode2) => {
18
- LegacyAssetInputMode2["BrowseAndUpload"] = "BrowseAndUpload";
19
- LegacyAssetInputMode2["UploadOnly"] = "UploadOnly";
20
- LegacyAssetInputMode2["BrowseOnly"] = "BrowseOnly";
21
- return LegacyAssetInputMode2;
22
- })(LegacyAssetInputMode || {});
23
- var NotificationStyleType = /* @__PURE__ */ ((NotificationStyleType2) => {
24
- NotificationStyleType2["Warning"] = "Warning";
25
- NotificationStyleType2["Negative"] = "Negative";
26
- NotificationStyleType2["Positive"] = "Positive";
27
- NotificationStyleType2["Info"] = "Info";
28
- return NotificationStyleType2;
29
- })(NotificationStyleType || {});
30
- var NotificationBlockDividerPosition = /* @__PURE__ */ ((NotificationBlockDividerPosition2) => {
31
- NotificationBlockDividerPosition2["Top"] = "Top";
32
- NotificationBlockDividerPosition2["Bottom"] = "Bottom";
33
- NotificationBlockDividerPosition2["Both"] = "Both";
34
- NotificationBlockDividerPosition2["None"] = "None";
35
- return NotificationBlockDividerPosition2;
36
- })(NotificationBlockDividerPosition || {});
37
- var Sections = /* @__PURE__ */ ((Sections2) => {
38
- Sections2["Main"] = "main";
39
- Sections2["Content"] = "content";
40
- Sections2["Layout"] = "layout";
41
- Sections2["Style"] = "style";
42
- Sections2["Security"] = "security";
43
- Sections2["Targets"] = "targets";
44
- return Sections2;
45
- })(Sections || {});
46
- export { AssetInputMode, AssetInputSource, LegacyAssetInputMode, LegacyAssetInputSource, NotificationBlockDividerPosition, NotificationStyleType, Sections };
1
+ import { AssetInputMode as a, AssetInputSource as u } from "./blocks/assetInput.es.js";
2
+ import { LegacyAssetInputMode as i, LegacyAssetInputSource as n } from "./blocks/legacyAssetInput.es.js";
3
+ import { NotificationBlockDividerPosition as s, NotificationStyleType as c } from "./blocks/notification.es.js";
4
+ var e = /* @__PURE__ */ ((t) => (t.Main = "main", t.Content = "content", t.Layout = "layout", t.Style = "style", t.Security = "security", t.Targets = "targets", t))(e || {});
5
+ export {
6
+ a as AssetInputMode,
7
+ u as AssetInputSource,
8
+ i as LegacyAssetInputMode,
9
+ n as LegacyAssetInputSource,
10
+ s as NotificationBlockDividerPosition,
11
+ c as NotificationStyleType,
12
+ e as Sections
13
+ };
47
14
  //# sourceMappingURL=index.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.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 Content = 'content',\n Layout = 'layout',\n Style = 'style',\n Security = 'security',\n Targets = 'targets',\n}\n\nexport type BlockSettings = {\n [Sections.Main]?: SettingBlock[];\n [Sections.Content]?: SettingBlock[];\n [Sections.Layout]?: SettingBlock[];\n [Sections.Style]?: SettingBlock[];\n [Sections.Security]?: SettingBlock[];\n};\n"],"names":[],"mappings":"AAKY,IAAA,qCAAA,sBAAL;AACO,oBAAA,aAAA;AACD,oBAAA,YAAA;AAFD,SAAA;AAAA,GAAA,oBAAA,CAAA,CAAA;AAKA,IAAA,mCAAA,oBAAL;AACe,kBAAA,qBAAA;AACL,kBAAA,gBAAA;AACA,kBAAA,gBAAA;AAHL,SAAA;AAAA,GAAA,kBAAA,CAAA,CAAA;ACLA,IAAA,2CAAA,4BAAL;AACO,0BAAA,aAAA;AACD,0BAAA,YAAA;AAFD,SAAA;AAAA,GAAA,0BAAA,CAAA,CAAA;AAKA,IAAA,yCAAA,0BAAL;AACe,wBAAA,qBAAA;AACL,wBAAA,gBAAA;AACA,wBAAA,gBAAA;AAHL,SAAA;AAAA,GAAA,wBAAA,CAAA,CAAA;ACNA,IAAA,0CAAA,2BAAL;AACO,yBAAA,aAAA;AACC,yBAAA,cAAA;AACA,yBAAA,cAAA;AACJ,yBAAA,UAAA;AAJC,SAAA;AAAA,GAAA,yBAAA,CAAA,CAAA;AAaA,IAAA,qDAAA,sCAAL;AACG,oCAAA,SAAA;AACG,oCAAA,YAAA;AACF,oCAAA,UAAA;AACA,oCAAA,UAAA;AAJC,SAAA;AAAA,GAAA,oCAAA,CAAA,CAAA;ACRA,IAAA,6BAAA,cAAL;AACI,YAAA,UAAA;AACG,YAAA,aAAA;AACD,YAAA,YAAA;AACD,YAAA,WAAA;AACG,YAAA,cAAA;AACD,YAAA,aAAA;AANF,SAAA;AAAA,GAAA,YAAA,CAAA,CAAA;;"}
1
+ {"version":3,"file":"index.es.js","sources":["../types/index.ts"],"sourcesContent":["/* (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 Content = 'content',\n Layout = 'layout',\n Style = 'style',\n Security = 'security',\n Targets = 'targets',\n}\n\nexport type BlockSettings = {\n [Sections.Main]?: SettingBlock[];\n [Sections.Content]?: SettingBlock[];\n [Sections.Layout]?: SettingBlock[];\n [Sections.Style]?: SettingBlock[];\n [Sections.Security]?: SettingBlock[];\n};\n"],"names":["Sections"],"mappings":";;;AASY,IAAAA,sBAAAA,OACRA,EAAA,OAAO,QACPA,EAAA,UAAU,WACVA,EAAA,SAAS,UACTA,EAAA,QAAQ,SACRA,EAAA,WAAW,YACXA,EAAA,UAAU,WANFA,IAAAA,KAAA,CAAA,CAAA;"}
package/dist/index.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(r,n){typeof exports=="object"&&typeof module!="undefined"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis!="undefined"?globalThis:r||self,n(r.GuidelineBlocksSettings={}))})(this,function(r){"use strict";var n=(e=>(e.Library="Library",e.Upload="Upload",e))(n||{}),a=(e=>(e.BrowseAndUpload="BrowseAndUpload",e.UploadOnly="UploadOnly",e.BrowseOnly="BrowseOnly",e))(a||{}),l=(e=>(e.Library="Library",e.Upload="Upload",e))(l||{}),o=(e=>(e.BrowseAndUpload="BrowseAndUpload",e.UploadOnly="UploadOnly",e.BrowseOnly="BrowseOnly",e))(o||{}),d=(e=>(e.Warning="Warning",e.Negative="Negative",e.Positive="Positive",e.Info="Info",e))(d||{}),t=(e=>(e.Top="Top",e.Bottom="Bottom",e.Both="Both",e.None="None",e))(t||{}),u=(e=>(e.Main="main",e.Content="content",e.Layout="layout",e.Style="style",e.Security="security",e.Targets="targets",e))(u||{});r.AssetInputMode=a,r.AssetInputSource=n,r.LegacyAssetInputMode=o,r.LegacyAssetInputSource=l,r.NotificationBlockDividerPosition=t,r.NotificationStyleType=d,r.Sections=u,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(r,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.GuidelineBlocksSettings={}))})(this,function(r){"use strict";var n=(e=>(e.Library="Library",e.Upload="Upload",e))(n||{}),a=(e=>(e.BrowseAndUpload="BrowseAndUpload",e.UploadOnly="UploadOnly",e.BrowseOnly="BrowseOnly",e))(a||{}),l=(e=>(e.Library="Library",e.Upload="Upload",e))(l||{}),o=(e=>(e.BrowseAndUpload="BrowseAndUpload",e.UploadOnly="UploadOnly",e.BrowseOnly="BrowseOnly",e))(o||{}),d=(e=>(e.Warning="Warning",e.Negative="Negative",e.Positive="Positive",e.Info="Info",e))(d||{}),t=(e=>(e.Top="Top",e.Bottom="Bottom",e.Both="Both",e.None="None",e))(t||{}),u=(e=>(e.Main="main",e.Content="content",e.Layout="layout",e.Style="style",e.Security="security",e.Targets="targets",e))(u||{});r.AssetInputMode=a,r.AssetInputSource=n,r.LegacyAssetInputMode=o,r.LegacyAssetInputSource=l,r.NotificationBlockDividerPosition=t,r.NotificationStyleType=d,r.Sections=u,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
2
2
  //# sourceMappingURL=index.umd.js.map
@@ -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 Content = 'content',\n Layout = 'layout',\n Style = 'style',\n Security = 'security',\n Targets = 'targets',\n}\n\nexport type BlockSettings = {\n [Sections.Main]?: SettingBlock[];\n [Sections.Content]?: SettingBlock[];\n [Sections.Layout]?: SettingBlock[];\n [Sections.Style]?: SettingBlock[];\n [Sections.Security]?: SettingBlock[];\n};\n"],"names":[],"mappings":"iQAKY,GAAA,IAAA,GACE,GAAA,QAAA,UACD,EAAA,OAAA,SAFD,IAAA,GAAA,CAAA,CAAA,EAKA,GAAA,GACU,GAAA,gBAAA,kBACL,EAAA,WAAA,aACA,EAAA,WAAA,aAHL,IAAA,GAAA,CAAA,CAAA,ECLA,GAAA,GACE,GAAA,QAAA,UACD,EAAA,OAAA,SAFD,IAAA,GAAA,CAAA,CAAA,EAKA,GAAA,GACU,GAAA,gBAAA,kBACL,EAAA,WAAA,aACA,EAAA,WAAA,aAHL,IAAA,GAAA,CAAA,CAAA,ECNA,GAAA,GACE,GAAA,QAAA,UACC,EAAA,SAAA,WACA,EAAA,SAAA,WACJ,EAAA,KAAA,OAJC,IAAA,GAAA,CAAA,CAAA,EAaA,GAAA,GACF,GAAA,IAAA,MACG,EAAA,OAAA,SACF,EAAA,KAAA,OACA,EAAA,KAAA,OAJC,IAAA,GAAA,CAAA,CAAA,ECRA,GAAA,GACD,GAAA,KAAA,OACG,EAAA,QAAA,UACD,EAAA,OAAA,SACD,EAAA,MAAA,QACG,EAAA,SAAA,WACD,EAAA,QAAA,UANF,IAAA,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 { 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 Content = 'content',\n Layout = 'layout',\n Style = 'style',\n Security = 'security',\n Targets = 'targets',\n}\n\nexport type BlockSettings = {\n [Sections.Main]?: SettingBlock[];\n [Sections.Content]?: 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,QAAU,UACVA,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.14.0",
3
+ "version": "0.16.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.15.0",
18
- "prettier": "2.6.2",
17
+ "eslint": "8.21.0",
18
+ "prettier": "2.7.1",
19
19
  "react": "17.0.2",
20
20
  "react-dom": "17.0.2",
21
- "typescript": "4.6.4",
22
- "vite": "2.9.8",
23
- "vite-plugin-dts": "1.1.1"
21
+ "typescript": "4.7.4",
22
+ "vite": "3.0.4",
23
+ "vite-plugin-dts": "1.4.1"
24
24
  },
25
25
  "dependencies": {
26
26
  "@frontify/app-bridge": "*",
27
- "@frontify/arcade": "*"
27
+ "@frontify/fondue": "*"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "vite build",
@@ -1,6 +1,6 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
- import { IconEnum } from '@frontify/arcade';
3
+ import { IconEnum } from '@frontify/fondue';
4
4
  import { BaseBlock } from './base';
5
5
 
6
6
  export type Choice = {
@@ -1,6 +1,6 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
- import { Color } from '@frontify/arcade';
3
+ import { Color } from '@frontify/fondue';
4
4
  import { BaseBlock } from './base';
5
5
 
6
6
  export type ColorInputBlock = {
@@ -1,6 +1,6 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
- import { DropdownSize } from '@frontify/arcade';
3
+ import { DropdownSize } from '@frontify/fondue';
4
4
  import { ChoicesType } from './choices';
5
5
 
6
6
  export type DropdownBlock = {
@@ -1,6 +1,6 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
- import { TextInputType } from '@frontify/arcade';
3
+ import { TextInputType } from '@frontify/fondue';
4
4
  import { Rule } from '../validation';
5
5
  import { BaseBlock } from './base';
6
6
 
@@ -1,6 +1,6 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
- import { SearchResult, Validation } from '@frontify/arcade';
3
+ import { SearchResult, Validation } from '@frontify/fondue';
4
4
  import { BaseBlock } from './base';
5
5
 
6
6
  export type LinkChooserBlock = {
@@ -1,6 +1,6 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
- import { MultiInputLayout } from '@frontify/arcade';
3
+ import { MultiInputLayout } from '@frontify/fondue';
4
4
  import { BaseBlock } from './base';
5
5
  import { ColorInputBlock } from './colorInput';
6
6
  import { DropdownBlock } from './dropdown';
@@ -1,5 +1,6 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
+ import { SwitchSize } from '@frontify/fondue';
3
4
  import { BaseBlock } from './base';
4
5
  import { SettingBlock } from './index';
5
6
 
@@ -8,4 +9,5 @@ export type SwitchBlock = {
8
9
  switchLabel?: string;
9
10
  on?: SettingBlock[];
10
11
  off?: SettingBlock[];
12
+ size?: SwitchSize;
11
13
  } & BaseBlock<boolean>;
package/vite.config.ts CHANGED
@@ -12,14 +12,26 @@ export default defineConfig({
12
12
  build: {
13
13
  lib: {
14
14
  entry: resolve(__dirname, 'types/index.ts'),
15
- fileName: (format: string) => `index.${format}.js`,
16
- formats: ['es', 'umd', 'cjs'],
15
+ fileName: (format: string) => `[name].${format}.js`,
17
16
  name: 'GuidelineBlocksSettings',
18
17
  },
19
18
  sourcemap: true,
20
19
  minify: true,
21
20
  rollupOptions: {
22
21
  external: [...dependencies],
22
+ output: [
23
+ {
24
+ format: 'es',
25
+ preserveModules: true,
26
+ preserveModulesRoot: 'src',
27
+ },
28
+ {
29
+ format: 'umd',
30
+ },
31
+ {
32
+ format: 'cjs',
33
+ },
34
+ ],
23
35
  },
24
36
  },
25
37
  });