@cleanweb/react 1.1.1-beta.11 → 1.1.1-beta.12

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.
@@ -1,3 +1,4 @@
1
+ import '../globals';
1
2
  declare class MergedState<TState extends object> {
2
3
  static useRefresh<TState extends object>(this: MergedState<TState>): void;
3
4
  reservedKeys: string[];
@@ -12,6 +12,7 @@ var __assign = (this && this.__assign) || function () {
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.useMergedState = void 0;
15
+ require("../globals");
15
16
  var react_1 = require("react");
16
17
  var MergedState = /** @class */ (function () {
17
18
  function MergedState(initialState) {
@@ -1,3 +1,4 @@
1
+ import '../globals';
1
2
  /**
2
3
  * Returns a value that is false before the component has been mounted,
3
4
  * then true during all subsequent rerenders.
@@ -12,6 +12,7 @@ var __assign = (this && this.__assign) || function () {
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.useCleanState = exports.useMountState = void 0;
15
+ require("../globals");
15
16
  var react_1 = require("react");
16
17
  /**
17
18
  * Returns a value that is false before the component has been mounted,
package/build/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./classy";
1
+ export * from './classy';
package/build/index.js CHANGED
@@ -16,7 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./classy"), exports);
18
18
  // PS: Document component inheritance pattern with lifecycle callback arrays and namespaces.
19
- // Due to react's remounting behaviour, components must externally track when some logic has run, if it really really must only ever run once per mounted instance. Tricky to get right for components that may have multiple instance rendered simultaneously at different parts of a page.
19
+ // Due to react's remounting behaviour, components must externally track when some logic has run,
20
+ // if it really really must only ever run once per mounted instance. Tricky to get right for components that may have multiple instance rendered simultaneously at different parts of a page.
20
21
  // useCleanState => useState, separate call for each key
21
22
  // useMergedState => useState, same call for all keys
22
23
  // useMethods => useCallback
@@ -35,10 +35,12 @@
35
35
  "exactOptionalPropertyTypes": true,
36
36
  },
37
37
  "include": [
38
+ // "**/[!globals].ts",
38
39
  "**/*.ts",
39
40
  "**/*.tsx"
40
41
  ],
41
42
  "exclude": [
43
+ "**/globals.ts",
42
44
  "node_modules/**/**.*",
43
45
  "build/**/**.*",
44
46
  "mirror-pkg/**/**.*"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleanweb/react",
3
- "version": "1.1.1-beta.11",
3
+ "version": "1.1.1-beta.12",
4
4
  "description": "A suite of helpers for writing cleaner React function components.",
5
5
  "engines": {
6
6
  "node": ">=18"
@@ -30,7 +30,7 @@
30
30
  "scripts": {
31
31
  "prebuild": "rimraf ./build",
32
32
  "build": "tsc && tsc-alias",
33
- "postbuild": "copyfiles globals.d.ts tsconfig.json build",
33
+ "postbuild": "copyfiles tsconfig.json build",
34
34
  "_": "",
35
35
  "prepublishOnly": "npm run build",
36
36
  "publish:patch": "npm version patch && npm publish",