Skip to content

Commit

Permalink
Update internal namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwagerfield committed Sep 14, 2023
1 parent dc7b87a commit 76096f2
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
env:
SLACK_CHANNEL: deployments
SLACK_COLOR: "#17BB5E"
SLACK_TITLE: "Built: react-uploader :rocket:"
SLACK_TITLE: "Built: @bytescale/upload-widget-react :rocket:"
SLACK_FOOTER: "This package was successfully built."
MSG_MINIMAL: true
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
Expand All @@ -62,7 +62,7 @@ jobs:
env:
SLACK_CHANNEL: deployments
SLACK_COLOR: "#BB1717"
SLACK_TITLE: "Failed: react-uploader :boom:"
SLACK_TITLE: "Failed: @bytescale/upload-widget-react :boom:"
SLACK_FOOTER: "No packages published."
MSG_MINIMAL: true
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
8 changes: 4 additions & 4 deletions BUILD.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Building From Source

This repository contains a hot-reloading sandbox for developing the `react-uploader` NPM package.
This repository contains a hot-reloading sandbox for developing the `@bytescale/upload-widget-react` NPM package.

## Prerequisites

Expand All @@ -16,8 +16,8 @@ This repository contains a hot-reloading sandbox for developing the `react-uploa
### 1. Clone

```shell
git clone git@github.com:bytescale/react-uploader.git
cd react-uploader
git clone git@github.com:bytescale/upload-widget-react.git
cd upload-widget-react
```

### 2. Setup Environment
Expand All @@ -38,4 +38,4 @@ npm install
npm test
```

Note: there is no hot-reloading demo for `react-uploader`. Please see the `uploader` repository instead.
Note: there is no hot-reloading demo for `@bytescale/upload-widget-react`. Please see the `@bytescale/upload-widget` repository instead.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
preset: "ts-jest",
testEnvironment: "jsdom",
moduleNameMapper: {
"react-uploader/(.*)": "<rootDir>/src/$1"
"@bytescale/upload-widget-react/(.*)": "<rootDir>/src/$1"
},
setupFilesAfterEnv: ["<rootDir>/jest.config.pretest.js"]
};
2 changes: 1 addition & 1 deletion src/UploadButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useAutoUpdatingOptions } from "react-uploader/hooks/UseAutoUpdatingOptions";
import { useAutoUpdatingOptions } from "@bytescale/upload-widget-react/hooks/UseAutoUpdatingOptions";
import { UploadWidget, UploadWidgetConfig, UploadWidgetResult } from "@bytescale/upload-widget";

interface MouseEventLite {
Expand Down
2 changes: 1 addition & 1 deletion src/UploadDropzone.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useLayoutEffect } from "react";
import { useElementRef } from "./hooks/UseElementRef";
import { useAutoUpdatingOptions } from "react-uploader/hooks/UseAutoUpdatingOptions";
import { useAutoUpdatingOptions } from "@bytescale/upload-widget-react/hooks/UseAutoUpdatingOptions";
import { UploadWidget, UploadWidgetConfig, UploadWidgetResult } from "@bytescale/upload-widget";

interface Props {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/UseAutoUpdatingOptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useObjectDep } from "react-uploader/hooks/UseObjectDep";
import { useObjectDep } from "@bytescale/upload-widget-react/hooks/UseObjectDep";
import { useEffect, useState } from "react";
import { UploadWidgetConfig, UploadWidgetMethods } from "@bytescale/upload-widget";

Expand Down
2 changes: 1 addition & 1 deletion src/index.cdn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// we make the packages available on 'global'.
export * from "@bytescale/sdk";
export * from "@bytescale/upload-widget";
export * from "react-uploader";
export * from "@bytescale/upload-widget-react";
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { UploadButton } from "react-uploader/UploadButton";
export { UploadDropzone } from "react-uploader/UploadDropzone";
export { UploadButton } from "@bytescale/upload-widget-react/UploadButton";
export { UploadDropzone } from "@bytescale/upload-widget-react/UploadDropzone";
2 changes: 1 addition & 1 deletion tests/UploadButton.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UploadButton } from "react-uploader/UploadButton";
import { UploadButton } from "@bytescale/upload-widget-react/UploadButton";
import React from "react";
import { configure, mount } from "enzyme";
import Adapter from "enzyme-adapter-react-16";
Expand Down
2 changes: 1 addition & 1 deletion tests/UploadDropzone.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import { configure, mount } from "enzyme";
import Adapter from "enzyme-adapter-react-16";
import { UploadDropzone } from "react-uploader/UploadDropzone";
import { UploadDropzone } from "@bytescale/upload-widget-react/UploadDropzone";
import { act } from "react-dom/test-utils";

(global as any).ResizeObserver = require("resize-observer-polyfill");
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"baseUrl": "./src",
"jsx": "react",
"paths": {
"react-uploader": ["./"],
"react-uploader/*": ["./*"]
"@bytescale/upload-widget-react": ["./"],
"@bytescale/upload-widget-react/*": ["./*"]
}
},
"include": ["./**/*"],
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if (isNaN(majorVersion)) {
}

/**
* Creates the dist that's published to 'https://js.bytescale.com/react-uploader/v*'.
* Creates the dist that's published to 'https://js.bytescale.com/upload-widget-react/v*'.
*/
module.exports = {
...config,
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
extensions: [".ts", ".tsx", ".js", ".jsx"],
alias: {
// Remember to keep in sync with `tsconfig.json`
"react-uploader": path.resolve(__dirname, "src")
"@bytescale/upload-widget-react": path.resolve(__dirname, "src")
}
},
externals: nodeExternals(),
Expand Down

0 comments on commit 76096f2

Please sign in to comment.