@frontify/guideline-blocks-settings 0.5.0 → 0.6.2

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.
@@ -2,7 +2,11 @@
2
2
  /* (c) Copyright Frontify Ltd., all rights reserved. */
3
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
4
  if (k2 === undefined) k2 = k;
5
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
6
10
  }) : (function(o, m, k, k2) {
7
11
  if (k2 === undefined) k2 = k;
8
12
  o[k2] = m[k];
@@ -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;;;;;;;;;;;;;;;;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"}
@@ -8,4 +8,4 @@ export declare type MultiInputBlock = {
8
8
  layout: MultiInputLayout;
9
9
  blocks: (Omit<InputBlock, 'value'> | Omit<ColorInputBlock, 'value'> | Omit<DropdownBlock, 'value'>)[];
10
10
  lastItemFullWidth?: boolean;
11
- } & BaseBlock<(InputBlock['value'] | ColorInputBlock['value'] | DropdownBlock['value'])[]>;
11
+ } & BaseBlock;
@@ -23,6 +23,7 @@ export declare type NotificationBlock = {
23
23
  link?: Link;
24
24
  styles: {
25
25
  type: NotificationStyleType;
26
+ icon?: boolean;
26
27
  divider?: NotificationBlockDividerPosition;
27
28
  };
28
29
  } & BaseBlock;
package/dist/index.js CHANGED
@@ -2,7 +2,11 @@
2
2
  /* (c) Copyright Frontify Ltd., all rights reserved. */
3
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
4
  if (k2 === undefined) k2 = k;
5
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
6
10
  }) : (function(o, m, k, k2) {
7
11
  if (k2 === undefined) k2 = k;
8
12
  o[k2] = m[k];
package/dist/index.js.map CHANGED
@@ -1 +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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontify/guideline-blocks-settings",
3
- "version": "0.5.0",
3
+ "version": "0.6.2",
4
4
  "description": "Provides the types for the block settings",
5
5
  "sideEffects": false,
6
6
  "module": "dist/index.js",
@@ -23,12 +23,12 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@frontify/eslint-config-typescript": "0.15.2",
26
- "eslint": "8.8.0",
26
+ "eslint": "8.10.0",
27
27
  "prettier": "2.5.1",
28
- "typescript": "4.5.5"
28
+ "typescript": "4.6.2"
29
29
  },
30
30
  "dependencies": {
31
- "@frontify/app-bridge": "2.11.0",
32
- "@frontify/arcade": "1.1.0"
31
+ "@frontify/app-bridge": "2.12.0-beta.1",
32
+ "@frontify/arcade": "^4.0.0"
33
33
  }
34
34
  }
@@ -1,28 +0,0 @@
1
- import { BaseBlock } from './base';
2
- export declare enum ReferenceStyle {
3
- Warning = "Warning",
4
- Negative = "Negative",
5
- Positive = "Positive",
6
- Info = "Info"
7
- }
8
- export declare type Link = {
9
- label?: string;
10
- href: string;
11
- target?: '_self' | '_blank';
12
- };
13
- export declare enum ReferenceBlockDividerPosition {
14
- Top = "Top",
15
- Bottom = "Bottom",
16
- Both = "Both",
17
- None = "None"
18
- }
19
- export declare type ReferenceBlock = {
20
- type: 'reference';
21
- title?: string;
22
- text?: string;
23
- style: ReferenceStyle;
24
- link?: Link;
25
- styles?: {
26
- divider?: ReferenceBlockDividerPosition;
27
- };
28
- } & BaseBlock;
@@ -1,19 +0,0 @@
1
- "use strict";
2
- /* (c) Copyright Frontify Ltd., all rights reserved. */
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ReferenceBlockDividerPosition = exports.ReferenceStyle = void 0;
5
- var ReferenceStyle;
6
- (function (ReferenceStyle) {
7
- ReferenceStyle["Warning"] = "Warning";
8
- ReferenceStyle["Negative"] = "Negative";
9
- ReferenceStyle["Positive"] = "Positive";
10
- ReferenceStyle["Info"] = "Info";
11
- })(ReferenceStyle = exports.ReferenceStyle || (exports.ReferenceStyle = {}));
12
- var ReferenceBlockDividerPosition;
13
- (function (ReferenceBlockDividerPosition) {
14
- ReferenceBlockDividerPosition["Top"] = "Top";
15
- ReferenceBlockDividerPosition["Bottom"] = "Bottom";
16
- ReferenceBlockDividerPosition["Both"] = "Both";
17
- ReferenceBlockDividerPosition["None"] = "None";
18
- })(ReferenceBlockDividerPosition = exports.ReferenceBlockDividerPosition || (exports.ReferenceBlockDividerPosition = {}));
19
- //# sourceMappingURL=reference.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reference.js","sourceRoot":"","sources":["../../types/blocks/reference.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;AAIvD,IAAY,cAKX;AALD,WAAY,cAAc;IACtB,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,+BAAa,CAAA;AACjB,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB;AAQD,IAAY,6BAKX;AALD,WAAY,6BAA6B;IACrC,4CAAW,CAAA;IACX,kDAAiB,CAAA;IACjB,8CAAa,CAAA;IACb,8CAAa,CAAA;AACjB,CAAC,EALW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAKxC"}