567 Commits

Author SHA1 Message Date
Michael Shilman
e788841935 v5.2.0-beta.3 2019-07-19 20:15:36 +08:00
Michael Shilman
d597cdd048 v5.2.0-beta.2 2019-07-18 22:21:11 +08:00
Michael Shilman
cec7d5c282 v5.2.0-beta.1 2019-07-18 10:09:31 +08:00
Michael Shilman
fbf724f2a1 v5.2.0-beta.0 2019-07-15 20:49:44 +08:00
Michael Shilman
f3487c68e4 v5.2.0-alpha.44 2019-07-15 09:32:23 +08:00
Michael Shilman
2cbb9614f1 v5.2.0-alpha.43 2019-07-13 21:50:51 +08:00
Christoph Tavan
82dbd51355
Use v4 UUID instead of v1 for action IDs
This uses a purely random v4 UUID instead of a time-based v1 UUID for
the action IDs (which were introduced in storybookjs/storybook#1347).

v1 UUID are based on current time and the hardware MAC address of the
machine where they are being generated (although the implementation in
the npm uuid module uses generates a random fake MAC address). As such
they have much more complex semantics than v4 UUIDs which are simply
randomly generated.

Unless there's a specific requirement for the special semantics of v1
UUIDs it is simpler and less error prone to simply go for v4 UUIDs
whenever just a unique identifier is needed.
2019-07-12 14:48:18 +02:00
Michael Shilman
b6ae728039 v5.2.0-alpha.42 2019-07-12 11:35:45 +08:00
Michael Shilman
9b21aea75b v5.2.0-alpha.41 2019-07-11 08:01:54 +08:00
Norbert de Langen
9571fe1572 Merge branch 'next' into preview-hooks
# Conflicts:
#	addons/actions/package.json
#	addons/events/package.json
#	addons/events/src/index.ts
#	addons/ondevice-notes/package.json
#	dev-kits/addon-roundtrip/package.json
#	examples/dev-kits/package.json
#	examples/html-kitchen-sink/package.json
#	lib/client-api/package.json
#	lib/client-api/src/client_api.ts
#	lib/client-api/src/typings.d.ts
#	lib/client-api/tsconfig.json
#	lib/ui/src/index.js
#	yarn.lock
2019-07-10 16:08:11 +02:00
Michael Shilman
c41dafcbfe v5.2.0-alpha.40 2019-07-10 21:13:10 +08:00
Michael Shilman
3b17da4800 v5.2.0-alpha.39 2019-07-10 10:42:50 +08:00
Michael Shilman
30078af6de v5.2.0-alpha.38 2019-07-09 02:35:11 +08:00
Norbert de Langen
c5c519a31d Merge branch 'next' into upgrades
# Conflicts:
#	addons/knobs/src/components/Panel.tsx
#	addons/knobs/src/components/types/Checkboxes.js
#	addons/knobs/src/components/types/Files.js
#	addons/knobs/src/components/types/Options.js
2019-07-08 15:28:32 +02:00
Michael Shilman
8d82c6a62b v5.2.0-alpha.37 2019-07-08 13:04:50 +08:00
Norbert de Langen
07764c33a6 FIX build & tests 2019-07-07 00:03:50 +02:00
Michael Shilman
65db79f6ec v5.2.0-alpha.36 2019-07-05 18:14:20 +08:00
Hypnosphi
c8d437b789 Merge remote-tracking branch 'origin/next' into preview-hooks
# Conflicts:
#	addons/actions/package.json
#	addons/events/package.json
#	addons/ondevice-notes/package.json
#	dev-kits/addon-roundtrip/package.json
#	examples/dev-kits/package.json
#	examples/html-kitchen-sink/package.json
2019-07-04 19:42:22 +03:00
Michael Shilman
b9d2ba2611
Addons: Disable option for addon tab (#6923)
feature request: disable option for addon tab
2019-07-04 12:35:23 +08:00
Norbert de Langen
3b2ef9bc80
FIX addon-actions performance issue (#7256)
FIX addon-actions performance issue
2019-07-03 01:34:20 +02:00
Gaëtan Maisse
49227630bd
Merge pull request #7012 from matt-tingen/actions-type
Improve actions type
2019-07-02 22:12:18 +02:00
Michael Shilman
69ae9c7d54 v5.2.0-alpha.35 2019-07-03 00:22:17 +08:00
Matt Tingen
bdb8f74573 Use consistent return type 2019-07-02 11:13:55 -04:00
Norbert de Langen
1f12e4adb6 ADD support for allowFunction boolean option on telejson & set default value for action to false. 2019-07-02 17:12:14 +02:00
Norbert de Langen
aab38d2389 Merge branch 'next' into preview-hooks
# Conflicts:
#	addons/actions/package.json
#	addons/events/package.json
#	addons/ondevice-notes/package.json
#	examples/dev-kits/package.json
#	examples/html-kitchen-sink/package.json
2019-07-02 09:09:24 +02:00
Michael Shilman
367f72455f v5.2.0-alpha.34 2019-07-02 09:32:39 +08:00
Michael Shilman
a0561d267a v5.2.0-alpha.33 2019-07-01 19:13:12 +08:00
Hypnosphi
b07a636af9 Fix useChannel tests 2019-06-30 01:36:33 +03:00
Michael Shilman
298866f737 v5.2.0-alpha.32 2019-06-29 11:26:23 +08:00
Michael Shilman
d6843e3e5e v5.2.0-alpha.31 2019-06-27 12:29:29 +08:00
Michael Shilman
e5e0aab372 v5.2.0-alpha.30 2019-06-25 20:18:51 +08:00
Norbert de Langen
3d138f2021 Merge branch 'next' into preview-hooks
# Conflicts:
#	addons/actions/package.json
#	addons/events/package.json
#	examples/dev-kits/package.json
#	examples/html-kitchen-sink/package.json
2019-06-19 14:32:50 +02:00
Jimmy Somsanith
e862b1d666 Merge branch 'next' into jsomsanith/feat/disable_tab 2019-06-15 00:21:37 +02:00
Norbert de Langen
fbee3cdd5f CHANGE versions again, sorry, CLI tests use published version, we should really fix that! 2019-06-13 00:50:44 +02:00
Jimmy Somsanith
6ee558c13e
Merge branch 'next' into jsomsanith/feat/disable_tab 2019-06-12 22:00:24 +02:00
Norbert de Langen
3e8bf519f7 CHANGE version to 5.2.0-unreleased, to stop the update PR spam 2019-06-12 13:26:44 +02:00
Matt Tingen
1d28365a5a Improve actions type
If they need to be expanded, the `ActionsFunction` overloads can be
generated with the following code:

```js
function buildActionsFactoryOverloads(numParams) {
  const overloads = [];

  for (let n = 0; n < numParams; n++) {
    const handlerParams = [];
    for (let i = 1; i <= n + 1; i++) {
      handlerParams.push(`handler${i}: T`);
    }
    overloads.push(
      `<T extends string>(${handlerParams.join(
        ', ',
      )}, options?: ActionOptions): ActionsMap<T>;`,
    );
  }

  return overloads.join('\n');
}

console.log(buildActionsFactoryOverloads(10));
```
2019-06-08 16:13:49 -04:00
Norbert de Langen
be5a683e4a
Fix for issue 5932, adding default options to action(s) (#6438)
Fix for issue 5932, adding default options to action(s)
2019-06-08 01:07:15 +02:00
Simen Bekkhus
6bc6236642
chore: set react version to 16.8.3 to match react native 2019-06-07 20:17:19 +02:00
Norbert de Langen
88c2a98ce5 Merge branch 'next' into preview-hooks
# Conflicts:
#	addons/actions/package.json
#	addons/events/package.json
#	examples/html-kitchen-sink/package.json
2019-06-07 14:12:45 +02:00
MIchael Shilman
c2dfa5bf3d Merge remote-tracking branch 'origin/master' into next 2019-06-05 16:46:17 -07:00
Michael Shilman
70d6fcdcbe v5.1.0-rc.5 2019-06-04 10:56:14 -07:00
Michael Shilman
bb3e7f71cd Github org rename to storybookjs 2019-06-03 11:06:42 -07:00
Michael Shilman
1317bb14fa v5.1.0-rc.4 2019-06-02 23:36:17 -07:00
Hypnosphi
2c114ede63 Replace REGISTER_SUBSCRIPTION with useEffect hook 2019-06-01 17:14:43 +02:00
Jimmy Somsanith
a8e6d1bcd9 feat: disable option for addon tab 2019-05-31 10:03:53 +02:00
Michael Shilman
a589ab3987 v5.1.0-rc.3 2019-05-29 23:15:58 -07:00
Michael Shilman
50bd4c3a86 v5.1.0-rc.2 2019-05-27 07:14:35 -07:00
Michael Shilman
aa5c224534 v5.1.0-rc.1 2019-05-24 17:56:28 -07:00
Michael Shilman
35ec834e89 v5.1.0-rc.0 2019-05-21 04:07:28 -07:00