@frontify/guideline-blocks-settings 0.7.1 → 0.9.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.
@@ -13,6 +13,10 @@ export declare type AssetInputValue = {
13
13
  source: AssetInputSource;
14
14
  value: number;
15
15
  };
16
+ export declare enum ApiType {
17
+ FileUpload = "FileUpload",
18
+ BlockAssets = "BlockAssets"
19
+ }
16
20
  export declare type AssetInputBlock = {
17
21
  type: 'assetInput';
18
22
  multiSelection?: boolean;
@@ -20,4 +24,5 @@ export declare type AssetInputBlock = {
20
24
  projectTypes?: AssetChooserProjectType[];
21
25
  objectTypes?: AssetChooserObjectType[];
22
26
  mode?: AssetInputMode;
27
+ api?: ApiType;
23
28
  } & BaseBlock<AssetInputValue | AssetInputValue['value']>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /* (c) Copyright Frontify Ltd., all rights reserved. */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.AssetInputMode = exports.AssetInputSource = void 0;
4
+ exports.ApiType = exports.AssetInputMode = exports.AssetInputSource = void 0;
5
5
  var AssetInputSource;
6
6
  (function (AssetInputSource) {
7
7
  AssetInputSource["Library"] = "Library";
@@ -13,4 +13,9 @@ var AssetInputMode;
13
13
  AssetInputMode["UploadOnly"] = "UploadOnly";
14
14
  AssetInputMode["BrowseOnly"] = "BrowseOnly";
15
15
  })(AssetInputMode = exports.AssetInputMode || (exports.AssetInputMode = {}));
16
+ var ApiType;
17
+ (function (ApiType) {
18
+ ApiType["FileUpload"] = "FileUpload";
19
+ ApiType["BlockAssets"] = "BlockAssets";
20
+ })(ApiType = exports.ApiType || (exports.ApiType = {}));
16
21
  //# sourceMappingURL=assetInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"assetInput.js","sourceRoot":"","sources":["../../types/blocks/assetInput.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;AAKvD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;AACrB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACtB,+BAAa,CAAA;IACb,2CAAyB,CAAA;IACzB,2CAAyB,CAAA;AAC7B,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB"}
1
+ {"version":3,"file":"assetInput.js","sourceRoot":"","sources":["../../types/blocks/assetInput.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;AAKvD,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;AACrB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACtB,+BAAa,CAAA;IACb,2CAAyB,CAAA;IACzB,2CAAyB,CAAA;AAC7B,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAOD,IAAY,OAGX;AAHD,WAAY,OAAO;IACf,oCAAyB,CAAA;IACzB,sCAA2B,CAAA;AAC/B,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB"}
@@ -0,0 +1,8 @@
1
+ import { BaseBlock } from './base';
2
+ import { ColorInputBlock } from './colorInput';
3
+ import { DropdownBlock } from './dropdown';
4
+ import { InputBlock } from './input';
5
+ export declare type DynamicInputBlock = {
6
+ type: 'dynamicInput';
7
+ blocks: (Omit<InputBlock, 'value'> | Omit<ColorInputBlock, 'value'> | Omit<DropdownBlock, 'value'>)[];
8
+ } & BaseBlock<(InputBlock['value'] | ColorInputBlock['value'] | DropdownBlock['value'])[]>;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=dynamicInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dynamicInput.js","sourceRoot":"","sources":["../../types/blocks/dynamicInput.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -3,6 +3,7 @@ import { ChecklistBlock } from './checklist';
3
3
  import { ColorInputBlock } from './colorInput';
4
4
  import { DropdownBlock } from './dropdown';
5
5
  import { InputBlock } from './input';
6
+ import { LinkChooserBlock } from './linkChooser';
6
7
  import { MultiInputBlock } from './multiInput';
7
8
  import { NotificationBlock } from './notification';
8
9
  import { SectionHeadingBlock } from './sectionHeading';
@@ -15,13 +16,14 @@ export * from './choices';
15
16
  export * from './colorInput';
16
17
  export * from './dropdown';
17
18
  export * from './input';
19
+ export * from './linkChooser';
18
20
  export * from './multiInput';
19
21
  export * from './notification';
20
22
  export * from './sectionHeading';
21
23
  export * from './slider';
22
24
  export * from './switch';
23
25
  export * from './templateInput';
24
- export declare type SimpleSettingBlock = AssetInputBlock | ChecklistBlock | ColorInputBlock | DropdownBlock | SectionHeadingBlock | InputBlock | MultiInputBlock | SliderBlock | SwitchBlock | TemplateInputBlock | NotificationBlock;
26
+ export declare type SimpleSettingBlock = AssetInputBlock | ChecklistBlock | ColorInputBlock | DropdownBlock | SectionHeadingBlock | InputBlock | MultiInputBlock | SliderBlock | SwitchBlock | TemplateInputBlock | NotificationBlock | LinkChooserBlock;
25
27
  export declare type DynamicSupportedBlock = InputBlock | ColorInputBlock | DropdownBlock;
26
28
  export declare type DynamicSettingBlock<T extends DynamicSupportedBlock = DynamicSupportedBlock> = Omit<T, 'value'> & {
27
29
  value?: DynamicSupportedBlock['value'][];
@@ -21,6 +21,7 @@ __exportStar(require("./choices"), exports);
21
21
  __exportStar(require("./colorInput"), exports);
22
22
  __exportStar(require("./dropdown"), exports);
23
23
  __exportStar(require("./input"), exports);
24
+ __exportStar(require("./linkChooser"), exports);
24
25
  __exportStar(require("./multiInput"), exports);
25
26
  __exportStar(require("./notification"), exports);
26
27
  __exportStar(require("./sectionHeading"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/blocks/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;;;;;AAcvD,+CAA6B;AAC7B,8CAA4B;AAC5B,4CAA0B;AAC1B,+CAA6B;AAC7B,6CAA2B;AAC3B,0CAAwB;AACxB,+CAA6B;AAC7B,iDAA+B;AAC/B,mDAAiC;AACjC,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/blocks/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;;;;;AAevD,+CAA6B;AAC7B,8CAA4B;AAC5B,4CAA0B;AAC1B,+CAA6B;AAC7B,6CAA2B;AAC3B,0CAAwB;AACxB,gDAA8B;AAC9B,+CAA6B;AAC7B,iDAA+B;AAC/B,mDAAiC;AACjC,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC"}
@@ -0,0 +1,15 @@
1
+ import { SearchResult, Validation } from '@frontify/arcade';
2
+ import { BaseBlock } from './base';
3
+ export declare type LinkChooserBlock = {
4
+ type: 'linkChooser';
5
+ placeholder?: string;
6
+ label?: string;
7
+ openInNewTab?: boolean;
8
+ disabled?: boolean;
9
+ clearable?: boolean;
10
+ required?: boolean;
11
+ validation?: Validation;
12
+ } & BaseBlock<{
13
+ link: SearchResult | null;
14
+ openInNewTab: boolean | null;
15
+ }>;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=linkChooser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkChooser.js","sourceRoot":"","sources":["../../types/blocks/linkChooser.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontify/guideline-blocks-settings",
3
- "version": "0.7.1",
3
+ "version": "0.9.0",
4
4
  "description": "Provides the types for the block settings",
5
5
  "sideEffects": false,
6
6
  "module": "dist/index.js",
@@ -15,6 +15,7 @@
15
15
  "author": "Frontify Developers <developers@frontify.com>",
16
16
  "scripts": {
17
17
  "build": "tsc",
18
+ "deploy": "npm publish",
18
19
  "lint": "eslint types",
19
20
  "lint:fix": "eslint --fix types",
20
21
  "prettier": "prettier --check types",
@@ -23,12 +24,12 @@
23
24
  },
24
25
  "devDependencies": {
25
26
  "@frontify/eslint-config-typescript": "0.15.2",
26
- "eslint": "8.10.0",
27
- "prettier": "2.5.1",
28
- "typescript": "4.6.2"
27
+ "eslint": "8.12.0",
28
+ "prettier": "2.6.2",
29
+ "typescript": "4.6.3"
29
30
  },
30
31
  "dependencies": {
31
- "@frontify/app-bridge": "2.12.0-beta.1",
32
- "@frontify/arcade": "^5.0.0"
32
+ "@frontify/app-bridge": "*",
33
+ "@frontify/arcade": "*"
33
34
  }
34
35
  }