@pixelated-tech/components 3.13.9 → 3.13.11
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/components/general/schema-blogposting.js +1 -0
- package/dist/components/general/schema-faq.js +33 -1
- package/dist/components/general/schema-localbusiness.js +1 -0
- package/dist/components/general/schema-recipe.js +1 -0
- package/dist/components/general/schema-services.js +29 -5
- package/dist/components/general/schema-website.js +15 -2
- package/dist/components/general/well-known.js +0 -1
- package/dist/components/integrations/wordpress.css +2 -0
- package/dist/config/pixelated.config.json.enc +1 -1
- package/dist/index.server.js +0 -6
- package/dist/types/components/general/schema-blogposting.d.ts.map +1 -1
- package/dist/types/components/general/schema-faq.d.ts +8 -4
- package/dist/types/components/general/schema-faq.d.ts.map +1 -1
- package/dist/types/components/general/schema-localbusiness.d.ts.map +1 -1
- package/dist/types/components/general/schema-recipe.d.ts.map +1 -1
- package/dist/types/components/general/schema-services.d.ts +17 -35
- package/dist/types/components/general/schema-services.d.ts.map +1 -1
- package/dist/types/components/general/schema-website.d.ts +3 -38
- package/dist/types/components/general/schema-website.d.ts.map +1 -1
- package/dist/types/components/general/well-known.d.ts.map +1 -1
- package/dist/types/index.server.d.ts +0 -6
- package/dist/types/tests/schema-faq.test.d.ts +2 -0
- package/dist/types/tests/schema-faq.test.d.ts.map +1 -0
- package/package.json +8 -5
|
@@ -1,6 +1,38 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
// normalizeFaqs turns a JSON-LD FAQPage payload into a form where each
|
|
5
|
+
// question has a single `acceptedAnswer.text` string. Some of our data
|
|
6
|
+
// sources (WordPress, CMS exports) allow multiple answer fragments; we
|
|
7
|
+
// merge them here so the final JSON remains valid for search engines.
|
|
8
|
+
function normalizeFaqs(data) {
|
|
9
|
+
if (!data || typeof data !== 'object')
|
|
10
|
+
return data;
|
|
11
|
+
const faqs = JSON.parse(JSON.stringify(data));
|
|
12
|
+
if (Array.isArray(faqs.mainEntity)) {
|
|
13
|
+
faqs.mainEntity.forEach((entry) => {
|
|
14
|
+
if (entry && entry.acceptedAnswer) {
|
|
15
|
+
const ans = entry.acceptedAnswer;
|
|
16
|
+
if (ans && Array.isArray(ans.text)) {
|
|
17
|
+
ans.text = ans.text.join(' ');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return faqs;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* SchemaFAQ — Inject a JSON-LD <script> tag containing an FAQPage schema object.
|
|
26
|
+
*
|
|
27
|
+
* @param {object} [props.faqsData] - Structured JSON-LD object representing an FAQ page (FAQPage schema).
|
|
28
|
+
*/
|
|
29
|
+
SchemaFAQ.propTypes = {
|
|
30
|
+
/** Structured FAQPage JSON-LD object */
|
|
31
|
+
faqsData: PropTypes.object.isRequired,
|
|
32
|
+
};
|
|
2
33
|
export function SchemaFAQ({ faqsData }) {
|
|
34
|
+
const normalized = normalizeFaqs(faqsData);
|
|
3
35
|
return (_jsx("script", { type: "application/ld+json", dangerouslySetInnerHTML: {
|
|
4
|
-
__html: JSON.stringify(
|
|
36
|
+
__html: JSON.stringify(normalized),
|
|
5
37
|
} }));
|
|
6
38
|
}
|
|
@@ -1,7 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Services Schema Component
|
|
6
|
+
* Generates JSON-LD structured data for services
|
|
7
|
+
* https://schema.org/Service
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* ServicesSchema — Inject JSON-LD <script> tags for each service offered by the business, using schema.org/Service format.
|
|
11
|
+
*
|
|
12
|
+
* @param {object} [props.siteInfo] - Optional site information object containing business details and services array.
|
|
13
|
+
* @param {object} [props.provider] - Optional provider information object to override siteInfo for the service provider.
|
|
14
|
+
* @param {array} [props.services] - Optional array of service objects to override siteInfo.services.
|
|
15
|
+
*/
|
|
16
|
+
ServicesSchema.propTypes = {
|
|
17
|
+
siteInfo: PropTypes.shape({
|
|
18
|
+
name: PropTypes.string,
|
|
19
|
+
url: PropTypes.string,
|
|
20
|
+
image: PropTypes.string,
|
|
21
|
+
telephone: PropTypes.string,
|
|
22
|
+
email: PropTypes.string,
|
|
23
|
+
services: PropTypes.arrayOf(PropTypes.shape({
|
|
24
|
+
name: PropTypes.string.isRequired,
|
|
25
|
+
description: PropTypes.string.isRequired,
|
|
26
|
+
url: PropTypes.string,
|
|
27
|
+
image: PropTypes.string,
|
|
28
|
+
areaServed: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
|
|
29
|
+
}))
|
|
30
|
+
}),
|
|
5
31
|
provider: PropTypes.shape({
|
|
6
32
|
name: PropTypes.string.isRequired,
|
|
7
33
|
url: PropTypes.string.isRequired,
|
|
@@ -30,7 +56,7 @@ export function ServicesSchema(props) {
|
|
|
30
56
|
if (!services.length || !provider.name) {
|
|
31
57
|
return null;
|
|
32
58
|
}
|
|
33
|
-
const serviceObjects = services.map((service) => ({
|
|
59
|
+
const serviceObjects = services.filter((service) => service != null).map((service) => ({
|
|
34
60
|
'@type': 'Service',
|
|
35
61
|
name: service.name,
|
|
36
62
|
description: service.description,
|
|
@@ -51,5 +77,3 @@ export function ServicesSchema(props) {
|
|
|
51
77
|
...service
|
|
52
78
|
}) } }, idx))) }));
|
|
53
79
|
}
|
|
54
|
-
ServicesSchema.propTypes = servicesSchemaPropTypes;
|
|
55
|
-
export default ServicesSchema;
|
|
@@ -1,12 +1,25 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
3
|
import PropTypes from "prop-types";
|
|
3
4
|
/**
|
|
4
5
|
* Website Schema Component
|
|
5
6
|
* Generates JSON-LD structured data for websites
|
|
6
7
|
* https://schema.org/WebSite
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* WebsiteSchema — Inject a JSON-LD <script> tag containing a WebSite schema object, using provided props or siteInfo from config.
|
|
7
11
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
12
|
+
* @param {object} [props.siteInfo] - Optional site information object containing business details to populate the schema.
|
|
13
|
+
* @param {string} [props.name] - Name of the website (overrides siteInfo.name).
|
|
14
|
+
* @param {string} [props.url] - URL of the website (overrides siteInfo.url).
|
|
15
|
+
* @param {string} [props.description] - Description of the website (overrides siteInfo.description).
|
|
16
|
+
* @param {string} [props.keywords] - Comma-separated keywords for the website (overrides siteInfo.keywords).
|
|
17
|
+
* @param {string} [props.inLanguage] - Language of the website content (overrides siteInfo.default_locale).
|
|
18
|
+
* @param {array} [props.sameAs] - Array of URLs representing social profiles or related sites (overrides siteInfo.sameAs).
|
|
19
|
+
* @param {object} [props.potentialAction] - Object defining a potentialAction for the website, such as a SearchAction (overrides siteInfo.potentialAction).
|
|
20
|
+
* @param {object} [props.publisher] - Object defining the publisher of the website, including name, url, and logo (overrides siteInfo).
|
|
21
|
+
* @param {number} [props.copyrightYear] - Year of copyright for the website (overrides siteInfo.copyrightYear).
|
|
22
|
+
* @param {object} [props.copyrightHolder] - Object defining the copyright holder, including name and url (overrides siteInfo).
|
|
10
23
|
*/
|
|
11
24
|
WebsiteSchema.propTypes = {
|
|
12
25
|
name: PropTypes.string,
|
|
@@ -3,7 +3,6 @@ import { readFile } from 'fs/promises';
|
|
|
3
3
|
import crypto from 'crypto';
|
|
4
4
|
import { NextResponse } from 'next/server';
|
|
5
5
|
import { flattenRoutes } from './sitemap';
|
|
6
|
-
/* ===== Shared helpers for .well-known files ===== */
|
|
7
6
|
/**
|
|
8
7
|
* Read JSON from disk safely — returns null on error. Exported for testing.
|
|
9
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
pxl:v1:
|
|
1
|
+
pxl:v1:1065533304b51bf98d531b0f:6b87555c3658f17eba25a03266613d5b:f70487c9136df860ff0858199868c8d26b90042d3d5b4ab7b5f70283162253c7d86993f16f8796def56234bc9f15541f2f4722606a404acc1479008856e6f535cc47ef72e3aa23cae9276f34221a8a121e2fc4585f6b5560b211a0508336ea970236044877681a615b80d4875187f50a900065caba1ccb9a31a6a28fed02036d647889dbeed1f6c543b475a9af0f39110039fa30bd932d805d40a5b1363e7daa47c0a4422f8e730e74dbf2d66db0f3e7483c9b9440b02809c4f687dbc10c578f720ea75c82a302bef74b8d993893f5779cf71f02002bc739cf7e8333662698679361e8fb38eb7ae27ff41fc51d589e4ad6a2486687ea6d43ce31238116144f67eb507af7baaa892689a36fe3bc93352c8a5ae8e8d2ffe71a1158ea536496c0df348e1966e7df73d76161206f9575f56017d609a985aae915dbab5c76cc54fd0bbbf26b61e240430641f247bb6ac79e3e260e049e05bdee62686ab82f2414df0b75e9ae3a7f9a6631130ada8b0c6217630a73d90383a412a405fe2fcf6953a86f4f7d475c3b684baea3dcfefe74920f861b681a4bde720a6f111fbc8e97642161b2b143146e87898e8f62a8832fb6cff7efb43b8d471747ef885b35fc554bae45e04bd1d3608dde412c170796cc589f01849760c5785b6768eacb2c349574cd1f9c2d2b4af65dd441b3aa09a5468803e360ee9e1026d308107b538db5c7bbc4173fab843cdd96efb54a51c19625c1c9a00f8132d2262326c0a8230a40d1dfa16b355054a59989a48da6f09a17394bfc6f54d997e983a7b2daaaf12ee5909c8bc48e129d3e0bf0f215d243b60c6e64d57150e0dd3b470ec8de4cc46f4a17eefd66e64037699a6f9c8c98ff85ee0fd1471754e0f125a813da5f59772c1f569cd2cb7ab09fb93d315fe6922f3529c77107b20134f708936e33a0bb6ced9ab3375d70d2443819a06a95bc9792fca07e53b635c6e148017aaaeb7e6f3c89863565c35a99fbd73273bc8e590fe147fcb31b39bca84b6e507f103ba35a038e5bef20bf513decd452aad2c5f2bc4b74ccd86c92efe857e351588db029f5303dab7bcfd530bf9cb437efbb0ae9ec51cf76276057a6cdc755475e044a0debbd13513617707677b45f63277a11374956083d5ebfe29f1260c1fc44140e783e710a1434d41887327cc64bcf7a4edeb5284f60b5792f3c2a96f7d9acd71485997105543113b0d6ebbb85b59a1a6675c5fcf8d6ab04e244543b861a48448a7c6d5bd05077f741f64abfd5172ea94de30c03656846a3e38beecc78c88fc098b229bd124f1874c78ce0d59afa17d6219c5f8cba3f414e58f8af383d151f7310c5bd3fd4990f2d166c8c67813703e58191052157ffe6b3f093b789c408d27ab44f59eb115625030a740c2d995ec198209c9e02c51a25aed2ba4ef0bdab62436e51f4be90808c5b925aa85931b5f4f6b40ba1811bb0777ef13ad369420bc6c189dd113b0a12bb23a7f5581b95182a6ffebcaf742589ae224aa3c258216482ffba511f7b1fed571e2d0fd873f8ff0c08f2e7959428ede1fdeca68f0fde50e93ead52bfb431a1209847e9b4c96330c1ec1dee0b2a5aad9a868246fa0cb5db52ed21a9b67ec7f9fe44f763dd31d8ac0cacffe379b2c6259c8e17fa26a4cd9afdafd79806949208397202ad8149a396d3dd061b7c3ad0515a38fab9e148564ecae08f70ede7d9eaed4293ad29a05cbb007462e80f7320534be7103856718718ec4c26ad995996973c4be8bfc42a519595d37944e3d815ef263cd22722530471bbe5ac2da25c29da2a85ec9e9080b931883f2756679966c26dc527afd103b69085c2c9f69b83a0045b531a18b33b697e51c7c9ef8d1d8ffb37c4946499302b86b3de5e5b604f2da26181a06f3bb2523b8c35f16b148409462eb4bd0f1bfe9cb58d09b44d2d70dcd0bfad9d594c929de452b0071bcbd0fa8a317473fff6a7a9da31883ac2ed4e39725b4747d14585692bb5271e0779e4f18486ca363fae83078cbf922fb83c91d90a5a2877dcb6904d5920fafb03a61a39815f1a79f4c3bb8c332b04764c6502ad6db9b9ff58b69dd8a9eec91ae36a6fefa533b29a7f3023de79e6adca63d4e928d3887c9e859245a2dac984c02317984f88a02b5b080c3217a63ab8e7a0a34abce4745d38f63e965b7f573c43a2fb014f0cd98da9566550987e72cb64aa15bb68eed9a5fefb9b1ec31ef66b56ef826ff88d945e05c51291840981e93eb13cc1970c0b2af9f2c6708bf6908489afd897c03eea5a7314dc2cf1bc8761a8ca8628a6ccc624fa85ba71b8791193fa478b9867c292d9f2186a05fee9b05d2d70c3daafe57ada7386ae20fe31b5ae4ef734fba7871133175ed08a0b99219672be374c7476b490f5680e27ed41580d124f2937b2c79f3b5c363a309127e284e59e466e2cfc22dc6766d68796947c0c470321293325d2bdb200fdb4374c7ceb64119a24cc4223c87d34e6f6638020073c1dfc287fe33eef4dfd2b3814cdec719ca17adf6ea6576f37ac7005e52339a259ecfa29bc5646eb8ab5e49078f86a43a5b6e3aed5fbd0a13158c34690b93d3193038d73165a40ac4e8963f8024c886e78553d27f21d15bd36667bc88e66d242a0c40dc070fbe2383e28a4c9d3e20c9b96112160a45507b5cbca8c74670027acac5e8a6c4886bc3f6290eadd505d3c84db109dc758efc3ce04e086c0e9992ffb228aca35e266f54683d7f9c6035136ee1cb8669eb8e72294024247c2a14186a26f1d2c928e0056520bef61d87950bfef75bde206faaf3d049ce63e6fc7978a9024ec81c3896868390035a33d9f990bae12c5e36e910f27ff42680760642c27e0cba85639947eb937d36b34e9b58e22ba748d8d4bc43c8304f1936b8fb74b3f86b614447d8c6da75a3c5b553d197b440b15dd99b6eaa672fded9d04b19c51984da2671c2177e42b3968e4273593df2fd680b3eca0443f2bb092cb0ae494af1e7321476bbfc3362def74821f83c49d780ca9443c23ef4f11e479dc1bd04176b7688d0503e01b2db4a4689aad7b055e58cc29546c9cc7fce92488c1b1a90f8804399b877b10547590e4e3c67e2060da079bfee3580ed2e2da0a3a92d21e72c37c01141b6667d6824fab0986b268412751a96a356c83bfc47852b7024e04da75dc75a46f20c647a39d18661873496ac00e2c3769a5e0ee6c1c0f2be18dd0e5bdf9ad053b135a06e3287b5c023318d049ccbcc921a156b22d29f42d34628b1e44be011c00dee193cfb44099677cf7621ddbe42dea9909dc5a82672cd9addcef725f1a9eeaa9c15db97911a50fecde024f62f173a1be7925e8b071ab99d549ca432da97aee14e886027a449f567fb74ad73322166dee23f2fdcad741720ef59192d098487d725d0bde31e43fea85b8bf7bc05274b85c185925eb7a86ee7e5208b9faac333f7651b52c3c3e60dbab1ef399114544173114fcfe03ca10f1ec980a866273fe67d7cb8b9057baa8ece0f1b60683fbade078c5a27a0517b1ff84ce415aca10f693033a7312457af0936a5051b9803d005a8e1214b11248579563212cfc715a8b19dd31a31662f05f708c6577a3d5fc4d34e4bae6283e4dde5d75e3f7d02ca304b9342369f28ce9e06677d8b97377ec4055b6060bcae0d4276cb7e64380b89691264b02420aac05c695aeec68acb71344200e1ca17195dec367f2c0023b06cfcc2b864d6d02189ef96a139f866ea1f7149b837945b81ae78c71a0fe0a93fe34b4446880e55d5d4e022ad070fd6c3736df9de8f447cc7ad4de07585262e8995f5f07cc3101ab5530a9c8dbf7d19d44bd1e615308fe21aa8a054fd8fbade2def40ed64895774fa1a6415ba809e8ed3cd0a57069c936ff4f868f0f5bcc086f2fb0bc39e702880155235e87f9773865bf3953a7812da9587dda964528c11e952f3d253ce8f83a0db0d6e3f22c9843c22d80d3869170bedaae2b34fe5f55ed0ff23a8318dea2cf9f1ecde6233998d75b5542bb2e9098373ffcc9223918746959616ca780df63ad4b9c45ea6caed0b71e62094bd95e066afab52c78aaaa99a57ac33ed2f77e0eef440e67a0be671723143f21b4be64b14f5286c40ea4f7e803670e34f27793b94ac4bd41af1f90b841982b7495a24be21149d6714fc229e38be847ce70cc227dfbd1ee24376660de378caeb61b5a73d2cd860883b38d787fbe4de3e122906f1ba8d7ab03c03e416361ce79ed0bd65e48706a10a3eea5f5997af70439399e1f77d58d40b3b16af916bfc6ffe9aabe54b973e47639709d059ec06f97b5ea70dd9aedbf7500d3344e280f0765817d89b7343dbe9e2e631ba8c673b1bbf0134dea94e44eb0417066314216af362b7911d1fc2fffd915981b2564bda588a5d0fe400c842fc6bd7e8826c9bbd535003b834e27899831e6d1f4959a2a649b11aa0cb37d952c091cf3491345bcb2f8c0f3e3aa98ffd020b51c25f9077c3d7459b22a3fd266af7103fb27cc450c16fda9983c72a055445c8c3a497bc1a71c4390b679a9acc803c12a69857149d121953d858b01a0af7633153283b0b5c66715bd8e09658a680087a6f6a0af68b1752fa96d33986ecf9cab0ad318e0d4da56199657f28c5aadcd3dd5dc16e96bd99000704bba3e60c7bfad9409666f91de09afe4ebdc96d6664ef6549c4bd80a3a2ac2e5490a057425c80cdbecb9c4177d77cba5fb15bbcf50b06e4a38aad298527674e22efde0eefdd59823f602a2a5bd58c13501574c98288bd6e160b92e90df439d90299a7900d37dd1e9f520908606337c15171ed4c02b707191c8fff7bff7674426b88f2737609729f52d41664092aae98b0d416a755ae62b38e1c3df4585c42beefcd4f1cd89cc142a8f85765a4bd94b285eea29676a1aa015dced1562db5414834b24913213128ca0ee079b5395469bb6dc6d8fdd06580442af19d9bf23306e9ef28841a404b949c74f9368b2e4e6221b109c32de27e6986a5750636e6a8a6c6227c8f8502f99dadeed2ee428523837e724e7d77702f812546f722444b090320ebebc7e881271f55114c50b757e3ea7edf30913c4dc91ee2ef4c23364cebfc733729ac4ad33328b46daadb07c395a7b0d74307fec394b23855db16eb1e494ba6bd58a0c485d499edfb6e3976a0d94e869acff209bb51d
|
package/dist/index.server.js
CHANGED
|
@@ -12,13 +12,7 @@ export * from './components/general/manifest';
|
|
|
12
12
|
export * from './components/general/metadata.functions';
|
|
13
13
|
export * from './components/general/proxy-handler';
|
|
14
14
|
export * from './components/general/resume';
|
|
15
|
-
export * from './components/general/schema-blogposting';
|
|
16
15
|
export * from './components/general/schema-blogposting.functions';
|
|
17
|
-
export * from './components/general/schema-faq';
|
|
18
|
-
export * from './components/general/schema-localbusiness';
|
|
19
|
-
export * from './components/general/schema-recipe';
|
|
20
|
-
export * from './components/general/schema-services';
|
|
21
|
-
export * from './components/general/schema-website';
|
|
22
16
|
export * from './components/general/sitemap';
|
|
23
17
|
export * from './components/general/skeleton';
|
|
24
18
|
export * from './components/general/well-known';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-blogposting.d.ts","sourceRoot":"","sources":["../../../../src/components/general/schema-blogposting.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema-blogposting.d.ts","sourceRoot":"","sources":["../../../../src/components/general/schema-blogposting.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAWnD,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC;AACnF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,qBAAqB,2CAU7D;yBAVe,iBAAiB;;QAJjC,4CAA4C;;;;AAgB5C,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import PropTypes, { InferProps } from 'prop-types';
|
|
2
|
+
export type SchemaFAQType = InferProps<typeof SchemaFAQ.propTypes>;
|
|
3
|
+
export declare function SchemaFAQ({ faqsData }: SchemaFAQType): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare namespace SchemaFAQ {
|
|
5
|
+
var propTypes: {
|
|
6
|
+
/** Structured FAQPage JSON-LD object */
|
|
7
|
+
faqsData: PropTypes.Validator<object>;
|
|
8
|
+
};
|
|
3
9
|
}
|
|
4
|
-
export declare function SchemaFAQ({ faqsData }: SchemaFAQProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export {};
|
|
6
10
|
//# sourceMappingURL=schema-faq.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-faq.d.ts","sourceRoot":"","sources":["../../../../src/components/general/schema-faq.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema-faq.d.ts","sourceRoot":"","sources":["../../../../src/components/general/schema-faq.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAmCnD,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;AACnE,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,aAAa,2CAUpD;yBAVe,SAAS;;QAJxB,wCAAwC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-localbusiness.d.ts","sourceRoot":"","sources":["../../../../src/components/general/schema-localbusiness.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema-localbusiness.d.ts","sourceRoot":"","sources":["../../../../src/components/general/schema-localbusiness.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAmFnD,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,CAAC;AACvF,wBAAgB,mBAAmB,CAAE,KAAK,EAAE,uBAAuB,2CAoDlE;yBApDe,mBAAmB;;QA/CnC,wEAAwE;;QAEvE,sCAAsC;;YAErC,uCAAuC;;YAEvC,iDAAiD;;YAEjD,6CAA6C;;YAE7C,0CAA0C;;YAE1C,uEAAuE;;;QAGxE,uCAAuC;;QAEvC,iDAAiD;;QAEjD,6CAA6C;;QAE7C,0CAA0C;;QAE1C,uEAAuE;;QAEvE,gCAAgC;;QAEhC,6BAA6B;;QAE7B,+CAA+C;;QAE/C,gCAAgC;;QAEhC,2FAA2F;;QAE3F,oCAAoC;;QAEpC,6BAA6B;;QAE7B,sCAAsC;;QAEtC,8DAA8D;;QAE9D,wEAAwE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-recipe.d.ts","sourceRoot":"","sources":["../../../../src/components/general/schema-recipe.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema-recipe.d.ts","sourceRoot":"","sources":["../../../../src/components/general/schema-recipe.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAsDnD,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,SAAS,CAAC,CAAC;AACzE,wBAAgB,YAAY,CAAC,KAAK,EAAE,gBAAgB,2CAQnD;yBARe,YAAY;;QA3B5B,6DAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqC7D,eAAe,YAAY,CAAC"}
|
|
@@ -1,39 +1,22 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Generates JSON-LD structured data for services
|
|
5
|
-
* https://schema.org/Service
|
|
6
|
-
*/
|
|
7
|
-
export interface ServiceItem {
|
|
8
|
-
name: string;
|
|
9
|
-
description: string;
|
|
10
|
-
url?: string;
|
|
11
|
-
image?: string;
|
|
12
|
-
areaServed?: string | string[];
|
|
13
|
-
}
|
|
14
|
-
export interface ServicesSchemaProps {
|
|
15
|
-
siteInfo?: {
|
|
16
|
-
name?: string;
|
|
17
|
-
url?: string;
|
|
18
|
-
image?: string;
|
|
19
|
-
telephone?: string;
|
|
20
|
-
email?: string;
|
|
21
|
-
services?: ServiceItem[];
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
};
|
|
24
|
-
provider?: {
|
|
25
|
-
name: string;
|
|
26
|
-
url: string;
|
|
27
|
-
logo?: string;
|
|
28
|
-
telephone?: string;
|
|
29
|
-
email?: string;
|
|
30
|
-
};
|
|
31
|
-
services?: ServiceItem[];
|
|
32
|
-
}
|
|
33
|
-
export declare function ServicesSchema(props: ServicesSchemaProps): import("react/jsx-runtime").JSX.Element | null;
|
|
1
|
+
import PropTypes, { InferProps } from 'prop-types';
|
|
2
|
+
export type ServicesSchemaType = InferProps<typeof ServicesSchema.propTypes>;
|
|
3
|
+
export declare function ServicesSchema(props: ServicesSchemaType): import("react/jsx-runtime").JSX.Element | null;
|
|
34
4
|
export declare namespace ServicesSchema {
|
|
35
5
|
var propTypes: {
|
|
36
|
-
siteInfo: PropTypes.Requireable<
|
|
6
|
+
siteInfo: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7
|
+
name: PropTypes.Requireable<string>;
|
|
8
|
+
url: PropTypes.Requireable<string>;
|
|
9
|
+
image: PropTypes.Requireable<string>;
|
|
10
|
+
telephone: PropTypes.Requireable<string>;
|
|
11
|
+
email: PropTypes.Requireable<string>;
|
|
12
|
+
services: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
13
|
+
name: PropTypes.Validator<string>;
|
|
14
|
+
description: PropTypes.Validator<string>;
|
|
15
|
+
url: PropTypes.Requireable<string>;
|
|
16
|
+
image: PropTypes.Requireable<string>;
|
|
17
|
+
areaServed: PropTypes.Requireable<NonNullable<string | (string | null | undefined)[] | null | undefined>>;
|
|
18
|
+
}> | null | undefined)[]>;
|
|
19
|
+
}>>;
|
|
37
20
|
provider: PropTypes.Requireable<PropTypes.InferProps<{
|
|
38
21
|
name: PropTypes.Validator<string>;
|
|
39
22
|
url: PropTypes.Validator<string>;
|
|
@@ -50,5 +33,4 @@ export declare namespace ServicesSchema {
|
|
|
50
33
|
}> | null | undefined)[]>;
|
|
51
34
|
};
|
|
52
35
|
}
|
|
53
|
-
export default ServicesSchema;
|
|
54
36
|
//# sourceMappingURL=schema-services.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-services.d.ts","sourceRoot":"","sources":["../../../../src/components/general/schema-services.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema-services.d.ts","sourceRoot":"","sources":["../../../../src/components/general/schema-services.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA8CnD,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,SAAS,CAAC,CAAC;AAC7E,wBAAgB,cAAc,CAAC,KAAK,EAAE,kBAAkB,kDA8CvD;yBA9Ce,cAAc"}
|
|
@@ -1,41 +1,6 @@
|
|
|
1
|
-
import PropTypes from "prop-types";
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
siteInfo?: SiteInfo;
|
|
5
|
-
name?: string;
|
|
6
|
-
url?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
keywords?: string;
|
|
9
|
-
inLanguage?: string;
|
|
10
|
-
sameAs?: string[];
|
|
11
|
-
potentialAction?: {
|
|
12
|
-
'@type'?: string;
|
|
13
|
-
target: {
|
|
14
|
-
'@type': string;
|
|
15
|
-
urlTemplate: string;
|
|
16
|
-
};
|
|
17
|
-
'query-input'?: string;
|
|
18
|
-
};
|
|
19
|
-
publisher?: {
|
|
20
|
-
'@type'?: string;
|
|
21
|
-
name: string;
|
|
22
|
-
url?: string;
|
|
23
|
-
logo?: {
|
|
24
|
-
'@type'?: string;
|
|
25
|
-
url: string;
|
|
26
|
-
width?: number;
|
|
27
|
-
height?: number;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
copyrightYear?: number;
|
|
31
|
-
copyrightHolder?: {
|
|
32
|
-
'@type'?: string;
|
|
33
|
-
name: string;
|
|
34
|
-
url?: string;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export type WebsiteSchemaType = WebsiteSchemaProps;
|
|
38
|
-
export declare function WebsiteSchema(props: WebsiteSchemaProps): import("react/jsx-runtime").JSX.Element | null;
|
|
1
|
+
import PropTypes, { InferProps } from "prop-types";
|
|
2
|
+
export type WebsiteSchemaType = InferProps<typeof WebsiteSchema.propTypes>;
|
|
3
|
+
export declare function WebsiteSchema(props: WebsiteSchemaType): import("react/jsx-runtime").JSX.Element | null;
|
|
39
4
|
export declare namespace WebsiteSchema {
|
|
40
5
|
var propTypes: {
|
|
41
6
|
name: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-website.d.ts","sourceRoot":"","sources":["../../../../src/components/general/schema-website.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema-website.d.ts","sourceRoot":"","sources":["../../../../src/components/general/schema-website.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA0DnD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,CAAC;AAC3E,wBAAgB,aAAa,CAAE,KAAK,EAAE,iBAAiB,kDAsCtD;yBAtCe,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"well-known.d.ts","sourceRoot":"","sources":["../../../../src/components/general/well-known.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"well-known.d.ts","sourceRoot":"","sources":["../../../../src/components/general/well-known.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C;;GAEG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,gBAO1C;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,UAExC;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM;;;;EAQrD;AAcD,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC;AACnF,wBAAsB,iBAAiB,CAAC,IAAI,GAAE,qBAA0B;;;;GAsDvE;yBAtDqB,iBAAiB;;QAVtC,yFAAyF;;QAEzF,iEAAiE;;QAEjE,gEAAgE;;QAEhE,oDAAoD;;;;AAmErD,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,CAAC;AACvF,wBAAsB,mBAAmB,CAAC,KAAK,GAAE,uBAA4B;;;;GAsB5E;yBAtBqB,mBAAmB;;;;;AA2BzC;;;GAGG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,QAAQ,GAAG,UAAU,EAAE,GAAG,CAAC,EAAE,WAAW,EAAE,IAAI,GAAE,GAAQ,kCAO3G"}
|
|
@@ -8,13 +8,7 @@ export * from "./components/general/manifest";
|
|
|
8
8
|
export * from "./components/general/metadata.functions";
|
|
9
9
|
export * from "./components/general/proxy-handler";
|
|
10
10
|
export * from "./components/general/resume";
|
|
11
|
-
export * from "./components/general/schema-blogposting";
|
|
12
11
|
export * from "./components/general/schema-blogposting.functions";
|
|
13
|
-
export * from "./components/general/schema-faq";
|
|
14
|
-
export * from "./components/general/schema-localbusiness";
|
|
15
|
-
export * from "./components/general/schema-recipe";
|
|
16
|
-
export * from "./components/general/schema-services";
|
|
17
|
-
export * from "./components/general/schema-website";
|
|
18
12
|
export * from "./components/general/sitemap";
|
|
19
13
|
export * from "./components/general/skeleton";
|
|
20
14
|
export * from "./components/general/well-known";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-faq.test.d.ts","sourceRoot":"","sources":["../../../src/tests/schema-faq.test.tsx"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixelated-tech/components",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
@@ -112,10 +112,10 @@
|
|
|
112
112
|
"html-entities": "^2.6.0"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
|
-
"@aws-sdk/client-amplify": "^3.
|
|
116
|
-
"@aws-sdk/client-cloudwatch": "^3.
|
|
117
|
-
"@aws-sdk/client-iam": "^3.
|
|
118
|
-
"@aws-sdk/client-route-53": "^3.
|
|
115
|
+
"@aws-sdk/client-amplify": "^3.1000.0",
|
|
116
|
+
"@aws-sdk/client-cloudwatch": "^3.1000.0",
|
|
117
|
+
"@aws-sdk/client-iam": "^3.1000.0",
|
|
118
|
+
"@aws-sdk/client-route-53": "^3.1000.0",
|
|
119
119
|
"@aws-sdk/xml-builder": "^3.972.8",
|
|
120
120
|
"@babel/core": "^7.29.0",
|
|
121
121
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
@@ -186,6 +186,9 @@
|
|
|
186
186
|
"optionalDependencies": {
|
|
187
187
|
"@aws-sdk/client-cloudwatch": "^3.996.0",
|
|
188
188
|
"@aws-sdk/client-route-53": "^3.893.0",
|
|
189
|
+
"clean-webpack-plugin": "^1.0.1",
|
|
190
|
+
"eslint": "^9.39.3",
|
|
191
|
+
"eslint-plugin-import": "^1.16.0",
|
|
189
192
|
"googleapis": "^171.4.0",
|
|
190
193
|
"md5": "^2.3.0",
|
|
191
194
|
"puppeteer": "^24.37.5",
|