x-block-lib 0.1.5 → 0.2.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.
@@ -1,8 +1,21 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ interface Props {
2
+ type: 'app';
3
+ version: 'v1';
4
+ }
5
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
6
  ready: (...args: any[]) => void;
3
7
  change: (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
8
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Props>>> & {
5
9
  onReady?: ((...args: any[]) => any) | undefined;
6
10
  onChange?: ((...args: any[]) => any) | undefined;
7
11
  }, {}, {}>;
8
12
  export default _default;
13
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ type __VLS_TypePropsToOption<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
@@ -0,0 +1 @@
1
+ import './logic';
@@ -0,0 +1 @@
1
+ import './boolean/v1';
@@ -1,4 +1,6 @@
1
- export * from 'blockly/core';
1
+ import './blocks';
2
2
  import './dialog';
3
3
  export * from './locale';
4
+ import './plugins';
4
5
  export * from './theme';
6
+ export * from './toolbox';
@@ -0,0 +1 @@
1
+ export declare function setLocale(locale: string): Promise<void>;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ LOGIC_BOOLEAN_FALSE: string;
3
+ LOGIC_BOOLEAN_TRUE: string;
4
+ LOGIC_V1_BOOLEAN_TOOPTIP: string;
5
+ LOGIC_V1_BOOLEAN_HELPURL: string;
6
+ };
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ LOGIC_BOOLEAN_FALSE: string;
3
+ LOGIC_BOOLEAN_TRUE: string;
4
+ LOGIC_V1_BOOLEAN_TOOPTIP: string;
5
+ LOGIC_V1_BOOLEAN_HELPURL: string;
6
+ };
7
+ export default _default;
@@ -0,0 +1,11 @@
1
+ export declare class CrossTabCopyPaste {
2
+ init({ contextMenu, shortcut }?: {
3
+ contextMenu?: true;
4
+ shortcut?: true;
5
+ }): void;
6
+ blockCopyToStorageContextMenu(): void;
7
+ blockPasteFromStorageContextMenu(): void;
8
+ blockCopyToStorageShortcut(): void;
9
+ blockCutToStorageShortcut(): void;
10
+ blockPasteFromStorageShortcut(): void;
11
+ }
@@ -0,0 +1,3 @@
1
+ export declare class CustomCleanUp {
2
+ init(): void;
3
+ }
@@ -0,0 +1,3 @@
1
+ export declare class DisableTopBlocks {
2
+ init(): void;
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import * as Blockly from 'blockly/core';
2
+ export declare class ReadOnlyHorizontalFlyout extends Blockly.HorizontalFlyout {
3
+ protected addBlockListeners_(root: SVGElement, block: Blockly.BlockSvg, rect: SVGElement): void;
4
+ isBlockCreatable(block: Blockly.BlockSvg): boolean;
5
+ }
6
+ export declare class ReadOnlyVerticalFlyout extends Blockly.VerticalFlyout {
7
+ protected addBlockListeners_(root: SVGElement, block: Blockly.BlockSvg, rect: SVGElement): void;
8
+ isBlockCreatable(block: Blockly.BlockSvg): boolean;
9
+ }
@@ -0,0 +1,18 @@
1
+ declare const toolbox: {
2
+ kind: string;
3
+ contents: {
4
+ kind: string;
5
+ name: string;
6
+ categorystyle: string;
7
+ contents: ({
8
+ kind: string;
9
+ text: string;
10
+ type?: undefined;
11
+ } | {
12
+ kind: string;
13
+ type: string;
14
+ text?: undefined;
15
+ })[];
16
+ }[];
17
+ };
18
+ export default toolbox;
@@ -0,0 +1,15 @@
1
+ declare const logic: {
2
+ kind: string;
3
+ name: string;
4
+ categorystyle: string;
5
+ contents: ({
6
+ kind: string;
7
+ text: string;
8
+ type?: undefined;
9
+ } | {
10
+ kind: string;
11
+ type: string;
12
+ text?: undefined;
13
+ })[];
14
+ };
15
+ export default logic;
@@ -0,0 +1,2 @@
1
+ import appToolboxV1 from './app/v1';
2
+ export { appToolboxV1 };
@@ -0,0 +1,11 @@
1
+ const O = {
2
+ LOGIC_BOOLEAN_FALSE: "false",
3
+ LOGIC_BOOLEAN_TRUE: "true",
4
+ LOGIC_V1_BOOLEAN_TOOPTIP: "LOGIC_V1_BOOLEAN_TOOPTIP",
5
+ LOGIC_V1_BOOLEAN_HELPURL: "LOGIC_V1_BOOLEAN_HELPURL"
6
+ }, L = {
7
+ ...O
8
+ };
9
+ export {
10
+ L as default
11
+ };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export * from './blockly';
2
1
  declare const _default: {
3
2
  install: (app: import("vue").App<any>) => void;
4
3
  };