Skip to content

Commit

Permalink
Clean up and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
bolasim committed Jan 26, 2024
1 parent da9588c commit 65279b6
Show file tree
Hide file tree
Showing 9 changed files with 1,295 additions and 954 deletions.
10 changes: 10 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"ignore": ["nextjs-example"],
"access": "public",
"updateInternalDependencies": "patch",
"baseBranch": "main",
"bumpVersionsWithWorkspaceProtocolOnly": true
}
2 changes: 1 addition & 1 deletion apps/examples/nextjs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# react-use-pylon in NextJS

Replace `INTERCOM_APP_ID` with your Intercom app id.
Replace `PYLON_APP_ID` with your Pylon app id.
54 changes: 28 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
{
"private": true,
"packageManager": "[email protected]",
"engines": {
"pnpm": "^8.0.0"
},
"scripts": {
"dev": "turbo run dev --parallel --filter=react-use-pylon",
"dev:examples": "turbo run dev --parallel --filter=*-example --filter=react-use-pylon",
"test": "turbo run test",
"build": "turbo run build",
"lint": "turbo run lint",
"lint:fix": "turbo run lint:fix",
"clean": "turbo run clean && rm -rf node_modules",
"release": "turbo run build --filter=react-use-pylon"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.50.0",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"prettier": "^2.8.3",
"turbo": "^1.9.8"
}
}
"private": true,
"packageManager": "[email protected]",
"engines": {
"pnpm": "^8.0.0"
},
"scripts": {
"dev": "turbo run dev --parallel --filter=react-use-pylon",
"dev:examples": "turbo run dev --parallel --filter=*-example --filter=react-use-pylon",
"test": "turbo run test",
"build": "turbo run build",
"lint": "turbo run lint",
"lint:fix": "turbo run lint:fix",
"clean": "turbo run clean && rm -rf node_modules",
"changeset": "changeset",
"release": "turbo run build --filter=react-use-pylon && changeset publish"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^8.10.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"prettier": "^2.8.8",
"turbo": "^1.11.3"
}
}
61 changes: 0 additions & 61 deletions packages/react-use-pylon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,61 +0,0 @@
# react-use-pylon

## 5.3.0

### Minor Changes

- 4aac5a9: Expose startChecklist method in usePylon hook

## 5.2.0

### Minor Changes

- 8eebbed: Add "showNews" method

## 5.1.4

### Patch Changes

- d86105a: Fix incompatible node engine version

## 5.1.3

### Patch Changes

- e89a073: Do not publish src folder to registry

## 5.1.2

### Patch Changes

- 5f4b6eb: Do not publish src folder to registry

## 5.1.1

### Patch Changes

- 5e7dd7e: Do not publish src folder to registry

## 5.1.0

### Minor Changes

- e30828d: Add "showSpace" method

## 5.0.0

### Major Changes

- 8f7ff67: Allow calling "boot" multiple times. Previously it was not possible to invoke "boot" more than once, because of a "isBooted" guard. This behaviour was not in line with the IntercomJS docs, so it has been removed

## 4.1.0

### Minor Changes

- 791c6ac: Extend API with `onUserEmailSupplied` event and `startSurvey` method

## 4.0.0

### Major Changes

- c8b050d: Update built target to es2017
8 changes: 3 additions & 5 deletions packages/react-use-pylon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "react-use-pylon",
"author": "bolasim",
"module": "dist/index.mjs",
"description": "React Intercom integration without the hassle, driven by hooks.",
"description": "React Pylon integration without the hassle, driven by hooks.",
"homepage": "https://github.com/bolasim/react-use-pylon#readme",
"version": "0.0.1",
"license": "MIT",
Expand Down Expand Up @@ -30,10 +30,8 @@
"keywords": [
"react",
"reactjs",
"intercom",
"intercomjs",
"react-intercom",
"intercom-react",
"react-pylon",
"pylon-react",
"typescript",
"react-hooks",
"react-use-pylon",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-use-pylon/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { isSSR } from './utils';
* @param method method passed to the `window.Pylon` instance
* @param args arguments passed to the `window.Pylon` instance
*
* @see {@link https://developers.intercom.com/installing-intercom/docs/intercom-javascript}
* @see {@link https://docs.usepylon.com/chat/api}
*/
const PylonAPI = (method: PylonMethod, ...args: Array<any>) => {
logger.log('info', `${method} on Pylon instance`);
Expand Down
2 changes: 1 addition & 1 deletion packages/react-use-pylon/src/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const PylonProvider: React.FC<
const isBooted = React.useRef(false);
const isInitialized = React.useRef(false);

// Allow data-x attributes, see https://github.com/devrnt/react-use-intercom/issues/478
// Allow data-x attributes
const invalidPropKeys = Object.keys(rest).filter(
(key) => !key.startsWith('data-'),
);
Expand Down
8 changes: 4 additions & 4 deletions packages/react-use-pylon/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ export type PylonContextValues = {
};

export type PylonProviderProps = {
/** The app ID of your Intercom app which will indicate where to store any data */
/** The app ID of your Pylon app which will indicate where to store any data */
chatSettings: PylonChatSettings;
/**
* Indicates if Intercom should be automatically booted
* Indicates if Pylon should be automatically booted
*
* @remarks if `true`, 'boot' does not need to be called manually
* */
Expand All @@ -77,14 +77,14 @@ export type PylonProviderProps = {
onUnreadCountChange?: (unreadCount: number) => void;

/**
* Indicates if Intercom should be initialized. This will ping to the Intercom servers.
* Indicates if Pylon should be initialized. This will ping to the Pylon servers.
*
* @remarks can be used for multistaged environments
*/
shouldInitialize?: boolean;

/**
* Indicates if the intercom initialization should be delayed, delay is in ms
* Indicates if the Pylon initialization should be delayed, delay is in ms
*
* @remarks If not set delay is set to 0ms
* */
Expand Down
Loading

0 comments on commit 65279b6

Please sign in to comment.