@selfhelp/shared 1.22.1 → 1.24.0

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +128 -0
  2. package/dist/index.d.mts +308 -100
  3. package/dist/index.d.ts +308 -100
  4. package/dist/index.js +519 -3
  5. package/dist/index.mjs +495 -3
  6. package/dist/plugin-sdk/index.d.mts +1 -1
  7. package/dist/plugin-sdk/index.d.ts +1 -1
  8. package/dist/plugin-sdk/index.js +3 -1
  9. package/dist/plugin-sdk/index.mjs +3 -1
  10. package/dist/registry/index.d.mts +2 -2
  11. package/dist/registry/index.d.ts +2 -2
  12. package/dist/registry/index.js +3 -1
  13. package/dist/registry/index.mjs +3 -1
  14. package/dist/{styles.registry-DylfiWW_.d.ts → styles.registry-BKWoDg7q.d.ts} +756 -6
  15. package/dist/{styles.registry-Dl55-gWX.d.mts → styles.registry-aopb3vsI.d.mts} +756 -6
  16. package/package.json +1 -1
  17. package/src/api/__tests__/endpoints.test.ts +45 -0
  18. package/src/api/__tests__/formListErrors.test.ts +143 -0
  19. package/src/api/endpoints.ts +41 -0
  20. package/src/api/formListErrors.ts +134 -0
  21. package/src/api/index.ts +1 -0
  22. package/src/content/__tests__/formListState.test.ts +448 -0
  23. package/src/content/__tests__/formRecordPrefill.test.ts +120 -0
  24. package/src/content/formListState.ts +559 -0
  25. package/src/content/formRecordPrefill.ts +108 -5
  26. package/src/content/index.ts +1 -0
  27. package/src/registry/__tests__/platform.test.ts +15 -6
  28. package/src/registry/styles.registry.ts +2 -0
  29. package/src/types/__tests__/version-about.test.ts +80 -0
  30. package/src/types/api/__tests__/formWrites.test.ts +84 -0
  31. package/src/types/api/__tests__/system.test.ts +10 -0
  32. package/src/types/api/form-lists.ts +469 -0
  33. package/src/types/api/forms.ts +149 -4
  34. package/src/types/api/index.ts +1 -0
  35. package/src/types/api/system.ts +9 -0
  36. package/src/types/styles/composite.ts +13 -0
  37. package/src/types/styles/error.ts +54 -4
  38. package/src/types/styles/forms.ts +84 -0
  39. package/src/types/styles/unknown.ts +5 -1
@@ -1,5 +1,5 @@
1
- import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-DylfiWW_.js';
2
- export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-DylfiWW_.js';
1
+ import { T as TStyleName, I as IStyleRegistryEntry, a as IPluginStyleRegistryEntry, b as TStylePlacement, c as TConcretePlatform, d as TStylePlatform } from '../styles.registry-BKWoDg7q.js';
2
+ export { B as BASE_STYLE_REGISTRY, S as STYLE_REGISTRY, e as TStyleRegistryKey, _ as _AssertRegistryMatchesStyleName, f as _resetPluginStyleRegistry, g as extendStyleRegistry, h as getMergedStyleRegistry, i as getPluginStyleRegistry } from '../styles.registry-BKWoDg7q.js';
3
3
  import '../common-qaDIAYS3.js';
4
4
 
5
5
  /**
@@ -141,7 +141,9 @@ var BASE_STYLE_REGISTRY = {
141
141
  version: { description: "Build/version diagnostic surface", category: "auth", canHaveChildren: false },
142
142
  "ref-container": { description: "Renders content referenced from another section", category: "layout", canHaveChildren: true },
143
143
  "data-container": { description: "Data-scoped container (renders subtree against a data scope)", category: "layout", canHaveChildren: true },
144
- "entry-table": { description: "Built-in admin CRUD grid over a form's records (search/sort/paginate/CSV, add / edit / delete actions)", category: "forms", canHaveChildren: false }
144
+ "entry-table": { description: "Built-in admin CRUD grid over a form's records (search/sort/paginate/CSV, add / edit / delete actions)", category: "forms", canHaveChildren: false },
145
+ "entry-form-list": { description: "Entry list with form: server-rendered list of records with create / view / edit / delete, quick actions and history", category: "forms", canHaveChildren: true },
146
+ "data-view": { description: "Read-only server-rendered table, cards or your own layout (sections placed inside, drawn once per record) of records of a data table", category: "forms", canHaveChildren: true }
145
147
  };
146
148
  var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
147
149
  var PLUGIN_STYLE_REGISTRY = {};
@@ -98,7 +98,9 @@ var BASE_STYLE_REGISTRY = {
98
98
  version: { description: "Build/version diagnostic surface", category: "auth", canHaveChildren: false },
99
99
  "ref-container": { description: "Renders content referenced from another section", category: "layout", canHaveChildren: true },
100
100
  "data-container": { description: "Data-scoped container (renders subtree against a data scope)", category: "layout", canHaveChildren: true },
101
- "entry-table": { description: "Built-in admin CRUD grid over a form's records (search/sort/paginate/CSV, add / edit / delete actions)", category: "forms", canHaveChildren: false }
101
+ "entry-table": { description: "Built-in admin CRUD grid over a form's records (search/sort/paginate/CSV, add / edit / delete actions)", category: "forms", canHaveChildren: false },
102
+ "entry-form-list": { description: "Entry list with form: server-rendered list of records with create / view / edit / delete, quick actions and history", category: "forms", canHaveChildren: true },
103
+ "data-view": { description: "Read-only server-rendered table, cards or your own layout (sections placed inside, drawn once per record) of records of a data table", category: "forms", canHaveChildren: true }
102
104
  };
103
105
  var STYLE_REGISTRY = BASE_STYLE_REGISTRY;
104
106
  var PLUGIN_STYLE_REGISTRY = {};