@kengic/core.react 0.0.1-beta.13 → 0.0.1-beta.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/core.react",
3
- "version": "0.0.1-beta.13",
3
+ "version": "0.0.1-beta.14",
4
4
  "type": "module",
5
5
  "main": "./kengic-core.react.js",
6
6
  "module": "./kengic-core.react.js",
@@ -2,6 +2,11 @@ import React from 'react';
2
2
  /**
3
3
  * 组件通用逻辑.
4
4
  */
5
- export declare function KgProvider({ children }: {
5
+ export declare function KgProvider({ children, ID }: {
6
6
  children?: React.ReactNode;
7
+ ID: string;
7
8
  }): React.JSX.Element;
9
+ /**
10
+ * 获取组件标识.
11
+ */
12
+ export declare function useID(): string;
@@ -1,2 +1,2 @@
1
1
  export * from './Kg';
2
- export * from './KgProvider.tsx';
2
+ export * from './KgProvider';
@@ -1,8 +1,5 @@
1
1
  import React from 'react';
2
- export interface KgVarConfigProps {
3
- /** 该组件实例的唯一标识. */
4
- id: string;
5
- }
2
+ import { KgVarConfigProps } from './index.vm.tsx';
6
3
  /**
7
4
  * 变量配置.
8
5
  */
@@ -0,0 +1,2 @@
1
+ export interface KgVarConfigProps {
2
+ }
@@ -1,4 +1,4 @@
1
1
  /**
2
- * 注册 web component.
2
+ * 注册组件.
3
3
  */
4
4
  export declare function initKgVarConfigElement(): void;
@@ -1,5 +1,5 @@
1
1
  import { IKgWorkStationState, store } from './index.store';
2
- import { IKgWorkStationOnMountEventListener } from './index.event.ts';
2
+ import { IKgWorkStationOnMountEventListener } from './index.event';
3
3
  import { IRemoveEventListener } from '@kengic/core.core';
4
4
  export interface IDoKgWorkStation {
5
5
  /**
@@ -8,8 +8,6 @@ export interface KgWorkStationProps {
8
8
  */
9
9
  isOpen?: boolean;
10
10
  };
11
- /** 该组件实例的唯一标识. */
12
- id: string;
13
11
  /**
14
12
  * 是否显示.
15
13
  */
@@ -1,4 +1,4 @@
1
1
  /**
2
- * 注册 web component.
2
+ * 注册组件.
3
3
  */
4
4
  export declare function initKgWorkStationElement(): void;