@xyd-js/uniform 0.1.0-xyd.2 → 0.1.0-xyd.3

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.
@@ -0,0 +1,80 @@
1
+ declare enum ReferenceCategory {
2
+ COMPONENTS = "components",
3
+ HOOKS = "hooks",
4
+ REST = "rest",
5
+ GRAPHQL = "graphql",
6
+ FUNCTIONS = "functions"
7
+ }
8
+ declare enum ReferenceType {
9
+ COMPONENT = "component",
10
+ HOOK = "hook",
11
+ REST_HTTP_GET = "rest_get",
12
+ REST_HTTP_POST = "rest_post",
13
+ REST_HTTP_PUT = "rest_put",
14
+ REST_HTTP_PATCH = "rest_patch",
15
+ REST_HTTP_DELETE = "rest_delete",
16
+ GRAPHQL_QUERY = "graphql_query",
17
+ GRAPHQL_MUTATION = "graphql_mutation",
18
+ FUNCTION_JS = "function_js"
19
+ }
20
+ interface GraphQLReferenceContext {
21
+ }
22
+ interface OpenAPIReferenceContext {
23
+ method: string;
24
+ path: string;
25
+ }
26
+ type ReferenceContext = GraphQLReferenceContext | OpenAPIReferenceContext;
27
+ interface ExampleRoot {
28
+ groups: ExampleGroup[];
29
+ }
30
+ interface ExampleGroup {
31
+ description?: string;
32
+ examples: Example[];
33
+ }
34
+ interface Example {
35
+ description?: string;
36
+ codeblock: CodeBlock;
37
+ }
38
+ interface CodeBlock {
39
+ title?: string;
40
+ tabs: CodeBlockTab[];
41
+ }
42
+ interface GraphQLExampleContext {
43
+ schema?: any;
44
+ }
45
+ interface OpenAPIExampleContext {
46
+ status?: number;
47
+ content?: string;
48
+ }
49
+ type ExampleContext = GraphQLExampleContext | OpenAPIExampleContext;
50
+ interface CodeBlockTab {
51
+ title: string;
52
+ code: string;
53
+ language: string;
54
+ context?: ExampleContext;
55
+ }
56
+ interface Reference {
57
+ title: string;
58
+ description: string;
59
+ canonical: string;
60
+ definitions: Definition[];
61
+ examples: ExampleRoot;
62
+ category?: ReferenceCategory;
63
+ type?: ReferenceType;
64
+ context?: ReferenceContext;
65
+ }
66
+ interface Definition {
67
+ title: string;
68
+ properties: DefinitionProperty[];
69
+ type?: string;
70
+ id?: string;
71
+ description?: string;
72
+ }
73
+ interface DefinitionProperty {
74
+ name: string;
75
+ type: string;
76
+ description: string;
77
+ properties?: DefinitionProperty[];
78
+ }
79
+
80
+ export { type CodeBlock as C, type Definition as D, type ExampleRoot as E, type GraphQLReferenceContext as G, type OpenAPIReferenceContext as O, type Reference as R, ReferenceCategory as a, ReferenceType as b, type ReferenceContext as c, type ExampleGroup as d, type Example as e, type GraphQLExampleContext as f, type OpenAPIExampleContext as g, type ExampleContext as h, type CodeBlockTab as i, type DefinitionProperty as j };
@@ -0,0 +1,80 @@
1
+ declare enum ReferenceCategory {
2
+ COMPONENTS = "components",
3
+ HOOKS = "hooks",
4
+ REST = "rest",
5
+ GRAPHQL = "graphql",
6
+ FUNCTIONS = "functions"
7
+ }
8
+ declare enum ReferenceType {
9
+ COMPONENT = "component",
10
+ HOOK = "hook",
11
+ REST_HTTP_GET = "rest_get",
12
+ REST_HTTP_POST = "rest_post",
13
+ REST_HTTP_PUT = "rest_put",
14
+ REST_HTTP_PATCH = "rest_patch",
15
+ REST_HTTP_DELETE = "rest_delete",
16
+ GRAPHQL_QUERY = "graphql_query",
17
+ GRAPHQL_MUTATION = "graphql_mutation",
18
+ FUNCTION_JS = "function_js"
19
+ }
20
+ interface GraphQLReferenceContext {
21
+ }
22
+ interface OpenAPIReferenceContext {
23
+ method: string;
24
+ path: string;
25
+ }
26
+ type ReferenceContext = GraphQLReferenceContext | OpenAPIReferenceContext;
27
+ interface ExampleRoot {
28
+ groups: ExampleGroup[];
29
+ }
30
+ interface ExampleGroup {
31
+ description?: string;
32
+ examples: Example[];
33
+ }
34
+ interface Example {
35
+ description?: string;
36
+ codeblock: CodeBlock;
37
+ }
38
+ interface CodeBlock {
39
+ title?: string;
40
+ tabs: CodeBlockTab[];
41
+ }
42
+ interface GraphQLExampleContext {
43
+ schema?: any;
44
+ }
45
+ interface OpenAPIExampleContext {
46
+ status?: number;
47
+ content?: string;
48
+ }
49
+ type ExampleContext = GraphQLExampleContext | OpenAPIExampleContext;
50
+ interface CodeBlockTab {
51
+ title: string;
52
+ code: string;
53
+ language: string;
54
+ context?: ExampleContext;
55
+ }
56
+ interface Reference {
57
+ title: string;
58
+ description: string;
59
+ canonical: string;
60
+ definitions: Definition[];
61
+ examples: ExampleRoot;
62
+ category?: ReferenceCategory;
63
+ type?: ReferenceType;
64
+ context?: ReferenceContext;
65
+ }
66
+ interface Definition {
67
+ title: string;
68
+ properties: DefinitionProperty[];
69
+ type?: string;
70
+ id?: string;
71
+ description?: string;
72
+ }
73
+ interface DefinitionProperty {
74
+ name: string;
75
+ type: string;
76
+ description: string;
77
+ properties?: DefinitionProperty[];
78
+ }
79
+
80
+ export { type CodeBlock as C, type Definition as D, type ExampleRoot as E, type GraphQLReferenceContext as G, type OpenAPIReferenceContext as O, type Reference as R, ReferenceCategory as a, ReferenceType as b, type ReferenceContext as c, type ExampleGroup as d, type Example as e, type GraphQLExampleContext as f, type OpenAPIExampleContext as g, type ExampleContext as h, type CodeBlockTab as i, type DefinitionProperty as j };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyd-js/uniform",
3
- "version": "0.1.0-xyd.2",
3
+ "version": "0.1.0-xyd.3",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -17,7 +17,7 @@
17
17
  "unist-builder": "^4.0.0",
18
18
  "unist-util-visit": "^5.0.0",
19
19
  "codehike": "^1.0.3",
20
- "@xyd-js/core": "0.1.0-xyd.0"
20
+ "@xyd-js/core": "0.1.0-xyd.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "tsup": "^8.3.0"