@pisapp/react-helpers 7.0.0-dev.20260916-153034 → 7.0.0-dev.20261029-122603
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 +26 -18
- package/README.md +1 -64
- package/package.json +11 -11
package/LICENSE
CHANGED
|
@@ -3,26 +3,34 @@ PRODUCT INFORMATION SERVICES (PIS) PROPRIETARY SOFTWARE LICENSE
|
|
|
3
3
|
Copyright (c) 2026 ABB Asea Brown Boveri Ltd. All rights reserved.
|
|
4
4
|
|
|
5
5
|
The Product Information Services (PIS) software package and its documentation
|
|
6
|
-
(the "Software") are proprietary
|
|
7
|
-
licensors.
|
|
6
|
+
(the "Software") are proprietary and confidential property of ABB Asea Brown
|
|
7
|
+
Boveri Ltd ("ABB") and its licensors. The Software is closed source. No source
|
|
8
|
+
code rights are granted under this license.
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
An "Authorized User" is a person or organization that has completed the
|
|
11
|
+
applicable ABB onboarding process and is expressly authorized to use PIS under
|
|
12
|
+
a valid written agreement with ABB (the "Applicable Agreement"). Subject to
|
|
13
|
+
the Applicable Agreement, ABB grants each Authorized User a limited,
|
|
14
|
+
non-exclusive, non-transferable, non-sublicensable license to install and use
|
|
15
|
+
the Software solely to develop, test, and run applications that access PIS
|
|
16
|
+
services for the purposes authorized by the Applicable Agreement.
|
|
15
17
|
|
|
16
18
|
Except to the extent that mandatory law does not allow a restriction, you may
|
|
17
|
-
not copy, modify, distribute, publish, sublicense, rent, lease,
|
|
18
|
-
otherwise make the Software available to
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
not copy, modify, adapt, distribute, publish, disclose, sublicense, rent, lease,
|
|
20
|
+
sell, or otherwise make the Software available to any unauthorized person or
|
|
21
|
+
third party. You may not remove or alter proprietary notices, derive source
|
|
22
|
+
code from the Software, or reverse engineer, decompile, or disassemble the
|
|
23
|
+
Software except as expressly permitted by mandatory law.
|
|
21
24
|
|
|
22
|
-
|
|
23
|
-
Software
|
|
24
|
-
|
|
25
|
+
ABB and its licensors retain all right, title, and interest in and to the
|
|
26
|
+
Software. No rights are granted by implication. If you are not an Authorized
|
|
27
|
+
User, no license to use the Software is granted. Your right to use the Software
|
|
28
|
+
ends immediately when the Applicable Agreement ends or your authorization is
|
|
29
|
+
withdrawn.
|
|
25
30
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
Third-party components included with the Software remain subject to their
|
|
32
|
+
applicable license terms identified in THIRD-PARTY-NOTICES.txt.
|
|
33
|
+
|
|
34
|
+
The Applicable Agreement controls if it conflicts with this license. The
|
|
35
|
+
Software is provided subject to the warranties, limitations of liability,
|
|
36
|
+
confidentiality obligations, and other terms in the Applicable Agreement.
|
package/README.md
CHANGED
|
@@ -1,66 +1,3 @@
|
|
|
1
1
|
# @pisapp/react-helpers
|
|
2
2
|
|
|
3
|
-
React
|
|
4
|
-
into a PIS template surface (a table cell, header, pagination slot, …) and
|
|
5
|
-
bridges the PIS reactive context to React so that mutations to `ctx` fields
|
|
6
|
-
re-render your component.
|
|
7
|
-
|
|
8
|
-
## Install
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
pnpm add @pisapp/core @pisapp/react-helpers react react-dom vue
|
|
12
|
-
# npm install @pisapp/core @pisapp/react-helpers react react-dom vue
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
### Peer dependencies
|
|
16
|
-
|
|
17
|
-
| Package | Range | Notes |
|
|
18
|
-
| -------------- | -------- | ------------------------------ |
|
|
19
|
-
| `@pisapp/core` | `^7.0.0` | The component runtime + types. |
|
|
20
|
-
| `react` | `>=18` | |
|
|
21
|
-
| `react-dom` | `>=18` | |
|
|
22
|
-
| `vue` | `^3.5.0` | **Required.** See below. |
|
|
23
|
-
|
|
24
|
-
> **Why is `vue` required?** The PIS context (`ctx`) passed to your component is
|
|
25
|
-
> a Vue `reactive()` object. This helper bridges that Vue-reactive ctx to React
|
|
26
|
-
> (it is built on `@vue/reactivity`), so `vue` is a required peer dependency —
|
|
27
|
-
> even though you write React and never touch Vue yourself. Omitting it produces
|
|
28
|
-
> a missing-peer error at install time.
|
|
29
|
-
|
|
30
|
-
## Usage
|
|
31
|
-
|
|
32
|
-
```tsx
|
|
33
|
-
import { registerAll } from '@pisapp/core';
|
|
34
|
-
import '@pisapp/react-helpers/jsx'; // JSX tag types for <pis-*> (import once)
|
|
35
|
-
import { compileComponent } from '@pisapp/react-helpers';
|
|
36
|
-
import { BuyButton } from './BuyButton';
|
|
37
|
-
|
|
38
|
-
registerAll(); // explicit registration (C11 follow-up) — once at startup
|
|
39
|
-
|
|
40
|
-
const cellCallbacks = compileComponent(BuyButton);
|
|
41
|
-
|
|
42
|
-
const options = {
|
|
43
|
-
components: {
|
|
44
|
-
itemsTable: {
|
|
45
|
-
columns: [{ dataField: 'ProductId', cellTemplate: cellCallbacks }],
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
// BuyButton receives the ctx as a SINGLE prop.
|
|
51
|
-
export function BuyButton({
|
|
52
|
-
ctx,
|
|
53
|
-
}: {
|
|
54
|
-
ctx: { item: { productId: string }; t: (s: string) => string };
|
|
55
|
-
}) {
|
|
56
|
-
return <button>{ctx.t('Buy')}</button>;
|
|
57
|
-
}
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
`compileComponent` returns the `{ mount }` template value (`TemplateCallbacks`)
|
|
61
|
-
that PIS expects on a template slot; `mount` returns the teardown cleanup PIS
|
|
62
|
-
runs when the cell goes away. Your component still owns cleanup of any external
|
|
63
|
-
subscriptions.
|
|
64
|
-
|
|
65
|
-
See the [React migration guide](../../PisNextGenDocs/src/migration/web-components/react.md) for
|
|
66
|
-
the full DSL translation rules and the codemod-first migration flow.
|
|
3
|
+
React component bridge for rendering application components in PIS template surfaces.
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisapp/react-helpers",
|
|
3
|
-
"version": "7.0.0-dev.
|
|
3
|
+
"version": "7.0.0-dev.20261029-122603",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"author": "ABB Asea Brown Boveri Ltd",
|
|
6
|
-
"description": "React 18+ helper for PIS v7
|
|
6
|
+
"description": "React 18+ helper for PIS v7 - compileComponent(). Bridges the Vue-reactive ctx to React so mutations to ctx fields re-render the mounted component; hosts the JSX tag augmentation.",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/index.js",
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
@@ -24,30 +24,30 @@
|
|
|
24
24
|
"THIRD-PARTY-NOTICES.txt"
|
|
25
25
|
],
|
|
26
26
|
"peerDependencies": {
|
|
27
|
+
"@pisapp/core": "^7.0.0",
|
|
27
28
|
"react": ">=18",
|
|
28
29
|
"react-dom": ">=18",
|
|
29
|
-
"vue": ">=3.5.17 <4"
|
|
30
|
-
"@pisapp/core": "^7.0.0"
|
|
30
|
+
"vue": ">=3.5.17 <4"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@pisapp/core": "7.0.0-dev.
|
|
33
|
+
"@pisapp/core": "7.0.0-dev.20261029-122603",
|
|
34
34
|
"@types/node": "^22.20.1",
|
|
35
35
|
"@types/react": "19.2.18",
|
|
36
36
|
"@types/react-dom": "19.2.5",
|
|
37
|
-
"
|
|
38
|
-
"vue": ">=3.5.17 <4",
|
|
37
|
+
"jsdom": "^25.0.1",
|
|
39
38
|
"react": "19.2.8",
|
|
40
39
|
"react-dom": "19.2.8",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
40
|
+
"typescript": "~6.0.3",
|
|
41
|
+
"vitest": "^4.1.11",
|
|
42
|
+
"vue": ">=3.5.17 <4"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"pisRelease": {
|
|
48
|
-
"version": "7.0.0-dev.
|
|
48
|
+
"version": "7.0.0-dev.20261029-122603",
|
|
49
49
|
"channel": "dev",
|
|
50
|
-
"commit": "
|
|
50
|
+
"commit": "478b95b3b6c649069b5fdb0e3eed22330e651518"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "node ../../scripts/build-library.mjs --package @pisapp/react-helpers",
|