MCPcopy Create free account
hub / github.com/composify-js/composify / getGroupedProps

Method getGroupedProps

packages/react/src/renderer/Block/Block.ts:43–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 }
42
43 public getGroupedProps() {
44 const propsByGroup: Record<string, Record<string, PropertySpec<any>>> = {};
45
46 for (const key in this.props) {
47 const spec = this.props[key];
48 const group = spec.group ?? Block.UNGROUPED;
49
50 propsByGroup[group] ||= {};
51 propsByGroup[group][key] = spec;
52 }
53
54 return propsByGroup;
55 }
56
57 private populateDefaults() {
58 for (const spec of Object.values(this.props)) {

Callers 1

PropertyLibraryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected