@bkbdev/plugin-renders 0.0.0-stage → 1.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Bobby Echo Prasetyo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,12 @@
1
- # Temporary Holding Version
1
+ # @bkbdev/plugin-renders
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Re-renders for the BKB desktop. Install it next to `@bkbdev/core`, then list it in the Babel
4
+ plugin options and restart Metro with `--reset-cache`:
5
+
6
+ ```js
7
+ // babel.config.js
8
+ plugins: [['@bkbdev/core/babel', { bkbPlugins: ['@bkbdev/plugin-renders'] }]],
9
+ ```
10
+
11
+ The plugin registers a render observer; tracking starts only when you press Start in the
12
+ Re-renders tool. Release builds never load it.
package/dist/index.cjs ADDED
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // packages/plugins/renders/src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ default: () => src_default
24
+ });
25
+ module.exports = __toCommonJS(src_exports);
26
+ var import_renders = require("@bkbdev/core/renders");
27
+ var plugin = {
28
+ name: "renders",
29
+ extend: () => ({
30
+ renders: (0, import_renders.createRenderObserver)()
31
+ })
32
+ };
33
+ var src_default = plugin;
34
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": ["import { createRenderObserver } from '@bkbdev/core/renders';\nimport type { BkbPlugin } from '@bkbdev/core/register';\n\n// Re-renders for the BKB desktop. Listing this package in the `bkbPlugins` option of\n// `@bkbdev/core/babel` registers the render observer with the logger; tracking itself starts\n// only from the desktop, and release builds never load this file.\nconst plugin: BkbPlugin = {\n name: 'renders',\n extend: () => ({\n renders: createRenderObserver(),\n }),\n};\n\nexport default plugin;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAqC;AAMrC,IAAM,SAAoB;AAAA,EACxB,MAAM;AAAA,EACN,QAAQ,OAAO;AAAA,IACb,aAAS,qCAAqB;AAAA,EAChC;AACF;AAEA,IAAO,cAAQ;",
6
+ "names": []
7
+ }
package/dist/index.js ADDED
@@ -0,0 +1,13 @@
1
+ // packages/plugins/renders/src/index.ts
2
+ import { createRenderObserver } from "@bkbdev/core/renders";
3
+ var plugin = {
4
+ name: "renders",
5
+ extend: () => ({
6
+ renders: createRenderObserver()
7
+ })
8
+ };
9
+ var src_default = plugin;
10
+ export {
11
+ src_default as default
12
+ };
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": ["import { createRenderObserver } from '@bkbdev/core/renders';\nimport type { BkbPlugin } from '@bkbdev/core/register';\n\n// Re-renders for the BKB desktop. Listing this package in the `bkbPlugins` option of\n// `@bkbdev/core/babel` registers the render observer with the logger; tracking itself starts\n// only from the desktop, and release builds never load this file.\nconst plugin: BkbPlugin = {\n name: 'renders',\n extend: () => ({\n renders: createRenderObserver(),\n }),\n};\n\nexport default plugin;\n"],
5
+ "mappings": ";AAAA,SAAS,4BAA4B;AAMrC,IAAM,SAAoB;AAAA,EACxB,MAAM;AAAA,EACN,QAAQ,OAAO;AAAA,IACb,SAAS,qBAAqB;AAAA,EAChC;AACF;AAEA,IAAO,cAAQ;",
6
+ "names": []
7
+ }
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import type { BkbPlugin } from '@bkbdev/core/register';
2
+
3
+ declare const plugin: BkbPlugin;
4
+ export default plugin;
package/package.json CHANGED
@@ -1,6 +1,48 @@
1
1
  {
2
2
  "name": "@bkbdev/plugin-renders",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.0.0",
4
+ "description": "BKB Re-renders plugin: committed render counts and changes for @bkbdev/core.",
5
+ "license": "MIT",
6
+ "author": "Bobby Echo Prasetyo",
7
+ "homepage": "https://github.com/bobbyecho/bkb#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/bobbyecho/bkb.git",
11
+ "directory": "packages/plugins/renders"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/bobbyecho/bkb/issues"
15
+ },
16
+ "keywords": [
17
+ "react-native",
18
+ "re-renders",
19
+ "debugging"
20
+ ],
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "private": false,
25
+ "type": "module",
26
+ "main": "./dist/index.cjs",
27
+ "module": "./dist/index.js",
28
+ "react-native": "./dist/index.js",
29
+ "types": "./index.d.ts",
30
+ "sideEffects": false,
31
+ "files": [
32
+ "dist",
33
+ "index.d.ts",
34
+ "README.md"
35
+ ],
36
+ "exports": {
37
+ ".": {
38
+ "types": "./index.d.ts",
39
+ "react-native": "./dist/index.js",
40
+ "import": "./dist/index.js",
41
+ "require": "./dist/index.cjs"
42
+ },
43
+ "./package.json": "./package.json"
44
+ },
45
+ "peerDependencies": {
46
+ "@bkbdev/core": "^1.0.0"
47
+ }
6
48
  }