@gemafajarramadhan/dynamic-ui 1.3.8 → 1.3.9

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/index.d.ts CHANGED
@@ -1,16 +1,9 @@
1
- declare module '@gemafajarramadhan/dynamic-ui' {
2
- import type { DefineComponent, Plugin, App } from 'vue'
1
+ import type { DefineComponent, Plugin, App } from 'vue'
3
2
 
4
3
  export interface DynamicUIApiConfig {
5
- apiBaseUrl?: string
6
- getAuthToken?: () => string | null | undefined
7
- getHeaders?: () => Record<string, string>
8
- onUnauthorized?: () => void
9
- apiClient?: (url: string, method?: string, data?: any) => Promise<any>
4
+ externalApi: any
10
5
  }
11
6
 
12
- export function setApiConfig(config: DynamicUIApiConfig): void
13
-
14
7
  export const DynamicFormField: DefineComponent<{
15
8
  field: {
16
9
  key: string;
@@ -590,9 +583,9 @@ declare module '@gemafajarramadhan/dynamic-ui' {
590
583
  export function unregisterLogic(name: string): void
591
584
 
592
585
  export function cn(...inputs: any[]): string
586
+ export function useDynamicForm(props: any, emit: any): any
593
587
 
594
- declare const DynamicUI: {
595
- install(app: App, options?: DynamicUIApiConfig): void
596
- }
597
- export default DynamicUI
588
+ const DynamicUI: {
589
+ install: (app: any, options?: DynamicUIApiConfig) => void
598
590
  }
591
+ export default DynamicUI
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gemafajarramadhan/dynamic-ui",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "Vue 3 Dynamic UI Component Library - Compatible with Vue, React, Angular, and any other framework via Web Components",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/index.d.ts CHANGED
@@ -1,16 +1,9 @@
1
- declare module '@gemafajarramadhan/dynamic-ui' {
2
- import type { DefineComponent, Plugin, App } from 'vue'
1
+ import type { DefineComponent, Plugin, App } from 'vue'
3
2
 
4
3
  export interface DynamicUIApiConfig {
5
- apiBaseUrl?: string
6
- getAuthToken?: () => string | null | undefined
7
- getHeaders?: () => Record<string, string>
8
- onUnauthorized?: () => void
9
- apiClient?: (url: string, method?: string, data?: any) => Promise<any>
4
+ externalApi: any
10
5
  }
11
6
 
12
- export function setApiConfig(config: DynamicUIApiConfig): void
13
-
14
7
  export const DynamicFormField: DefineComponent<{
15
8
  field: {
16
9
  key: string;
@@ -590,9 +583,9 @@ declare module '@gemafajarramadhan/dynamic-ui' {
590
583
  export function unregisterLogic(name: string): void
591
584
 
592
585
  export function cn(...inputs: any[]): string
586
+ export function useDynamicForm(props: any, emit: any): any
593
587
 
594
- declare const DynamicUI: {
595
- install(app: App, options?: DynamicUIApiConfig): void
596
- }
597
- export default DynamicUI
588
+ const DynamicUI: {
589
+ install: (app: any, options?: DynamicUIApiConfig) => void
598
590
  }
591
+ export default DynamicUI