@pixelated-tech/components 3.2.12 → 3.2.14
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/README.COMPONENTS.md +146 -48
- package/README.md +130 -100
- package/dist/components/callout/callout.scss +0 -3
- package/dist/components/cms/flickr.js +8 -2
- package/dist/components/cms/google.reviews.components.js +1 -1
- package/dist/components/cms/wordpress.components.js +1 -1
- package/dist/components/cms/wordpress.css +7 -0
- package/dist/components/menu/menu-expando.js +7 -1
- package/dist/components/nerdjoke/nerdjoke.js +13 -7
- package/dist/components/pagebuilder/components/ComponentPropertiesForm.js +1 -1
- package/dist/components/pagebuilder/form/form.css +5 -1
- package/dist/components/pagebuilder/form/formcomponents.js +1 -1
- package/dist/components/seo/manifest.js +40 -0
- package/dist/components/seo/schema-localbusiness.js +46 -2
- package/dist/components/seo/schema-website.js +31 -2
- package/dist/components/seo/sitemap.js +3 -3
- package/dist/data/routes.json +25 -0
- package/dist/data/routes2.json +25 -0
- package/dist/index.js +2 -2
- package/dist/index.server.js +0 -1
- package/dist/types/components/cms/flickr.d.ts.map +1 -1
- package/dist/types/components/cms/google.reviews.components.d.ts.map +1 -1
- package/dist/types/components/config/config.types.d.ts +30 -0
- package/dist/types/components/config/config.types.d.ts.map +1 -1
- package/dist/types/components/menu/menu-expando.d.ts.map +1 -1
- package/dist/types/components/nerdjoke/nerdjoke.d.ts.map +1 -1
- package/dist/types/components/pagebuilder/components/ComponentPropertiesForm.d.ts +1 -1
- package/dist/types/components/seo/manifest.d.ts +19 -0
- package/dist/types/components/seo/manifest.d.ts.map +1 -0
- package/dist/types/components/seo/schema-localbusiness.d.ts +22 -23
- package/dist/types/components/seo/schema-localbusiness.d.ts.map +1 -1
- package/dist/types/components/seo/schema-website.d.ts +17 -18
- package/dist/types/components/seo/schema-website.d.ts.map +1 -1
- package/dist/types/components/seo/sitemap.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.server.d.ts +0 -1
- package/dist/types/stories/seo/seo.googleanalytics.stories.d.ts.map +1 -1
- package/dist/types/stories/seo/seo.schema.stories.d.ts +23 -0
- package/dist/types/stories/seo/seo.schema.stories.d.ts.map +1 -0
- package/dist/types/tests/component-properties-form.test.d.ts +2 -0
- package/dist/types/tests/component-properties-form.test.d.ts.map +1 -0
- package/dist/types/tests/component-selector.test.d.ts +2 -0
- package/dist/types/tests/component-selector.test.d.ts.map +1 -0
- package/dist/types/tests/component-tree.test.d.ts +2 -0
- package/dist/types/tests/component-tree.test.d.ts.map +1 -0
- package/dist/types/tests/manifest.test.d.ts +2 -0
- package/dist/types/tests/manifest.test.d.ts.map +1 -0
- package/dist/types/tests/page-builder-ui.test.d.ts +2 -0
- package/dist/types/tests/page-builder-ui.test.d.ts.map +1 -0
- package/dist/types/tests/page-engine.test.d.ts +2 -0
- package/dist/types/tests/page-engine.test.d.ts.map +1 -0
- package/dist/types/tests/save-load-section.test.d.ts +2 -0
- package/dist/types/tests/save-load-section.test.d.ts.map +1 -0
- package/package.json +5 -5
- package/dist/components/utilities/api.js +0 -36
- package/dist/types/components/utilities/api.d.ts +0 -16
- package/dist/types/components/utilities/api.d.ts.map +0 -1
- package/dist/types/tests/api.test.d.ts +0 -2
- package/dist/types/tests/api.test.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"save-load-section.test.d.ts","sourceRoot":"","sources":["../../../src/tests/save-load-section.test.tsx"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixelated-tech/components",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Pixelated Technologies",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@eslint/markdown": "^7.5.1",
|
|
92
92
|
"@storybook/addon-webpack5-compiler-babel": "^4.0.0",
|
|
93
93
|
"@storybook/preset-scss": "^1.0.3",
|
|
94
|
-
"@storybook/react-webpack5": "^10.1.
|
|
94
|
+
"@storybook/react-webpack5": "^10.1.10",
|
|
95
95
|
"@testing-library/dom": "^10.4.1",
|
|
96
96
|
"@testing-library/react": "^16.3.1",
|
|
97
97
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"eslint-plugin-n": "^17.23.1",
|
|
118
118
|
"eslint-plugin-promise": "^7.2.1",
|
|
119
119
|
"eslint-plugin-react": "^7.37.4",
|
|
120
|
-
"eslint-plugin-storybook": "^10.1.
|
|
120
|
+
"eslint-plugin-storybook": "^10.1.10",
|
|
121
121
|
"file-loader": "^6.2.0",
|
|
122
122
|
"happy-dom": "^20.0.11",
|
|
123
123
|
"jsdom": "^27.3.0",
|
|
@@ -131,13 +131,13 @@
|
|
|
131
131
|
"react-test-renderer": "^19.2.3",
|
|
132
132
|
"sass": "^1.97.0",
|
|
133
133
|
"sass-loader": "^16.0.6",
|
|
134
|
-
"storybook": "^10.1.
|
|
134
|
+
"storybook": "^10.1.10",
|
|
135
135
|
"style-loader": "^4.0.0",
|
|
136
136
|
"ts-loader": "^9.5.4",
|
|
137
137
|
"typescript": "^5.9.3",
|
|
138
138
|
"url-loader": "^4.1.1",
|
|
139
139
|
"vitest": "^4.0.16",
|
|
140
|
-
"webpack": "^5.104.
|
|
140
|
+
"webpack": "^5.104.1",
|
|
141
141
|
"webpack-cli": "^6.0.1",
|
|
142
142
|
"webpack-dev-server": "^5.2.2",
|
|
143
143
|
"webpack-node-externals": "^3.0.0"
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
export function getXHRData(apiURL, apiMethod, myCallback) {
|
|
3
|
-
const xhr = new XMLHttpRequest();
|
|
4
|
-
xhr.open(apiMethod, apiURL, true);
|
|
5
|
-
// xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
|
6
|
-
// xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
|
7
|
-
// xhr.setRequestHeader("Access-Control-Allow-Origin", "*");
|
|
8
|
-
xhr.onreadystatechange = () => {
|
|
9
|
-
// if (xhr.readyState === 4) {
|
|
10
|
-
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
11
|
-
let response;
|
|
12
|
-
response = JSON.parse(xhr.responseText);
|
|
13
|
-
myCallback(response);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
xhr.send();
|
|
17
|
-
}
|
|
18
|
-
getXHRData.propTypes = {
|
|
19
|
-
apiURL: PropTypes.string.isRequired,
|
|
20
|
-
apiMethod: PropTypes.string.isRequired
|
|
21
|
-
};
|
|
22
|
-
export function generateURL(baseURL, props) {
|
|
23
|
-
let url = baseURL;
|
|
24
|
-
let allProps = '';
|
|
25
|
-
for (const prop in props) {
|
|
26
|
-
if (props) {
|
|
27
|
-
allProps += (allProps.length === 0) ? prop + '=' + props[prop] : '&' + prop + '=' + props[prop];
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
url += allProps;
|
|
31
|
-
return url;
|
|
32
|
-
}
|
|
33
|
-
generateURL.propTypes = {
|
|
34
|
-
baseURL: PropTypes.string.isRequired,
|
|
35
|
-
props: PropTypes.object
|
|
36
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
export declare function getXHRData(apiURL: string, apiMethod: string, myCallback: any): void;
|
|
3
|
-
export declare namespace getXHRData {
|
|
4
|
-
var propTypes: {
|
|
5
|
-
apiURL: PropTypes.Validator<string>;
|
|
6
|
-
apiMethod: PropTypes.Validator<string>;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export declare function generateURL(baseURL: string, props: any): string;
|
|
10
|
-
export declare namespace generateURL {
|
|
11
|
-
var propTypes: {
|
|
12
|
-
baseURL: PropTypes.Validator<string>;
|
|
13
|
-
props: PropTypes.Requireable<object>;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/components/utilities/api.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,wBAAgB,UAAU,CAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,QAgB7E;yBAhBe,UAAU;;;;;;AAuB1B,wBAAgB,WAAW,CAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,UAUvD;yBAVe,WAAW"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.test.d.ts","sourceRoot":"","sources":["../../../src/tests/api.test.ts"],"names":[],"mappings":""}
|