@statsbygg/layout 0.0.8 → 0.0.10
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/index.js +7 -32
- package/dist/index.js.map +1 -1
- package/package.json +24 -12
package/dist/index.js
CHANGED
|
@@ -1,33 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
var index_exports = {};
|
|
21
|
-
__export(index_exports, {
|
|
22
|
-
RootLayout: () => import_RootLayout.RootLayout,
|
|
23
|
-
useGlobalStore: () => import_globalState.useGlobalStore
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(index_exports);
|
|
26
|
-
var import_RootLayout = require("./components/RootLayout");
|
|
27
|
-
var import_globalState = require("./store/globalState");
|
|
28
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
-
0 && (module.exports = {
|
|
30
|
-
RootLayout,
|
|
31
|
-
useGlobalStore
|
|
32
|
-
});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
var _RootLayout = require('./components/RootLayout');
|
|
3
|
+
var _globalState = require('./store/globalState');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.RootLayout = _RootLayout.RootLayout; exports.useGlobalStore = _globalState.useGlobalStore;
|
|
33
8
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["'use client';\n\nexport { RootLayout } from './components/RootLayout';\nexport type { RootLayoutProps } from './components/RootLayout';\n\nexport { useGlobalStore } from './store/globalState';\nexport type { GlobalState } from './store/globalState';\n"]
|
|
1
|
+
{"version":3,"sources":["/home/jimmy/dev/work/statsbygg-components/packages/layout/dist/index.js","../src/index.ts"],"names":[],"mappings":"AAAA,qFAAY;ACEZ,qDAA2B;AAG3B,kDAA+B;ADF/B;AACE;AACA;AACF,kGAAC","file":"/home/jimmy/dev/work/statsbygg-components/packages/layout/dist/index.js","sourcesContent":[null,"'use client';\n\nexport { RootLayout } from './components/RootLayout';\nexport type { RootLayoutProps } from './components/RootLayout';\n\nexport { useGlobalStore } from './store/globalState';\nexport type { GlobalState } from './store/globalState';\n"]}
|
package/package.json
CHANGED
|
@@ -1,25 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statsbygg/layout",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"publishConfig": {
|
|
3
|
+
"version": "0.0.10",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
5
7
|
"description": "Shared layout components for Statsbygg microfrontend architecture",
|
|
6
8
|
"main": "./dist/index.js",
|
|
7
9
|
"module": "./dist/index.mjs",
|
|
8
10
|
"types": "./dist/index.d.ts",
|
|
9
|
-
"files": [
|
|
11
|
+
"files": [
|
|
12
|
+
"dist/**"
|
|
13
|
+
],
|
|
10
14
|
"exports": {
|
|
11
15
|
".": {
|
|
12
16
|
"import": "./dist/index.mjs",
|
|
13
17
|
"require": "./dist/index.js",
|
|
14
18
|
"types": "./dist/index.d.ts"
|
|
15
|
-
}
|
|
19
|
+
},
|
|
20
|
+
"./components/*": "./dist/components/*",
|
|
21
|
+
"./store/*": "./dist/store/*"
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"**/*.css"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsup && npm run copy:css",
|
|
28
|
+
"copy:css": "node scripts/copy-css.js",
|
|
29
|
+
"dev": "tsup --watch",
|
|
30
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
31
|
+
"type-check": "tsc --noEmit",
|
|
32
|
+
"clean": "rm -rf dist"
|
|
16
33
|
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build": "tsup && rsync -a --prune-empty-dirs --include='*/' --include='*.module.css' --exclude='*' src/ dist/",
|
|
19
|
-
"dev": "tsup --watch",
|
|
20
|
-
"lint": "eslint src --ext .ts,.tsx",
|
|
21
|
-
"type-check": "tsc --noEmit"
|
|
22
|
-
},
|
|
23
34
|
"peerDependencies": {
|
|
24
35
|
"next": ">=14.0.0",
|
|
25
36
|
"react": ">=18.0.0",
|
|
@@ -36,8 +47,9 @@
|
|
|
36
47
|
"@types/node": "^20.0.0",
|
|
37
48
|
"@types/react": "^18.2.0",
|
|
38
49
|
"@types/react-dom": "^18.2.0",
|
|
50
|
+
"fs-extra": "^11.1.1",
|
|
51
|
+
"glob": "^10.3.10",
|
|
39
52
|
"tsup": "^8.0.0",
|
|
40
53
|
"typescript": "^5.0.0"
|
|
41
|
-
}
|
|
42
|
-
"sideEffects": ["**/*.css"]
|
|
54
|
+
}
|
|
43
55
|
}
|