@frontify/guideline-blocks-settings 0.15.0 → 0.17.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.
@@ -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;"}
@@ -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;"}
@@ -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>;
package/dist/index.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var a=(r=>(r.Library="Library",r.Upload="Upload",r))(a||{}),e=(r=>(r.BrowseAndUpload="BrowseAndUpload",r.UploadOnly="UploadOnly",r.BrowseOnly="BrowseOnly",r))(e||{}),l=(r=>(r.Library="Library",r.Upload="Upload",r))(l||{}),n=(r=>(r.BrowseAndUpload="BrowseAndUpload",r.UploadOnly="UploadOnly",r.BrowseOnly="BrowseOnly",r))(n||{}),o=(r=>(r.Warning="Warning",r.Negative="Negative",r.Positive="Positive",r.Info="Info",r))(o||{}),t=(r=>(r.Top="Top",r.Bottom="Bottom",r.Both="Both",r.None="None",r))(t||{}),d=(r=>(r.Main="main",r.Content="content",r.Layout="layout",r.Style="style",r.Security="security",r.Targets="targets",r))(d||{});exports.AssetInputMode=e;exports.AssetInputSource=a;exports.LegacyAssetInputMode=n;exports.LegacyAssetInputSource=l;exports.NotificationBlockDividerPosition=t;exports.NotificationStyleType=o;exports.Sections=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var a=(r=>(r.Library="Library",r.Upload="Upload",r))(a||{}),e=(r=>(r.BrowseAndUpload="BrowseAndUpload",r.UploadOnly="UploadOnly",r.BrowseOnly="BrowseOnly",r))(e||{}),l=(r=>(r.Library="Library",r.Upload="Upload",r))(l||{}),o=(r=>(r.BrowseAndUpload="BrowseAndUpload",r.UploadOnly="UploadOnly",r.BrowseOnly="BrowseOnly",r))(o||{}),n=(r=>(r.Warning="Warning",r.Negative="Negative",r.Positive="Positive",r.Info="Info",r))(n||{}),d=(r=>(r.Top="Top",r.Bottom="Bottom",r.Both="Both",r.None="None",r))(d||{}),u=(r=>(r.Main="main",r.Basics="basics",r.Layout="layout",r.Style="style",r.Security="security",r.Targets="targets",r))(u||{});exports.AssetInputMode=e;exports.AssetInputSource=a;exports.LegacyAssetInputMode=o;exports.LegacyAssetInputSource=l;exports.NotificationBlockDividerPosition=d;exports.NotificationStyleType=n;exports.Sections=u;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -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 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"}
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export type { Bundle, SettingValue } from './bundle';
5
5
  export type { Rule } from './validation';
6
6
  export declare enum Sections {
7
7
  Main = "main",
8
- Content = "content",
8
+ Basics = "basics",
9
9
  Layout = "layout",
10
10
  Style = "style",
11
11
  Security = "security",
@@ -13,7 +13,7 @@ export declare enum Sections {
13
13
  }
14
14
  export declare type BlockSettings = {
15
15
  [Sections.Main]?: SettingBlock[];
16
- [Sections.Content]?: SettingBlock[];
16
+ [Sections.Basics]?: SettingBlock[];
17
17
  [Sections.Layout]?: SettingBlock[];
18
18
  [Sections.Style]?: SettingBlock[];
19
19
  [Sections.Security]?: SettingBlock[];
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 s } from "./blocks/assetInput.es.js";
2
+ import { LegacyAssetInputMode as u, LegacyAssetInputSource as y } from "./blocks/legacyAssetInput.es.js";
3
+ import { NotificationBlockDividerPosition as c, NotificationStyleType as f } from "./blocks/notification.es.js";
4
+ var e = /* @__PURE__ */ ((t) => (t.Main = "main", t.Basics = "basics", t.Layout = "layout", t.Style = "style", t.Security = "security", t.Targets = "targets", t))(e || {});
5
+ export {
6
+ a as AssetInputMode,
7
+ s as AssetInputSource,
8
+ u as LegacyAssetInputMode,
9
+ y as LegacyAssetInputSource,
10
+ c as NotificationBlockDividerPosition,
11
+ f 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 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":["Sections"],"mappings":";;;AASY,IAAAA,sBAAAA,OACRA,EAAA,OAAO,QACPA,EAAA,SAAS,UACTA,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||{}),d=(e=>(e.BrowseAndUpload="BrowseAndUpload",e.UploadOnly="UploadOnly",e.BrowseOnly="BrowseOnly",e))(d||{}),o=(e=>(e.Warning="Warning",e.Negative="Negative",e.Positive="Positive",e.Info="Info",e))(o||{}),u=(e=>(e.Top="Top",e.Bottom="Bottom",e.Both="Both",e.None="None",e))(u||{}),t=(e=>(e.Main="main",e.Basics="basics",e.Layout="layout",e.Style="style",e.Security="security",e.Targets="targets",e))(t||{});r.AssetInputMode=a,r.AssetInputSource=n,r.LegacyAssetInputMode=d,r.LegacyAssetInputSource=l,r.NotificationBlockDividerPosition=u,r.NotificationStyleType=o,r.Sections=t,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 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"}
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
1
  {
2
- "name": "@frontify/guideline-blocks-settings",
3
- "version": "0.15.0",
4
- "description": "Provides the types for the block settings",
5
- "sideEffects": false,
6
- "main": "dist/index.umd.js",
7
- "unpkg": "dist/index.umd.js",
8
- "jsdelivr": "dist/index.umd.js",
9
- "module": "dist/index.es.js",
10
- "types": "dist/index.d.ts",
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "author": "Frontify Developers <developers@frontify.com>",
15
- "scripts": {
16
- "build": "vite build",
17
- "lint": "eslint types",
18
- "lint:fix": "eslint --fix types",
19
- "prettier": "prettier --check types",
20
- "prettier:fix": "prettier --write types",
21
- "typecheck": "tsc --noEmit"
22
- },
23
- "devDependencies": {
24
- "@frontify/eslint-config-typescript": "0.15.2",
25
- "eslint": "8.15.0",
26
- "prettier": "2.6.2",
27
- "react": "17.0.2",
28
- "react-dom": "17.0.2",
29
- "typescript": "4.6.4",
30
- "vite": "2.9.9",
31
- "vite-plugin-dts": "1.2.0"
32
- },
33
- "dependencies": {
34
- "@frontify/app-bridge": "*",
35
- "@frontify/fondue": "*"
36
- }
37
- }
2
+ "name": "@frontify/guideline-blocks-settings",
3
+ "version": "0.17.0",
4
+ "description": "Provides the types for the block settings",
5
+ "sideEffects": false,
6
+ "main": "dist/index.umd.js",
7
+ "unpkg": "dist/index.umd.js",
8
+ "jsdelivr": "dist/index.umd.js",
9
+ "module": "dist/index.es.js",
10
+ "types": "dist/index.d.ts",
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "author": "Frontify Developers <developers@frontify.com>",
15
+ "devDependencies": {
16
+ "@frontify/eslint-config-typescript": "0.15.2",
17
+ "eslint": "8.21.0",
18
+ "prettier": "2.7.1",
19
+ "react": "17.0.2",
20
+ "react-dom": "17.0.2",
21
+ "typescript": "4.7.4",
22
+ "vite": "3.0.4",
23
+ "vite-plugin-dts": "1.4.1"
24
+ },
25
+ "dependencies": {
26
+ "@frontify/app-bridge": "*",
27
+ "@frontify/fondue": "*"
28
+ },
29
+ "scripts": {
30
+ "build": "vite build",
31
+ "lint": "eslint types",
32
+ "lint:fix": "eslint --fix types",
33
+ "prettier": "prettier --check types",
34
+ "prettier:fix": "prettier --write types",
35
+ "typecheck": "tsc --noEmit"
36
+ }
37
+ }
@@ -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/types/index.ts CHANGED
@@ -9,7 +9,7 @@ export type { Rule } from './validation';
9
9
 
10
10
  export enum Sections {
11
11
  Main = 'main',
12
- Content = 'content',
12
+ Basics = 'basics',
13
13
  Layout = 'layout',
14
14
  Style = 'style',
15
15
  Security = 'security',
@@ -18,7 +18,7 @@ export enum Sections {
18
18
 
19
19
  export type BlockSettings = {
20
20
  [Sections.Main]?: SettingBlock[];
21
- [Sections.Content]?: SettingBlock[];
21
+ [Sections.Basics]?: SettingBlock[];
22
22
  [Sections.Layout]?: SettingBlock[];
23
23
  [Sections.Style]?: SettingBlock[];
24
24
  [Sections.Security]?: SettingBlock[];
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
  });