@gemafajarramadhan/dynamic-ui 1.3.8 → 1.3.10

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;
@@ -104,6 +97,9 @@ declare module '@gemafajarramadhan/dynamic-ui' {
104
97
  type?: 'BUTTON' | 'SUBMIT' | 'RESET' | 'button' | 'submit' | 'reset'
105
98
  visible?: boolean
106
99
  skeleton?: boolean
100
+ to?: string
101
+ icon?: string
102
+ iconClass?: string
107
103
  [key: string]: any
108
104
  }>
109
105
 
@@ -590,9 +586,9 @@ declare module '@gemafajarramadhan/dynamic-ui' {
590
586
  export function unregisterLogic(name: string): void
591
587
 
592
588
  export function cn(...inputs: any[]): string
589
+ export function useDynamicForm(props: any, emit: any): any
593
590
 
594
- declare const DynamicUI: {
595
- install(app: App, options?: DynamicUIApiConfig): void
596
- }
597
- export default DynamicUI
591
+ const DynamicUI: {
592
+ install: (app: any, options?: DynamicUIApiConfig) => void
598
593
  }
594
+ 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.10",
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;
@@ -104,6 +97,9 @@ declare module '@gemafajarramadhan/dynamic-ui' {
104
97
  type?: 'BUTTON' | 'SUBMIT' | 'RESET' | 'button' | 'submit' | 'reset'
105
98
  visible?: boolean
106
99
  skeleton?: boolean
100
+ to?: string
101
+ icon?: string
102
+ iconClass?: string
107
103
  [key: string]: any
108
104
  }>
109
105
 
@@ -590,9 +586,9 @@ declare module '@gemafajarramadhan/dynamic-ui' {
590
586
  export function unregisterLogic(name: string): void
591
587
 
592
588
  export function cn(...inputs: any[]): string
589
+ export function useDynamicForm(props: any, emit: any): any
593
590
 
594
- declare const DynamicUI: {
595
- install(app: App, options?: DynamicUIApiConfig): void
596
- }
597
- export default DynamicUI
591
+ const DynamicUI: {
592
+ install: (app: any, options?: DynamicUIApiConfig) => void
598
593
  }
594
+ export default DynamicUI