@zohodesk/dot 1.7.21 → 1.7.22
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.md +5 -0
- package/es/Hooks/Dragger/useDragger.js +52 -33
- package/es/dot_layer.module.css +1 -0
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +1 -0
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +1 -0
- package/lib/Hooks/Dragger/useDragger.js +51 -28
- package/lib/dot_layer.module.css +1 -0
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +1 -0
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +1 -0
- package/package.json +14 -6
- package/.cli/MissedPropType_Keys.html +0 -101
- package/.cli/PropLessFiles.html +0 -101
- package/.cli/PropUnificationExcludeFilesArray.js +0 -345
- package/.cli/PropValidationExcludeFilesArray.js +0 -8
- package/.cli/ThemeValidationExcludeFiles.js +0 -1
- package/.cli/UnValidatedFiles.html +0 -101
- package/.cli/propValidation_report.html +0 -182
- package/.cli/stringContains.js +0 -1
- package/css_error.log +0 -1
- package/images/audio_thumbnail.png +0 -0
- package/install.md +0 -12
- package/postPublish.js +0 -8
- package/prePublish.js +0 -70
- package/propValidationArg.json +0 -12
- package/react-cli.config.js +0 -27
- package/result.json +0 -1
- package/unittest/index.html +0 -37
package/prePublish.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
const readline = require('readline');
|
|
2
|
-
const { exec } = require('child_process');
|
|
3
|
-
|
|
4
|
-
const rl = readline.createInterface({
|
|
5
|
-
input: process.stdin,
|
|
6
|
-
output: process.stdout
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
console.log('\nNode.js version:', process.version);
|
|
10
|
-
|
|
11
|
-
function runConsole(command, callback) {
|
|
12
|
-
exec(command, (error, stdout, stderr) => {
|
|
13
|
-
if (error) {
|
|
14
|
-
console.error('Error:', error.message);
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
if (stderr) {
|
|
19
|
-
console.error('Error:', stderr);
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const npmVersion = stdout.trim();
|
|
24
|
-
console.log('\n' + command, npmVersion);
|
|
25
|
-
callback && callback();
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function askQuestion1() {
|
|
30
|
-
rl.question('\nHave you updated the changelog in README.md? (yes/no): ', (answer) => {
|
|
31
|
-
if (answer.toLowerCase() === 'yes') {
|
|
32
|
-
console.log('\nGreat! Proceeding...');
|
|
33
|
-
askQuestion2();
|
|
34
|
-
// rl.close();
|
|
35
|
-
// Call the function or code to proceed further here.
|
|
36
|
-
} else if (answer.toLowerCase() === 'no') {
|
|
37
|
-
rl.close();
|
|
38
|
-
console.log('\nPlease Update the ChangeLog in README.md, then try again');
|
|
39
|
-
//throw new Error('\nPlease Update the ChangeLog in README.md, then try again');
|
|
40
|
-
process.exitCode = 1; // Exit the Node.js process with a success code.
|
|
41
|
-
} else {
|
|
42
|
-
console.log('\nInvalid answer. Please enter "yes" or "no".');
|
|
43
|
-
askQuestion1(); // Ask the question again if the input is not "yes" or "no".
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function askQuestion2() {
|
|
49
|
-
rl.question('\nHave you verified the test snapshot? (yes/no): ', (answer) => {
|
|
50
|
-
if (answer.toLowerCase() === 'yes') {
|
|
51
|
-
console.log('\nGreat! Proceeding...');
|
|
52
|
-
rl.close();
|
|
53
|
-
// Call the function or code to proceed further here.
|
|
54
|
-
} else if (answer.toLowerCase() === 'no') {
|
|
55
|
-
rl.close();
|
|
56
|
-
//throw new Error('\nPlease Verify the snapshot results, then try again');
|
|
57
|
-
console.log('\nPlease Verify the snapshot results, then try again');
|
|
58
|
-
process.exitCode = 1; // Exit the Node.js process with a success code.
|
|
59
|
-
} else {
|
|
60
|
-
console.log('\nInvalid answer. Please enter "yes" or "no".');
|
|
61
|
-
askQuestion2(); // Ask the question again if the input is not "yes" or "no".
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function getReactCliVersion() {
|
|
67
|
-
runConsole('react-cli --version', askQuestion1);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
runConsole('npm --version', getReactCliVersion);
|
package/propValidationArg.json
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"inputDir": "./src",
|
|
3
|
-
"outputDir": "./.cli",
|
|
4
|
-
"excludeDir": "./.cli",
|
|
5
|
-
"propUnifiExcludeDir": "./.cli",
|
|
6
|
-
"enable": true,
|
|
7
|
-
"need_report": true,
|
|
8
|
-
"prop_validation_strict_mode": true,
|
|
9
|
-
"prop_validation_log": false,
|
|
10
|
-
"prop_unification_strict_mode": false,
|
|
11
|
-
"prop_unification_log": false
|
|
12
|
-
}
|
package/react-cli.config.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
exports.config= {
|
|
2
|
-
"preprocess": {
|
|
3
|
-
"runner": "./preprocess/index.js"
|
|
4
|
-
},
|
|
5
|
-
"css": {
|
|
6
|
-
"cssVariableReplacementConfig": "./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json",
|
|
7
|
-
"plugins": {
|
|
8
|
-
"hasRTL": true,
|
|
9
|
-
"cssVariableReplacement": true
|
|
10
|
-
},
|
|
11
|
-
"patterns": {
|
|
12
|
-
"cssVariableReplacement": [
|
|
13
|
-
"**/src/**",
|
|
14
|
-
"**/lib/**",
|
|
15
|
-
"**/es/**",
|
|
16
|
-
"!**/node_modules/**"
|
|
17
|
-
],
|
|
18
|
-
"hasRTL":[
|
|
19
|
-
"**/src/**",
|
|
20
|
-
"!**/node_modules/**"
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
app:{
|
|
25
|
-
disableES5Transpile:true
|
|
26
|
-
}
|
|
27
|
-
}
|