Skip to content

Commit 69066a7

Browse files
committed
Update version number to 4.1.6
1 parent ff3cac8 commit 69066a7

8 files changed

+240
-78
lines changed

.core/reactium-config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const globby = require('./globby-patch');
44
const rootPath = path.resolve(__dirname, '..');
55
const gulpConfig = require('./gulp.config');
66

7-
const version = '4.1.4';
7+
const version = '4.1.6';
88

99
const defaultLibraryExternals = {
1010
axios: {

apidoc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "4.1.4",
2+
"version": "4.1.6",
33
"description": "Reactium SDK",
44
"title": "Reactium SDK"
55
}

docs/api_data.js

+81
Original file line numberDiff line numberDiff line change
@@ -1489,6 +1489,49 @@ define({ "api": [
14891489
"filename": "node_modules/@atomic-reactor/reactium-sdk-core/lib/named-exports/handle.js",
14901490
"groupTitle": "ReactHook"
14911491
},
1492+
{
1493+
"type": "ReactHook",
1494+
"url": "useRegisterSyncHandle(id,cb,deps)",
1495+
"title": "useRegisterSyncHandle()",
1496+
"description": "<p>React hook to create a new imperative handle reference, similar to <code>useRegisterHandle()</code> except that it returns a sync state object (see useSyncState) and will cause rerenders in the controlled component.</p>",
1497+
"parameter": {
1498+
"fields": {
1499+
"Parameter": [
1500+
{
1501+
"group": "Parameter",
1502+
"type": "Mixed",
1503+
"optional": false,
1504+
"field": "id",
1505+
"description": "<p>Array of properties, or <code>.</code> separated object path. e.g. ['path','to','handle'] or 'path.to.handle'. Identifies the full path to an imperative handle.</p>"
1506+
},
1507+
{
1508+
"group": "Parameter",
1509+
"type": "Mixed",
1510+
"optional": false,
1511+
"field": "initial",
1512+
"description": "<p>value of the state handle.</p>"
1513+
}
1514+
]
1515+
}
1516+
},
1517+
"name": "useRegisterSyncHandle",
1518+
"group": "ReactHook",
1519+
"examples": [
1520+
{
1521+
"title": "Counter.js",
1522+
"content": "import React, { useState } from 'react';\nimport { useRegisterSyncHandle } from 'reactium-core/sdk';\n\nconst Counter = ({id = 1}) => {\n const state = useRegisterSyncHandle('counter', {\n foo: {\n count: Number(id)\n },\n });\n\n state.extend('incrementCount', () => {\n state.set('foo.count', state.get('foo.count', id) + 1);\n });\n\n return (\n <div>\n <h1>Counter {id}</h1>\n Count: {state.get('foo.count', id)}\n </div>\n );\n};\n\nexport default Counter;",
1523+
"type": "json"
1524+
},
1525+
{
1526+
"title": "CounterControl.js",
1527+
"content": "import React from 'react';\nimport { useSelectHandle } from 'reactium-core/sdk';\n\nconst noop = () => {};\nconst CounterControl = () => {\n const { handle, count } = useSelectHandle('counter', 'foo.count', 1);\n\n // set state for Counter, as well as cause this component to rerender\n\n return (\n <div>\n <h1>CounterControl</h1>\n <button onClick={handle.incrementCount}>\n Increment Counter ({count})\n </button>\n </div>\n );\n};\n\nexport default CounterControl;",
1528+
"type": "json"
1529+
}
1530+
],
1531+
"version": "0.0.0",
1532+
"filename": "node_modules/@atomic-reactor/reactium-sdk-core/lib/named-exports/sync-handle.js",
1533+
"groupTitle": "ReactHook"
1534+
},
14921535
{
14931536
"type": "ReactHook",
14941537
"url": "useRoles(search)",
@@ -1513,6 +1556,44 @@ define({ "api": [
15131556
"filename": ".core/sdk/named-exports/roles.js",
15141557
"groupTitle": "ReactHook"
15151558
},
1559+
{
1560+
"type": "ReactHook",
1561+
"url": "useSelectHandle(id,cb,deps)",
1562+
"title": "useSelectHandle()",
1563+
"description": "<p>React hook to subscribe to updates to state on an imperative handle created by useRegisterSyncHandle. See useRegisterSyncHandle for full example.</p>",
1564+
"parameter": {
1565+
"fields": {
1566+
"Parameter": [
1567+
{
1568+
"group": "Parameter",
1569+
"type": "Mixed",
1570+
"optional": false,
1571+
"field": "id",
1572+
"description": "<p>Array of properties, or <code>.</code> separated object path. e.g. ['path','to','handle'] or 'path.to.handle'. Identifies the full path to an imperative handle.</p>"
1573+
},
1574+
{
1575+
"group": "Parameter",
1576+
"type": "String|Array|Function",
1577+
"optional": false,
1578+
"field": "selector",
1579+
"description": "<p>object path string or array, or selector function passed the sync state object (see useSyncState); returns seleted state</p>"
1580+
},
1581+
{
1582+
"group": "Parameter",
1583+
"type": "Mixed",
1584+
"optional": true,
1585+
"field": "default",
1586+
"description": "<p>default selected value (if selector is String or Array)</p>"
1587+
}
1588+
]
1589+
}
1590+
},
1591+
"name": "useSelectHandle",
1592+
"group": "ReactHook",
1593+
"version": "0.0.0",
1594+
"filename": "node_modules/@atomic-reactor/reactium-sdk-core/lib/named-exports/sync-handle.js",
1595+
"groupTitle": "ReactHook"
1596+
},
15161597
{
15171598
"type": "ReactHook",
15181599
"url": "useSettingGroup(group)",

docs/api_data.json

+81
Original file line numberDiff line numberDiff line change
@@ -1489,6 +1489,49 @@
14891489
"filename": "node_modules/@atomic-reactor/reactium-sdk-core/lib/named-exports/handle.js",
14901490
"groupTitle": "ReactHook"
14911491
},
1492+
{
1493+
"type": "ReactHook",
1494+
"url": "useRegisterSyncHandle(id,cb,deps)",
1495+
"title": "useRegisterSyncHandle()",
1496+
"description": "<p>React hook to create a new imperative handle reference, similar to <code>useRegisterHandle()</code> except that it returns a sync state object (see useSyncState) and will cause rerenders in the controlled component.</p>",
1497+
"parameter": {
1498+
"fields": {
1499+
"Parameter": [
1500+
{
1501+
"group": "Parameter",
1502+
"type": "Mixed",
1503+
"optional": false,
1504+
"field": "id",
1505+
"description": "<p>Array of properties, or <code>.</code> separated object path. e.g. ['path','to','handle'] or 'path.to.handle'. Identifies the full path to an imperative handle.</p>"
1506+
},
1507+
{
1508+
"group": "Parameter",
1509+
"type": "Mixed",
1510+
"optional": false,
1511+
"field": "initial",
1512+
"description": "<p>value of the state handle.</p>"
1513+
}
1514+
]
1515+
}
1516+
},
1517+
"name": "useRegisterSyncHandle",
1518+
"group": "ReactHook",
1519+
"examples": [
1520+
{
1521+
"title": "Counter.js",
1522+
"content": "import React, { useState } from 'react';\nimport { useRegisterSyncHandle } from 'reactium-core/sdk';\n\nconst Counter = ({id = 1}) => {\n const state = useRegisterSyncHandle('counter', {\n foo: {\n count: Number(id)\n },\n });\n\n state.extend('incrementCount', () => {\n state.set('foo.count', state.get('foo.count', id) + 1);\n });\n\n return (\n <div>\n <h1>Counter {id}</h1>\n Count: {state.get('foo.count', id)}\n </div>\n );\n};\n\nexport default Counter;",
1523+
"type": "json"
1524+
},
1525+
{
1526+
"title": "CounterControl.js",
1527+
"content": "import React from 'react';\nimport { useSelectHandle } from 'reactium-core/sdk';\n\nconst noop = () => {};\nconst CounterControl = () => {\n const { handle, count } = useSelectHandle('counter', 'foo.count', 1);\n\n // set state for Counter, as well as cause this component to rerender\n\n return (\n <div>\n <h1>CounterControl</h1>\n <button onClick={handle.incrementCount}>\n Increment Counter ({count})\n </button>\n </div>\n );\n};\n\nexport default CounterControl;",
1528+
"type": "json"
1529+
}
1530+
],
1531+
"version": "0.0.0",
1532+
"filename": "node_modules/@atomic-reactor/reactium-sdk-core/lib/named-exports/sync-handle.js",
1533+
"groupTitle": "ReactHook"
1534+
},
14921535
{
14931536
"type": "ReactHook",
14941537
"url": "useRoles(search)",
@@ -1513,6 +1556,44 @@
15131556
"filename": ".core/sdk/named-exports/roles.js",
15141557
"groupTitle": "ReactHook"
15151558
},
1559+
{
1560+
"type": "ReactHook",
1561+
"url": "useSelectHandle(id,cb,deps)",
1562+
"title": "useSelectHandle()",
1563+
"description": "<p>React hook to subscribe to updates to state on an imperative handle created by useRegisterSyncHandle. See useRegisterSyncHandle for full example.</p>",
1564+
"parameter": {
1565+
"fields": {
1566+
"Parameter": [
1567+
{
1568+
"group": "Parameter",
1569+
"type": "Mixed",
1570+
"optional": false,
1571+
"field": "id",
1572+
"description": "<p>Array of properties, or <code>.</code> separated object path. e.g. ['path','to','handle'] or 'path.to.handle'. Identifies the full path to an imperative handle.</p>"
1573+
},
1574+
{
1575+
"group": "Parameter",
1576+
"type": "String|Array|Function",
1577+
"optional": false,
1578+
"field": "selector",
1579+
"description": "<p>object path string or array, or selector function passed the sync state object (see useSyncState); returns seleted state</p>"
1580+
},
1581+
{
1582+
"group": "Parameter",
1583+
"type": "Mixed",
1584+
"optional": true,
1585+
"field": "default",
1586+
"description": "<p>default selected value (if selector is String or Array)</p>"
1587+
}
1588+
]
1589+
}
1590+
},
1591+
"name": "useSelectHandle",
1592+
"group": "ReactHook",
1593+
"version": "0.0.0",
1594+
"filename": "node_modules/@atomic-reactor/reactium-sdk-core/lib/named-exports/sync-handle.js",
1595+
"groupTitle": "ReactHook"
1596+
},
15161597
{
15171598
"type": "ReactHook",
15181599
"url": "useSettingGroup(group)",

docs/api_project.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
define({
22
"name": "reactium",
3-
"version": "4.1.4",
3+
"version": "4.1.6",
44
"description": "Reactium SDK",
55
"title": "Reactium SDK",
66
"sampleUrl": false,
77
"defaultVersion": "0.0.0",
88
"apidoc": "0.3.0",
99
"generator": {
1010
"name": "apidoc",
11-
"time": "2021-10-19T20:44:19.968Z",
11+
"time": "2021-10-28T23:53:47.229Z",
1212
"url": "https://apidocjs.com",
1313
"version": "0.25.0"
1414
}

docs/api_project.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "reactium",
3-
"version": "4.1.4",
3+
"version": "4.1.6",
44
"description": "Reactium SDK",
55
"title": "Reactium SDK",
66
"sampleUrl": false,
77
"defaultVersion": "0.0.0",
88
"apidoc": "0.3.0",
99
"generator": {
1010
"name": "apidoc",
11-
"time": "2021-10-19T20:44:19.968Z",
11+
"time": "2021-10-28T23:53:47.229Z",
1212
"url": "https://apidocjs.com",
1313
"version": "0.25.0"
1414
}

package-lock.json

+71-71
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)