@foormjs/atscript 0.2.1 → 0.2.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.
package/dist/index.cjs CHANGED
@@ -634,7 +634,7 @@ function parseAttrs(metadata) {
634
634
  * ```
635
635
  */
636
636
  function createFoorm(type) {
637
- var _a, _b;
637
+ var _a, _b, _c, _d;
638
638
  const metadata = type.metadata;
639
639
  const props = type.type.props;
640
640
  // Form-level metadata
@@ -696,7 +696,7 @@ function createFoorm(type) {
696
696
  return (firstError === null || firstError === void 0 ? void 0 : firstError.message) || 'Validation failed';
697
697
  });
698
698
  }
699
- const field = Object.assign(Object.assign(Object.assign({ field: name, type: fieldType, component: pm.get('foorm.component'), autocomplete: pm.get('foorm.autocomplete'), altAction: pm.get('foorm.altAction'), order: pm.get('foorm.order'), name: name }, resolveTextProperties(pm, name)), resolveConstraints(pm, prop.optional)), {
699
+ const field = Object.assign(Object.assign(Object.assign({ field: name, type: fieldType, component: pm.get('foorm.component'), autocomplete: pm.get('foorm.autocomplete'), altAction: pm.get('foorm.altAction'), order: pm.get('foorm.order'), name: name, phantom: ((_c = prop.type) === null || _c === void 0 ? void 0 : _c.kind) === '' && ((_d = prop.type) === null || _d === void 0 ? void 0 : _d.designType) === 'phantom' }, resolveTextProperties(pm, name)), resolveConstraints(pm, prop.optional)), {
700
700
  // Appearance - truly optional
701
701
  classes: resolveProperty('foorm.fn.classes', undefined, pm), styles: resolveProperty('foorm.fn.styles', undefined, pm),
702
702
  // Data properties - truly optional
package/dist/index.mjs CHANGED
@@ -632,7 +632,7 @@ function parseAttrs(metadata) {
632
632
  * ```
633
633
  */
634
634
  function createFoorm(type) {
635
- var _a, _b;
635
+ var _a, _b, _c, _d;
636
636
  const metadata = type.metadata;
637
637
  const props = type.type.props;
638
638
  // Form-level metadata
@@ -694,7 +694,7 @@ function createFoorm(type) {
694
694
  return (firstError === null || firstError === void 0 ? void 0 : firstError.message) || 'Validation failed';
695
695
  });
696
696
  }
697
- const field = Object.assign(Object.assign(Object.assign({ field: name, type: fieldType, component: pm.get('foorm.component'), autocomplete: pm.get('foorm.autocomplete'), altAction: pm.get('foorm.altAction'), order: pm.get('foorm.order'), name: name }, resolveTextProperties(pm, name)), resolveConstraints(pm, prop.optional)), {
697
+ const field = Object.assign(Object.assign(Object.assign({ field: name, type: fieldType, component: pm.get('foorm.component'), autocomplete: pm.get('foorm.autocomplete'), altAction: pm.get('foorm.altAction'), order: pm.get('foorm.order'), name: name, phantom: ((_c = prop.type) === null || _c === void 0 ? void 0 : _c.kind) === '' && ((_d = prop.type) === null || _d === void 0 ? void 0 : _d.designType) === 'phantom' }, resolveTextProperties(pm, name)), resolveConstraints(pm, prop.optional)), {
698
698
  // Appearance - truly optional
699
699
  classes: resolveProperty('foorm.fn.classes', undefined, pm), styles: resolveProperty('foorm.fn.styles', undefined, pm),
700
700
  // Data properties - truly optional
package/dist/plugin.cjs CHANGED
@@ -275,7 +275,7 @@ const primitives = {
275
275
  documentation: 'Form action button — not a data field, excluded from form data. Use with @foorm.altAction to define alternate submit actions.',
276
276
  },
277
277
  paragraph: {
278
- documentation: 'Read-only paragraph text — rendered as static content, not an input field. Use @meta.label for the paragraph text.',
278
+ documentation: 'Read-only paragraph text — rendered as static content, not an input field. Use @foorm.value for static text or @foorm.fn.value for computed text.',
279
279
  },
280
280
  select: {
281
281
  type: 'string',
package/dist/plugin.mjs CHANGED
@@ -273,7 +273,7 @@ const primitives = {
273
273
  documentation: 'Form action button — not a data field, excluded from form data. Use with @foorm.altAction to define alternate submit actions.',
274
274
  },
275
275
  paragraph: {
276
- documentation: 'Read-only paragraph text — rendered as static content, not an input field. Use @meta.label for the paragraph text.',
276
+ documentation: 'Read-only paragraph text — rendered as static content, not an input field. Use @foorm.value for static text or @foorm.fn.value for computed text.',
277
277
  },
278
278
  select: {
279
279
  type: 'string',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foormjs/atscript",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "ATScript plugin for foormjs — form annotations, primitives, and validation",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -60,12 +60,12 @@
60
60
  },
61
61
  "homepage": "https://github.com/foormjs/foormjs/tree/main/packages/atscript#readme",
62
62
  "dependencies": {
63
- "@atscript/core": "^0.1.7",
63
+ "@atscript/core": "^0.1.8",
64
64
  "@prostojs/deserialize-fn": "^0.0.5",
65
- "foorm": "^0.2.1"
65
+ "foorm": "^0.2.3"
66
66
  },
67
67
  "peerDependencies": {
68
- "@atscript/typescript": "^0.1.7"
68
+ "@atscript/typescript": "^0.1.8"
69
69
  },
70
70
  "scripts": {
71
71
  "pub": "pnpm publish --access public --no-git-checks"