@aglyn/aglyn 1.17.0 → 1.19.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 (31) hide show
  1. package/package.json +11 -11
  2. package/src/lib/app-utils/compose-reusable-components.js +7 -3
  3. package/src/lib/app-utils/compose-reusable-components.js.map +1 -1
  4. package/src/lib/app-utils/docs-help.generated.d.ts +1 -1
  5. package/src/lib/app-utils/docs-help.generated.js +1 -0
  6. package/src/lib/app-utils/docs-help.generated.js.map +1 -1
  7. package/src/lib/app-utils/docs-index.generated.js +18 -4
  8. package/src/lib/app-utils/docs-index.generated.js.map +1 -1
  9. package/src/lib/app-utils/element-motion.js +6 -5
  10. package/src/lib/app-utils/element-motion.js.map +1 -1
  11. package/src/lib/app-utils/expand-repeatables.d.ts +23 -3
  12. package/src/lib/app-utils/expand-repeatables.js +61 -7
  13. package/src/lib/app-utils/expand-repeatables.js.map +1 -1
  14. package/src/lib/app-utils/plugin-connection-editor.d.ts +22 -0
  15. package/src/lib/app-utils/plugin-connection-editor.js.map +1 -1
  16. package/src/lib/app-utils/plugin-connection-repeat.d.ts +82 -0
  17. package/src/lib/app-utils/plugin-connection-repeat.js +162 -0
  18. package/src/lib/app-utils/plugin-connection-repeat.js.map +1 -0
  19. package/src/lib/app-utils/release-flags.js +2 -2
  20. package/src/lib/app-utils/release-flags.js.map +1 -1
  21. package/src/lib/app-utils/repeat-sources.d.ts +33 -1
  22. package/src/lib/app-utils/repeat-sources.js +27 -3
  23. package/src/lib/app-utils/repeat-sources.js.map +1 -1
  24. package/src/lib/app-utils/seo-page-facts.js +3 -6
  25. package/src/lib/app-utils/seo-page-facts.js.map +1 -1
  26. package/src/lib/plugin-manager/first-party-plugins.generated.d.ts +6 -0
  27. package/src/lib/plugin-manager/first-party-plugins.generated.js +8 -0
  28. package/src/lib/plugin-manager/first-party-plugins.generated.js.map +1 -1
  29. package/src/lib/plugin-manager/repeat-rows.d.ts +20 -2
  30. package/src/lib/plugin-manager/repeat-rows.js +42 -16
  31. package/src/lib/plugin-manager/repeat-rows.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aglyn/aglyn",
3
- "version": "1.17.0",
3
+ "version": "1.19.0",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://aglyn.com",
6
6
  "repository": {
@@ -37,16 +37,16 @@
37
37
  "./package.json": "./package.json"
38
38
  },
39
39
  "dependencies": {
40
- "@aglyn/shared-data-enums": "1.17.0",
41
- "@aglyn/shared-data-mdi": "1.17.0",
42
- "@aglyn/shared-data-types": "1.17.0",
43
- "@aglyn/shared-util-email": "1.17.0",
44
- "@aglyn/shared-util-first-touch": "1.17.0",
45
- "@aglyn/shared-util-http": "1.17.0",
46
- "@aglyn/shared-util-logger": "1.17.0",
47
- "@aglyn/shared-util-timestamp": "1.17.0",
48
- "@aglyn/shared-util-tools": "1.17.0",
49
- "@aglyn/shared-util-vendor": "1.17.0",
40
+ "@aglyn/shared-data-enums": "1.19.0",
41
+ "@aglyn/shared-data-mdi": "1.19.0",
42
+ "@aglyn/shared-data-types": "1.19.0",
43
+ "@aglyn/shared-util-email": "1.19.0",
44
+ "@aglyn/shared-util-first-touch": "1.19.0",
45
+ "@aglyn/shared-util-http": "1.19.0",
46
+ "@aglyn/shared-util-logger": "1.19.0",
47
+ "@aglyn/shared-util-timestamp": "1.19.0",
48
+ "@aglyn/shared-util-tools": "1.19.0",
49
+ "@aglyn/shared-util-vendor": "1.19.0",
50
50
  "@data-driven-forms/react-form-renderer": "^4.2.0",
51
51
  "@msgpack/msgpack": "^3.1.3",
52
52
  "@types/unist": "^3.0.3",
@@ -847,6 +847,7 @@ function hasVisibilityDirective(props) {
847
847
  }
848
848
  return namesHostToken(hideUnless) && readYesNoValue(resolveHostTokens(String(hideUnless), host)) === false;
849
849
  }
850
+ /** A directive bound to a repeat's record, like `{{item.reply}}` (AGL-4212). */ const namesItemToken = (value)=>typeof value === 'string' && /\{\{\s*item\./.test(value);
850
851
  /**
851
852
  * The node minus its visibility directives — they are compose-time
852
853
  * instructions, and `Leaf` spreads whatever survives onto the component,
@@ -854,12 +855,15 @@ function hasVisibilityDirective(props) {
854
855
  * declared one and stayed.
855
856
  *
856
857
  * One bound to a `{{host.*}}` token stays: the site's values fill in later,
857
- * and {@link pruneHostHiddenNodes} reads it then.
858
+ * and {@link pruneHostHiddenNodes} reads it then. So does one bound to an
859
+ * `{{item.*}}` token: a repeat's expansion reads it against each record,
860
+ * after this graft (AGL-4212).
858
861
  */ function withoutVisibilityDirectives(node) {
859
862
  if (!hasVisibilityDirective(node == null ? void 0 : node.props)) return node;
860
863
  const props = _extends({}, node.props);
861
- if (!namesHostToken(props[NODE_HIDE_IF_PROP])) delete props[NODE_HIDE_IF_PROP];
862
- if (!namesHostToken(props[NODE_HIDE_UNLESS_PROP])) delete props[NODE_HIDE_UNLESS_PROP];
864
+ const deferred = (value)=>namesHostToken(value) || namesItemToken(value);
865
+ if (!deferred(props[NODE_HIDE_IF_PROP])) delete props[NODE_HIDE_IF_PROP];
866
+ if (!deferred(props[NODE_HIDE_UNLESS_PROP])) delete props[NODE_HIDE_UNLESS_PROP];
863
867
  return _extends({}, node, {
864
868
  props: props
865
869
  });