@texaryn/react-bootstrap 0.3.3 → 0.4.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @texaryn/react-bootstrap
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 191787c: Array controls render their visible word and accessible name from the messages
|
|
8
|
+
configured on `FormProvider`, read through `@texaryn/react`, so a translated
|
|
9
|
+
application translates this widget set with no configuration of its own.
|
|
10
|
+
|
|
11
|
+
A minor rather than a patch, because a widget set that follows a configured
|
|
12
|
+
locale with no configuration of its own is a capability an adopter can
|
|
13
|
+
observe, and because this repository classified the same change as a minor at
|
|
14
|
+
0.3.0.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [191787c]
|
|
19
|
+
- Updated dependencies [aa5dd6f]
|
|
20
|
+
- Updated dependencies [191787c]
|
|
21
|
+
- Updated dependencies [aa5dd6f]
|
|
22
|
+
- Updated dependencies [3f19d2c]
|
|
23
|
+
- Updated dependencies [3f19d2c]
|
|
24
|
+
- @texaryn/core@0.12.0
|
|
25
|
+
- @texaryn/react@0.5.0
|
|
26
|
+
|
|
27
|
+
## 0.3.4
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [8f2a2cd]
|
|
32
|
+
- Updated dependencies [20d977f]
|
|
33
|
+
- @texaryn/core@0.11.0
|
|
34
|
+
- @texaryn/react@0.4.4
|
|
35
|
+
|
|
3
36
|
## 0.3.3
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BootstrapArrayControl.d.ts","sourceRoot":"","sources":["../../src/widgets/BootstrapArrayControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAiB,MAAM,EAAE,MAAM,eAAe,CAAA;AAG1D,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,iBAAS,yBAAyB,CAAC,EAAE,IAAI,EAAE,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"BootstrapArrayControl.d.ts","sourceRoot":"","sources":["../../src/widgets/BootstrapArrayControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAiB,MAAM,EAAE,MAAM,eAAe,CAAA;AAG1D,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,iBAAS,yBAAyB,CAAC,EAAE,IAAI,EAAE,EAAE,WAAW,qBAyCvD;AAED,eAAO,MAAM,qBAAqB,6DAGjC,CAAA"}
|
|
@@ -8,8 +8,9 @@ function BootstrapArrayControlImpl({ node }) {
|
|
|
8
8
|
const actions = useArrayActions(node);
|
|
9
9
|
return (_jsxs("div", { children: [fieldArray.items.map((item, index) => {
|
|
10
10
|
const childNode = item.nodeId ? document.nodes[item.nodeId] : undefined;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
const remove = actions.remove(index + 1, childNode);
|
|
12
|
+
return (_jsxs("div", { className: "mb-3", children: [childNode ? (_jsx(NodeRenderer, { node: childNode, document: document, registry: registry })) : null, fieldArray.canRemove ? (_jsx("button", { type: "button", className: "btn btn-outline-danger btn-sm", "aria-label": remove.accessibleName, onClick: () => fieldArray.remove(index), children: remove.label })) : null] }, item.id));
|
|
13
|
+
}), fieldArray.canAdd ? (_jsx("button", { type: "button", className: "btn btn-primary", "aria-label": actions.add.accessibleName, onClick: () => fieldArray.add(), children: actions.add.label })) : null] }));
|
|
13
14
|
}
|
|
14
15
|
export const BootstrapArrayControl = React.memo(BootstrapArrayControlImpl, (prev, next) => prev.node.id === next.node.id);
|
|
15
16
|
//# sourceMappingURL=BootstrapArrayControl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BootstrapArrayControl.js","sourceRoot":"","sources":["../../src/widgets/BootstrapArrayControl.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAMjG,SAAS,yBAAyB,CAAC,EAAE,IAAI,EAAe;IACtD,MAAM,aAAa,GAAG,IAAqB,CAAA;IAC3C,MAAM,UAAU,GAAG,aAAa,CAAC,aAAa,CAAC,EAAE,CAAC,CAAA;IAClD,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,kBAAkB,EAAE,CAAA;IACnD,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,CAAA;IAErC,OAAO,CACL,0BACG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;gBACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;gBACvE,OAAO,CACL,eAAmB,SAAS,EAAC,MAAM,aAChC,SAAS,CAAC,CAAC,CAAC,CACX,KAAC,YAAY,IAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAI,CAC1E,CAAC,CAAC,CAAC,IAAI,EACP,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CACtB,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,+BAA+B,gBAC7B,
|
|
1
|
+
{"version":3,"file":"BootstrapArrayControl.js","sourceRoot":"","sources":["../../src/widgets/BootstrapArrayControl.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB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,CAAC,CAAC,CACnB,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,iBAAiB,gBACf,OAAO,CAAC,GAAG,CAAC,cAAc,EACtC,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,YAE9B,OAAO,CAAC,GAAG,CAAC,KAAK,GACX,CACV,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAC,IAAI,CAC7C,yBAAyB,EACzB,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,CAC9C,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@texaryn/react-bootstrap",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Bootstrap 5 widgets for Texaryn: native markup and Bootstrap classes on top of @texaryn/react",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"CHANGELOG.md"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@texaryn/core": "^0.
|
|
44
|
+
"@texaryn/core": "^0.12.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": ">=18.0.0",
|
|
48
48
|
"bootstrap": "^5.3",
|
|
49
|
-
"@texaryn/react": "^0.
|
|
49
|
+
"@texaryn/react": "^0.5.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
52
52
|
"bootstrap": {
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"jsdom": "^25.0.0",
|
|
60
60
|
"react": "^19.0.0",
|
|
61
61
|
"react-dom": "^19.0.0",
|
|
62
|
-
"@texaryn/react": "0.
|
|
63
|
-
"@texaryn/schema-json": "0.
|
|
62
|
+
"@texaryn/react": "0.5.0",
|
|
63
|
+
"@texaryn/schema-json": "0.6.1"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "tsc --build"
|