{"_id":"apostrophe-anchor-field-type","_rev":"28-94f36c975474104eb2d92cf1856a305e","name":"apostrophe-anchor-field-type","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"apostrophe-anchor-field-type","version":"1.0.0","keywords":["apostrophecms","apostrophe"],"author":{"name":"P'unk Avenue, LLC"},"license":"MIT","_id":"apostrophe-anchor-field-type@1.0.0","maintainers":[{"name":"stuartromanek","email":"stuart@punkave.com"}],"homepage":"https://github.com/apostrophecms/apostrophe-anchor-field-type#readme","bugs":{"url":"https://github.com/apostrophecms/apostrophe-anchor-field-type/issues"},"dist":{"shasum":"f64e13845a7ccffc70504c1133f606abe52fda44","tarball":"https://registry.npmjs.org/apostrophe-anchor-field-type/-/apostrophe-anchor-field-type-1.0.0.tgz","fileCount":9,"integrity":"sha512-aA2Pp/aXIqaQQvxWB0KOqIkBRuuyOZltcDXdMjWtldR8jP4DzE2toif+UiQ1KJ63wflLOJcx1lTp0/gq30i6JQ==","signatures":[{"sig":"MEUCIEeTr19lWj7vgKzhQga3eDgELaNlxP69qEvslo7potybAiEAiM7gC9YcHfGqihT4z3mjiSXFmxYSQT+0IeRteEG1ADU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12364,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdB7qfCRA9TVsSAnZWagAAutQP/jfScIFKkxSuosHoHxqS\ne+YO98minLSs+cfng5AOQP+5MhHL3mXZ1BUkd1lLRwC9+KdOYG5mCpP4hLLW\nFsgkrfGLvQvJldL1l55BSGK7dQcme+IlSj4CpwrJwygjpvyyhPeJvUodrjnp\nodOx3YHYzuuMTGmpn/7d3QqzrTP/Le0c5hVrScquFhaSWpmqrVrOY3+0DpEA\ndmCZaE54bpzrLU7jB01pFrBdS2XpwQETE7kSSKKJIz/PIPOZ4eDr/LMUfPHZ\nXEzob/XQ+jKOE4AbogahqL4Se2gMgH30a6oMybS8NKbPYADIMKxTc8JQo4Es\n3JfSRTbsgK5H7otQ1HigvxQ7/VApasZzItFV66OXb2mFgh05X5P9sJ+xQNYH\n9zV0ZURHtkQaMx4iBZT0ei8efmY5JD3/PViZKbkoAhgOGRN138Ts6A89AWXN\nXyCgZ6ax+vpw1stO+JuWzl2e4YcTxQX40DauovvLmJslWrDFyd5Ztygf58tJ\nHpcIzT9Aw4KJiJ5Ou+sP1kamvyE4xyfaVMA1sqgCVfebFCPADJcuW4bj8VL5\nDbEGqZAOR5VHuSWt1lpp2/ampiaWwA/L84wyNt5tutTPQ0rTn5vnrsr05Y9p\nkbYtBNTS7lqfaR8HIfvWR3gw8bGxDJWTg0wHg3Tz3IOSYua0NiR3FH5QwXAP\nVw23\r\n=RAZN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"6a55ae23c8e2d49b26613b959665fb1eb6d79868","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"stuartromanek","email":"stuart@punkave.com"},"repository":{"url":"git+https://github.com/apostrophecms/apostrophe-anchor-field-type.git","type":"git"},"_npmVersion":"5.6.0","description":"Adds an `anchor` field type to apostrophe-schemas that populates a select with ID and name attributes from a target URL","directories":{"lib":"lib"},"_nodeVersion":"8.11.4","dependencies":{"axios":"^0.19.0","lodash":"^4.17.11","cheerio":"^1.0.0-rc.3","validator":"^11.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/apostrophe-anchor-field-type_1.0.0_1560787615039_0.8824966033915183","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"apostrophe-anchor-field-type","version":"1.0.1","keywords":["apostrophecms","apostrophe"],"author":{"name":"P'unk Avenue, LLC"},"license":"MIT","_id":"apostrophe-anchor-field-type@1.0.1","maintainers":[{"name":"alexbea","email":"alex.bea@gmail.com"},{"name":"alexgilbert","email":"alex@punkave.com"},{"name":"austinstarin","email":"austin@punkave.com"},{"name":"bgantick","email":"bgantick@gmail.com"},{"name":"bobclewell","email":"bobclewell@gmail.com"},{"name":"boutell","email":"tom@punkave.com"},{"name":"grdunn","email":"grdunn@gmail.com"},{"name":"mtthwmnc","email":"matthew.mance@gmail.com"},{"name":"ngranahan","email":"namgranahan@gmail.com"},{"name":"stuartromanek","email":"stuart@punkave.com"}],"homepage":"https://github.com/apostrophecms/apostrophe-anchor-field-type#readme","bugs":{"url":"https://github.com/apostrophecms/apostrophe-anchor-field-type/issues"},"dist":{"shasum":"6433291e5445671b973b1843d7f51db060166403","tarball":"https://registry.npmjs.org/apostrophe-anchor-field-type/-/apostrophe-anchor-field-type-1.0.1.tgz","fileCount":9,"integrity":"sha512-m1JNk5LxRySe/ww2aY3kXNx+8CK+5Iaz44nGF1NDGTvMJnvRRR5NdewI/ss8ur+MOZbTdEMfHfFbMlHopaYOvw==","signatures":[{"sig":"MEUCIQCvX/Qr7WQRs92mHpNuk6utENJ2bhn7ytoMTOGWRIsx1gIgXKAmsROzZXSxpHk0ZQLNL1JE2NoxU56lm14HtcJPF98=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12296,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdTXm1CRA9TVsSAnZWagAAfIsP/iDTWtimmB9vajxw3gbS\ne7QnY0ht9/NwNA6XcVGsjOcuDYSKwbWw393VpFRoHP7m2Dhf+CsZxyNf2K+M\nMbcDQd/cWGeQzq70h6eDKQtoWuCeXXNj4W3zvSuxpXoVuTKcQvQBdBENOlMw\nhmSmmHyYpmvgNOhoaAMkseEF9eHL32KhnprecXM15u+CJnog9d0UvqnrRIOU\nqQnkvf4EbCCq6KGN5lyzupkQYaYb1zKRs08QqZiYmpVtl5GmI1UR+oxDpypE\nn/MQ0bHwvCnQBLcUj5Wv65tIC5zi9K1rjZerDKB8tbeWPUYtR0A6HqOxLFZz\nl6x4G/k6U/MWDly545B4pVKYTs2E5nce6UAQYhu2ENf1I0NFaZTEbT8w5FRa\n3aW7sEXzHqbpVrFzxftIyOcB5QTAeJH8SqhWUbdjHfTWG7MnDnK/yhNXFt5a\nwO2oz4FO5Qde65jghNWZVlTscfEnATYkCskk2aQ84881uG/zF8+T9SV1FlK4\nMX/FO2yCfeg+4aXykktFF2R4dvl1u3c+jqw8k0OlPjL0uXy6aYBZ3fZPtcDM\niqWyKANvtj//jF54F+AmLEgIg9im2cWr8Gd1ASNda9Tl0t8f/tESURKm99/7\n6IMgh6/T+kQo0/qcRsd6tYtnm/110UzKABeLz85bMReWHFXeicJs0P+qaA/M\nRZTA\r\n=nZ42\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"50d238be8d22d39c22d4598abb0896147cd6d990","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"alexbea","email":"alex.bea@gmail.com"},"repository":{"url":"git+https://github.com/apostrophecms/apostrophe-anchor-field-type.git","type":"git"},"_npmVersion":"6.10.2","description":"Adds an `anchor` field type to apostrophe-schemas that populates a select with ID and name attributes from a target URL","directories":{"lib":"lib"},"_nodeVersion":"8.15.0","dependencies":{"axios":"^0.19.0","lodash":"^4.17.15","cheerio":"^1.0.0-rc.3","validator":"^11.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/apostrophe-anchor-field-type_1.0.1_1565358517180_0.6185872433505522","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"apostrophe-anchor-field-type","version":"1.0.2","keywords":["apostrophecms","apostrophe"],"author":{"name":"P'unk Avenue, LLC"},"license":"MIT","_id":"apostrophe-anchor-field-type@1.0.2","maintainers":[{"name":"alexbea","email":"alex.bea@gmail.com"},{"name":"alexgilbert","email":"alex@punkave.com"},{"name":"austinstarin","email":"austin@punkave.com"},{"name":"bgantick","email":"bgantick@gmail.com"},{"name":"bobclewell","email":"bobclewell@gmail.com"},{"name":"boutell","email":"tom@punkave.com"},{"name":"grdunn","email":"grdunn@gmail.com"},{"name":"mtthwmnc","email":"matthew.mance@gmail.com"},{"name":"ngranahan","email":"namgranahan@gmail.com"},{"name":"stuartromanek","email":"stuart@punkave.com"}],"homepage":"https://github.com/apostrophecms/apostrophe-anchor-field-type#readme","bugs":{"url":"https://github.com/apostrophecms/apostrophe-anchor-field-type/issues"},"dist":{"shasum":"89a412a47e418ce7ac9480845daa89b5a3ac1b89","tarball":"https://registry.npmjs.org/apostrophe-anchor-field-type/-/apostrophe-anchor-field-type-1.0.2.tgz","fileCount":9,"integrity":"sha512-1QXkWUryA8tFhk09pXYIXFhS7LwOYms6zwPMTjNYkJbPWOkw4fJ18w1177uT8koQlVA0Bl3gGaPTcRapFpmR7w==","signatures":[{"sig":"MEUCIQC4qKsL0+hvd/RXfx7XKhMk4P8Xxv6Whl6gn6U3S2FQ5wIgZTUcakv1BpUnYjoH2AK9EujKpqaVDLFnzxavmc2WcOU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12234,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3TCwCRA9TVsSAnZWagAAZZEP/35NIxswfeKMi+NR2RUg\nBKM7gm6gZlefZ2ZBJRfYylRzScCRT8gFLJmJIFgJryJ3Y6enYQdk1XaIMJSf\nYRdpD4KMADC8up6O4ocO3pNYV9ZX9THVQ2KzER47B9JCsiup5IXKNrEg56vq\nZkfpa2xyPHuaERiv2mM10zOO34q6y4jFHAV0+vCvjO+n02xzZO70n8lVHeqo\n0151odmNXOT6J0bK4VRc7J71FfxcVu3Z7C4cNHCl+F0Q9UVVwHoZY+tAUCUt\n7xKiUNEa3oao7VwozBQNwRzolHQjzradN3IORR2GAjpChhVuoYe5dKSlADcp\nn3v4a5Tfu+rYEfDxl91f25WN+qT2w0gxlUKHZuC4L9nlG45G3Iel8RhR/eNI\nx1EKLpyXQk0/2naEuySPLF+eftW5FHwATnbJpRh5e+72YilL/btx+U375gPu\n1gddS7B9BzLgAHSGbHx/xRkl8Jci/AzzjWp8Hq3tSDk/YzSgUPRNXWruzw9z\nN+gImLY6o+53huYVKVDTW4vs5+BH3qt6hmsG2gp5jiPvkj1lUw6iPLN2vrDG\n8tgr5p/LB7D/O18ShFt+PSzBY5CniZzmSrlO9v8hOu4K5a53XDu/twHLgliS\nxlaDv2kLLzGeN3CpPw+Nld8zbSBa5C2T9zJkvO7RB9HT4Ya6VYsSarRfcKtn\nWxgX\r\n=6I0F\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"fcab4157a01871061f9f06d36b2938e2e937a69c","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"stuartromanek","email":"stuart@punkave.com"},"repository":{"url":"git+https://github.com/apostrophecms/apostrophe-anchor-field-type.git","type":"git"},"_npmVersion":"6.10.2","description":"Adds an `anchor` field type to apostrophe-schemas that populates a select with ID and name attributes from a target URL","directories":{"lib":"lib"},"_nodeVersion":"8.11.4","dependencies":{"axios":"^0.19.0","lodash":"^4.17.15","cheerio":"^1.0.0-rc.3","validator":"^11.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/apostrophe-anchor-field-type_1.0.2_1574777008392_0.5657024755824074","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"apostrophe-anchor-field-type","version":"1.0.3","keywords":["apostrophecms","apostrophe"],"author":{"name":"Apostrophe Technologies, Inc."},"license":"MIT","_id":"apostrophe-anchor-field-type@1.0.3","maintainers":[{"name":"romanek","email":"stuart+npm@apostrophecms.com"},{"name":"valjed","email":"vjeudy@protonmail.com"},{"name":"breyell","email":"breyell@gmail.com"},{"name":"bgantick","email":"bgantick@gmail.com"},{"name":"alexgilbert","email":"alex@punkave.com"},{"name":"stuartromanek","email":"stuart@punkave.com"},{"name":"mtthwmnc","email":"matthew.mance@gmail.com"},{"name":"boutell","email":"tom@apostrophecms.com"},{"name":"austinstarin","email":"austin.starin@gmail.com"},{"name":"bobclewell","email":"bobclewell@gmail.com"},{"name":"alexbea","email":"alex.bea@gmail.com"},{"name":"grdunn","email":"grdunn@gmail.com"},{"name":"ngranahan","email":"namgranahan@gmail.com"},{"name":"gregvanbrug","email":"greg.vanbrug@gmail.com"},{"name":"falkodev","email":"anthony@apostrophecms.com"}],"homepage":"https://github.com/apostrophecms/apostrophe-anchor-field-type#readme","bugs":{"url":"https://github.com/apostrophecms/apostrophe-anchor-field-type/issues"},"dist":{"shasum":"d5bb99b4145fb03a44b6bfe83da26d7870d17189","tarball":"https://registry.npmjs.org/apostrophe-anchor-field-type/-/apostrophe-anchor-field-type-1.0.3.tgz","fileCount":9,"integrity":"sha512-P0npUSNzzdmbyhmd+tAM0Rf9cJBX1MnMQf7wb8bKXdLVtMVym/kHBJSm2T0nB2r0x9FP6Tt6cdvVYlu6yYUeVg==","signatures":[{"sig":"MEUCIGyDNtq3uq1IoKStO+pYDudvYCFi5pFYV09Donf9Ha5vAiEA4GVyx7pL+xsMb1s0g4HR1XYHc/2tn7CC1zShtPIElXU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12441,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbdGnCRA9TVsSAnZWagAAKPcQAI1tgB20UV//QkLlg7/k\nHaTsSYfkIveTl2AMfJAEOjZMUqn7egJcl8MV6aftdQV1Eca389YQN4RjwdDv\nji2Y1Heyiv02W63BpPxewuw4bs/0JBUS0/AyqQhvaL9iOMN/3A3lyPDQugh2\nR6bjvS0UaxJTBoAuKlhlPtINoB5AFiD3Rx7mbW3g1A9OpnRd/UG0TGa0xux1\nKgArbkOz/2W8VEwGCY9SAd3vAyR9QOZ7edZxW3LQJuOazwEbvi4OEqiLAn59\n5oh2+aGiwAY9XLXaDvuAsg5jufBij+EsFhY90sbBZvKSCcWQOzSyDfGpOw/n\n0gqYWYlCFM1EXDhhi5YA8JQQGTyKvJpaZF9x17zoQt74BN13nY+foKEEnQnp\n/7pO1vbyD8Cbsp3S1IHlxjSa5dNx5UaCRHThMyMvYBnH0QtNaAreCfZHOCjv\ne5wl377LMYnAjoLEytptc21h9e80BkhF0rK95p7iJxq6WGnd9DdHaNSlo9RH\nB01nhJXMjdmze04VAzpUlzv1+eiRM4JYD1ua5UeTLK7kDJ+YsQuQ7px2nSw2\nnmIwmGcpEWa7wv70y2FMnoQvCdGzkMCxmuRzdQacu0WM74YrMUFXbl/RbK4p\nQ/60Zb62zCwqmQIqP0uRsz1kLrxVPpslEpgaoIWrNQPbZzqxFvAJasjYmpws\nB7E0\r\n=mrGQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"01bf8a4a70a3e77cb049b275ead9fd7426cbcc87","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"boutell","email":"tom@apostrophecms.com"},"repository":{"url":"git+https://github.com/apostrophecms/apostrophe-anchor-field-type.git","type":"git"},"_npmVersion":"6.14.8","description":"Adds an `anchor` field type to apostrophe-schemas that populates a select with ID and name attributes from a target URL","directories":{"lib":"lib"},"_nodeVersion":"14.15.1","dependencies":{"axios":"^0.21.1","lodash":"^4.17.15","cheerio":"^1.0.0-rc.3","validator":"^11.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/apostrophe-anchor-field-type_1.0.3_1617809831350_0.12203924839033564","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-06-17T16:06:55.039Z","modified":"2026-01-26T19:09:24.698Z","1.0.0":"2019-06-17T16:06:55.164Z","1.0.1":"2019-08-09T13:48:37.376Z","1.0.2":"2019-11-26T14:03:28.507Z","1.0.3":"2021-04-07T15:37:11.501Z"},"bugs":{"url":"https://github.com/apostrophecms/apostrophe-anchor-field-type/issues"},"author":{"name":"Apostrophe Technologies, Inc."},"license":"MIT","homepage":"https://github.com/apostrophecms/apostrophe-anchor-field-type#readme","keywords":["apostrophecms","apostrophe"],"repository":{"url":"git+https://github.com/apostrophecms/apostrophe-anchor-field-type.git","type":"git"},"description":"Adds an `anchor` field type to apostrophe-schemas that populates a select with ID and name attributes from a target URL","maintainers":[{"email":"alex@apostrophecms.com","name":"alexgilbert"},{"email":"tom@apostrophecms.com","name":"boutell"},{"email":"stuart+npm@apostrophecms.com","name":"romanek"},{"email":"robert.means1969+apostrophecms@gmail.com","name":"bodonkey"},{"email":"stuart@punkave.com","name":"stuartromanek"}],"readme":"# apostrophe-anchor-field-type\n\nImproves `apostrophe-schemas` to add an `anchor` field type that displays all `id` and `name` attributes from the target remote URL.\n\n## Configuration\nAn anchor field depends on other schema fields to tell it what URLs it should look up to find `id`s and `name`s. You must provide a `remoteAnchorsFields` property to tell it what fields to connect to.\n### Shorthand\n```javascript\n  // ... other schema fields\n  {\n    type: 'anchor',\n    name: 'anchor',\n    label: 'Anchor ID',\n    remoteAnchorsFields: ['_page', 'url'],\n  }\n```\n`remoteAnchorsFields` is an array of field names in the schema.\n\nShorthand makes the assumption that `_page` is a join (because of the leading _ in its name) and, conversely, that `url` is a string field. These assumptions also mean that:\n- Joins are internal pages, using a `joinByOne` field type, and should be treated as such in the context of the current site.\n- String could be anything and must be treated as external URLs. They must be fully absolute.\n\n### Explicit singular\n```javascript\n  // ... other schema fields\n  {\n    type: 'anchor',\n    name: 'anchor',\n    label: 'Anchor ID',\n    remoteAnchorsFields: {\n      fieldName: '_page',\n      urlType: 'relative',\n      fieldType: 'join'\n    },\n  }\n```\nSpells out what is assumed in shorthand syntax.\n- `urlType` tells module how to request the remote page.\n- `fieldType` tells module what type of apostrophe field to connect to.\n\n### Explicit array\n```javascript\n  // ... other schema fields\n  {\n    type: 'anchor',\n    name: 'anchor',\n    label: 'Anchor ID',\n    remoteAnchorsFields: [\n      {\n        fieldName: '_page',\n        urlType: 'relative',\n        fieldType: 'join'\n      },\n      {\n        fieldName: 'url',\n        urlType: 'absolute',\n        fieldType: 'string'\n      },\n    ],\n  }\n```\n\n## Changelog\n\n### 1.0.3 (2021-04-07)\n\n- Updates axios version due to security patch.","readmeFilename":"README.md"}