@frontify/guideline-blocks-settings 0.4.0 → 0.6.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/dist/blocks/assetInput.d.ts +1 -1
- package/dist/blocks/index.d.ts +3 -3
- package/dist/blocks/index.js +1 -1
- package/dist/blocks/index.js.map +1 -1
- package/dist/blocks/notification.d.ts +29 -0
- package/dist/blocks/notification.js +19 -0
- package/dist/blocks/notification.js.map +1 -0
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';
|
|
2
2
|
import { BaseBlock } from './base';
|
|
3
3
|
export declare enum AssetInputSource {
|
|
4
4
|
Library = "Library",
|
package/dist/blocks/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { ColorInputBlock } from './colorInput';
|
|
|
4
4
|
import { DropdownBlock } from './dropdown';
|
|
5
5
|
import { InputBlock } from './input';
|
|
6
6
|
import { MultiInputBlock } from './multiInput';
|
|
7
|
-
import {
|
|
7
|
+
import { NotificationBlock } from './notification';
|
|
8
8
|
import { SectionHeadingBlock } from './sectionHeading';
|
|
9
9
|
import { SliderBlock } from './slider';
|
|
10
10
|
import { SwitchBlock } from './switch';
|
|
@@ -16,9 +16,9 @@ export * from './colorInput';
|
|
|
16
16
|
export * from './dropdown';
|
|
17
17
|
export * from './input';
|
|
18
18
|
export * from './multiInput';
|
|
19
|
-
export * from './
|
|
19
|
+
export * from './notification';
|
|
20
20
|
export * from './sectionHeading';
|
|
21
21
|
export * from './slider';
|
|
22
22
|
export * from './switch';
|
|
23
23
|
export * from './templateInput';
|
|
24
|
-
export declare type SettingBlock = AssetInputBlock | ChecklistBlock | ColorInputBlock | DropdownBlock | SectionHeadingBlock | InputBlock | MultiInputBlock | SliderBlock | SwitchBlock | TemplateInputBlock |
|
|
24
|
+
export declare type SettingBlock = AssetInputBlock | ChecklistBlock | ColorInputBlock | DropdownBlock | SectionHeadingBlock | InputBlock | MultiInputBlock | SliderBlock | SwitchBlock | TemplateInputBlock | NotificationBlock;
|
package/dist/blocks/index.js
CHANGED
|
@@ -18,7 +18,7 @@ __exportStar(require("./colorInput"), exports);
|
|
|
18
18
|
__exportStar(require("./dropdown"), exports);
|
|
19
19
|
__exportStar(require("./input"), exports);
|
|
20
20
|
__exportStar(require("./multiInput"), exports);
|
|
21
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./notification"), exports);
|
|
22
22
|
__exportStar(require("./sectionHeading"), exports);
|
|
23
23
|
__exportStar(require("./slider"), exports);
|
|
24
24
|
__exportStar(require("./switch"), exports);
|
package/dist/blocks/index.js.map
CHANGED
|
@@ -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,
|
|
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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseBlock } from './base';
|
|
2
|
+
export declare enum NotificationStyleType {
|
|
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 NotificationBlockDividerPosition {
|
|
14
|
+
Top = "Top",
|
|
15
|
+
Bottom = "Bottom",
|
|
16
|
+
Both = "Both",
|
|
17
|
+
None = "None"
|
|
18
|
+
}
|
|
19
|
+
export declare type NotificationBlock = {
|
|
20
|
+
type: 'notification';
|
|
21
|
+
title?: string;
|
|
22
|
+
text?: string;
|
|
23
|
+
link?: Link;
|
|
24
|
+
styles: {
|
|
25
|
+
type: NotificationStyleType;
|
|
26
|
+
icon?: boolean;
|
|
27
|
+
divider?: NotificationBlockDividerPosition;
|
|
28
|
+
};
|
|
29
|
+
} & BaseBlock;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* (c) Copyright Frontify Ltd., all rights reserved. */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.NotificationBlockDividerPosition = exports.NotificationStyleType = void 0;
|
|
5
|
+
var NotificationStyleType;
|
|
6
|
+
(function (NotificationStyleType) {
|
|
7
|
+
NotificationStyleType["Warning"] = "Warning";
|
|
8
|
+
NotificationStyleType["Negative"] = "Negative";
|
|
9
|
+
NotificationStyleType["Positive"] = "Positive";
|
|
10
|
+
NotificationStyleType["Info"] = "Info";
|
|
11
|
+
})(NotificationStyleType = exports.NotificationStyleType || (exports.NotificationStyleType = {}));
|
|
12
|
+
var NotificationBlockDividerPosition;
|
|
13
|
+
(function (NotificationBlockDividerPosition) {
|
|
14
|
+
NotificationBlockDividerPosition["Top"] = "Top";
|
|
15
|
+
NotificationBlockDividerPosition["Bottom"] = "Bottom";
|
|
16
|
+
NotificationBlockDividerPosition["Both"] = "Both";
|
|
17
|
+
NotificationBlockDividerPosition["None"] = "None";
|
|
18
|
+
})(NotificationBlockDividerPosition = exports.NotificationBlockDividerPosition || (exports.NotificationBlockDividerPosition = {}));
|
|
19
|
+
//# sourceMappingURL=notification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../types/blocks/notification.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;AAIvD,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC7B,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;IACrB,sCAAa,CAAA;AACjB,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC;AAQD,IAAY,gCAKX;AALD,WAAY,gCAAgC;IACxC,+CAAW,CAAA;IACX,qDAAiB,CAAA;IACjB,iDAAa,CAAA;IACb,iDAAa,CAAA;AACjB,CAAC,EALW,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAK3C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontify/guideline-blocks-settings",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Provides the types for the block settings",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"typecheck": "tsc --noEmit"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@frontify/eslint-config-typescript": "0.
|
|
26
|
-
"eslint": "8.
|
|
25
|
+
"@frontify/eslint-config-typescript": "0.15.2",
|
|
26
|
+
"eslint": "8.8.0",
|
|
27
27
|
"prettier": "2.5.1",
|
|
28
28
|
"typescript": "4.5.5"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@frontify/app-bridge": "2.
|
|
32
|
-
"@frontify/arcade": "
|
|
31
|
+
"@frontify/app-bridge": "^2.12.0-beta.0",
|
|
32
|
+
"@frontify/arcade": "^2.0.0"
|
|
33
33
|
}
|
|
34
34
|
}
|