@frontify/guideline-blocks-settings 0.9.0 → 0.10.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.
- package/dist/blocks/assetInput.d.ts +0 -5
- package/dist/blocks/assetInput.js +1 -6
- package/dist/blocks/assetInput.js.map +1 -1
- package/dist/blocks/index.d.ts +3 -1
- package/dist/blocks/index.js +1 -0
- package/dist/blocks/index.js.map +1 -1
- package/dist/blocks/legacyAssetInput.d.ts +23 -0
- package/dist/blocks/legacyAssetInput.js +16 -0
- package/dist/blocks/legacyAssetInput.js.map +1 -0
- package/package.json +1 -1
|
@@ -13,10 +13,6 @@ 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
|
-
}
|
|
20
16
|
export declare type AssetInputBlock = {
|
|
21
17
|
type: 'assetInput';
|
|
22
18
|
multiSelection?: boolean;
|
|
@@ -24,5 +20,4 @@ export declare type AssetInputBlock = {
|
|
|
24
20
|
projectTypes?: AssetChooserProjectType[];
|
|
25
21
|
objectTypes?: AssetChooserObjectType[];
|
|
26
22
|
mode?: AssetInputMode;
|
|
27
|
-
api?: ApiType;
|
|
28
23
|
} & 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.
|
|
4
|
+
exports.AssetInputMode = exports.AssetInputSource = void 0;
|
|
5
5
|
var AssetInputSource;
|
|
6
6
|
(function (AssetInputSource) {
|
|
7
7
|
AssetInputSource["Library"] = "Library";
|
|
@@ -13,9 +13,4 @@ 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 = {}));
|
|
21
16
|
//# 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"}
|
package/dist/blocks/index.d.ts
CHANGED
|
@@ -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 { LegacyAssetInputBlock } from './legacyAssetInput';
|
|
6
7
|
import { LinkChooserBlock } from './linkChooser';
|
|
7
8
|
import { MultiInputBlock } from './multiInput';
|
|
8
9
|
import { NotificationBlock } from './notification';
|
|
@@ -16,6 +17,7 @@ export * from './choices';
|
|
|
16
17
|
export * from './colorInput';
|
|
17
18
|
export * from './dropdown';
|
|
18
19
|
export * from './input';
|
|
20
|
+
export * from './legacyAssetInput';
|
|
19
21
|
export * from './linkChooser';
|
|
20
22
|
export * from './multiInput';
|
|
21
23
|
export * from './notification';
|
|
@@ -23,7 +25,7 @@ export * from './sectionHeading';
|
|
|
23
25
|
export * from './slider';
|
|
24
26
|
export * from './switch';
|
|
25
27
|
export * from './templateInput';
|
|
26
|
-
export declare type SimpleSettingBlock = AssetInputBlock | ChecklistBlock | ColorInputBlock | DropdownBlock |
|
|
28
|
+
export declare type SimpleSettingBlock = AssetInputBlock | ChecklistBlock | ColorInputBlock | DropdownBlock | InputBlock | LegacyAssetInputBlock | MultiInputBlock | SectionHeadingBlock | SliderBlock | SwitchBlock | TemplateInputBlock | NotificationBlock | LinkChooserBlock;
|
|
27
29
|
export declare type DynamicSupportedBlock = InputBlock | ColorInputBlock | DropdownBlock;
|
|
28
30
|
export declare type DynamicSettingBlock<T extends DynamicSupportedBlock = DynamicSupportedBlock> = Omit<T, 'value'> & {
|
|
29
31
|
value?: DynamicSupportedBlock['value'][];
|
package/dist/blocks/index.js
CHANGED
|
@@ -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("./legacyAssetInput"), exports);
|
|
24
25
|
__exportStar(require("./linkChooser"), exports);
|
|
25
26
|
__exportStar(require("./multiInput"), exports);
|
|
26
27
|
__exportStar(require("./notification"), 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;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/blocks/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;;;;;AAgBvD,+CAA6B;AAC7B,8CAA4B;AAC5B,4CAA0B;AAC1B,+CAA6B;AAC7B,6CAA2B;AAC3B,0CAAwB;AACxB,qDAAmC;AACnC,gDAA8B;AAC9B,+CAA6B;AAC7B,iDAA+B;AAC/B,mDAAiC;AACjC,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AssetChooserObjectType, AssetChooserProjectType, FileExtension } from '@frontify/app-bridge';
|
|
2
|
+
import { BaseBlock } from './base';
|
|
3
|
+
export declare enum LegacyAssetInputSource {
|
|
4
|
+
Library = "Library",
|
|
5
|
+
Upload = "Upload"
|
|
6
|
+
}
|
|
7
|
+
export declare enum LegacyAssetInputMode {
|
|
8
|
+
Both = "Both",
|
|
9
|
+
UploadOnly = "UploadOnly",
|
|
10
|
+
BrowseOnly = "BrowseOnly"
|
|
11
|
+
}
|
|
12
|
+
export declare type LegacyAssetInputValue = {
|
|
13
|
+
source: LegacyAssetInputSource;
|
|
14
|
+
value: number;
|
|
15
|
+
};
|
|
16
|
+
export declare type LegacyAssetInputBlock = {
|
|
17
|
+
type: 'legacyAssetInput';
|
|
18
|
+
multiSelection?: boolean;
|
|
19
|
+
extensions?: FileExtension[];
|
|
20
|
+
projectTypes?: AssetChooserProjectType[];
|
|
21
|
+
objectTypes?: AssetChooserObjectType[];
|
|
22
|
+
mode?: LegacyAssetInputMode;
|
|
23
|
+
} & BaseBlock<LegacyAssetInputValue | LegacyAssetInputValue['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.LegacyAssetInputMode = exports.LegacyAssetInputSource = void 0;
|
|
5
|
+
var LegacyAssetInputSource;
|
|
6
|
+
(function (LegacyAssetInputSource) {
|
|
7
|
+
LegacyAssetInputSource["Library"] = "Library";
|
|
8
|
+
LegacyAssetInputSource["Upload"] = "Upload";
|
|
9
|
+
})(LegacyAssetInputSource = exports.LegacyAssetInputSource || (exports.LegacyAssetInputSource = {}));
|
|
10
|
+
var LegacyAssetInputMode;
|
|
11
|
+
(function (LegacyAssetInputMode) {
|
|
12
|
+
LegacyAssetInputMode["Both"] = "Both";
|
|
13
|
+
LegacyAssetInputMode["UploadOnly"] = "UploadOnly";
|
|
14
|
+
LegacyAssetInputMode["BrowseOnly"] = "BrowseOnly";
|
|
15
|
+
})(LegacyAssetInputMode = exports.LegacyAssetInputMode || (exports.LegacyAssetInputMode = {}));
|
|
16
|
+
//# sourceMappingURL=legacyAssetInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacyAssetInput.js","sourceRoot":"","sources":["../../types/blocks/legacyAssetInput.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;AAKvD,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAC9B,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;AACrB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,qCAAa,CAAA;IACb,iDAAyB,CAAA;IACzB,iDAAyB,CAAA;AAC7B,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B"}
|