native-document 1.0.275 → 1.0.276
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/components.hrm.js +35 -0
- package/devtools/ComponentRegistry.js +2 -1
- package/devtools/src/utils.js +8 -1
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { default as BaseComponent } from './src/components/BaseComponent';
|
|
2
|
+
export * from './src/components/accordion/index';
|
|
3
|
+
export * from './src/components/alert/index';
|
|
4
|
+
export * from './src/components/avatar/index';
|
|
5
|
+
export * from './src/components/badge/index';
|
|
6
|
+
export * from './src/components/breadcrumb/index';
|
|
7
|
+
export * from './src/components/button/index';
|
|
8
|
+
export * from './src/components/card/index';
|
|
9
|
+
export * from './src/components/drawer/index';
|
|
10
|
+
export * from './src/components/context-menu/index';
|
|
11
|
+
export * from './src/components/divider/index';
|
|
12
|
+
export * from './src/components/dropdown/index';
|
|
13
|
+
export * from './src/components/form/index';
|
|
14
|
+
export * from './src/components/list/index';
|
|
15
|
+
export * from './src/components/menu/index';
|
|
16
|
+
export * from './src/components/modal/index';
|
|
17
|
+
export * from './src/components/modal/createModal';
|
|
18
|
+
export * from './src/components/pagination/index';
|
|
19
|
+
export * from './src/components/popover/index';
|
|
20
|
+
export * from './src/components/progress/index';
|
|
21
|
+
export * from './src/components/skeleton/index';
|
|
22
|
+
export * from './src/components/slider/index';
|
|
23
|
+
export * from './src/components/spinner/index';
|
|
24
|
+
export * from './src/components/splitter/index';
|
|
25
|
+
export * from './src/components/stepper/index';
|
|
26
|
+
export * from './src/components/switch/index';
|
|
27
|
+
export * from './src/components/table/index';
|
|
28
|
+
|
|
29
|
+
export * from './src/components/tabs/index';
|
|
30
|
+
export * from './src/components/toast/index';
|
|
31
|
+
export * from './src/components/tooltip/index';
|
|
32
|
+
export * from './src/components/stacks/index';
|
|
33
|
+
export * from './src/components/spacer/index';
|
|
34
|
+
|
|
35
|
+
export * from './src/components/icon/index';
|
package/devtools/src/utils.js
CHANGED
|
@@ -34,7 +34,11 @@ export function renameImportedObservables(content, match) {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export function transformObservableImports(code, params = {}) {
|
|
37
|
-
|
|
37
|
+
code = code.replace(/import\s+\{([^}]+?)\}\s+from\s+['"]native-document['"]/g, renameImportedObservables);
|
|
38
|
+
|
|
39
|
+
return code.replace(/import\s+\{([^}]+?)\}\s+from\s+['"]native-document\/components['"]/g, (content, match) => {
|
|
40
|
+
return `import {${match} } from 'native-document/components.hrm'`;
|
|
41
|
+
});
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
export function transformObservableDeclarations(code, id) {
|
|
@@ -51,6 +55,9 @@ export function isFileMustBeModified(file) {
|
|
|
51
55
|
return false;
|
|
52
56
|
}
|
|
53
57
|
const content = fs.readFileSync(file, 'utf-8');
|
|
58
|
+
if(/@ignore-hrm/.test(content)) {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
54
61
|
const isContainObservableImport = /import\s+\{([^}]+?)\}\s+from\s+['"]native-document['"]/g.test(content);
|
|
55
62
|
if(isContainObservableImport) {
|
|
56
63
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "native-document",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.276",
|
|
4
4
|
"description": "A reactive JavaScript framework that preserves native DOM simplicity without sacrificing modern features",
|
|
5
5
|
"author": "AfroCodeur <https://github.com/afrocodeur>",
|
|
6
6
|
"license": "MIT",
|