@frontify/guideline-blocks-settings 0.6.1 → 0.7.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/index.d.ts +9 -1
- package/dist/blocks/index.js +5 -1
- package/dist/blocks/index.js.map +1 -1
- package/dist/blocks/multiInput.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/blocks/reference.d.ts +0 -28
- package/dist/blocks/reference.js +0 -19
- package/dist/blocks/reference.js.map +0 -1
package/dist/blocks/index.d.ts
CHANGED
|
@@ -21,4 +21,12 @@ export * from './sectionHeading';
|
|
|
21
21
|
export * from './slider';
|
|
22
22
|
export * from './switch';
|
|
23
23
|
export * from './templateInput';
|
|
24
|
-
export declare type
|
|
24
|
+
export declare type SimpleSettingBlock = AssetInputBlock | ChecklistBlock | ColorInputBlock | DropdownBlock | SectionHeadingBlock | InputBlock | MultiInputBlock | SliderBlock | SwitchBlock | TemplateInputBlock | NotificationBlock;
|
|
25
|
+
export declare type DynamicSupportedBlock = InputBlock | ColorInputBlock | DropdownBlock;
|
|
26
|
+
export declare type DynamicSettingBlock<T extends DynamicSupportedBlock = DynamicSupportedBlock> = Omit<T, 'value'> & {
|
|
27
|
+
value?: DynamicSupportedBlock['value'][];
|
|
28
|
+
dynamic: {
|
|
29
|
+
addButtonLabel: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare type SettingBlock = SimpleSettingBlock | DynamicSettingBlock;
|
package/dist/blocks/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.
|
|
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/blocks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/blocks/index.ts"],"names":[],"mappings":";AAAA,uDAAuD
|
|
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
|
|
11
|
+
} & 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.
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.7.1",
|
|
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.
|
|
26
|
+
"eslint": "8.10.0",
|
|
27
27
|
"prettier": "2.5.1",
|
|
28
|
-
"typescript": "4.
|
|
28
|
+
"typescript": "4.6.2"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@frontify/app-bridge": "
|
|
32
|
-
"@frontify/arcade": "^
|
|
31
|
+
"@frontify/app-bridge": "2.12.0-beta.1",
|
|
32
|
+
"@frontify/arcade": "^5.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;
|
package/dist/blocks/reference.js
DELETED
|
@@ -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"}
|