@texaryn/react-bootstrap 0.3.4 → 0.4.1

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,40 @@
1
1
  # @texaryn/react-bootstrap
2
2
 
3
+ ## 0.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - d3ea7a8: `homepage` points at the documentation site, https://texaryn.github.io/texaryn/,
8
+ instead of the GitHub README. No code changes.
9
+ - Updated dependencies [d3ea7a8]
10
+ - Updated dependencies [d3ea7a8]
11
+ - @texaryn/core@0.12.1
12
+ - @texaryn/react@0.5.1
13
+
14
+ ## 0.4.0
15
+
16
+ ### Minor Changes
17
+
18
+ - 191787c: Array controls render their visible word and accessible name from the messages
19
+ configured on `FormProvider`, read through `@texaryn/react`, so a translated
20
+ application translates this widget set with no configuration of its own.
21
+
22
+ A minor rather than a patch, because a widget set that follows a configured
23
+ locale with no configuration of its own is a capability an adopter can
24
+ observe, and because this repository classified the same change as a minor at
25
+ 0.3.0.
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [191787c]
30
+ - Updated dependencies [aa5dd6f]
31
+ - Updated dependencies [191787c]
32
+ - Updated dependencies [aa5dd6f]
33
+ - Updated dependencies [3f19d2c]
34
+ - Updated dependencies [3f19d2c]
35
+ - @texaryn/core@0.12.0
36
+ - @texaryn/react@0.5.0
37
+
3
38
  ## 0.3.4
4
39
 
5
40
  ### 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,qBAwCvD;AAED,eAAO,MAAM,qBAAqB,6DAGjC,CAAA"}
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
- 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": actions.removeName(index + 1, childNode), onClick: () => fieldArray.remove(index), children: "Remove" })) : null] }, item.id));
12
- }), fieldArray.canAdd ? (_jsx("button", { type: "button", className: "btn btn-primary", "aria-label": actions.addName, onClick: () => fieldArray.add(), children: "Add" })) : null] }));
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,OAAO,CAAC,UAAU,CAAC,KAAK,GAAG,CAAC,EAAE,SAAS,CAAC,EACpD,OAAO,EAAE,GAAG,EAAE,CAAC,U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ryn/react-bootstrap",
3
- "version": "0.3.4",
3
+ "version": "0.4.1",
4
4
  "description": "Bootstrap 5 widgets for Texaryn: native markup and Bootstrap classes on top of @texaryn/react",
5
5
  "keywords": [
6
6
  "react",
@@ -21,7 +21,7 @@
21
21
  "url": "git+https://github.com/texaryn/texaryn.git",
22
22
  "directory": "packages/react-bootstrap"
23
23
  },
24
- "homepage": "https://github.com/texaryn/texaryn#readme",
24
+ "homepage": "https://texaryn.github.io/texaryn/",
25
25
  "bugs": {
26
26
  "url": "https://github.com/texaryn/texaryn/issues"
27
27
  },
@@ -41,12 +41,12 @@
41
41
  "CHANGELOG.md"
42
42
  ],
43
43
  "dependencies": {
44
- "@texaryn/core": "^0.11.0"
44
+ "@texaryn/core": "^0.12.1"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": ">=18.0.0",
48
48
  "bootstrap": "^5.3",
49
- "@texaryn/react": "^0.4.4"
49
+ "@texaryn/react": "^0.5.1"
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.4.4",
63
- "@texaryn/schema-json": "0.6.0"
62
+ "@texaryn/schema-json": "0.6.2",
63
+ "@texaryn/react": "0.5.1"
64
64
  },
65
65
  "scripts": {
66
66
  "build": "tsc --build"