@uniformdev/canvas-react 19.91.0 → 19.92.3-alpha.13
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.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.esm.js +6 -0
- package/dist/index.js +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -31,6 +31,11 @@ type ComponentStore = {
|
|
|
31
31
|
component: React.ComponentType<ComponentProps<any>>;
|
|
32
32
|
}) => void;
|
|
33
33
|
get: (type: string, variantId?: string) => React.ComponentType<ComponentProps<any>> | undefined;
|
|
34
|
+
list: () => ReadonlyArray<{
|
|
35
|
+
type: string;
|
|
36
|
+
variantId?: string;
|
|
37
|
+
component: React.ComponentType<ComponentProps<any>>;
|
|
38
|
+
}>;
|
|
34
39
|
};
|
|
35
40
|
|
|
36
41
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,11 @@ type ComponentStore = {
|
|
|
31
31
|
component: React.ComponentType<ComponentProps<any>>;
|
|
32
32
|
}) => void;
|
|
33
33
|
get: (type: string, variantId?: string) => React.ComponentType<ComponentProps<any>> | undefined;
|
|
34
|
+
list: () => ReadonlyArray<{
|
|
35
|
+
type: string;
|
|
36
|
+
variantId?: string;
|
|
37
|
+
component: React.ComponentType<ComponentProps<any>>;
|
|
38
|
+
}>;
|
|
34
39
|
};
|
|
35
40
|
|
|
36
41
|
/**
|
package/dist/index.esm.js
CHANGED
|
@@ -104,6 +104,12 @@ var createComponentStore = () => {
|
|
|
104
104
|
},
|
|
105
105
|
get: (type, variantId) => {
|
|
106
106
|
return components.get(getTypeWithVariant(type, variantId));
|
|
107
|
+
},
|
|
108
|
+
list: () => {
|
|
109
|
+
return Array.from(components.entries()).map(([key, component]) => ({
|
|
110
|
+
type: key,
|
|
111
|
+
component
|
|
112
|
+
}));
|
|
107
113
|
}
|
|
108
114
|
};
|
|
109
115
|
};
|
package/dist/index.js
CHANGED
|
@@ -159,6 +159,12 @@ var createComponentStore = () => {
|
|
|
159
159
|
},
|
|
160
160
|
get: (type, variantId) => {
|
|
161
161
|
return components.get(getTypeWithVariant(type, variantId));
|
|
162
|
+
},
|
|
163
|
+
list: () => {
|
|
164
|
+
return Array.from(components.entries()).map(([key, component]) => ({
|
|
165
|
+
type: key,
|
|
166
|
+
component
|
|
167
|
+
}));
|
|
162
168
|
}
|
|
163
169
|
};
|
|
164
170
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -104,6 +104,12 @@ var createComponentStore = () => {
|
|
|
104
104
|
},
|
|
105
105
|
get: (type, variantId) => {
|
|
106
106
|
return components.get(getTypeWithVariant(type, variantId));
|
|
107
|
+
},
|
|
108
|
+
list: () => {
|
|
109
|
+
return Array.from(components.entries()).map(([key, component]) => ({
|
|
110
|
+
type: key,
|
|
111
|
+
component
|
|
112
|
+
}));
|
|
107
113
|
}
|
|
108
114
|
};
|
|
109
115
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.92.3-alpha.13+67408b354",
|
|
4
4
|
"description": "React SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"document": "api-extractor run --local"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@uniformdev/canvas": "19.
|
|
49
|
-
"@uniformdev/context": "19.
|
|
50
|
-
"@uniformdev/context-react": "19.
|
|
51
|
-
"@uniformdev/richtext": "19.
|
|
48
|
+
"@uniformdev/canvas": "19.92.3-alpha.13+67408b354",
|
|
49
|
+
"@uniformdev/context": "19.92.3-alpha.13+67408b354",
|
|
50
|
+
"@uniformdev/context-react": "19.92.3-alpha.13+67408b354",
|
|
51
|
+
"@uniformdev/richtext": "19.92.3-alpha.13+67408b354"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": ">= 16 || 17 || 18",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "67408b3549aae6a98d76c3eefd1b501c5c834d56"
|
|
69
69
|
}
|