@frontify/guideline-blocks-settings 0.1.2 → 0.3.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.
Files changed (51) hide show
  1. package/{types/blocks/assetInput.ts → dist/blocks/assetInput.d.ts} +9 -15
  2. package/dist/blocks/assetInput.js +16 -0
  3. package/dist/blocks/assetInput.js.map +1 -0
  4. package/{types/blocks/base.ts → dist/blocks/base.d.ts} +1 -4
  5. package/dist/blocks/base.js +4 -0
  6. package/dist/blocks/base.js.map +1 -0
  7. package/dist/blocks/checkbox.d.ts +4 -0
  8. package/dist/blocks/checkbox.js +4 -0
  9. package/dist/blocks/checkbox.js.map +1 -0
  10. package/{types/blocks/checklist.ts → dist/blocks/checklist.d.ts} +1 -4
  11. package/dist/blocks/checklist.js +4 -0
  12. package/dist/blocks/checklist.js.map +1 -0
  13. package/{types/blocks/choices.ts → dist/blocks/choices.d.ts} +2 -6
  14. package/dist/blocks/choices.js +4 -0
  15. package/dist/blocks/choices.js.map +1 -0
  16. package/{types/blocks/colorInput.ts → dist/blocks/colorInput.d.ts} +1 -4
  17. package/dist/blocks/colorInput.js +4 -0
  18. package/dist/blocks/colorInput.js.map +1 -0
  19. package/{types/blocks/dropdown.ts → dist/blocks/dropdown.d.ts} +1 -4
  20. package/dist/blocks/dropdown.js +4 -0
  21. package/dist/blocks/dropdown.js.map +1 -0
  22. package/{types/blocks/index.ts → dist/blocks/index.d.ts} +1 -14
  23. package/dist/blocks/index.js +24 -0
  24. package/dist/blocks/index.js.map +1 -0
  25. package/{types/blocks/input.ts → dist/blocks/input.d.ts} +1 -4
  26. package/dist/blocks/input.js +4 -0
  27. package/dist/blocks/input.js.map +1 -0
  28. package/{types/blocks/multiInput.ts → dist/blocks/multiInput.d.ts} +1 -4
  29. package/dist/blocks/multiInput.js +4 -0
  30. package/dist/blocks/multiInput.js.map +1 -0
  31. package/{types/blocks/slider.ts → dist/blocks/slider.d.ts} +1 -4
  32. package/dist/blocks/slider.js +4 -0
  33. package/dist/blocks/slider.js.map +1 -0
  34. package/{types/blocks/switch.ts → dist/blocks/switch.d.ts} +1 -4
  35. package/dist/blocks/switch.js +4 -0
  36. package/dist/blocks/switch.js.map +1 -0
  37. package/{types/blocks/templateInput.ts → dist/blocks/templateInput.d.ts} +1 -4
  38. package/dist/blocks/templateInput.js +4 -0
  39. package/dist/blocks/templateInput.js.map +1 -0
  40. package/{types/bundle.ts → dist/bundle.d.ts} +2 -6
  41. package/dist/bundle.js +4 -0
  42. package/dist/bundle.js.map +1 -0
  43. package/{types/index.ts → dist/index.d.ts} +8 -13
  44. package/dist/index.js +25 -0
  45. package/dist/index.js.map +1 -0
  46. package/dist/validation.d.ts +4 -0
  47. package/dist/validation.js +4 -0
  48. package/dist/validation.js.map +1 -0
  49. package/package.json +12 -8
  50. package/types/blocks/checkbox.ts +0 -6
  51. package/types/validation.ts +0 -6
@@ -1,25 +1,19 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
1
  import { FileExtension, AssetChooserProjectType, AssetChooserObjectType } from '@frontify/app-bridge';
4
2
  import { BaseBlock } from './base';
5
-
6
- export enum AssetInputSource {
7
- Library = 'Library',
8
- Upload = 'Upload',
3
+ export declare enum AssetInputSource {
4
+ Library = "Library",
5
+ Upload = "Upload"
9
6
  }
10
-
11
- export enum AssetInputMode {
12
- Both = 'Both',
13
- UploadOnly = 'UploadOnly',
14
- BrowseOnly = 'BrowseOnly',
7
+ export declare enum AssetInputMode {
8
+ Both = "Both",
9
+ UploadOnly = "UploadOnly",
10
+ BrowseOnly = "BrowseOnly"
15
11
  }
16
-
17
- export type AssetInputValue = {
12
+ export declare type AssetInputValue = {
18
13
  source: AssetInputSource;
19
14
  value: number;
20
15
  };
21
-
22
- export type AssetInputBlock = {
16
+ export declare type AssetInputBlock = {
23
17
  type: 'assetInput';
24
18
  value?: AssetInputValue | AssetInputValue['value'];
25
19
  defaultValue?: AssetInputValue | AssetInputValue['value'];
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AssetInputMode = exports.AssetInputSource = void 0;
5
+ var AssetInputSource;
6
+ (function (AssetInputSource) {
7
+ AssetInputSource["Library"] = "Library";
8
+ AssetInputSource["Upload"] = "Upload";
9
+ })(AssetInputSource = exports.AssetInputSource || (exports.AssetInputSource = {}));
10
+ var AssetInputMode;
11
+ (function (AssetInputMode) {
12
+ AssetInputMode["Both"] = "Both";
13
+ AssetInputMode["UploadOnly"] = "UploadOnly";
14
+ AssetInputMode["BrowseOnly"] = "BrowseOnly";
15
+ })(AssetInputMode = exports.AssetInputMode || (exports.AssetInputMode = {}));
16
+ //# sourceMappingURL=assetInput.js.map
@@ -0,0 +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,8 +1,5 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
1
  import { Bundle } from '../bundle';
4
-
5
- export type BaseBlock = {
2
+ export declare type BaseBlock = {
6
3
  id: string;
7
4
  label?: string;
8
5
  info?: string;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../types/blocks/base.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -0,0 +1,4 @@
1
+ export declare type Checkbox = {
2
+ id: string;
3
+ label?: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../types/blocks/checkbox.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -1,9 +1,6 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
1
  import { BaseBlock } from './base';
4
2
  import { Checkbox } from './checkbox';
5
-
6
- export type ChecklistBlock = {
3
+ export declare type ChecklistBlock = {
7
4
  type: 'checklist';
8
5
  choices: Checkbox[];
9
6
  value?: string[] | null;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=checklist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checklist.js","sourceRoot":"","sources":["../../types/blocks/checklist.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -1,15 +1,11 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
1
  import { IconEnum } from '@frontify/arcade';
4
2
  import { BaseBlock } from './base';
5
-
6
- export type Choice = {
3
+ export declare type Choice = {
7
4
  label?: string | number;
8
5
  icon?: IconEnum;
9
6
  value: string | number;
10
7
  };
11
-
12
- export type ChoicesType = {
8
+ export declare type ChoicesType = {
13
9
  choices: Choice[];
14
10
  value?: string | number;
15
11
  defaultValue: string | number;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=choices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choices.js","sourceRoot":"","sources":["../../types/blocks/choices.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -1,9 +1,6 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
1
  import { Color } from '@frontify/arcade';
4
2
  import { BaseBlock } from './base';
5
-
6
- export type ColorInputBlock = {
3
+ export declare type ColorInputBlock = {
7
4
  type: 'colorInput';
8
5
  value?: Color;
9
6
  defaultValue?: Color;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=colorInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorInput.js","sourceRoot":"","sources":["../../types/blocks/colorInput.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -1,9 +1,6 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
1
  import { DropdownSize } from '@frontify/arcade';
4
2
  import { ChoicesType } from './choices';
5
-
6
- export type DropdownBlock = {
3
+ export declare type DropdownBlock = {
7
4
  type: 'dropdown';
8
5
  disabled?: boolean;
9
6
  placeholder?: string;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=dropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown.js","sourceRoot":"","sources":["../../types/blocks/dropdown.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -1,5 +1,3 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
1
  import { AssetInputBlock } from './assetInput';
4
2
  import { ChecklistBlock } from './checklist';
5
3
  import { ColorInputBlock } from './colorInput';
@@ -9,7 +7,6 @@ import { MultiInputBlock } from './multiInput';
9
7
  import { SliderBlock } from './slider';
10
8
  import { SwitchBlock } from './switch';
11
9
  import { TemplateInputBlock } from './templateInput';
12
-
13
10
  export * from './assetInput';
14
11
  export * from './checklist';
15
12
  export * from './colorInput';
@@ -20,14 +17,4 @@ export * from './slider';
20
17
  export * from './switch';
21
18
  export * from './templateInput';
22
19
  export * from './choices';
23
-
24
- export type SettingBlock =
25
- | AssetInputBlock
26
- | ChecklistBlock
27
- | ColorInputBlock
28
- | DropdownBlock
29
- | InputBlock
30
- | MultiInputBlock
31
- | SliderBlock
32
- | SwitchBlock
33
- | TemplateInputBlock;
20
+ export declare type SettingBlock = AssetInputBlock | ChecklistBlock | ColorInputBlock | DropdownBlock | InputBlock | MultiInputBlock | SliderBlock | SwitchBlock | TemplateInputBlock;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
6
+ }) : (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ o[k2] = m[k];
9
+ }));
10
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ __exportStar(require("./assetInput"), exports);
15
+ __exportStar(require("./checklist"), exports);
16
+ __exportStar(require("./colorInput"), exports);
17
+ __exportStar(require("./dropdown"), exports);
18
+ __exportStar(require("./input"), exports);
19
+ __exportStar(require("./multiInput"), exports);
20
+ __exportStar(require("./slider"), exports);
21
+ __exportStar(require("./switch"), exports);
22
+ __exportStar(require("./templateInput"), exports);
23
+ __exportStar(require("./choices"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/blocks/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;AAYvD,+CAA6B;AAC7B,8CAA4B;AAC5B,+CAA6B;AAC7B,6CAA2B;AAC3B,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,4CAA0B"}
@@ -1,10 +1,7 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
1
  import { TextInputType } from '@frontify/arcade';
4
2
  import { Rule } from '../validation';
5
3
  import { BaseBlock } from './base';
6
-
7
- export type InputBlock = {
4
+ export declare type InputBlock = {
8
5
  type: 'input';
9
6
  inputType?: TextInputType;
10
7
  placeholder?: string;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/blocks/input.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -1,12 +1,9 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
1
  import { MultiInputLayout } from '@frontify/arcade';
4
2
  import { BaseBlock } from './base';
5
3
  import { ColorInputBlock } from './colorInput';
6
4
  import { DropdownBlock } from './dropdown';
7
5
  import { InputBlock } from './input';
8
-
9
- export type MultiInputBlock = {
6
+ export declare type MultiInputBlock = {
10
7
  type: 'multiInput';
11
8
  layout: MultiInputLayout;
12
9
  blocks: (Omit<InputBlock, 'value'> | Omit<ColorInputBlock, 'value'> | Omit<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=multiInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiInput.js","sourceRoot":"","sources":["../../types/blocks/multiInput.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -1,8 +1,5 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
1
  import { ChoicesType } from './choices';
4
-
5
- export type SliderBlock = {
2
+ export declare type SliderBlock = {
6
3
  type: 'slider';
7
4
  helperText?: string;
8
5
  } & ChoicesType;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=slider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider.js","sourceRoot":"","sources":["../../types/blocks/slider.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -1,9 +1,6 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
1
  import { BaseBlock } from './base';
4
2
  import { SettingBlock } from './index';
5
-
6
- export type SwitchBlock = {
3
+ export declare type SwitchBlock = {
7
4
  type: 'switch';
8
5
  switchLabel?: string;
9
6
  on?: SettingBlock[];
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.js","sourceRoot":"","sources":["../../types/blocks/switch.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -1,8 +1,5 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
1
  import { BaseBlock } from './base';
4
-
5
- export type TemplateInputBlock = {
2
+ export declare type TemplateInputBlock = {
6
3
  type: 'templateInput';
7
4
  value?: number;
8
5
  defaultValue?: number;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=templateInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateInput.js","sourceRoot":"","sources":["../../types/blocks/templateInput.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -1,12 +1,8 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
1
  import { SettingBlock } from './blocks';
4
-
5
- export type SettingValue = {
2
+ export declare type SettingValue = {
6
3
  value?: SettingBlock['value'];
7
4
  };
8
-
9
- export type Bundle = {
5
+ export declare type Bundle = {
10
6
  getBlock: (id: string) => SettingValue | null;
11
7
  setBlockValue: (key: string, value: SettingBlock['value']) => void;
12
8
  };
package/dist/bundle.js ADDED
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.js","sourceRoot":"","sources":["../types/bundle.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -1,22 +1,17 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
1
  import { SettingBlock } from './blocks';
4
-
5
2
  export * from './blocks';
6
3
  export type { BaseBlock } from './blocks/base';
7
4
  export type { Bundle, SettingValue } from './bundle';
8
5
  export type { Rule } from './validation';
9
-
10
- export enum Sections {
11
- Main = 'main',
12
- Content = 'content',
13
- Layout = 'layout',
14
- Style = 'style',
15
- Security = 'security',
16
- Targets = 'targets',
6
+ export declare enum Sections {
7
+ Main = "main",
8
+ Content = "content",
9
+ Layout = "layout",
10
+ Style = "style",
11
+ Security = "security",
12
+ Targets = "targets"
17
13
  }
18
-
19
- export type BlockSettings = {
14
+ export declare type BlockSettings = {
20
15
  [Sections.Main]?: SettingBlock[];
21
16
  [Sections.Content]?: SettingBlock[];
22
17
  [Sections.Layout]?: SettingBlock[];
package/dist/index.js ADDED
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
6
+ }) : (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ o[k2] = m[k];
9
+ }));
10
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.Sections = void 0;
15
+ __exportStar(require("./blocks"), exports);
16
+ var Sections;
17
+ (function (Sections) {
18
+ Sections["Main"] = "main";
19
+ Sections["Content"] = "content";
20
+ Sections["Layout"] = "layout";
21
+ Sections["Style"] = "style";
22
+ Sections["Security"] = "security";
23
+ Sections["Targets"] = "targets";
24
+ })(Sections = exports.Sections || (exports.Sections = {}));
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../types/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;;AAIvD,2CAAyB;AAKzB,IAAY,QAOX;AAPD,WAAY,QAAQ;IAChB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,6BAAiB,CAAA;IACjB,2BAAe,CAAA;IACf,iCAAqB,CAAA;IACrB,+BAAmB,CAAA;AACvB,CAAC,EAPW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAOnB"}
@@ -0,0 +1,4 @@
1
+ export declare type Rule<T> = {
2
+ errorMessage: string;
3
+ validate: (value: T) => boolean;
4
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* (c) Copyright Frontify Ltd., all rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.js","sourceRoot":"","sources":["../types/validation.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
package/package.json CHANGED
@@ -1,30 +1,34 @@
1
1
  {
2
2
  "name": "@frontify/guideline-blocks-settings",
3
- "version": "0.1.2",
3
+ "version": "0.3.0",
4
4
  "description": "Provides the types for the block settings",
5
- "main": "types/index.ts",
5
+ "sideEffects": false,
6
+ "module": "dist/index.js",
7
+ "main": "dist/index.js",
6
8
  "files": [
7
- "types"
9
+ "dist"
8
10
  ],
11
+ "types": "dist/index.d.ts",
9
12
  "publishConfig": {
10
13
  "access": "public"
11
14
  },
12
- "types": "types/index.ts",
13
15
  "author": "Frontify Developers <developers@frontify.com>",
14
16
  "scripts": {
17
+ "build": "tsc",
15
18
  "lint": "eslint types",
16
19
  "lint:fix": "eslint --fix types",
17
20
  "prettier": "prettier --check types",
18
- "prettier:fix": "prettier --write types"
21
+ "prettier:fix": "prettier --write types",
22
+ "typecheck": "tsc --noEmit"
19
23
  },
20
24
  "devDependencies": {
21
25
  "@frontify/eslint-config-typescript": "0.14.0",
22
- "eslint": "8.5.0",
26
+ "eslint": "8.7.0",
23
27
  "prettier": "2.5.1",
24
- "typescript": "4.5.4"
28
+ "typescript": "4.5.5"
25
29
  },
26
30
  "dependencies": {
27
31
  "@frontify/app-bridge": "2.11.0",
28
- "@frontify/arcade": "0.16.2"
32
+ "@frontify/arcade": "1.0.0"
29
33
  }
30
34
  }
@@ -1,6 +0,0 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
- export type Checkbox = {
4
- id: string;
5
- label?: string;
6
- };
@@ -1,6 +0,0 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
- export type Rule<T> = {
4
- errorMessage: string;
5
- validate: (value: T) => boolean;
6
- };