@frontify/guideline-blocks-settings 0.13.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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: [
@@ -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';
@@ -11,6 +11,7 @@ import { SectionHeadingBlock } from './sectionHeading';
11
11
  import { SliderBlock } from './slider';
12
12
  import { SwitchBlock } from './switch';
13
13
  import { TemplateInputBlock } from './templateInput';
14
+ import { TextareaBlock } from './textarea';
14
15
  export * from './assetInput';
15
16
  export * from './checklist';
16
17
  export * from './choices';
@@ -25,7 +26,8 @@ export * from './sectionHeading';
25
26
  export * from './slider';
26
27
  export * from './switch';
27
28
  export * from './templateInput';
28
- export declare type SimpleSettingBlock = AssetInputBlock | ChecklistBlock | ColorInputBlock | DropdownBlock | InputBlock | LegacyAssetInputBlock | MultiInputBlock | SectionHeadingBlock | SliderBlock | SwitchBlock | TemplateInputBlock | NotificationBlock | LinkChooserBlock;
29
+ export * from './textarea';
30
+ export declare type SimpleSettingBlock = AssetInputBlock | ChecklistBlock | ColorInputBlock | DropdownBlock | InputBlock | LegacyAssetInputBlock | LinkChooserBlock | MultiInputBlock | NotificationBlock | SectionHeadingBlock | SliderBlock | SwitchBlock | TemplateInputBlock | TextareaBlock;
29
31
  export declare type DynamicSupportedBlock = InputBlock | ColorInputBlock | DropdownBlock;
30
32
  export declare type DynamicSettingBlock<T extends DynamicSupportedBlock = DynamicSupportedBlock> = Omit<T, 'value'> & {
31
33
  value?: DynamicSupportedBlock['value'][];
@@ -0,0 +1,13 @@
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
+ export { AssetInputMode, AssetInputSource };
13
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.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":[],"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;;"}
@@ -0,0 +1,13 @@
1
+ var LegacyAssetInputSource = /* @__PURE__ */ ((LegacyAssetInputSource2) => {
2
+ LegacyAssetInputSource2["Library"] = "Library";
3
+ LegacyAssetInputSource2["Upload"] = "Upload";
4
+ return LegacyAssetInputSource2;
5
+ })(LegacyAssetInputSource || {});
6
+ var LegacyAssetInputMode = /* @__PURE__ */ ((LegacyAssetInputMode2) => {
7
+ LegacyAssetInputMode2["BrowseAndUpload"] = "BrowseAndUpload";
8
+ LegacyAssetInputMode2["UploadOnly"] = "UploadOnly";
9
+ LegacyAssetInputMode2["BrowseOnly"] = "BrowseOnly";
10
+ return LegacyAssetInputMode2;
11
+ })(LegacyAssetInputMode || {});
12
+ export { LegacyAssetInputMode, LegacyAssetInputSource };
13
+ //# sourceMappingURL=index.es2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es2.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":[],"mappings":"AAKY,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;;"}
@@ -0,0 +1,16 @@
1
+ var NotificationStyleType = /* @__PURE__ */ ((NotificationStyleType2) => {
2
+ NotificationStyleType2["Warning"] = "Warning";
3
+ NotificationStyleType2["Negative"] = "Negative";
4
+ NotificationStyleType2["Positive"] = "Positive";
5
+ NotificationStyleType2["Info"] = "Info";
6
+ return NotificationStyleType2;
7
+ })(NotificationStyleType || {});
8
+ var NotificationBlockDividerPosition = /* @__PURE__ */ ((NotificationBlockDividerPosition2) => {
9
+ NotificationBlockDividerPosition2["Top"] = "Top";
10
+ NotificationBlockDividerPosition2["Bottom"] = "Bottom";
11
+ NotificationBlockDividerPosition2["Both"] = "Both";
12
+ NotificationBlockDividerPosition2["None"] = "None";
13
+ return NotificationBlockDividerPosition2;
14
+ })(NotificationBlockDividerPosition || {});
15
+ export { NotificationBlockDividerPosition, NotificationStyleType };
16
+ //# sourceMappingURL=index.es3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es3.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":[],"mappings":"AAIY,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;;"}
@@ -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 = {
@@ -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,7 @@
1
+ import { Rule } from '../validation';
2
+ import { BaseBlock } from './base';
3
+ export declare type TextareaBlock = {
4
+ type: 'textarea';
5
+ placeholder?: string;
6
+ rules?: Rule<string>[];
7
+ } & BaseBlock<string>;
package/dist/index.es.js CHANGED
@@ -1,39 +1,6 @@
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 || {});
1
+ export { AssetInputMode, AssetInputSource } from "./blocks/index.es.js";
2
+ export { LegacyAssetInputMode, LegacyAssetInputSource } from "./blocks/index.es2.js";
3
+ export { NotificationBlockDividerPosition, NotificationStyleType } from "./blocks/index.es3.js";
37
4
  var Sections = /* @__PURE__ */ ((Sections2) => {
38
5
  Sections2["Main"] = "main";
39
6
  Sections2["Content"] = "content";
@@ -43,5 +10,5 @@ var Sections = /* @__PURE__ */ ((Sections2) => {
43
10
  Sections2["Targets"] = "targets";
44
11
  return Sections2;
45
12
  })(Sections || {});
46
- export { AssetInputMode, AssetInputSource, LegacyAssetInputMode, LegacyAssetInputSource, NotificationBlockDividerPosition, NotificationStyleType, Sections };
13
+ export { Sections };
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":[],"mappings":";;;AASY,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;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontify/guideline-blocks-settings",
3
- "version": "0.13.0",
3
+ "version": "0.15.1",
4
4
  "description": "Provides the types for the block settings",
5
5
  "sideEffects": false,
6
6
  "main": "dist/index.umd.js",
@@ -14,24 +14,24 @@
14
14
  "author": "Frontify Developers <developers@frontify.com>",
15
15
  "devDependencies": {
16
16
  "@frontify/eslint-config-typescript": "0.15.2",
17
- "eslint": "8.14.0",
17
+ "eslint": "8.15.0",
18
18
  "prettier": "2.6.2",
19
19
  "react": "17.0.2",
20
20
  "react-dom": "17.0.2",
21
21
  "typescript": "4.6.4",
22
- "vite": "2.9.7",
23
- "vite-plugin-dts": "1.1.1"
22
+ "vite": "2.9.9",
23
+ "vite-plugin-dts": "1.2.0"
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",
31
- "lint": "eslint src",
32
- "lint:fix": "eslint --fix src",
33
- "prettier": "prettier --check src",
34
- "prettier:fix": "prettier --write src",
31
+ "lint": "eslint types",
32
+ "lint:fix": "eslint --fix types",
33
+ "prettier": "prettier --check types",
34
+ "prettier:fix": "prettier --write types",
35
35
  "typecheck": "tsc --noEmit"
36
36
  }
37
37
  }
@@ -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 = {
@@ -13,6 +13,7 @@ import { SectionHeadingBlock } from './sectionHeading';
13
13
  import { SliderBlock } from './slider';
14
14
  import { SwitchBlock } from './switch';
15
15
  import { TemplateInputBlock } from './templateInput';
16
+ import { TextareaBlock } from './textarea';
16
17
 
17
18
  export * from './assetInput';
18
19
  export * from './checklist';
@@ -28,6 +29,7 @@ export * from './sectionHeading';
28
29
  export * from './slider';
29
30
  export * from './switch';
30
31
  export * from './templateInput';
32
+ export * from './textarea';
31
33
 
32
34
  export type SimpleSettingBlock =
33
35
  | AssetInputBlock
@@ -36,13 +38,14 @@ export type SimpleSettingBlock =
36
38
  | DropdownBlock
37
39
  | InputBlock
38
40
  | LegacyAssetInputBlock
41
+ | LinkChooserBlock
39
42
  | MultiInputBlock
43
+ | NotificationBlock
40
44
  | SectionHeadingBlock
41
45
  | SliderBlock
42
46
  | SwitchBlock
43
47
  | TemplateInputBlock
44
- | NotificationBlock
45
- | LinkChooserBlock;
48
+ | TextareaBlock;
46
49
 
47
50
  export type DynamicSupportedBlock = InputBlock | ColorInputBlock | DropdownBlock;
48
51
 
@@ -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';
@@ -0,0 +1,10 @@
1
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
2
+
3
+ import { Rule } from '../validation';
4
+ import { BaseBlock } from './base';
5
+
6
+ export type TextareaBlock = {
7
+ type: 'textarea';
8
+ placeholder?: string;
9
+ rules?: Rule<string>[];
10
+ } & BaseBlock<string>;
package/vite.config.ts CHANGED
@@ -13,13 +13,25 @@ export default defineConfig({
13
13
  lib: {
14
14
  entry: resolve(__dirname, 'types/index.ts'),
15
15
  fileName: (format: string) => `index.${format}.js`,
16
- formats: ['es', 'umd', 'cjs'],
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
  });