@pixelated-tech/components 3.9.16 → 3.9.17
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/tiles.css +11 -1
- package/dist/components/general/tiles.js +5 -2
- package/dist/components/general/utilities.js +0 -8
- package/dist/config/pixelated.config.json.enc +1 -1
- package/dist/scripts/create-pixelated-app.js +217 -35
- package/dist/scripts/pixelated-eslint-plugin.js +52 -3
- package/dist/scripts/release.sh +49 -5
- package/dist/scripts/setup-remotes.sh +35 -10
- package/dist/scripts/validate-exports.js +1 -1
- package/dist/types/components/general/tiles.d.ts +2 -0
- package/dist/types/components/general/tiles.d.ts.map +1 -1
- package/dist/types/components/general/utilities.d.ts +0 -6
- package/dist/types/components/general/utilities.d.ts.map +1 -1
- package/dist/types/scripts/create-pixelated-app.d.ts +6 -1
- package/dist/types/scripts/create-pixelated-app.d.ts.map +1 -1
- package/dist/types/scripts/pixelated-eslint-plugin.d.ts +24 -0
- package/dist/types/scripts/pixelated-eslint-plugin.d.ts.map +1 -1
- package/dist/types/tests/config-vault.test.d.ts.map +1 -1
- package/package.json +6 -3
- package/dist/scripts/create-pixelated-app.js.bak +0 -590
|
@@ -13,6 +13,7 @@ echo "Base directory: $BASE_DIR"
|
|
|
13
13
|
REPOS=(
|
|
14
14
|
"brianwhaley"
|
|
15
15
|
"informationfocus"
|
|
16
|
+
"leadscraper"
|
|
16
17
|
"oaktreelandscaping"
|
|
17
18
|
"palmetto-epoxy"
|
|
18
19
|
"pixelated"
|
|
@@ -43,16 +44,40 @@ for repo in "${REPOS[@]}"; do
|
|
|
43
44
|
echo "Configuring remotes for: $repo"
|
|
44
45
|
cd "$repo_path"
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
if [ "$repo" = "pixelated-components" ]; then
|
|
48
|
+
# Pixelated-components should have remotes for ALL repos
|
|
49
|
+
for target_repo in "${REPOS[@]}"; do
|
|
50
|
+
remote_url="https://github.com/$GITHUB_USER/$target_repo.git"
|
|
51
|
+
if git remote | grep -q "^$target_repo$"; then
|
|
52
|
+
git remote set-url "$target_repo" "$remote_url" 2>/dev/null || true
|
|
53
|
+
else
|
|
54
|
+
git remote add "$target_repo" "$remote_url" 2>/dev/null || true
|
|
55
|
+
fi
|
|
56
|
+
done
|
|
57
|
+
echo " ✓ pixelated-components configured with all remotes"
|
|
58
|
+
else
|
|
59
|
+
# Non-components repos should have only their own remote named after the repo
|
|
60
|
+
desired_remote="$repo"
|
|
61
|
+
desired_url="https://github.com/$GITHUB_USER/$repo.git"
|
|
62
|
+
|
|
63
|
+
# Ensure desired remote exists and points to the correct URL
|
|
64
|
+
if git remote | grep -q "^$desired_remote$"; then
|
|
65
|
+
git remote set-url "$desired_remote" "$desired_url" 2>/dev/null || true
|
|
66
|
+
else
|
|
67
|
+
git remote add "$desired_remote" "$desired_url" 2>/dev/null || true
|
|
68
|
+
fi
|
|
69
|
+
|
|
70
|
+
# Remove direct-name remotes that are other pixelated repos (avoid touching unrelated remotes)
|
|
71
|
+
for other in "${REPOS[@]}"; do
|
|
72
|
+
if [ "$other" != "$repo" ] && git remote | grep -q "^$other$"; then
|
|
73
|
+
echo " - Removing stray remote $other from $repo"
|
|
74
|
+
git remote remove "$other" 2>/dev/null || true
|
|
75
|
+
fi
|
|
76
|
+
done
|
|
77
|
+
|
|
78
|
+
echo " ✓ $repo configured with its own remote only"
|
|
79
|
+
fi
|
|
80
|
+
|
|
56
81
|
else
|
|
57
82
|
echo "⚠️ Skipping $repo (not a Git repository or doesn't exist)"
|
|
58
83
|
fi
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import glob from 'glob';
|
|
3
|
-
import { CLIENT_ONLY_PATTERNS, TS_FILE_IGNORE_PATTERNS, TSX_FILE_IGNORE_PATTERNS, SERVER_ONLY_PATTERNS } from '../components/general/utilities
|
|
3
|
+
import { CLIENT_ONLY_PATTERNS, TS_FILE_IGNORE_PATTERNS, TSX_FILE_IGNORE_PATTERNS, SERVER_ONLY_PATTERNS } from '../components/general/utilities';
|
|
4
4
|
|
|
5
5
|
console.log('🔍 Validating exports...\n');
|
|
6
6
|
|
|
@@ -7,6 +7,7 @@ export declare namespace Tiles {
|
|
|
7
7
|
var propTypes: {
|
|
8
8
|
cards: PropTypes.Validator<any[]>;
|
|
9
9
|
rowCount: PropTypes.Requireable<number>;
|
|
10
|
+
imgClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
11
|
};
|
|
11
12
|
}
|
|
12
13
|
export type TileType = InferProps<typeof Tile.propTypes>;
|
|
@@ -19,6 +20,7 @@ declare namespace Tile {
|
|
|
19
20
|
image: PropTypes.Validator<string>;
|
|
20
21
|
imageAlt: PropTypes.Requireable<string>;
|
|
21
22
|
bodyText: PropTypes.Requireable<string>;
|
|
23
|
+
imgClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
24
|
};
|
|
23
25
|
}
|
|
24
26
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tiles.d.ts","sourceRoot":"","sources":["../../../../src/components/general/tiles.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAKnD,OAAO,+BAA+B,CAAC;AACvC,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"tiles.d.ts","sourceRoot":"","sources":["../../../../src/components/general/tiles.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAKnD,OAAO,+BAA+B,CAAC;AACvC,OAAO,aAAa,CAAC;AAQrB,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC;AAC3D,wBAAgB,KAAK,CAAC,KAAK,EAAE,SAAS,2CA2BrC;yBA3Be,KAAK;;;;;;;AAyCrB,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;AACzD,iBAAS,IAAI,CAAE,KAAK,EAAE,QAAQ,2CAyB7B;kBAzBQ,IAAI"}
|
|
@@ -18,12 +18,6 @@ export declare function logAllChange(): void;
|
|
|
18
18
|
* Used by both ESLint rules and build scripts to determine client vs server components
|
|
19
19
|
*/
|
|
20
20
|
export declare const CLIENT_ONLY_PATTERNS: RegExp[];
|
|
21
|
-
/**
|
|
22
|
-
* Determines if a component file contains client-only code that requires browser execution
|
|
23
|
-
* @param fileContent - The source code content of the file
|
|
24
|
-
* @returns true if the file contains client-only patterns
|
|
25
|
-
*/
|
|
26
|
-
export declare function isClientComponent(fileContent: string): boolean;
|
|
27
21
|
/**
|
|
28
22
|
* Glob patterns for finding component files
|
|
29
23
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../../../src/components/general/utilities.ts"],"names":[],"mappings":"AAGA,wBAAgB,QAAQ,CAAE,GAAG,EAAE,MAAM,oBAUpC;AAGD,wBAAgB,SAAS,CAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG;;EAmBxC;AAED,wBAAgB,aAAa,CAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAOtD;AAED,wBAAgB,WAAW,WAc1B;AAED,wBAAgB,YAAY,WAK3B;AAED,wBAAgB,UAAU,CAAE,GAAG,EAAE,MAAM,UAEtC;AAQD,wBAAgB,YAAY,CAAE,YAAY,EAAE,MAAM,UAgCjD;AAID;;;;OAII;AACJ,wBAAgB,YAAY,SAoB3B;
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../../../src/components/general/utilities.ts"],"names":[],"mappings":"AAGA,wBAAgB,QAAQ,CAAE,GAAG,EAAE,MAAM,oBAUpC;AAGD,wBAAgB,SAAS,CAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG;;EAmBxC;AAED,wBAAgB,aAAa,CAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAOtD;AAED,wBAAgB,WAAW,WAc1B;AAED,wBAAgB,YAAY,WAK3B;AAED,wBAAgB,UAAU,CAAE,GAAG,EAAE,MAAM,UAEtC;AAQD,wBAAgB,YAAY,CAAE,YAAY,EAAE,MAAM,UAgCjD;AAID;;;;OAII;AACJ,wBAAgB,YAAY,SAoB3B;AAOD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,UA0BhC,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,uBAAuB,UAQnC,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAOpC,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,oBAAoB,UAoBhC,CAAC"}
|
|
@@ -4,7 +4,12 @@ export function copyTemplateForPage(templatePathArg: any, templateSrc: any, temp
|
|
|
4
4
|
used: string;
|
|
5
5
|
src: any;
|
|
6
6
|
}>;
|
|
7
|
-
export function createAndPushRemote(destPath: any, siteName: any, defaultOwner: any): Promise<
|
|
7
|
+
export function createAndPushRemote(destPath: any, siteName: any, defaultOwner: any): Promise<{
|
|
8
|
+
cloneUrl: any;
|
|
9
|
+
remoteName: any;
|
|
10
|
+
token: any;
|
|
11
|
+
}>;
|
|
12
|
+
export function createAmplifyApp(rl: any, siteName: any, cloneUrl: any, sitePath: any): Promise<void>;
|
|
8
13
|
export let _exec: typeof execCb.__promisify__;
|
|
9
14
|
export namespace TOKEN_MAP {
|
|
10
15
|
let __SITE_NAME__: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-pixelated-app.d.ts","sourceRoot":"","sources":["../../../src/scripts/create-pixelated-app.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"create-pixelated-app.d.ts","sourceRoot":"","sources":["../../../src/scripts/create-pixelated-app.js"],"names":[],"mappings":";AAyLA,+GAaC;AAID;;;GAUC;AAGD;;;;GA2HC;AAKD,sGAoIC;AA9ZD,8CAAwB;;;;;;+BAfO,eAAe"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export function isClientComponent(fileContent: any): boolean;
|
|
2
|
+
/**
|
|
3
|
+
* Pixelated ESLint Plugin
|
|
4
|
+
* Enforces workspace standards for SEO, performance, and project structure.
|
|
5
|
+
*/
|
|
6
|
+
export const CLIENT_ONLY_PATTERNS: RegExp[];
|
|
1
7
|
declare namespace _default {
|
|
2
8
|
let rules: {
|
|
3
9
|
'prop-types-inferprops': {
|
|
@@ -80,6 +86,23 @@ declare namespace _default {
|
|
|
80
86
|
JSXOpeningElement(node: any): void;
|
|
81
87
|
};
|
|
82
88
|
};
|
|
89
|
+
'require-section-ids': {
|
|
90
|
+
meta: {
|
|
91
|
+
type: string;
|
|
92
|
+
docs: {
|
|
93
|
+
description: string;
|
|
94
|
+
category: string;
|
|
95
|
+
recommended: boolean;
|
|
96
|
+
};
|
|
97
|
+
messages: {
|
|
98
|
+
missingId: string;
|
|
99
|
+
};
|
|
100
|
+
schema: never[];
|
|
101
|
+
};
|
|
102
|
+
create(context: any): {
|
|
103
|
+
JSXOpeningElement(node: any): void;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
83
106
|
'required-faq': {
|
|
84
107
|
meta: {
|
|
85
108
|
type: string;
|
|
@@ -107,6 +130,7 @@ declare namespace _default {
|
|
|
107
130
|
'pixelated/required-schemas': string;
|
|
108
131
|
'pixelated/required-files': string;
|
|
109
132
|
'pixelated/no-raw-img': string;
|
|
133
|
+
'pixelated/require-section-ids': string;
|
|
110
134
|
'pixelated/required-faq': string;
|
|
111
135
|
};
|
|
112
136
|
export { rules_1 as rules };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pixelated-eslint-plugin.d.ts","sourceRoot":"","sources":["../../../src/scripts/pixelated-eslint-plugin.js"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"pixelated-eslint-plugin.d.ts","sourceRoot":"","sources":["../../../src/scripts/pixelated-eslint-plugin.js"],"names":[],"mappings":"AAsCA,6DAEC;AArCD;;;GAGG;AAIH,4CA0BE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-vault.test.d.ts","sourceRoot":"","sources":["../../../src/tests/config-vault.test.
|
|
1
|
+
{"version":3,"file":"config-vault.test.d.ts","sourceRoot":"","sources":["../../../src/tests/config-vault.test.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixelated-tech/components",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.17",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Pixelated Technologies",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"validate-exports": "npx tsx src/scripts/validate-exports.js",
|
|
64
64
|
"copy2brianwhaley": "rm -rf ../brianwhaley/node_modules/@pixelated-tech/components/dist && cp -r dist ../brianwhaley/node_modules/@pixelated-tech/components/",
|
|
65
65
|
"copy2informationfocus": "rm -rf ../informationfocus/node_modules/@pixelated-tech/components/dist && cp -r dist ../informationfocus/node_modules/@pixelated-tech/components/",
|
|
66
|
+
"copy2jzhomeimprovement": "rm -rf ../jz-home-improvement/node_modules/@pixelated-tech/components/dist && cp -r dist ../jz-home-improvement/node_modules/@pixelated-tech/components/",
|
|
66
67
|
"copy2oaktreelandscaping": "rm -rf ../oaktreelandscaping/node_modules/@pixelated-tech/components/dist && cp -r dist ../oaktreelandscaping/node_modules/@pixelated-tech/components/",
|
|
67
68
|
"copy2palmettoepoxy": "rm -rf ../palmetto-epoxy/node_modules/@pixelated-tech/components/dist && cp -r dist ../palmetto-epoxy/node_modules/@pixelated-tech/components/",
|
|
68
69
|
"copy2pixelated": "rm -rf ../pixelated/node_modules/@pixelated-tech/components/dist && cp -r dist ../pixelated/node_modules/@pixelated-tech/components/",
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
"copy2pixelatedtest": "rm -rf ../pixelated-test/node_modules/@pixelated-tech/components/dist && cp -r dist ../pixelated-test/node_modules/@pixelated-tech/components/",
|
|
71
72
|
"copy2template": "rm -rf ../pixelated-template/node_modules/@pixelated-tech/components/dist && cp -r dist ../pixelated-template/node_modules/@pixelated-tech/components/",
|
|
72
73
|
"copy2pixelatedadmin": "rm -rf ../pixelated-admin/node_modules/@pixelated-tech/components/dist && cp -r dist ../pixelated-admin/node_modules/@pixelated-tech/components/",
|
|
73
|
-
"copy2all": "npm run copy2brianwhaley && npm run copy2informationfocus && npm run copy2oaktreelandscaping && npm run copy2palmettoepoxy && npm run copy2pixelated && npm run copy2pixelvivid && npm run copy2template && npm run copy2pixelatedadmin",
|
|
74
|
+
"copy2all": "npm run copy2brianwhaley && npm run copy2informationfocus && npm run copy2jzhomeimprovement && npm run copy2oaktreelandscaping && npm run copy2palmettoepoxy && npm run copy2pixelated && npm run copy2pixelvivid && npm run copy2template && npm run copy2pixelatedadmin",
|
|
74
75
|
"storybook": "rm -rf node_modules/.cache && storybook dev -p 6006",
|
|
75
76
|
"buildStorybook": "rm -rf node_modules/.cache && NODE_OPTIONS=\"--max-old-space-size=4096\" storybook build",
|
|
76
77
|
"test": "vitest",
|
|
@@ -106,6 +107,8 @@
|
|
|
106
107
|
"html-entities": "^2.6.0"
|
|
107
108
|
},
|
|
108
109
|
"devDependencies": {
|
|
110
|
+
"@aws-sdk/client-amplify": "^3.971.0",
|
|
111
|
+
"@aws-sdk/client-iam": "^3.971.0",
|
|
109
112
|
"@babel/cli": "^7.28.6",
|
|
110
113
|
"@babel/core": "^7.28.6",
|
|
111
114
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
@@ -146,7 +149,7 @@
|
|
|
146
149
|
"eslint-plugin-react": "^7.37.4",
|
|
147
150
|
"eslint-plugin-storybook": "^10.1.11",
|
|
148
151
|
"file-loader": "^6.2.0",
|
|
149
|
-
"happy-dom": "^20.3.
|
|
152
|
+
"happy-dom": "^20.3.3",
|
|
150
153
|
"jsdom": "^27.4.0",
|
|
151
154
|
"less-loader": "^12.3.0",
|
|
152
155
|
"mini-css-extract-plugin": "^2.10.0",
|