Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixpanel types #116

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Commits on Nov 14, 2020

  1. types(core): add typedefs for plugin hooks

    Juro Oravec committed Nov 14, 2020
    Configuration menu
    Copy the full SHA
    4cb6564 View commit details
    Browse the repository at this point in the history
  2. types(core): annotate payloads

    Juro Oravec committed Nov 14, 2020
    Configuration menu
    Copy the full SHA
    bfc6ddb View commit details
    Browse the repository at this point in the history
  3. docs(core): fix typo

    Juro Oravec committed Nov 14, 2020
    Configuration menu
    Copy the full SHA
    676943c View commit details
    Browse the repository at this point in the history
  4. refactor(core): add jsdoc-plugin-intersection to jsdoc

    Juro Oravec committed Nov 14, 2020
    Configuration menu
    Copy the full SHA
    ffb8ded View commit details
    Browse the repository at this point in the history
  5. types(core): export and extend types in types.d.ts

    Juro Oravec committed Nov 14, 2020
    Configuration menu
    Copy the full SHA
    a8af861 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2020

  1. feat(mixpanel): Add context mixpanel plugin config option

    - Move the mixpanel load script to separate file
    - Modify the load script to be able to specify which context object
    the mixpanel instance should be loaded. Defaults to `window` for
    backward compatibility
    - Add `context` mixpanel plugin config option that specifies the context
    that's passed the refactored load script
    - Update hooks to get mixpanel instance from resolveMixpanel function
    instead of from `window`. This decouples the use of mixpanel instance
    from the window object
    Juro Oravec committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    b388e1a View commit details
    Browse the repository at this point in the history
  2. feat(mixpanel): Add mixpanel mixpanel plugin config option

    - Add option to be able to pass a mixpanel instance directly to
    mixpanel plugin instead of fetching it from mixpanel CDN
    Juro Oravec committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    f4e311b View commit details
    Browse the repository at this point in the history
  3. feat(mixpanel): Add config mixpanel plugin config option

    - Add option to pass Mixpanel config
    - The config is passed to mixpanel.init if the instance needs to be
    instantiated
    - The config is passed to mixpanel.set_config if the instance already
    exists
    Juro Oravec committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    02a3ff2 View commit details
    Browse the repository at this point in the history
  4. feat(mixpanel): Add pageEvent mixpanel plugin config option

    - Add option `pageEvent`, which allows to specify the name of the event
    that's tracked when mixpanelPlugin.page is called. Defautlts to 'page'
    Juro Oravec committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    be8c56e View commit details
    Browse the repository at this point in the history
  5. feat(mixpanel): Allow to pass all properties to mixpanel.track on

    mixpanelPlugin.page
    Juro Oravec committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    5feb2cc View commit details
    Browse the repository at this point in the history
  6. feat(mixpanel): try to load mixpanel from 'mixpanel-browser' if avail…

    …able
    
    - If 'mixpanel-browser' npm package is installed, the @analytics/mixpanel
    plugin will try to use that if a mixpanel instance doesn't exist yet
    Juro Oravec committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    9b7d5c7 View commit details
    Browse the repository at this point in the history
  7. feat(mixpanel): Add 'getMixpanel' plugin method that returns

    current mixpanel instance
    Juro Oravec committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    96bf4f8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    feff2b1 View commit details
    Browse the repository at this point in the history
  9. feat(mixpanel): add types annotations

    Juro Oravec committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    84ba922 View commit details
    Browse the repository at this point in the history
  10. build(mixpanel): add postbuild types generation

    - Add ./scripts/types script similar to one in @analytics/core.
      The script postprocesses the generated types and exports plugin config
      and plugin type.
    - Add analytics as dependency so types in types.d.ts can import types
    - Add 'types' npm command to @analytics/mixpanel
    - Add 'temp-types' to .gitignore
    Juro Oravec committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    2712604 View commit details
    Browse the repository at this point in the history